void(* put)(serialPort_t *instance, uint8_t ch)
Definition: serial.h:66
void serialWrite(serialPort_t *instance, uint8_t ch)
Definition: serial.c:38
bool(* isSerialTransmitBufferEmpty)(serialPort_t *instance)
Definition: serial.h:76
uint8_t serialRead(serialPort_t *instance)
Definition: serial.c:68
void serialBeginWrite(serialPort_t *instance)
Definition: serial.c:93
uint32_t txBufferSize
Definition: serial.h:53
void serialPrint(serialPort_t *instance, const char *str)
Definition: serial.c:25
uint32_t rxBufferTail
Definition: serial.h:57
uint8_t serialTxBytesFree(serialPort_t *instance)
Definition: serial.c:63
uint8_t mode
Definition: gimbal.h:49
void(* beginWrite)(serialPort_t *instance)
Definition: serial.h:82
serialReceiveCallbackPtr callback
Definition: serial.h:62
const struct serial_port_ops * vTable
Definition: serial.h:44
uint8_t identifier
Definition: serial.h:46
uint32_t txBufferTail
Definition: serial.h:59
uint32_t txBufferHead
Definition: serial.h:58
portMode_t
Definition: serial.h:24
volatile uint8_t * rxBuffer
Definition: serial.h:54
portOptions_t
Definition: serial.h:30
void serialSetBaudRate(serialPort_t *instance, uint32_t baudRate)
Definition: serial.c:73
bool isSerialTransmitBufferEmpty(serialPort_t *instance)
Definition: serial.c:78
uint8_t serialRxBytesWaiting(serialPort_t *instance)
Definition: serial.c:58
void serialWriteBufShim(void *instance, uint8_t *data, int count)
Definition: serial.c:88
void(* endWrite)(serialPort_t *instance)
Definition: serial.h:83
void(* serialReceiveCallbackPtr)(uint16_t data)
Definition: serial.h:41
void serialEndWrite(serialPort_t *instance)
Definition: serial.c:99
uint32_t serialGetBaudRate(serialPort_t *instance)
Definition: serial.c:33
uint8_t(* serialTotalRxWaiting)(serialPort_t *instance)
Definition: serial.h:68
uint8_t(* serialRead)(serialPort_t *instance)
Definition: serial.h:71
struct serialPort_s serialPort_t
portOptions_t options
Definition: serial.h:48
void serialWriteBuf(serialPort_t *instance, uint8_t *data, int count)
Definition: serial.c:43
void(* setMode)(serialPort_t *instance, portMode_t mode)
Definition: serial.h:78
uint8_t(* serialTotalTxFree)(serialPort_t *instance)
Definition: serial.h:69
portMode_t mode
Definition: serial.h:47
uint32_t baudRate
Definition: serial.h:50
uint32_t rxBufferSize
Definition: serial.h:52
uint32_t rxBufferHead
Definition: serial.h:56
void(* writeBuf)(serialPort_t *instance, void *data, int count)
Definition: serial.h:80
volatile uint8_t * txBuffer
Definition: serial.h:55
uint16_t data
Definition: config.c:91
void(* serialSetBaudRate)(serialPort_t *instance, uint32_t baudRate)
Definition: serial.h:74
void serialSetMode(serialPort_t *instance, portMode_t mode)
Definition: serial.c:83