Files
CH32V208WBU6/Comm/uart/sbus.h
T
2024-02-29 00:45:47 +08:00

24 lines
389 B
C

#ifndef __SBUS_H__
#define __SBUS_H__
#include "uart_fifo.h"
#include <stdbool.h>
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__ */