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

Decoder state for one S.BUS byte stream. More...

#include <sbus.h>

Data Fields

uint8_t buf [SBUS_FRAME_BYTES]
uint8_t len
uint32_t last_byte_us
bool have_time
uint32_t frames
uint32_t resyncs
uint32_t bad_footer

Detailed Description

Decoder state for one S.BUS byte stream.

Field Documentation

◆ bad_footer

uint32_t sbus_decoder_t::bad_footer

right length, right header, wrong tail

◆ buf

uint8_t sbus_decoder_t::buf[SBUS_FRAME_BYTES]

bytes of the frame being collected

◆ have_time

bool sbus_decoder_t::have_time

true once last_byte_us is set

◆ last_byte_us

uint32_t sbus_decoder_t::last_byte_us

arrival time of the last byte, in us

◆ len

uint8_t sbus_decoder_t::len

bytes held in buf

◆ resyncs

uint32_t sbus_decoder_t::resyncs

bytes thrown away looking for a boundary


The documentation for this struct was generated from the following file:
  • protocols/sbus/include/sbus.h