#ifndef __SBUS_H__ #define __SBUS_H__ #include "uart_fifo.h" #include typedef struct { uart_fifo_t *fifo_in; const char *name; uint16_t ch[18]; uint8_t seq; bool valid; uint8_t stage; uint8_t buff[24]; } SBUS_IN_t; void SBUS_IN_init(SBUS_IN_t *sbus_in, const char *name, uart_fifo_t *fifo_in); bool SBUS_IN_update(SBUS_IN_t *sbus_in); #endif /* __SBUS_H__ */