Ring buffer operates on uint8_t , but I would like to use ring buffer to store 16 bits ADC data. What is the simplest solution?
Converting 16 bits data into 8 bits, store the data into ring buffer, get data back from ring buffer and then convert the data back to 16 bits, seems like a lot of work.
Is it possible to modify the ring buffer to use 16 bits instead of 8 bit for data storage? Is it simpler to just write a simple ring buffer; do you have an example?
I just need a simple ring buffer to store certain amount of ADC data before I process the data. A simple buffer would not work.