|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
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 |
Decoder state for one S.BUS byte stream.
| uint32_t sbus_decoder_t::bad_footer |
right length, right header, wrong tail
| uint8_t sbus_decoder_t::buf[SBUS_FRAME_BYTES] |
bytes of the frame being collected
| bool sbus_decoder_t::have_time |
true once last_byte_us is set
| uint32_t sbus_decoder_t::last_byte_us |
arrival time of the last byte, in us
| uint8_t sbus_decoder_t::len |
bytes held in buf
| uint32_t sbus_decoder_t::resyncs |
bytes thrown away looking for a boundary