Macros | Functions
uart.c File Reference
#include <ti/devices/msp432e4/inc/msp432e411y.h>
#include "types.h"
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_sysctl.h"
#include "inc/hw_uart.h"
#include "debug.h"
#include "interrupt.h"
#include "uart.h"

Macros

#define UART_CLK_DIVIDER   8
 

Functions

void UARTParityModeSet (uint32_t ui32Base, uint32_t ui32Parity)
 
uint32_t UARTParityModeGet (uint32_t ui32Base)
 
void UARTFIFOLevelSet (uint32_t ui32Base, uint32_t ui32TxLevel, uint32_t ui32RxLevel)
 
void UARTFIFOLevelGet (uint32_t ui32Base, uint32_t *pui32TxLevel, uint32_t *pui32RxLevel)
 
void UARTConfigSetExpClk (uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t ui32Baud, uint32_t ui32Config)
 
void UARTConfigGetExpClk (uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t *pui32Baud, uint32_t *pui32Config)
 
void UARTEnable (uint32_t ui32Base)
 
void UARTDisable (uint32_t ui32Base)
 
void UARTFIFOEnable (uint32_t ui32Base)
 
void UARTFIFODisable (uint32_t ui32Base)
 
void UARTEnableSIR (uint32_t ui32Base, bool bLowPower)
 
void UARTDisableSIR (uint32_t ui32Base)
 
void UARTSmartCardEnable (uint32_t ui32Base)
 
void UARTSmartCardDisable (uint32_t ui32Base)
 
void UARTModemControlSet (uint32_t ui32Base, uint32_t ui32Control)
 
void UARTModemControlClear (uint32_t ui32Base, uint32_t ui32Control)
 
uint32_t UARTModemControlGet (uint32_t ui32Base)
 
uint32_t UARTModemStatusGet (uint32_t ui32Base)
 
void UARTFlowControlSet (uint32_t ui32Base, uint32_t ui32Mode)
 
uint32_t UARTFlowControlGet (uint32_t ui32Base)
 
void UARTTxIntModeSet (uint32_t ui32Base, uint32_t ui32Mode)
 
uint32_t UARTTxIntModeGet (uint32_t ui32Base)
 
bool UARTCharsAvail (uint32_t ui32Base)
 
bool UARTSpaceAvail (uint32_t ui32Base)
 
int32_t UARTCharGetNonBlocking (uint32_t ui32Base)
 
int32_t UARTCharGet (uint32_t ui32Base)
 
bool UARTCharPutNonBlocking (uint32_t ui32Base, unsigned char ucData)
 
void UARTCharPut (uint32_t ui32Base, unsigned char ucData)
 
void UARTBreakCtl (uint32_t ui32Base, bool bBreakState)
 
bool UARTBusy (uint32_t ui32Base)
 
void UARTIntRegister (uint32_t ui32Base, void(*pfnHandler)(void))
 
void UARTIntUnregister (uint32_t ui32Base)
 
void UARTIntEnable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void UARTIntDisable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
uint32_t UARTIntStatus (uint32_t ui32Base, bool bMasked)
 
void UARTIntClear (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void UARTDMAEnable (uint32_t ui32Base, uint32_t ui32DMAFlags)
 
void UARTDMADisable (uint32_t ui32Base, uint32_t ui32DMAFlags)
 
uint32_t UARTRxErrorGet (uint32_t ui32Base)
 
void UARTRxErrorClear (uint32_t ui32Base)
 
void UARTClockSourceSet (uint32_t ui32Base, uint32_t ui32Source)
 
uint32_t UARTClockSourceGet (uint32_t ui32Base)
 
void UART9BitEnable (uint32_t ui32Base)
 
void UART9BitDisable (uint32_t ui32Base)
 
void UART9BitAddrSet (uint32_t ui32Base, uint8_t ui8Addr, uint8_t ui8Mask)
 
void UART9BitAddrSend (uint32_t ui32Base, uint8_t ui8Addr)
 
void UARTLoopbackEnable (uint32_t ui32Base)
 
Copyright 2017, Texas Instruments Incorporated