rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
ppm_out_t Struct Reference

State of one PPM output: its pin, PIO state machine and DMA channels. More...

Data Fields

bool used
bool running
uint8_t pin
uint8_t channels
uint16_t frame_us
PIO pio
uint sm
uint offset
int dma_data
int dma_ctrl
dma_channel_config cfg_data
dma_channel_config cfg_ctrl
uint32_t buf [PPM_MAX_RUNS]
uint32_t words
uint16_t last_us [PPM_MAX_CHANNELS]
bool have_last
const uint32_t * restart

Detailed Description

State of one PPM output: its pin, PIO state machine and DMA channels.

Field Documentation

◆ buf

uint32_t ppm_out_t::buf[PPM_MAX_RUNS]

run counts, see RUN_TO_COUNT()

◆ cfg_ctrl

dma_channel_config ppm_out_t::cfg_ctrl

the control channel's configuration

◆ cfg_data

dma_channel_config ppm_out_t::cfg_data

the data channel's configuration

◆ channels

uint8_t ppm_out_t::channels

channels the frame carries

◆ dma_ctrl

int ppm_out_t::dma_ctrl

control channel: restarts the data channel

◆ dma_data

int ppm_out_t::dma_data

data channel: plays the run counts

◆ frame_us

uint16_t ppm_out_t::frame_us

frame length, in us

◆ offset

uint ppm_out_t::offset

program offset in the PIO instruction memory

◆ pin

uint8_t ppm_out_t::pin

GPIO pin number

◆ pio

PIO ppm_out_t::pio

PIO block

◆ running

bool ppm_out_t::running

a frame is being played

◆ sm

uint ppm_out_t::sm

state machine index

◆ used

bool ppm_out_t::used

slot is bound to a pin

◆ words

uint32_t ppm_out_t::words

runs in buf


The documentation for this struct was generated from the following file: