![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
UART driver implementation for a USCIA peripheral.
============================================================================
The UART header file should be included in an application as follows:
Refer to UART.h for a complete description of APIs & example of use.
This UART driver implementation is designed to operate on a UCSI controller in UART mode. It uses the APIs for a USCIA controller.
#include <stdint.h>
#include <stdbool.h>
#include <ti/drivers/UART.h>
#include <ti/sysbios/knl/Semaphore.h>
Go to the source code of this file.
Data Structures | |
struct | UARTUSCIA_BaudrateConfig |
UARTUSCIA Baudrate configuration. More... | |
struct | UARTUSCIA_HWAttrs |
UARTUSCIA Hardware attributes. More... | |
struct | UARTUSCIA_Object |
UARTUSCIA Object. More... | |
Typedefs | |
typedef struct UARTUSCIA_BaudrateConfig | UARTUSCIA_BaudrateConfig |
UARTUSCIA Baudrate configuration. More... | |
typedef struct UARTUSCIA_HWAttrs | UARTUSCIA_HWAttrs |
UARTUSCIA Hardware attributes. More... | |
typedef struct UARTUSCIA_Object | UARTUSCIA_Object |
UARTUSCIA Object. More... | |
typedef struct UARTUSCIA_Object * | UARTUSCIA_Handle |
Variables | |
const UART_FxnTable | UARTUSCIA_fxnTable |
typedef struct UARTUSCIA_BaudrateConfig UARTUSCIA_BaudrateConfig |
UARTUSCIA Baudrate configuration.
This structure is used to specifiy the usci controller's clock divider settings to achieve the desired baudrate given the indicated clock input frequency. Divider values can be determined by referring to the MSP430 baudrate calculator. https://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430BaudRateConverter/index.html
A sample structure is shown below:
typedef struct UARTUSCIA_HWAttrs UARTUSCIA_HWAttrs |
UARTUSCIA Hardware attributes.
These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For MSP430Ware these definitions are found in:
A sample structure is shown below:
typedef struct UARTUSCIA_Object UARTUSCIA_Object |
UARTUSCIA Object.
Not intended to be used by the user.
typedef struct UARTUSCIA_Object * UARTUSCIA_Handle |
const UART_FxnTable UARTUSCIA_fxnTable |