Struct SYN_PingPong¶
Ping-pong (double) buffer — zero-copy DMA pattern.
#include <syn_pingpong.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint8_t | active_idx |
| uint8_t * | buf |
| volatile bool | data_ready |
| size_t | size |
Public Attributes Documentation¶
variable active_idx¶
Index (0 or 1) of the active buffer
variable buf¶
Two buffer pointers
variable data_ready¶
True when ready buffer has data
variable size¶
Size of each buffer
The documentation for this class was generated from the following file src/syntropic/util/syn_pingpong.h