Skip to content

Struct SYN_PingPong

ClassList > 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

uint8_t SYN_PingPong::active_idx;

Index (0 or 1) of the active buffer


variable buf

uint8_t* SYN_PingPong::buf[2];

Two buffer pointers


variable data_ready

volatile bool SYN_PingPong::data_ready;

True when ready buffer has data


variable size

size_t SYN_PingPong::size;

Size of each buffer



The documentation for this class was generated from the following file src/syntropic/util/syn_pingpong.h