BayEOSArduino Library
Buffer Setup

Creating a circular buffer for incoming data. More...

Detailed Description

Creating a circular buffer for incoming data.

The buffer is used to store characters from the SDI-12 data line. Characters are read into the buffer when an interrupt is received on the data line. The buffer uses a circular implementation with pointers to both the head and the tail. All SDI-12 instances share the same buffer.

The default buffer size is the maximum length of a response to a normal SDI-12 command, which is 81 characters:

For more information on circular buffers: http://en.wikipedia.org/wiki/Circular_buffer