Classes | Macros | Functions | Variables
drv_uart.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uartPort_t
 

Macros

#define MAX_SERIAL_PORTS   3
 
#define UART1_RX_BUFFER_SIZE   256
 
#define UART1_TX_BUFFER_SIZE   256
 
#define UART2_RX_BUFFER_SIZE   128
 
#define UART2_TX_BUFFER_SIZE   64
 
#define UART3_RX_BUFFER_SIZE   256
 
#define UART3_TX_BUFFER_SIZE   256
 
#define UART_BUFFER_SIZE   64
 

Functions

bool isUartTransmitBufferEmpty (serialPort_t *s)
 
serialPort_tuartOpen (USART_TypeDef *USARTx, serialReceiveCallbackPtr callback, uint32_t baudRate, portMode_t mode)
 
uint8_t uartRead (serialPort_t *instance)
 
void uartSetBaudRate (serialPort_t *s, uint32_t baudRate)
 
uint8_t uartTotalBytesWaiting (serialPort_t *instance)
 
void uartWrite (serialPort_t *instance, uint8_t ch)
 

Variables

const struct serialPortVTable uartVTable []
 

Macro Definition Documentation

#define MAX_SERIAL_PORTS   3

Definition at line 32 of file drv_uart.h.

#define UART1_RX_BUFFER_SIZE   256

Definition at line 26 of file drv_uart.h.

#define UART1_TX_BUFFER_SIZE   256

Definition at line 27 of file drv_uart.h.

#define UART2_RX_BUFFER_SIZE   128

Definition at line 28 of file drv_uart.h.

#define UART2_TX_BUFFER_SIZE   64

Definition at line 29 of file drv_uart.h.

#define UART3_RX_BUFFER_SIZE   256

Definition at line 30 of file drv_uart.h.

#define UART3_TX_BUFFER_SIZE   256

Definition at line 31 of file drv_uart.h.

#define UART_BUFFER_SIZE   64

Definition at line 24 of file drv_uart.h.

Function Documentation

bool isUartTransmitBufferEmpty ( serialPort_t s)

Definition at line 220 of file drv_uart.c.

serialPort_t* uartOpen ( USART_TypeDef USARTx,
serialReceiveCallbackPtr  callback,
uint32_t  baudRate,
portMode_t  mode 
)

Definition at line 80 of file drv_uart.c.

uint8_t uartRead ( serialPort_t instance)

Definition at line 229 of file drv_uart.c.

void uartSetBaudRate ( serialPort_t s,
uint32_t  baudRate 
)

Definition at line 167 of file drv_uart.c.

uint8_t uartTotalBytesWaiting ( serialPort_t instance)

Definition at line 209 of file drv_uart.c.

void uartWrite ( serialPort_t instance,
uint8_t  ch 
)

Definition at line 246 of file drv_uart.c.

Variable Documentation

const struct serialPortVTable uartVTable[]

Definition at line 260 of file drv_uart.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:50