API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions

Functions

void TSMART_UART_ConfigInit (tsmart_uart_config_t *TSMART_UART_config)
 Writes a default configuration for UART. More...
 
void TSMART_UART_Init (tsmart_uart_t *TSMART_UART, tsmart_uart_config_t *TSMART_UART_config)
 Initialize a selected UART bus. More...
 
int32_t TSMART_UART_Receive (tsmart_uart_t *TSMART_UART, uint8_t *TSMART_UART_buf, uint16_t TSMART_UART_nb, portTickType TSMART_UART_xticks)
 Receives data from an UART. More...
 
int32_t TSMART_UART_Send (tsmart_uart_t *TSMART_UART, uint8_t *TSMART_UART_buf, uint16_t TSMART_UART_nb, portTickType TSMART_UART_xticks)
 Sends data to an UART. More...
 

Detailed Description

Function Documentation

void TSMART_UART_ConfigInit ( tsmart_uart_config_t TSMART_UART_config)

Writes a default configuration for UART.

Parameters
TSMART_UART_configConfiguration to be filled (output parameter)
void TSMART_UART_Init ( tsmart_uart_t TSMART_UART,
tsmart_uart_config_t TSMART_UART_config 
)
int32_t TSMART_UART_Receive ( tsmart_uart_t TSMART_UART,
uint8_t *  TSMART_UART_buf,
uint16_t  TSMART_UART_nb,
portTickType  TSMART_UART_xticks 
)

Receives data from an UART.

Parameters
TSMART_UARTUART structure handler.
TSMART_UART_bufData buffer to store data.
TSMART_UART_nbNumber of bytes to receive.
TSMART_UART_xticksMaximum waiting timeout.
Returns
  • Bytes received
Examples:
db_uart.c, pwr.c, sd_efsl.c, and uart.c.
int32_t TSMART_UART_Send ( tsmart_uart_t TSMART_UART,
uint8_t *  TSMART_UART_buf,
uint16_t  TSMART_UART_nb,
portTickType  TSMART_UART_xticks 
)