58 #define MAX_MSP_PORT_COUNT 2
72 #define MSP_PORT_INBUF_SIZE 64
73 #define MSP_PORT_OUTBUF_SIZE 256
const struct config * config
Definition: serial_msp.h:89
Definition: serial_msp.h:65
struct serial_msp_port ports[MAX_MSP_PORT_COUNT]
Definition: serial_msp.h:88
mspState_e c_state
Definition: serial_msp.h:77
uint8_t offset
Definition: serial_msp.h:78
Definition: serial_msp.h:63
Definition: serial_msp.h:87
void serial_msp_release_port(struct serial_msp *self, serialPort_t *serialPort)
Definition: serial_msp.c:85
#define MSP_PORT_INBUF_SIZE
Definition: serial_msp.h:72
mspState_e
Definition: serial_msp.h:62
Definition: serial_msp.h:69
Definition: serial_msp.h:68
void serial_msp_init(struct serial_msp *self, const struct config *config, struct msp *msp)
Definition: serial_msp.c:96
struct msp * msp
Definition: serial_msp.h:90
uint8_t inBuf[MSP_PORT_INBUF_SIZE]
Definition: serial_msp.h:81
Definition: serial_msp.h:67
Definition: serial_msp.h:64
uint8_t cmdMSP
Definition: serial_msp.h:80
serialPort_t * port
Definition: serial_msp.h:76
void serial_msp_process(struct serial_msp *self, struct ninja *ninja)
Definition: serial_msp.c:208
#define MAX_MSP_PORT_COUNT
Definition: serial_msp.h:58
Definition: serial_msp.h:66
Definition: serial_msp.h:75
uint8_t dataSize
Definition: serial_msp.h:79