|
Lely core libraries 2.3.5
|
A CAN frame buffer. More...
#include <buf.h>

Data Fields | |
| struct can_msg * | ptr |
| A pointer to the allocated memory for the buffer. | |
| size_t | size |
| The total size (in number of frames) of the buffer, excluding the unused frame used to distinguish between a full and an empty buffer. | |
| size_t | begin |
| The offset (with respect to ptr) of the first value available for reading (and two past the last available for writing, modulo size + 1). | |
| size_t | end |
| The offset (with respect to ptr) of one past the last value available for reading (and the first available for writing, modulo size + 1). | |
| size_t can_buf::size |