EmbeddedRelated.com

Steve McLevie (@swmcl)

Electronic Engineer

Re: Circular buffers

Reply posted 5 years ago (02/06/2019)
OK.  I have some code based on Bandit's reply but I have a further question... Why is there a structure within a structure ?  Don't I just need an array within...

Re: Circular buffers

Reply posted 5 years ago (02/06/2019)
Am I correct in thinking that the uint16_t variables can now be uint8_t as they never get to see a number beyond 256 ?

Re: Circular buffers

Reply posted 5 years ago (02/06/2019)
Thanks Bandit,I think I read your post through and understood almost all of it in one pass.  I was wondering how to increment a counter by 48 overnight but now...

Re: Circular buffers

Reply posted 5 years ago (02/06/2019)
OK.  So I have tried to digest several online blog type articles.  They are all shying away from actual examples and thus speak in pseudocode as it were ... So...

Re: Circular buffers

Reply posted 5 years ago (02/05/2019)
Thanks guys,The frame size is fixed by external hardware.  I can't do anything about it.  The frame will vary from 9 to 48 bytes.  It does have start and finishing...

Re: Circular buffers

Reply posted 5 years ago (02/05/2019)
Thanks DNJ,The examples I've seen only work with a buffer that has single bytes.  Mine would have a byte-array or something that was 48 bytes long.  The other...

Circular buffers

New thread started 5 years ago
Hi,I'm not that advanced at C programming but I need to build a circular buffer for my serial data.  The serial data is in a frame that is from 9 bytes to 48 bytes...

Re: Microcontroller books suggestions

Reply posted 7 years ago (08/24/2017)
Hi QL,Can I assume these are your courses?  On the webpage it said the courses were located in Australia.  Are you in Australia and do you offer training or other...

Use this form to contact swmcl

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address