Data Structures | Macros | Typedefs | Functions
uart.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
#include <ti/devices/msp432p4xx/driverlib/eusci.h>

Go to the source code of this file.

Data Structures

struct  _eUSCI_eUSCI_UART_Config
 Type definition for _eUSCI_UART_Config structure. More...
 

Macros

#define DEFAULT_SYNC   0x00
 
#define EUSCI_A_UART_AUTOMATICBAUDRATE_SYNC   0x55
 
#define EUSCI_A_UART_NO_PARITY   0x00
 
#define EUSCI_A_UART_ODD_PARITY   0x01
 
#define EUSCI_A_UART_EVEN_PARITY   0x02
 
#define EUSCI_A_UART_MSB_FIRST   EUSCI_A_CTLW0_MSB
 
#define EUSCI_A_UART_LSB_FIRST   0x00
 
#define EUSCI_A_UART_MODE   EUSCI_A_CTLW0_MODE_0
 
#define EUSCI_A_UART_IDLE_LINE_MULTI_PROCESSOR_MODE   EUSCI_A_CTLW0_MODE_1
 
#define EUSCI_A_UART_ADDRESS_BIT_MULTI_PROCESSOR_MODE   EUSCI_A_CTLW0_MODE_2
 
#define EUSCI_A_UART_AUTOMATIC_BAUDRATE_DETECTION_MODE   EUSCI_A_CTLW0_MODE_3
 
#define EUSCI_A_UART_CLOCKSOURCE_SMCLK   EUSCI_A_CTLW0_SSEL__SMCLK
 
#define EUSCI_A_UART_CLOCKSOURCE_ACLK   EUSCI_A_CTLW0_SSEL__ACLK
 
#define EUSCI_A_UART_ONE_STOP_BIT   0x00
 
#define EUSCI_A_UART_TWO_STOP_BITS   EUSCI_A_CTLW0_SPB
 
#define EUSCI_A_UART_OVERSAMPLING_BAUDRATE_GENERATION   0x01
 
#define EUSCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION   0x00
 
#define EUSCI_A_UART_RECEIVE_INTERRUPT   EUSCI_A_IE_RXIE
 
#define EUSCI_A_UART_TRANSMIT_INTERRUPT   EUSCI_A_IE_TXIE
 
#define EUSCI_A_UART_RECEIVE_ERRONEOUSCHAR_INTERRUPT   EUSCI_A_CTLW0_RXEIE
 
#define EUSCI_A_UART_BREAKCHAR_INTERRUPT   EUSCI_A_CTLW0_BRKIE
 
#define EUSCI_A_UART_STARTBIT_INTERRUPT   EUSCI_A_IE_STTIE
 
#define EUSCI_A_UART_TRANSMIT_COMPLETE_INTERRUPT   EUSCI_B_IE_STPIE
 
#define EUSCI_A_UART_RECEIVE_INTERRUPT_FLAG   EUSCI_A_IFG_RXIFG
 
#define EUSCI_A_UART_TRANSMIT_INTERRUPT_FLAG   EUSCI_A_IFG_TXIFG
 
#define EUSCI_A_UART_STARTBIT_INTERRUPT_FLAG   EUSCI_A_IFG_STTIFG
 
#define EUSCI_A_UART_TRANSMIT_COMPLETE_INTERRUPT_FLAG   EUSCI_A_IFG_TXCPTIFG
 
#define EUSCI_A_UART_LISTEN_ENABLE   EUSCI_A_STATW_LISTEN
 
#define EUSCI_A_UART_FRAMING_ERROR   EUSCI_A_STATW_FE
 
#define EUSCI_A_UART_OVERRUN_ERROR   EUSCI_A_STATW_OE
 
#define EUSCI_A_UART_PARITY_ERROR   EUSCI_A_STATW_PE
 
#define EUSCI_A_UART_BREAK_DETECT   EUSCI_A_STATW_BRK
 
#define EUSCI_A_UART_RECEIVE_ERROR   EUSCI_A_STATW_RXERR
 
