TI-RTOS for SimpleLink Wireless MCUs  2.14.03.28
Data Fields
UARTUSCIA_HWAttrs Struct Reference

UARTUSCIA Hardware attributes. More...

#include <UARTUSCIA.h>

Collaboration diagram for UARTUSCIA_HWAttrs:
Collaboration graph
[legend]

Data Fields

unsigned int baseAddr
 
uint8_t clockSource
 
uint32_t bitOrder
 
unsigned int numBaudrateEntries
 
UARTUSCIA_BaudrateConfig const * baudrateLUT
 

Detailed Description

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:

const UARTUSCIA_BaudrateConfig uartUSCIABaudrates[] = {
// Baudrate, input clock (Hz), UCBRx, UCBRFx, UCBRSx, oversampling
{
.outputBaudrate = 115200,
.inputClockFreq = 8192000,
.prescalar = 4,
.hwRegUCBRFx = 7,
.hwRegUCBRSx = 0,
.oversampling = 1
},
{9600, 8192000, 53, 5, 0, 1},
{9600, 32768, 3, 0, 3, 0},
};
const UARTUSCIA_HWAttrs uartUSCIAHWAttrs[] = {
{
.baseAddr = USCI_A0_BASE,
.clockSource = USCI_A_UART_CLOCKSOURCE_SMCLK,
.bitOrder = USCI_A_UART_LSB_FIRST,
.numBaudrateEntries = sizeof(uartUSCIABaudrates/UARTUSCIA_BaudrateConfig),
.baudrateLUT = uartUSCIABaudrates
},
{
.baseAddr = USCI_A1_BASE,
.clockSource = USCI_A_UART_CLOCKSOURCE_SMCLK,
.bitOrder = USCI_A_UART_LSB_FIRST,
.numBaudrateEntries = sizeof(uartUSCIABaudrates/UARTUSCIA_BaudrateConfig),
.baudrateLUT = uartUSCIABaudrates
},
};

Field Documentation

unsigned int UARTUSCIA_HWAttrs::baseAddr

USCI_A_UART Peripheral's base address

uint8_t UARTUSCIA_HWAttrs::clockSource

USCI_A_UART Clock source USCI_A_UART Bit order

uint32_t UARTUSCIA_HWAttrs::bitOrder

Number of UARTUSCIA_BaudrateConfig entries

unsigned int UARTUSCIA_HWAttrs::numBaudrateEntries

Pointer to a table of possible UARTUSCIA_BaudrateConfig entries

UARTUSCIA_BaudrateConfig const* UARTUSCIA_HWAttrs::baudrateLUT

The documentation for this struct was generated from the following file:
Copyright 2015, Texas Instruments Incorporated