brazos-trapezoidal
Functions
CustomUart.h File Reference

Header file for CustomUart.c. More...

#include "hw_drv_uart.h"
#include "drv_uart.h"
Include dependency graph for CustomUart.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t customUart_initialize (UsartInstance_Enum e_uart, USART_SignalEvent_t cb_event, void **pp_uart)
 
uint32_t customUart_getTxExpected (void *p_uart)
 

Detailed Description

Header file for CustomUart.c.

Definition in file CustomUart.h.

Function Documentation

◆ customUart_getTxExpected()

uint32_t customUart_getTxExpected ( void *  p_uart)

This function returns the number of characters requested to send out on the USART.

Parameters
p_uartThe USART on which the transmission is happening.
Returns
The number of character bytes requested transmitted. If the USART transmission has any error, the count of last successfully transmitted character shall be returned.

External function, see drv_uart.h for functional description.

Definition at line 109 of file CustomUart.c.

◆ customUart_initialize()

uint32_t customUart_initialize ( UsartInstance_Enum  e_uart,
USART_SignalEvent_t  cb_event,
void **  pp_uart 
)

-----------------------------— Theta Power Systems - CONFIDENTIAL --------------------------------------—

This function initializes the USART driver with the default values. In the default settings, USART interrupt is enable at NVIC level. the user does not need to enable it in the application. USART transmit is enabled by default and blocking function is enabled. The default behaviour of a send and receive is a blocking transmission and reception.

Parameters
e_uartThe USART to be used, USART0 or USART1.
cb_eventThe callback function to be invoked by the driver.
pp_uartThe USART device pointer
Returns
Driver initilization status, DRV_ERROR_PARAMETER, DRV_ERROR_INIT or DRV_OK

External function, see drv_uart.h for functional description.

Definition at line 66 of file CustomUart.c.

Here is the caller graph for this function: