AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
Data buffer for outgoing frames. More...
#include <sci_internal_types.h>
Data Fields | |
uint8_t * | WrPtr |
uint8_t * | RdPtr |
uint8_t * | Buffer |
struct sci_frame_t * | Next |
Data buffer for outgoing frames.
A frame needs to be initialize with an data buffer and read/write pointers equal to zero. Status of the frame can be determined by the following conditions:
The total amount of stored data is given by (size_t)(WrPtr - Buffer) The amount that is still to read is given by (size_t)(WrPtr - RdPtr)
In order to accomplish flexible frame length, the frames might link to another frame which will be sent right after the current one has completely sent.
uint8_t* sci_frame_t::Buffer |
Data buffer.
struct sci_frame_t* sci_frame_t::Next |
Pointer to the next frame in the chain.
uint8_t* sci_frame_t::RdPtr |
Frame read pointer
uint8_t* sci_frame_t::WrPtr |
Frame write pointer