Hi all.
I am receiving serial data and placing it into a buffer.
In main I am using a pointer to view the elements of the buffer.
Code:
volatile char *pointer;
pointer = pc_rx_buffer;
I work my way through the buffer using
If the buffer created is,
Code:
pc_rx_buffer[PC_Rx_BUFFER_SIZE])
What is the correct way to test whether my pointer is at the last element of my buffer, so that I can reset my pointer to the beginning of my buffer?
Im sure this is quite simple, but I'm through with scratching my head about this so I thought i would just ask.
Thanks