#define EUSCI_A_UART_ADDRESS_RECEIVED   EUSCI_A_STATW_ADDR_IDLE
 
#define EUSCI_A_UART_IDLELINE   EUSCI_A_STATW_ADDR_IDLE
 
#define EUSCI_A_UART_BUSY   EUSCI_A_STATW_BUSY
 
#define EUSCI_A_UART_DEGLITCH_TIME_2ns   0x00
 
#define EUSCI_A_UART_DEGLITCH_TIME_50ns   0x0001
 
#define EUSCI_A_UART_DEGLITCH_TIME_100ns   0x0002
 
#define EUSCI_A_UART_DEGLITCH_TIME_200ns   (0x0001 + 0x0002)
 
#define EUSCI_A_UART_transmitData   UART_transmitData
 
#define EUSCI_A_UART_receiveData   UART_receiveData
 
#define EUSCI_A_UART_enableInterrupt   UART_enableInterrupt
 
#define EUSCI_A_UART_disableInterrupt   UART_disableInterrupt
 
#define EUSCI_A_UART_getInterruptStatus   UART_getInterruptStatus
 
#define EUSCI_A_UART_clearInterruptFlag   UART_clearInterruptFlag
 
#define EUSCI_A_UART_enable   UART_enableModule
 
#define EUSCI_A_UART_disable   UART_disableModule
 
#define EUSCI_A_UART_queryStatusFlags   UART_queryStatusFlags
 
#define EUSCI_A_UART_setDormant   UART_setDormant
 
#define EUSCI_A_UART_resetDormant   UART_resetDormant
 
#define EUSCI_A_UART_transmitAddress   UART_transmitAddress
 
#define EUSCI_A_UART_transmitBreak   UART_transmitBreak
 
#define EUSCI_A_UART_getReceiveBufferAddressForDMA   UART_getReceiveBufferAddressForDMA
 
#define EUSCI_A_UART_getTransmitBufferAddressForDMA   UART_getTransmitBufferAddressForDMA
 
#define EUSCI_A_UART_selectDeglitchTime   UART_selectDeglitchTime
 

Typedefs

typedef struct
_eUSCI_eUSCI_UART_Config 
eUSCI_UART_Config
 

Functions

bool UART_initModule (uint32_t moduleInstance, const eUSCI_UART_Config *config)
 
void UART_transmitData (uint32_t moduleInstance, uint_fast8_t transmitData)
 
uint8_t UART_receiveData (uint32_t moduleInstance)
 
void UART_enableModule (uint32_t moduleInstance)
 
void UART_disableModule (uint32_t moduleInstance)
 
uint_fast8_t UART_queryStatusFlags (uint32_t moduleInstance, uint_fast8_t mask)
 
void UART_setDormant (uint32_t moduleInstance)
 
void UART_resetDormant (uint32_t moduleInstance)
 
void UART_transmitAddress (uint32_t moduleInstance, uint_fast8_t transmitAddress)
 
void UART_transmitBreak (uint32_t moduleInstance)
 
uint32_t UART_getReceiveBufferAddressForDMA (uint32_t moduleInstance)
 
uint32_t UART_getTransmitBufferAddressForDMA (uint32_t moduleInstance)
 
void UART_selectDeglitchTime (uint32_t moduleInstance, uint32_t deglitchTime)
 
void UART_enableInterrupt (uint32_t moduleInstance, uint_fast8_t mask)
 
void UART_disableInterrupt (uint32_t moduleInstance, uint_fast8_t mask)
 
uint_fast8_t UART_getInterruptStatus (uint32_t moduleInstance, uint8_t mask)
 
uint_fast8_t UART_getEnabledInterruptStatus (uint32_t moduleInstance)
 
void UART_clearInterruptFlag (uint32_t moduleInstance, uint_fast8_t mask)
 
void UART_registerInterrupt (uint32_t moduleInstance, void(*intHandler)(void))
 
void UART_unregisterInterrupt (uint32_t moduleInstance)
 

Copyright 2018, Texas Instruments Incorporated