Driverlib UART API

Module: Driverlib (AM13E232X) APIs

Structures

Name

struct

DL_UART_Config
Configuration struct for DL_UART_init.

struct

DL_UART_ClockConfig
Configuration struct for DL_UART_setClockConfig.

struct

DL_UART_backupConfig
Configuration structure to backup UART Extend peripheral state before going to STOP/STANDBY mode. Used by DL_UART_saveConfiguration and DL_UART_restoreConfiguration.

Types

Name

enum

DL_UART_IIDX { DL_UART_IIDX_DMA_DONE_TX = UNICOMMUART_IIDX_STAT_DMA_DONE_TX, DL_UART_IIDX_DMA_DONE_RX = UNICOMMUART_IIDX_STAT_DMA_DONE_RX, DL_UART_IIDX_PREEMPT_INT_TX = UNICOMMUART_IIDX_STAT_DMA_PREIRQ_TX, DL_UART_IIDX_PREEMPT_INT_RX = UNICOMMUART_IIDX_STAT_DMA_PREIRQ_RX, DL_UART_IIDX_CTS_DONE = UNICOMMUART_IIDX_STAT_CTS, DL_UART_IIDX_EOT_DONE = UNICOMMUART_IIDX_STAT_EOT, DL_UART_IIDX_TX = UNICOMMUART_IIDX_STAT_TXIFG, DL_UART_IIDX_RX = UNICOMMUART_IIDX_STAT_RXIFG, DL_UART_IIDX_LTOUT = UNICOMMUART_IIDX_STAT_LTFG, DL_UART_IIDX_LIN_COUNTER_OVERFLOW = UNICOMMUART_IIDX_STAT_LINOVF, DL_UART_IIDX_LIN_RISING_EDGE = UNICOMMUART_IIDX_STAT_LINC1, DL_UART_IIDX_LIN_FALLING_EDGE = UNICOMMUART_IIDX_STAT_LINC0, DL_UART_IIDX_RXD_POS_EDGE = UNICOMMUART_IIDX_STAT_RXPE, DL_UART_IIDX_RXD_NEG_EDGE = UNICOMMUART_IIDX_STAT_RXNE, DL_UART_IIDX_OVERRUN_ERROR = UNICOMMUART_IIDX_STAT_OEFG, DL_UART_IIDX_BREAK_ERROR = UNICOMMUART_IIDX_STAT_BEFG, DL_UART_IIDX_PARITY_ERROR = UNICOMMUART_IIDX_STAT_PEFG, DL_UART_IIDX_FRAMING_ERROR = UNICOMMUART_IIDX_STAT_FEFG, DL_UART_IIDX_RX_TIMEOUT_ERROR = UNICOMMUART_IIDX_STAT_RTFG, DL_UART_IIDX_NOISE_ERROR = UNICOMMUART_IIDX_STAT_NERR_EVT, DL_UART_IIDX_NO_INTERRUPT = UNICOMMUART_IIDX_STAT_NO_INTR}
DL_UART_IIDX.

enum

DL_UART_OVERSAMPLING_RATE { DL_UART_OVERSAMPLING_RATE_16X = UNICOMMUART_CTL0_HSE_OVS16, DL_UART_OVERSAMPLING_RATE_8X = UNICOMMUART_CTL0_HSE_OVS8, DL_UART_OVERSAMPLING_RATE_3X = UNICOMMUART_CTL0_HSE_OVS3}
UART Oversampling Rate values.

enum

DL_UART_PARITY { DL_UART_PARITY_EVEN = (UNICOMMUART_LCRH_PEN_ENABLE

enum

DL_UART_WORD_LENGTH { DL_UART_WORD_LENGTH_5_BITS = UNICOMMUART_LCRH_WLEN_DATABIT5, DL_UART_WORD_LENGTH_6_BITS = UNICOMMUART_LCRH_WLEN_DATABIT6, DL_UART_WORD_LENGTH_7_BITS = UNICOMMUART_LCRH_WLEN_DATABIT7, DL_UART_WORD_LENGTH_8_BITS = UNICOMMUART_LCRH_WLEN_DATABIT8}
UART Word length in Bits.

enum

DL_UART_MODE { DL_UART_MODE_NORMAL = UNICOMMUART_CTL0_MODE_UART, DL_UART_MODE_RS485 = UNICOMMUART_CTL0_MODE_RS485, DL_UART_MODE_IDLE_LINE = UNICOMMUART_CTL0_MODE_IDLELINE, DL_UART_MODE_ADDR_9_BIT = UNICOMMUART_CTL0_MODE_ADDR9BIT, DL_UART_MODE_SMART_CARD = UNICOMMUART_CTL0_MODE_SMART}
UART Operation Mode.

enum

DL_UART_DIRECTION { DL_UART_DIRECTION_TX = UNICOMMUART_CTL0_TXE_ENABLE, DL_UART_DIRECTION_RX = UNICOMMUART_CTL0_RXE_ENABLE, DL_UART_DIRECTION_TX_RX = (UNICOMMUART_CTL0_RXE_ENABLE

enum

DL_UART_CLOCK { DL_UART_CLOCK_BUSCLK = UNICOMMUART_CLKSEL_BUSCLK_SEL_ENABLE}
Clock Sources supported by UART.

enum

DL_UART_FLOW_CONTROL { DL_UART_FLOW_CONTROL_RTS = UNICOMMUART_CTL0_RTSEN_ENABLE, DL_UART_FLOW_CONTROL_CTS = UNICOMMUART_CTL0_CTSEN_ENABLE, DL_UART_FLOW_CONTROL_RTS_CTS = (UNICOMMUART_CTL0_RTSEN_ENABLE

enum

DL_UART_RTS { DL_UART_RTS_ASSERT = UNICOMMUART_CTL0_RTS_SET, DL_UART_RTS_DEASSERT = UNICOMMUART_CTL0_RTS_CLR}
DL_UART_RTS.

enum

DL_UART_STOP_BITS { DL_UART_STOP_BITS_ONE = UNICOMMUART_LCRH_STP2_DISABLE, DL_UART_STOP_BITS_TWO = UNICOMMUART_LCRH_STP2_ENABLE}
Number of stop bits transmitted at end of frame.

enum

DL_UART_TXD_OUT { DL_UART_TXD_OUT_LOW = UNICOMMUART_CTL0_TXD_OUT_LOW, DL_UART_TXD_OUT_HIGH = UNICOMMUART_CTL0_TXD_OUT_HIGH}
DL_UART_TXD_OUT.

enum

DL_UART_TX_FIFO_LEVEL { DL_UART_TX_FIFO_LEVEL_3_4_EMPTY = UNICOMMUART_IFLS_TXIFLSEL_LVL_3_4, DL_UART_TX_FIFO_LEVEL_1_2_EMPTY = UNICOMMUART_IFLS_TXIFLSEL_LVL_1_2, DL_UART_TX_FIFO_LEVEL_1_4_EMPTY = UNICOMMUART_IFLS_TXIFLSEL_LVL_1_4, DL_UART_TX_FIFO_LEVEL_NOT_FULL = UNICOMMUART_IFLS_TXIFLSEL_LVL_NOT_FULL, DL_UART_TX_FIFO_LEVEL_EMPTY = UNICOMMUART_IFLS_TXIFLSEL_LVL_EMPTY, DL_UART_TX_FIFO_LEVEL_ALMOST_EMPTY = UNICOMMUART_IFLS_TXIFLSEL_LVL_ALMOST_EMPTY, DL_UART_TX_FIFO_LEVEL_ALMOST_FULL = UNICOMMUART_IFLS_TXIFLSEL_LVL_ALMOST_FULL}
Different FIFO Levels at which TX interrupt can be triggered.

enum

DL_UART_RX_FIFO_LEVEL { DL_UART_RX_FIFO_LEVEL_1_4_FULL = UNICOMMUART_IFLS_RXIFLSEL_LVL_1_4, DL_UART_RX_FIFO_LEVEL_1_2_FULL = UNICOMMUART_IFLS_RXIFLSEL_LVL_1_2, DL_UART_RX_FIFO_LEVEL_3_4_FULL = UNICOMMUART_IFLS_RXIFLSEL_LVL_3_4, DL_UART_RX_FIFO_LEVEL_NOT_EMPTY = UNICOMMUART_IFLS_RXIFLSEL_LVL_NOT_EMPTY, DL_UART_RX_FIFO_LEVEL_FULL = UNICOMMUART_IFLS_RXIFLSEL_LVL_FULL, DL_UART_RX_FIFO_LEVEL_ALMOST_FULL = UNICOMMUART_IFLS_RXIFLSEL_LVL_ALMOST_FULL, DL_UART_RX_FIFO_LEVEL_ALMOST_EMPTY = UNICOMMUART_IFLS_RXIFLSEL_LVL_ALMOST_EMPTY}
Different FIFO Levels at which RX interrupt can be triggered.

enum

DL_UART_CLOCK_DIVIDE_RATIO { DL_UART_CLOCK_DIVIDE_RATIO_1 = UNICOMMUART_CLKDIV_RATIO_DIV_BY_1, DL_UART_CLOCK_DIVIDE_RATIO_2 = UNICOMMUART_CLKDIV_RATIO_DIV_BY_2, DL_UART_CLOCK_DIVIDE_RATIO_3 = UNICOMMUART_CLKDIV_RATIO_DIV_BY_3, DL_UART_CLOCK_DIVIDE_RATIO_4 = UNICOMMUART_CLKDIV_RATIO_DIV_BY_4, DL_UART_CLOCK_DIVIDE_RATIO_5 = UNICOMMUART_CLKDIV_RATIO_DIV_BY_5, DL_UART_CLOCK_DIVIDE_RATIO_6 = UNICOMMUART_CLKDIV_RATIO_DIV_BY_6, DL_UART_CLOCK_DIVIDE_RATIO_7 = UNICOMMUART_CLKDIV_RATIO_DIV_BY_7, DL_UART_CLOCK_DIVIDE_RATIO_8 = UNICOMMUART_CLKDIV_RATIO_DIV_BY_8}
Divider value used on UART Clock SOurce.

Functions

Name

void

DL_UART_init(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_Config * config)
Initialize the UART peripheral.

__STATIC_INLINE void

DL_UART_enablePower(DL_UNICOMM_Inst_Regs * unicomm)
Enables power on UART module.

__STATIC_INLINE void

DL_UART_disablePower(DL_UNICOMM_Inst_Regs * unicomm)
Disables power on unicomm module.

__STATIC_INLINE bool

DL_UART_isPowerEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Returns if power on unicomm module.

__STATIC_INLINE void

DL_UART_reset(DL_UNICOMM_Inst_Regs * unicomm)
Resets unicomm peripheral.

__STATIC_INLINE bool

DL_UART_isReset(DL_UNICOMM_Inst_Regs * unicomm)
Returns if unicomm peripheral was reset.

__STATIC_INLINE void

DL_UART_enable(DL_UNICOMM_Inst_Regs * unicomm)
Enable the UART peripheral.

__STATIC_INLINE bool

DL_UART_isEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Checks if the UART peripheral is enabled.

__STATIC_INLINE void

DL_UART_disable(DL_UNICOMM_Inst_Regs * unicomm)
Disable the UART peripheral.

void

DL_UART_setClockConfig(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_ClockConfig * config)
Configure UART source clock.

void

DL_UART_getClockConfig(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_ClockConfig * config)
Get UART source clock configuration.

void

DL_UART_configBaudRate(DL_UNICOMM_Inst_Regs * unicomm, uint32_t clockFreq, uint32_t baudRate)
Configure the baud rate.

__STATIC_INLINE void

DL_UART_setOversampling(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_OVERSAMPLING_RATE rate)
Set the oversampling rate.

__STATIC_INLINE DL_UART_OVERSAMPLING_RATE

DL_UART_getOversampling(DL_UNICOMM_Inst_Regs * unicomm)
Get the oversampling rate.

__STATIC_INLINE void

DL_UART_enableLoopbackMode(DL_UNICOMM_Inst_Regs * unicomm)
Enable loopback mode.

__STATIC_INLINE bool

DL_UART_isLoopbackModeEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if loopback mode is enabled.

__STATIC_INLINE void

DL_UART_disableLoopbackMode(DL_UNICOMM_Inst_Regs * unicomm)
Disable loopback mode.

__STATIC_INLINE void

DL_UART_setDirection(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_DIRECTION direction)
Set the direction of the UART communication.

__STATIC_INLINE DL_UART_DIRECTION

DL_UART_getDirection(DL_UNICOMM_Inst_Regs * unicomm)
Get the direction of the UART communication.

__STATIC_INLINE void

DL_UART_enableMajorityVoting(DL_UNICOMM_Inst_Regs * unicomm)
Enable majority voting control.

__STATIC_INLINE bool

DL_UART_isMajorityVotingEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if majority voting is enabled.

__STATIC_INLINE void

DL_UART_disableMajorityVoting(DL_UNICOMM_Inst_Regs * unicomm)
Disable majority voting control.

__STATIC_INLINE void

DL_UART_enableMSBFirst(DL_UNICOMM_Inst_Regs * unicomm)
Enable most significant bit (MSB) first.

__STATIC_INLINE bool

DL_UART_isMSBFirstEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if most significant bit (MSB) first is enabled.

__STATIC_INLINE void

DL_UART_disableMSBFirst(DL_UNICOMM_Inst_Regs * unicomm)
Disable most significant bit (MSB) first.

__STATIC_INLINE void

DL_UART_enableTransmitPinManualControl(DL_UNICOMM_Inst_Regs * unicomm)
Enable control of the TXD pin.

__STATIC_INLINE bool

DL_UART_isTransmitPinManualControlEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if control of the TXD pin is enabled.

__STATIC_INLINE void

DL_UART_disableTransmitPinManualControl(DL_UNICOMM_Inst_Regs * unicomm)
Disable control of the TXD pin.

__STATIC_INLINE void

DL_UART_setTransmitPinManualOutput(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_TXD_OUT txdOutVal)
Set the output of the TXD pin.

__STATIC_INLINE DL_UART_TXD_OUT

DL_UART_getTransmitPinManualOutput(DL_UNICOMM_Inst_Regs * unicomm)
Get the output value of the TXD pin.

__STATIC_INLINE void

DL_UART_setCommunicationMode(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_MODE mode)
Set the communication mode/protocol to use.

__STATIC_INLINE DL_UART_MODE

DL_UART_getCommunicationMode(DL_UNICOMM_Inst_Regs * unicomm)
Get the communication mode/protocol being used.

__STATIC_INLINE void

DL_UART_setFlowControl(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_FLOW_CONTROL config)
Set the flow control configuration.

__STATIC_INLINE DL_UART_FLOW_CONTROL

DL_UART_getFlowControl(DL_UNICOMM_Inst_Regs * unicomm)
Check the flow control configuration.

__STATIC_INLINE void

DL_UART_setRTSOutput(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_RTS val)
Set the request to send output signal.

__STATIC_INLINE DL_UART_RTS

DL_UART_getRTSOutput(DL_UNICOMM_Inst_Regs * unicomm)
Get the request to send output signal.

__STATIC_INLINE void

DL_UART_enableFIFOs(DL_UNICOMM_Inst_Regs * unicomm)
Enable FIFOs.

__STATIC_INLINE void

DL_UART_disableFIFOs(DL_UNICOMM_Inst_Regs * unicomm)
Disable FIFOs.

__STATIC_INLINE bool

DL_UART_isFIFOsEnabled(const DL_UNICOMM_Inst_Regs * unicomm)
Check if FIFOs are enabled.

__STATIC_INLINE void

DL_UART_enableLINSendBreak(DL_UNICOMM_Inst_Regs * unicomm)
Enable send break (for LIN protocol)

__STATIC_INLINE void

DL_UART_disableLINSendBreak(DL_UNICOMM_Inst_Regs * unicomm)
Disable send break.

__STATIC_INLINE bool

DL_UART_isLINSendBreakEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if send break is enabled.

__STATIC_INLINE bool

DL_UART_isParityEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if parity is enabled.

__STATIC_INLINE void

DL_UART_setParityMode(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_PARITY parity)
Set the parity mode.

__STATIC_INLINE DL_UART_PARITY

DL_UART_getParityMode(DL_UNICOMM_Inst_Regs * unicomm)
Get parity mode.

__STATIC_INLINE void

DL_UART_setStopBits(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_STOP_BITS numStopBits)
Set the number of stop bits.

__STATIC_INLINE DL_UART_STOP_BITS

DL_UART_getStopBits(DL_UNICOMM_Inst_Regs * unicomm)
Get the number of stop bits.

__STATIC_INLINE void

DL_UART_setWordLength(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_WORD_LENGTH wordLength)
Set the word length.

__STATIC_INLINE DL_UART_WORD_LENGTH

DL_UART_getWordLength(DL_UNICOMM_Inst_Regs * unicomm)
Get the word length.

__STATIC_INLINE void

DL_UART_enableSendIdlePattern(DL_UNICOMM_Inst_Regs * unicomm)
Send idle pattern.

__STATIC_INLINE void

DL_UART_disableSendIdlePattern(DL_UNICOMM_Inst_Regs * unicomm)
Disable send idle pattern.

__STATIC_INLINE bool

DL_UART_isSendIdlePatternEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if send idle pattern is enabled.

__STATIC_INLINE void

DL_UART_setExternalDriverSetup(DL_UNICOMM_Inst_Regs * unicomm, uint32_t val)
Set external driver setup value.

__STATIC_INLINE uint32_t

DL_UART_getExternalDriverSetup(DL_UNICOMM_Inst_Regs * unicomm)
Get the external driver setup value.

__STATIC_INLINE void

DL_UART_setExternalDriverHold(DL_UNICOMM_Inst_Regs * unicomm, uint32_t val)
Set external driver setup hold.

__STATIC_INLINE uint32_t

DL_UART_getExternalDriverHold(DL_UNICOMM_Inst_Regs * unicomm)
Get the external driver setup hold.

__STATIC_INLINE bool

DL_UART_isBusy(DL_UNICOMM_Inst_Regs * unicomm)
Checks if the UART is busy.

__STATIC_INLINE bool

DL_UART_isRXFIFOEmpty(DL_UNICOMM_Inst_Regs * unicomm)
Checks if the RX FIFO is empty.

__STATIC_INLINE bool

DL_UART_isRXFIFOFull(DL_UNICOMM_Inst_Regs * unicomm)
Checks if the RX FIFO is full.

__STATIC_INLINE bool

DL_UART_isTXFIFOEmpty(DL_UNICOMM_Inst_Regs * unicomm)
Checks if the TX FIFO is empty.

__STATIC_INLINE bool

DL_UART_isTXFIFOFull(DL_UNICOMM_Inst_Regs * unicomm)
Checks if the TX FIFO is full.

__STATIC_INLINE bool

DL_UART_isClearToSend(DL_UNICOMM_Inst_Regs * unicomm)
Checks if UART is clear to send.

__STATIC_INLINE bool

DL_UART_isIdleModeDetected(DL_UNICOMM_Inst_Regs * unicomm)
Checks if Idle mode has been detected.

__STATIC_INLINE void

DL_UART_setTXFIFOThreshold(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_TX_FIFO_LEVEL threshold)
Set the TX FIFO interrupt threshold level.

__STATIC_INLINE DL_UART_TX_FIFO_LEVEL

DL_UART_getTXFIFOThreshold(DL_UNICOMM_Inst_Regs * unicomm)
Get the TX FIFO interrupt threshold level.

__STATIC_INLINE void

DL_UART_setRXFIFOThreshold(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_RX_FIFO_LEVEL threshold)
Set the RX FIFO interrupt threshold level. The interrupts are generated based on a transition through a level rather than being based on the level. That is, the interrupts are generated when the fill level progresses through the trigger level. For example, if the receive trigger level is set to the half-way mark, the interrupt is triggered when the receive FIFO becomes half full. In other words, the interrupt is triggered after the receive FIFO is filled with two or more characters.

__STATIC_INLINE DL_UART_RX_FIFO_LEVEL

DL_UART_getRXFIFOThreshold(DL_UNICOMM_Inst_Regs * unicomm)
Get the RX FIFO interrupt threshold level.

__STATIC_INLINE void

DL_UART_setRXInterruptTimeout(DL_UNICOMM_Inst_Regs * unicomm, uint32_t timeout)
Set the RX interrupt timeout.

__STATIC_INLINE uint32_t

DL_UART_getRXInterruptTimeout(DL_UNICOMM_Inst_Regs * unicomm)
Get the RX interrupt timeout.

__STATIC_INLINE uint32_t

DL_UART_getIntegerBaudRateDivisor(DL_UNICOMM_Inst_Regs * unicomm)
Get Integer Baud-Rate Divisor.

__STATIC_INLINE uint32_t

DL_UART_getFractionalBaudRateDivisor(DL_UNICOMM_Inst_Regs * unicomm)
Get Fractional Baud-Rate Divisor.

__STATIC_INLINE void

DL_UART_setBaudRateDivisor(DL_UNICOMM_Inst_Regs * unicomm, uint32_t integerDivisor, uint32_t fractionalDivisor)
Set the baud rate divisor.

__STATIC_INLINE void

DL_UART_setDigitalPulseWidth(DL_UNICOMM_Inst_Regs * unicomm, uint32_t pulseWidth)
Set the pulse width select for the digital glitch suppresion.

__STATIC_INLINE uint32_t

DL_UART_getDigitalPulseWidth(DL_UNICOMM_Inst_Regs * unicomm)
Get the pulse width select for the digital glitch suppresion.

__STATIC_INLINE void

DL_UART_transmitData(DL_UNICOMM_Inst_Regs * unicomm, uint8_t data)
Writes data into the TX FIFO to transmit.

__STATIC_INLINE uint8_t

DL_UART_receiveData(DL_UNICOMM_Inst_Regs * unicomm)
Reads data from the RX FIFO.

__STATIC_INLINE uint32_t

DL_UART_getErrorStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t errorMask)
Gets the status of the error flags of the received data.

__STATIC_INLINE void

DL_UART_setLINCounterValue(DL_UNICOMM_Inst_Regs * unicomm, uint16_t value)
Set the LIN counter value.

__STATIC_INLINE uint16_t

DL_UART_getLINCounterValue(DL_UNICOMM_Inst_Regs * unicomm)
Get the LIN counter value.

__STATIC_INLINE void

DL_UART_enableLINCounter(DL_UNICOMM_Inst_Regs * unicomm)
Enable the LIN counter.

__STATIC_INLINE bool

DL_UART_isLINCounterEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if the LIN counter is enabled.

__STATIC_INLINE void

DL_UART_disableLINCounter(DL_UNICOMM_Inst_Regs * unicomm)
Disable the LIN counter.

__STATIC_INLINE void

DL_UART_enableLINCounterClearOnFallingEdge(DL_UNICOMM_Inst_Regs * unicomm)
Enable LIN counter clear and start counting on falling edge of RXD.

__STATIC_INLINE bool

DL_UART_isLINCounterClearOnFallingEdge(DL_UNICOMM_Inst_Regs * unicomm)
Check if LIN counting on falling edge of RXD is enabled.

__STATIC_INLINE void

DL_UART_disableLINCounterClearOnFallingEdge(DL_UNICOMM_Inst_Regs * unicomm)
Disable LIN counting on falling edge of RXD.

__STATIC_INLINE void

DL_UART_enableLINCountWhileLow(DL_UNICOMM_Inst_Regs * unicomm)
Enable LIN counter incrementing while RXD signal is low.

__STATIC_INLINE bool

DL_UART_isLINCountWhileLowEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if LIN counter increments while RXD signal is low is enabled.

__STATIC_INLINE void

DL_UART_disableLINCountWhileLow(DL_UNICOMM_Inst_Regs * unicomm)
Disable LIN counter increments while RXD signal is low.

__STATIC_INLINE void

DL_UART_enableLINFallingEdgeCapture(DL_UNICOMM_Inst_Regs * unicomm)
Enable capture of the LIN counter on a falling edge.

__STATIC_INLINE bool

DL_UART_isLINFallingEdgeCaptureEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check status of capture of LIN counter on a falling edge.

__STATIC_INLINE void

DL_UART_disableLINFallingEdgeCapture(DL_UNICOMM_Inst_Regs * unicomm)
Disable capture of LIN counter on a falling edge.

__STATIC_INLINE void

DL_UART_enableLINRisingEdgeCapture(DL_UNICOMM_Inst_Regs * unicomm)
Enable capture of the LIN counter on a rising edge.

__STATIC_INLINE bool

DL_UART_isLINRisingEdgeCaptureEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check status of capture of LIN counter on a rising edge.

__STATIC_INLINE void

DL_UART_disableLINRisingEdgeCapture(DL_UNICOMM_Inst_Regs * unicomm)
Disable capture of LIN counter on a rising edge.

__STATIC_INLINE void

DL_UART_enableLINCounterCompareMatch(DL_UNICOMM_Inst_Regs * unicomm)
Enable LIN counter compare match mode.

__STATIC_INLINE void

DL_UART_enableLINSyncFieldValidationCounterControl(DL_UNICOMM_Inst_Regs * unicomm)
Setup LIN counter control for sync field validation.

__STATIC_INLINE void

DL_UART_enableLINReceptionCountControl(DL_UNICOMM_Inst_Regs * unicomm)
Setup LIN counter control for LIN reception.

__STATIC_INLINE bool

DL_UART_isLINCounterCompareMatchEnabled(DL_UNICOMM_Inst_Regs * unicomm)
Check if LIN counter compare match mode is enabled.

__STATIC_INLINE void

DL_UART_disableLINCounterCompareMatch(DL_UNICOMM_Inst_Regs * unicomm)
Disable LIN counter compare match mode.

__STATIC_INLINE void

DL_UART_setLINCounterCompareValue(DL_UNICOMM_Inst_Regs * unicomm, uint16_t value)
Set the value to be compared to the LIN counter.

__STATIC_INLINE uint16_t

DL_UART_getLINFallingEdgeCaptureValue(DL_UNICOMM_Inst_Regs * unicomm)
Get the LINC0 counter value.

__STATIC_INLINE uint16_t

DL_UART_getLINRisingEdgeCaptureValue(DL_UNICOMM_Inst_Regs * unicomm)
Get the LINC1 counter value.

__STATIC_INLINE void

DL_UART_setAddressMask(DL_UNICOMM_Inst_Regs * unicomm, uint32_t addressMask)
Set the address mask for DALI, 9-bit, or Idle-Line mode.

__STATIC_INLINE uint32_t

DL_UART_getAddressMask(DL_UNICOMM_Inst_Regs * unicomm)
Get the address mask being used.

__STATIC_INLINE void

DL_UART_setAddress(DL_UNICOMM_Inst_Regs * unicomm, uint32_t address)
Set the address.

__STATIC_INLINE uint32_t

DL_UART_getAddress(DL_UNICOMM_Inst_Regs * unicomm)
Get the address being used.

__STATIC_INLINE void

DL_UART_enableInterrupt(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Enable UART interrupts.

__STATIC_INLINE void

DL_UART_disableInterrupt(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Disable UART interrupts.

__STATIC_INLINE uint32_t

DL_UART_getEnabledInterrupts(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Check which UART interrupts are enabled.

__STATIC_INLINE uint32_t

DL_UART_getEnabledInterruptStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Check interrupt flag of enabled UART interrupts.

__STATIC_INLINE uint32_t

DL_UART_getRawInterruptStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Check interrupt flag of any UART interrupt.

__STATIC_INLINE DL_UART_IIDX

DL_UART_getPendingInterrupt(DL_UNICOMM_Inst_Regs * unicomm)
Get highest priority pending UART interrupt.

__STATIC_INLINE void

DL_UART_clearInterruptStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Clear pending UART interrupts.

__STATIC_INLINE void

DL_UART_changeConfig(DL_UNICOMM_Inst_Regs * unicomm)
Prepares the UART to change the configuration.

void

DL_UART_transmitDataBlocking(DL_UNICOMM_Inst_Regs * unicomm, uint8_t data)
Blocks to ensure transmit is ready before sending data.

uint8_t

DL_UART_receiveDataBlocking(DL_UNICOMM_Inst_Regs * unicomm)
Blocks to ensure receive is ready before reading data.

bool

DL_UART_transmitDataCheck(DL_UNICOMM_Inst_Regs * unicomm, uint8_t data)
Checks the TX FIFO before trying to transmit data.

bool

DL_UART_receiveDataCheck(DL_UNICOMM_Inst_Regs * unicomm, uint8_t * buffer)
Checks the RX FIFO before trying to transmit data.

uint32_t

DL_UART_drainRXFIFO(DL_UNICOMM_Inst_Regs * unicomm, uint8_t * buffer, uint32_t maxCount)
Read all available data out of the RX FIFO using 8 bit access.

uint32_t

DL_UART_fillTXFIFO(DL_UNICOMM_Inst_Regs * unicomm, const uint8_t * buffer, uint32_t count)
Fill the TX FIFO until full using 8 bit access.

__STATIC_INLINE void

DL_UART_enableDMAReceiveEvent(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interrupt)
Enable UART interrupt for triggering the DMA receive event.

__STATIC_INLINE void

DL_UART_enableDMATransmitEvent(DL_UNICOMM_Inst_Regs * unicomm)
Enable UART interrupt for triggering the DMA transmit event.

__STATIC_INLINE void

DL_UART_disableDMAReceiveEvent(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interrupt)
Disables UART interrupt from triggering the DMA receive event.

__STATIC_INLINE void

DL_UART_disableDMATransmitEvent(DL_UNICOMM_Inst_Regs * unicomm)
Disables UART interrupt from triggering the DMA transmit event.

__STATIC_INLINE uint32_t

DL_UART_getEnabledDMAReceiveEvent(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Check which UART interrupt for DMA receive events is enabled.

__STATIC_INLINE uint32_t

DL_UART_getEnabledDMATransmitEvent(DL_UNICOMM_Inst_Regs * unicomm)
Check if UART interrupt for DMA transmit event is enabled.

__STATIC_INLINE uint32_t

DL_UART_getEnabledDMAReceiveEventStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Check interrupt flag of enabled UART interrupt for DMA receive event.

__STATIC_INLINE uint32_t

DL_UART_getEnabledDMATransmitEventStatus(DL_UNICOMM_Inst_Regs * unicomm)
Check interrupt flag of enabled UART interrupt for DMA transmit event.

__STATIC_INLINE uint32_t

DL_UART_getRawDMAReceiveEventStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask)
Check interrupt flag of any UART interrupt for DMA receive event.

__STATIC_INLINE uint32_t

DL_UART_getRawDMATransmitEventStatus(DL_UNICOMM_Inst_Regs * unicomm)
Check interrupt flag of any UART interrupt for DMA transmit event.

__STATIC_INLINE void

DL_UART_enableFlushRxFifo(DL_UNICOMM_Inst_Regs * unicomm)
Initiate a flush (clear) of the RX FIFO.

__STATIC_INLINE void

DL_UART_disableFlushRxFifo(DL_UNICOMM_Inst_Regs * unicomm)
Deassert the RX FIFO flush request.

__STATIC_INLINE void

DL_UART_enableFlushTxFifo(DL_UNICOMM_Inst_Regs * unicomm)
Initiate a flush (clear) of the TX FIFO.

__STATIC_INLINE void

DL_UART_disableFlushTxFifo(DL_UNICOMM_Inst_Regs * unicomm)
Deassert the TX FIFO flush request.

__STATIC_INLINE bool

DL_UART_isRxFifoClearDone(const DL_UNICOMM_Inst_Regs * unicomm)
Check if the RX FIFO hardware clear has completed.

__STATIC_INLINE bool

DL_UART_isTxFifoClearDone(const DL_UNICOMM_Inst_Regs * unicomm)
Check if the TX FIFO hardware clear has completed.

bool

DL_UART_saveConfiguration(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_backupConfig * ptr)
Save UART configuration before entering a power loss state.

bool

DL_UART_restoreConfiguration(DL_UNICOMM_Inst_Regs * unicomm, DL_UART_backupConfig * ptr)
Restore UART configuration after leaving a power loss state.

Defines

Name

DL_UART_MAIN_INTERRUPT_DMA_DONE_TX

DL_UART_MAIN_INTERRUPT_DMA_DONE_RX

DL_UART_MAIN_INTERRUPT_CTS_DONE

DL_UART_MAIN_INTERRUPT_EOT_DONE

DL_UART_MAIN_INTERRUPT_TX

DL_UART_MAIN_INTERRUPT_RX

DL_UART_MAIN_INTERRUPT_LTOUT

DL_UART_MAIN_INTERRUPT_RXD_POS_EDGE

DL_UART_MAIN_INTERRUPT_RXD_NEG_EDGE

DL_UART_MAIN_INTERRUPT_OVERRUN_ERROR

DL_UART_MAIN_INTERRUPT_BREAK_ERROR

DL_UART_MAIN_INTERRUPT_PARITY_ERROR

DL_UART_MAIN_INTERRUPT_FRAMING_ERROR

DL_UART_MAIN_INTERRUPT_RX_TIMEOUT_ERROR

DL_UART_MAIN_INTERRUPT_NOISE_ERROR

DL_UART_MAIN_IIDX_DMA_DONE_TX

DL_UART_MAIN_IIDX_DMA_DONE_RX

DL_UART_MAIN_IIDX_CTS_DONE

DL_UART_MAIN_IIDX_EOT_DONE

DL_UART_MAIN_IIDX_TX

DL_UART_MAIN_IIDX_RX

DL_UART_MAIN_IIDX_RXD_POS_EDGE

DL_UART_MAIN_IIDX_RXD_NEG_EDGE

DL_UART_MAIN_IIDX_OVERRUN_ERROR

DL_UART_MAIN_IIDX_BREAK_ERROR

DL_UART_MAIN_IIDX_PARITY_ERROR

DL_UART_MAIN_IIDX_FRAMING_ERROR

DL_UART_MAIN_IIDX_RX_TIMEOUT_ERROR

DL_UART_MAIN_IIDX_NOISE_ERROR

DL_UART_MAIN_IIDX_NO_INTERRUPT

DL_UART_MAIN_DMA_INTERRUPT_RX

DL_UART_MAIN_DMA_INTERRUPT_RX_TIMEOUT

DL_UART_MAIN_DMA_INTERRUPT_TX

DL_UART_MAIN_ERROR_OVERRUN

DL_UART_MAIN_ERROR_BREAK

DL_UART_MAIN_ERROR_PARITY

DL_UART_MAIN_ERROR_FRAMING

DL_UART_MAIN_OVERSAMPLING_RATE_16X

DL_UART_MAIN_OVERSAMPLING_RATE_8X

DL_UART_MAIN_OVERSAMPLING_RATE_3X

DL_UART_MAIN_PARITY_EVEN

DL_UART_MAIN_PARITY_ODD

DL_UART_MAIN_PARITY_STICK_ONE

DL_UART_MAIN_PARITY_STICK_ZERO

DL_UART_MAIN_PARITY_NONE

DL_UART_MAIN_WORD_LENGTH_5_BITS

DL_UART_MAIN_WORD_LENGTH_6_BITS

DL_UART_MAIN_WORD_LENGTH_7_BITS

DL_UART_MAIN_WORD_LENGTH_8_BITS

DL_UART_MAIN_MODE_NORMAL

DL_UART_MAIN_MODE_RS485

DL_UART_MAIN_MODE_IDLE_LINE

DL_UART_MAIN_MODE_ADDR_9_BIT

DL_UART_MAIN_DIRECTION_TX

DL_UART_MAIN_DIRECTION_RX

DL_UART_MAIN_DIRECTION_TX_RX

DL_UART_MAIN_DIRECTION_NONE

DL_UART_MAIN_CLOCK_BUSCLK

DL_UART_MAIN_FLOW_CONTROL_RTS

DL_UART_MAIN_FLOW_CONTROL_CTS

DL_UART_MAIN_FLOW_CONTROL_RTS_CTS

DL_UART_MAIN_FLOW_CONTROL_NONE

DL_UART_MAIN_RTS_ASSERT

DL_UART_MAIN_RTS_DEASSERT

DL_UART_MAIN_STOP_BITS_ONE

DL_UART_MAIN_STOP_BITS_TWO

DL_UART_MAIN_TXD_OUT_LOW

DL_UART_MAIN_TXD_OUT_HIGH

DL_UART_MAIN_TX_FIFO_LEVEL_3_4_EMPTY

DL_UART_MAIN_TX_FIFO_LEVEL_1_4_EMPTY

DL_UART_MAIN_TX_FIFO_LEVEL_EMPTY

DL_UART_MAIN_RX_FIFO_LEVEL_FULL

DL_UART_MAIN_RX_FIFO_LEVEL_3_4_FULL

DL_UART_MAIN_RX_FIFO_LEVEL_1_2_FULL

DL_UART_MAIN_RX_FIFO_LEVEL_1_4_FULL

DL_UART_MAIN_CLOCK_DIVIDE_RATIO_1

DL_UART_MAIN_CLOCK_DIVIDE_RATIO_2

DL_UART_MAIN_CLOCK_DIVIDE_RATIO_3

DL_UART_MAIN_CLOCK_DIVIDE_RATIO_4

DL_UART_MAIN_CLOCK_DIVIDE_RATIO_5

DL_UART_MAIN_CLOCK_DIVIDE_RATIO_6

DL_UART_MAIN_CLOCK_DIVIDE_RATIO_7

DL_UART_MAIN_CLOCK_DIVIDE_RATIO_8

DL_UART_Main_backupConfig

DL_UART_Main_saveConfiguration

DL_UART_Main_restoreConfiguration

DL_UART_Main_Config

DL_UART_Main_ClockConfig

DL_UART_Main_init

DL_UART_Main_enablePower

DL_UART_Main_disablePower

DL_UART_Main_isPowerEnabled

DL_UART_Main_reset

DL_UART_Main_enable

DL_UART_Main_isEnabled

DL_UART_Main_disable

DL_UART_Main_setClockConfig

DL_UART_Main_getClockConfig

DL_UART_Main_configBaudRate

DL_UART_Main_setOversampling

DL_UART_Main_getOversampling

DL_UART_Main_enableLoopbackMode

DL_UART_Main_isLoopbackModeEnabled

DL_UART_Main_disableLoopbackMode

DL_UART_Main_setDirection

DL_UART_Main_getDirection

DL_UART_Main_enableMajorityVoting

DL_UART_Main_isMajorityVotingEnabled

DL_UART_Main_disableMajorityVoting

DL_UART_Main_enableMSBFirst

DL_UART_Main_isMSBFirstEnabled

DL_UART_Main_disableMSBFirst

DL_UART_Main_enableTransmitPinManualControl

DL_UART_Main_isTransmitPinManualControlEnabl

DL_UART_Main_disableTransmitPinManualControl

DL_UART_Main_setTransmitPinManualOutput

DL_UART_Main_getTransmitPinManualOutput

DL_UART_Main_setCommunicationMode

DL_UART_Main_getCommunicationMode

DL_UART_Main_setFlowControl

DL_UART_Main_getFlowControl

DL_UART_Main_setRTSOutput

DL_UART_Main_enableFIFOs

DL_UART_Main_disableFIFOs

DL_UART_Main_isFIFOsEnabled

DL_UART_Main_isParityEnabled

DL_UART_Main_setParityMode

DL_UART_Main_getParityMode

DL_UART_Main_setStopBits

DL_UART_Main_getStopBits

DL_UART_Main_setWordLength

DL_UART_Main_getWordLength

DL_UART_Main_enableSendIdlePattern

DL_UART_Main_disableSendIdlePattern

DL_UART_Main_isSendIdlePatternEnabled

DL_UART_Main_setExternalDriverSetup

DL_UART_Main_getExternalDriverSetup

DL_UART_Main_setExternalDriverHold

DL_UART_Main_getExternalDriverHold

DL_UART_Main_isBusy

DL_UART_Main_isRXFIFOEmpty

DL_UART_Main_isRXFIFOFull

DL_UART_Main_isTXFIFOEmpty

DL_UART_Main_isTXFIFOFull

DL_UART_Main_isClearToSend

DL_UART_Main_isIdleModeDetected

DL_UART_Main_setTXFIFOThreshold

DL_UART_Main_getTXFIFOThreshold

DL_UART_Main_setRXFIFOThreshold

DL_UART_Main_getRXFIFOThreshold

DL_UART_Main_setRXInterruptTimeout

DL_UART_Main_getRXInterruptTimeout

DL_UART_Main_getIntegerBaudRateDivisor

DL_UART_Main_getFractionalBaudRateDivisor

DL_UART_Main_setBaudRateDivisor

DL_UART_Main_transmitData

DL_UART_Main_receiveData

DL_UART_Main_getErrorStatus

DL_UART_Main_enableInterrupt

DL_UART_Main_disableInterrupt

DL_UART_Main_getEnabledInterrupts

DL_UART_Main_getEnabledInterruptStatus

DL_UART_Main_getRawInterruptStatus

DL_UART_Main_getPendingInterrupt

DL_UART_Main_clearInterruptStatus

DL_UART_Main_changeConfig

DL_UART_Main_transmitDataBlocking

DL_UART_Main_receiveDataBlocking

DL_UART_Main_transmitDataCheck

DL_UART_Main_receiveDataCheck

DL_UART_Main_drainRXFIFO

DL_UART_Main_fillTXFIFO

DL_UART_Main_enableDMAReceiveEvent

DL_UART_Main_enableDMATransmitEvent

DL_UART_Main_disableDMAReceiveEvent

DL_UART_Main_disableDMATransmitEvent

DL_UART_Main_getEnabledDMAReceiveEvent

DL_UART_Main_getEnabledDMATransmitEvent

DL_UART_Main_getEnabledDMAReceiveEventStatus

DL_UART_Main_getEnabledDMATransmitEventStatu

DL_UART_Main_getRawDMAReceiveEventStatus

DL_UART_Main_getRawDMATransmitEventStatus

DL_UART_INTERRUPT_DMA_DONE_TX
DMA done on transmit interrupt.

DL_UART_INTERRUPT_DMA_DONE_RX
DMA done on receive interrupt.

DL_UART_INTERRUPT_CTS_DONE
Clear to send interrupt.

DL_UART_INTERRUPT_ADDRESS_MATCH
9-bit mode address match interrupt

DL_UART_INTERRUPT_LINC0_MATCH
LINC0 match interrupt.

DL_UART_INTERRUPT_EOT_DONE
End of transmission interrupt.

DL_UART_INTERRUPT_TX
UART transmit interrupt.

DL_UART_INTERRUPT_RX
UART receive interrupt.

DL_UART_INTERRUPT_LTOUT
UART Line Time Out interrupt.

DL_UART_INTERRUPT_LIN_COUNTER_OVERFLOW
LIN hardware counter overflow interrupt.

DL_UART_INTERRUPT_LIN_RISING_EDGE
LIN rising edge LINC1 interrupt.

DL_UART_INTERRUPT_LIN_FALLING_EDGE
LIN falling edge LINC0 interrupt.

DL_UART_INTERRUPT_RXD_POS_EDGE
Positive Edge on UNICOMMUARTxRXD interrupt.

DL_UART_INTERRUPT_RXD_NEG_EDGE
Negative Edge on UNICOMMUARTxRXD interrupt.

DL_UART_INTERRUPT_OVERRUN_ERROR
Overrun error interrupt.

DL_UART_INTERRUPT_BREAK_ERROR
Break error interrupt.

DL_UART_INTERRUPT_PARITY_ERROR
Parity error interrupt.

DL_UART_INTERRUPT_FRAMING_ERROR
Framing error interrupt.

DL_UART_INTERRUPT_RX_TIMEOUT_ERROR
Receive timeout interrupt.

DL_UART_INTERRUPT_NOISE_ERROR
Noise error interrupt.

DL_UART_DMA_INTERRUPT_RX
UART interrupt for enabling UART receive as DMA trigger.

DL_UART_DMA_INTERRUPT_RX_TIMEOUT
UART interrupt for enabling UART receive timeout as DMA trigger.

DL_UART_ERROR_OVERRUN
Overrun error ocurred.

DL_UART_ERROR_BREAK
Break error ocurred.

DL_UART_ERROR_PARITY
Parity error ocurred.

DL_UART_ERROR_FRAMING
Framing error ocurred.

DL_UART_DMA_INTERRUPT_TX
UART interrupt for enabling UART transmit as DMA trigger.

DL_UART_PULSE_WIDTH_3_16_BIT_PERIOD
Sets the IrDA pulse width to 3/16 bit period when using the BITCLK16.

Types Documentation

enum DL_UART_IIDX

Enumerator

Value

Description

DL_UART_IIDX_DMA_DONE_TX

UNICOMMUART_IIDX_STAT_DMA_DONE_TX

UART interrupt index for DMA done on transmit

DL_UART_IIDX_DMA_DONE_RX

UNICOMMUART_IIDX_STAT_DMA_DONE_RX

UART interrupt index for DMA done on receive

DL_UART_IIDX_PREEMPT_INT_TX

UNICOMMUART_IIDX_STAT_DMA_PREIRQ_TX

Interrupt index for UART receive pre-emptive interrupt

DL_UART_IIDX_PREEMPT_INT_RX

UNICOMMUART_IIDX_STAT_DMA_PREIRQ_RX

Interrupt index for UART receive pre-emptive interrupt

DL_UART_IIDX_CTS_DONE

UNICOMMUART_IIDX_STAT_CTS

UART interrupt index for clear to send

DL_UART_IIDX_EOT_DONE

UNICOMMUART_IIDX_STAT_EOT

UART interrupt index for end of transmission

DL_UART_IIDX_TX

UNICOMMUART_IIDX_STAT_TXIFG

UART interrupt index for UART transmit

DL_UART_IIDX_RX

UNICOMMUART_IIDX_STAT_RXIFG

UART interrupt index for UART receive

DL_UART_IIDX_LTOUT

UNICOMMUART_IIDX_STAT_LTFG

UART interrupt index for Line Time Out

DL_UART_IIDX_LIN_COUNTER_OVERFLOW

UNICOMMUART_IIDX_STAT_LINOVF

UART interrupt index for LIN hardware counter overflow

DL_UART_IIDX_LIN_RISING_EDGE

UNICOMMUART_IIDX_STAT_LINC1

UART interrupt index for LIN rising edge LINC1

DL_UART_IIDX_LIN_FALLING_EDGE

UNICOMMUART_IIDX_STAT_LINC0

UART interrupt index for LIN falling edge LINC0

DL_UART_IIDX_RXD_POS_EDGE

UNICOMMUART_IIDX_STAT_RXPE

UART interrupt index for positive edge on UNICOMMUARTxRXD

DL_UART_IIDX_RXD_NEG_EDGE

UNICOMMUART_IIDX_STAT_RXNE

UART interrupt index for negative edge on UNICOMMUARTxRXD

DL_UART_IIDX_OVERRUN_ERROR

UNICOMMUART_IIDX_STAT_OEFG

UART interrupt index for overrun error

DL_UART_IIDX_BREAK_ERROR

UNICOMMUART_IIDX_STAT_BEFG

UART interrupt index for break error

DL_UART_IIDX_PARITY_ERROR

UNICOMMUART_IIDX_STAT_PEFG

UART interrupt index for parity error

DL_UART_IIDX_FRAMING_ERROR

UNICOMMUART_IIDX_STAT_FEFG

UART interrupt index for framing error

DL_UART_IIDX_RX_TIMEOUT_ERROR

UNICOMMUART_IIDX_STAT_RTFG

UART interrupt index for receive timeout

DL_UART_IIDX_NOISE_ERROR

UNICOMMUART_IIDX_STAT_NERR_EVT

UART interrupt index for noise error

DL_UART_IIDX_NO_INTERRUPT

UNICOMMUART_IIDX_STAT_NO_INTR

UART interrupt index for no interrupt

DL_UART_IIDX.

enum DL_UART_OVERSAMPLING_RATE

Enumerator

Value

Description

DL_UART_OVERSAMPLING_RATE_16X

UNICOMMUART_CTL0_HSE_OVS16

16x

DL_UART_OVERSAMPLING_RATE_8X

UNICOMMUART_CTL0_HSE_OVS8

8x

DL_UART_OVERSAMPLING_RATE_3X

UNICOMMUART_CTL0_HSE_OVS3

3x. IrDA, Manchester and DALI are not supported when 3x oversampling is enabled.

UART Oversampling Rate values.

enum DL_UART_PARITY

Enumerator

Value

Description

DL_UART_PARITY_EVEN

(UNICOMMUART_LCRH_PEN_ENABLE | UNICOMMUART_LCRH_EPS_EVEN)

Even parity. Checks for an even number of 1s

DL_UART_PARITY_ODD

(UNICOMMUART_LCRH_PEN_ENABLE | UNICOMMUART_LCRH_EPS_ODD)

Odd parity. Checks for an odd number of 1s

DL_UART_PARITY_STICK_ONE

(UNICOMMUART_LCRH_PEN_ENABLE | UNICOMMUART_LCRH_SPS_ENABLE | UNICOMMUART_LCRH_EPS_ODD)

Stick parity with a parity bit of ‘1’. When enabled, a permanent ‘1’ is set as parity when transmitting and checked as ‘1’ when receiving data.

DL_UART_PARITY_STICK_ZERO

(UNICOMMUART_LCRH_PEN_ENABLE | UNICOMMUART_LCRH_SPS_ENABLE | UNICOMMUART_LCRH_EPS_EVEN)

Stick parity with a parity bit of ‘0’. When enabled, a permanent ‘0’ is set as parity when transmitting and checked as ‘0’ when receiving data.

DL_UART_PARITY_NONE

UNICOMMUART_LCRH_PEN_DISABLE

Disable parity checking and generation

Different Parity generation options.

enum DL_UART_WORD_LENGTH

Enumerator

Value

Description

DL_UART_WORD_LENGTH_5_BITS

UNICOMMUART_LCRH_WLEN_DATABIT5

5 bits

DL_UART_WORD_LENGTH_6_BITS

UNICOMMUART_LCRH_WLEN_DATABIT6

6 bits

DL_UART_WORD_LENGTH_7_BITS

UNICOMMUART_LCRH_WLEN_DATABIT7

7 bits

DL_UART_WORD_LENGTH_8_BITS

UNICOMMUART_LCRH_WLEN_DATABIT8

8 bits

UART Word length in Bits.

enum DL_UART_MODE

Enumerator

Value

Description

DL_UART_MODE_NORMAL

UNICOMMUART_CTL0_MODE_UART

Normal operation

DL_UART_MODE_RS485

UNICOMMUART_CTL0_MODE_RS485

RS485 mode

DL_UART_MODE_IDLE_LINE

UNICOMMUART_CTL0_MODE_IDLELINE

Idle Line mode

DL_UART_MODE_ADDR_9_BIT

UNICOMMUART_CTL0_MODE_ADDR9BIT

9 Bit Address mode

DL_UART_MODE_SMART_CARD

UNICOMMUART_CTL0_MODE_SMART

ISO7816 Smart Card Support mode

UART Operation Mode.

enum DL_UART_DIRECTION

Enumerator

Value

Description

DL_UART_DIRECTION_TX

UNICOMMUART_CTL0_TXE_ENABLE

Transmitter

DL_UART_DIRECTION_RX

UNICOMMUART_CTL0_RXE_ENABLE

Receiver

DL_UART_DIRECTION_TX_RX

(UNICOMMUART_CTL0_RXE_ENABLE | UNICOMMUART_CTL0_TXE_ENABLE)

Transmitter and Receiver

DL_UART_DIRECTION_NONE

(UNICOMMUART_CTL0_RXE_DISABLE | UNICOMMUART_CTL0_TXE_DISABLE)

Disable Transmitter and Receiver

UART Transfer Direction.

enum DL_UART_CLOCK

Enumerator

Value

Description

DL_UART_CLOCK_BUSCLK

UNICOMMUART_CLKSEL_BUSCLK_SEL_ENABLE

BUSCLK

Clock Sources supported by UART.

enum DL_UART_FLOW_CONTROL

Enumerator

Value

Description

DL_UART_FLOW_CONTROL_RTS

UNICOMMUART_CTL0_RTSEN_ENABLE

Request to send

DL_UART_FLOW_CONTROL_CTS

UNICOMMUART_CTL0_CTSEN_ENABLE

Clear to send

DL_UART_FLOW_CONTROL_RTS_CTS

(UNICOMMUART_CTL0_RTSEN_ENABLE | UNICOMMUART_CTL0_CTSEN_ENABLE)

Request to send and Clear to send

DL_UART_FLOW_CONTROL_NONE

(UNICOMMUART_CTL0_CTSEN_DISABLE | UNICOMMUART_CTL0_RTSEN_DISABLE)

Disable flow control

Different flow control options.

enum DL_UART_RTS

Enumerator

Value

Description

DL_UART_RTS_ASSERT

UNICOMMUART_CTL0_RTS_SET

RTS is asserted indicating data in RX FIFO is below threshold

DL_UART_RTS_DEASSERT

UNICOMMUART_CTL0_RTS_CLR

RTS is deasserted indicating data in RX FIFO is at or above threshold

DL_UART_RTS.

enum DL_UART_STOP_BITS

Enumerator

Value

Description

DL_UART_STOP_BITS_ONE

UNICOMMUART_LCRH_STP2_DISABLE

One stop bit

DL_UART_STOP_BITS_TWO

UNICOMMUART_LCRH_STP2_ENABLE

Two stop bits

Number of stop bits transmitted at end of frame.

enum DL_UART_TXD_OUT

Enumerator

Value

Description

DL_UART_TXD_OUT_LOW

UNICOMMUART_CTL0_TXD_OUT_LOW

TXD pin is low

DL_UART_TXD_OUT_HIGH

UNICOMMUART_CTL0_TXD_OUT_HIGH

TXD pin is high

DL_UART_TXD_OUT.

enum DL_UART_TX_FIFO_LEVEL

Enumerator

Value

Description

DL_UART_TX_FIFO_LEVEL_3_4_EMPTY

UNICOMMUART_IFLS_TXIFLSEL_LVL_3_4

FIFO <= 3/4 empty

DL_UART_TX_FIFO_LEVEL_1_2_EMPTY

UNICOMMUART_IFLS_TXIFLSEL_LVL_1_2

FIFO <= 1/2 empty

DL_UART_TX_FIFO_LEVEL_1_4_EMPTY

UNICOMMUART_IFLS_TXIFLSEL_LVL_1_4

FIFO <= 1/4 empty

DL_UART_TX_FIFO_LEVEL_NOT_FULL

UNICOMMUART_IFLS_TXIFLSEL_LVL_NOT_FULL

FIFO is not full

DL_UART_TX_FIFO_LEVEL_EMPTY

UNICOMMUART_IFLS_TXIFLSEL_LVL_EMPTY

FIFO is empty

DL_UART_TX_FIFO_LEVEL_ALMOST_EMPTY

UNICOMMUART_IFLS_TXIFLSEL_LVL_ALMOST_EMPTY

FIFO is almost empty (FIFO <= 1)

DL_UART_TX_FIFO_LEVEL_ALMOST_FULL

UNICOMMUART_IFLS_TXIFLSEL_LVL_ALMOST_FULL

FIFO is almost full (FIFO >= (MAX_FIFO_LEN - 1))

Different FIFO Levels at which TX interrupt can be triggered.

enum DL_UART_RX_FIFO_LEVEL

Enumerator

Value

Description

DL_UART_RX_FIFO_LEVEL_1_4_FULL

UNICOMMUART_IFLS_RXIFLSEL_LVL_1_4

FIFO >= 1/4 full

DL_UART_RX_FIFO_LEVEL_1_2_FULL

UNICOMMUART_IFLS_RXIFLSEL_LVL_1_2

FIFO >= 1/2 full

DL_UART_RX_FIFO_LEVEL_3_4_FULL

UNICOMMUART_IFLS_RXIFLSEL_LVL_3_4

FIFO >= 3/4 full

DL_UART_RX_FIFO_LEVEL_NOT_EMPTY

UNICOMMUART_IFLS_RXIFLSEL_LVL_NOT_EMPTY

FIFO is not empty

DL_UART_RX_FIFO_LEVEL_FULL

UNICOMMUART_IFLS_RXIFLSEL_LVL_FULL

FIFO is full

DL_UART_RX_FIFO_LEVEL_ALMOST_FULL

UNICOMMUART_IFLS_RXIFLSEL_LVL_ALMOST_FULL

FIFO is almost full (FIFO >= (MAX_FIFO_LEN - 1))

DL_UART_RX_FIFO_LEVEL_ALMOST_EMPTY

UNICOMMUART_IFLS_RXIFLSEL_LVL_ALMOST_EMPTY

FIFO is almost empty (FIFO <= 1)

Different FIFO Levels at which RX interrupt can be triggered.

enum DL_UART_CLOCK_DIVIDE_RATIO

Enumerator

Value

Description

DL_UART_CLOCK_DIVIDE_RATIO_1

UNICOMMUART_CLKDIV_RATIO_DIV_BY_1

Divide Ratio 1

DL_UART_CLOCK_DIVIDE_RATIO_2

UNICOMMUART_CLKDIV_RATIO_DIV_BY_2

Divide Ratio 2

DL_UART_CLOCK_DIVIDE_RATIO_3

UNICOMMUART_CLKDIV_RATIO_DIV_BY_3

Divide Ratio 3

DL_UART_CLOCK_DIVIDE_RATIO_4

UNICOMMUART_CLKDIV_RATIO_DIV_BY_4

Divide Ratio 4

DL_UART_CLOCK_DIVIDE_RATIO_5

UNICOMMUART_CLKDIV_RATIO_DIV_BY_5

Divide Ratio 5

DL_UART_CLOCK_DIVIDE_RATIO_6

UNICOMMUART_CLKDIV_RATIO_DIV_BY_6

Divide Ratio 6

DL_UART_CLOCK_DIVIDE_RATIO_7

UNICOMMUART_CLKDIV_RATIO_DIV_BY_7

Divide Ratio 7

DL_UART_CLOCK_DIVIDE_RATIO_8

UNICOMMUART_CLKDIV_RATIO_DIV_BY_8

Divide Ratio 8

Divider value used on UART Clock SOurce.

Functions Documentation

function DL_UART_init

void DL_UART_init(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_Config * config
)

Initialize the UART peripheral.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • config Configuration for UART peripheral

Initializes all the common configurable options for the UART peripheral. Any other custom configuration can be done after calling this API. The UART is not enabled in this API.

function DL_UART_enablePower

__STATIC_INLINE void DL_UART_enablePower(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enables power on UART module.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_disablePower

__STATIC_INLINE void DL_UART_disablePower(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disables power on unicomm module.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_isPowerEnabled

__STATIC_INLINE bool DL_UART_isPowerEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Returns if power on unicomm module.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Return:

  • true if power is enabled

  • false if power is disabled

function DL_UART_reset

__STATIC_INLINE void DL_UART_reset(
    DL_UNICOMM_Inst_Regs * unicomm
)

Resets unicomm peripheral.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_isReset

__STATIC_INLINE bool DL_UART_isReset(
    DL_UNICOMM_Inst_Regs * unicomm
)

Returns if unicomm peripheral was reset.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Return:

  • true if peripheral was reset

  • false if peripheral wasn’t reset

function DL_UART_enable

__STATIC_INLINE void DL_UART_enable(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable the UART peripheral.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_isEnabled

__STATIC_INLINE bool DL_UART_isEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Checks if the UART peripheral is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true The UART peripheral is enabled

  • false The UART peripheral is disabled

Return: Returns the enabled status of the UNICOMMUART

function DL_UART_disable

__STATIC_INLINE void DL_UART_disable(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable the UART peripheral.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_setClockConfig

void DL_UART_setClockConfig(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_ClockConfig * config
)

Configure UART source clock.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • config Pointer to the clock configuration struct DL_UART_ClockConfig.

function DL_UART_getClockConfig

void DL_UART_getClockConfig(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_ClockConfig * config
)

Get UART source clock configuration.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • config Pointer to the clock configuration struct DL_UART_ClockConfig.

function DL_UART_configBaudRate

void DL_UART_configBaudRate(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t clockFreq,
    uint32_t baudRate
)

Configure the baud rate.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • clockFreq The clock frequency in Hz of the UART clock source

  • baudRate The target baud rate

See:

Given the target baud rate and the frequency of the UART clock source, this API determines and sets the recommended oversampling setting, and then calculates and sets the required baud rate divisors.

The oversampling rate that will be set is the highest possible oversampling rate given the target baud rate and UART clock frequency.

If the user wishes to avoid having the CPU calculate the baud rate divisors or not use the recommended calculated values, the user can call DL_UART_setOversampling and DL_UART_setBaudRateDivisor directly.

function DL_UART_setOversampling

__STATIC_INLINE void DL_UART_setOversampling(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_OVERSAMPLING_RATE rate
)

Set the oversampling rate.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • rate The oversampling rate to use. One of DL_UART_OVERSAMPLING_RATE

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

function DL_UART_getOversampling

__STATIC_INLINE DL_UART_OVERSAMPLING_RATE DL_UART_getOversampling(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the oversampling rate.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The current oversampling rate

function DL_UART_enableLoopbackMode

__STATIC_INLINE void DL_UART_enableLoopbackMode(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable loopback mode.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

Enables the loopback mode. When enabled, the UNICOMMUARTxTXD path is fed through the UNICOMMUARTxRXD path.

function DL_UART_isLoopbackModeEnabled

__STATIC_INLINE bool DL_UART_isLoopbackModeEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if loopback mode is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Loopback mode is enabled

  • false Loopback mode is disabled

Return: The status of loopback mode

function DL_UART_disableLoopbackMode

__STATIC_INLINE void DL_UART_disableLoopbackMode(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable loopback mode.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

Disables the loopback mode. When disabled, the UNICOMMUARTxTXD path is not fed through the UNICOMMUARTxRXD path.

function DL_UART_setDirection

__STATIC_INLINE void DL_UART_setDirection(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_DIRECTION direction
)

Set the direction of the UART communication.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • direction Direction to set UART communication to. One of DL_UART_DIRECTION.

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

If the UART is disabled in the middle of a transmit or receive, it completes the current character before stopping.

function DL_UART_getDirection

__STATIC_INLINE DL_UART_DIRECTION DL_UART_getDirection(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the direction of the UART communication.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The direction of UART communication.

function DL_UART_enableMajorityVoting

__STATIC_INLINE void DL_UART_enableMajorityVoting(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable majority voting control.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See: DL_UART_setOversampling

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

When enabled, the three center bits are used to determine received sample value. The value corresponding to at least two of the three samples is considered to be the received value.In case of error (i.e. all 3 bits are not the same), noise error is detected and bits RIS.NERR and register RXDATA.NERR are set.

When enabled with oversampling of 16, samples 7, 8, and 9 are majority voted to decide the sampled bit value.

When enabled with oversampling of 8, samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value corresponding to at least 2 of the 3 samples is considered to be the received value.

function DL_UART_isMajorityVotingEnabled

__STATIC_INLINE bool DL_UART_isMajorityVotingEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if majority voting is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Majority voting is enabled

  • false Majority voting is disabled

Return: The status of majority control feature

function DL_UART_disableMajorityVoting

__STATIC_INLINE void DL_UART_disableMajorityVoting(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable majority voting control.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

When disabled, only a single sample of the received bit of is taken.

function DL_UART_enableMSBFirst

__STATIC_INLINE void DL_UART_enableMSBFirst(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable most significant bit (MSB) first.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

When enabled, the most significant bit (MSB) is sent first in the protocol packet. This bit has effect on both the way the protocol byte is transmitted and received.

function DL_UART_isMSBFirstEnabled

__STATIC_INLINE bool DL_UART_isMSBFirstEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if most significant bit (MSB) first is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true MSB first is enabled

  • false MSB first is disabled

Return: The status of majority control feature

function DL_UART_disableMSBFirst

__STATIC_INLINE void DL_UART_disableMSBFirst(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable most significant bit (MSB) first.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

When disabled, the least significant bit (LSB) is sent first in the protocol packet. This bit has effect on both the way the protocol byte is transmitted and received.

function DL_UART_enableTransmitPinManualControl

__STATIC_INLINE void DL_UART_enableTransmitPinManualControl(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable control of the TXD pin.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See:

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

When enabled, the TXD pin can be controlled by the TXD_OUT bit. The UNICOMMUART transmit section must first be disabled.

function DL_UART_isTransmitPinManualControlEnabled

__STATIC_INLINE bool DL_UART_isTransmitPinManualControlEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if control of the TXD pin is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Control of the TXD pin is enabled

  • false Control of the TXD pin is disabled

Return: The status of control of the TXD pin

function DL_UART_disableTransmitPinManualControl

__STATIC_INLINE void DL_UART_disableTransmitPinManualControl(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable control of the TXD pin.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

When disabled, the TXD pin can not be controlled by the TXD_OUT bit

function DL_UART_setTransmitPinManualOutput

__STATIC_INLINE void DL_UART_setTransmitPinManualOutput(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_TXD_OUT txdOutVal
)

Set the output of the TXD pin.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • txdOutVal Value to set the TXD pin output to. One of DL_UART_TXD_OUT

See:

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

Control the output transmit data pin only when TXD_OUT_EN is enabled and TXE is disabled.

The TXD pin is set to manual control if it hadn’t been previously set.

function DL_UART_getTransmitPinManualOutput

__STATIC_INLINE DL_UART_TXD_OUT DL_UART_getTransmitPinManualOutput(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the output value of the TXD pin.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The value of the TXD pin

function DL_UART_setCommunicationMode

__STATIC_INLINE void DL_UART_setCommunicationMode(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_MODE mode
)

Set the communication mode/protocol to use.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • mode Value to set the UART communication protocol to. One of DL_UART_MODE

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

function DL_UART_getCommunicationMode

__STATIC_INLINE DL_UART_MODE DL_UART_getCommunicationMode(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the communication mode/protocol being used.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The communication mode/protocol being used by the UNICOMMUART

function DL_UART_setFlowControl

__STATIC_INLINE void DL_UART_setFlowControl(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_FLOW_CONTROL config
)

Set the flow control configuration.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • config The flow control configuration to use. One of DL_UART_FLOW_CONTROL.

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

function DL_UART_getFlowControl

__STATIC_INLINE DL_UART_FLOW_CONTROL DL_UART_getFlowControl(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check the flow control configuration.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The flow control configuration

function DL_UART_setRTSOutput

__STATIC_INLINE void DL_UART_setRTSOutput(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_RTS val
)

Set the request to send output signal.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • val The RTS output signal. One of DL_UART_RTS

See: DL_UART_setTXFIFOThreshold

Precondition: If the UART has already been enabled, then it must be made ready for configuration by first calling DL_UART_changeConfig

Postcondition: If DL_UART_changeConfig was called, then the UART must be re-enabled by calling DL_UART_enable

The RTS output signal indicates the state of the RX FIFO, and is linked to the programmable receive FIFO threshold levels. When RTS flow control is enabled, the RTS signal is asserted (low) when the data in the RX FIFO is less than the threshold level. When the RX FIFO threshold level is reached, the RTS signal is deasserted (high). The RTS signal is reasserted (low) when data has been read out of the RX FIFO so it is less than the threshold.

function DL_UART_getRTSOutput

__STATIC_INLINE DL_UART_RTS DL_UART_getRTSOutput(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the request to send output signal.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

See: DL_UART_setTXFIFOThreshold

Return: The RTS signal status

The RTS output signal indicates the state of the RX FIFO, and is linked to the programmable receive FIFO threshold levels. When RTS flow control is enabled, the RTS signal is asserted (low) when the data in the RX FIFO is less than the threshold level. When the RX FIFO threshold level is reached, the RTS signal is deasserted (high). The RTS signal is reasserted (low) when data has been read out of the RX FIFO so it is less than the threshold.

function DL_UART_enableFIFOs

__STATIC_INLINE void DL_UART_enableFIFOs(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable FIFOs.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Deprecated:

UNICOMM FIFOs are always eanbled. This API is provided for backwards compatiblity ONLY.

function DL_UART_disableFIFOs

__STATIC_INLINE void DL_UART_disableFIFOs(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable FIFOs.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Deprecated:

UNICOMM FIFOs are always eanbled. This API is provided for backwards compatiblity ONLY.

function DL_UART_isFIFOsEnabled

__STATIC_INLINE bool DL_UART_isFIFOsEnabled(
    const DL_UNICOMM_Inst_Regs * unicomm
)

Check if FIFOs are enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Deprecated:

UNICOMM FIFOs are always eanbled. This API is provided for backwards compatiblity ONLY.

Return: Always returns true

function DL_UART_enableLINSendBreak

__STATIC_INLINE void DL_UART_enableLINSendBreak(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable send break (for LIN protocol)

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

When enabled, a low level is continually output on the TXD signal after completing transmission of the current character. For the proper execution of the break command, software must set this bit for at least two frames (character periods).

function DL_UART_disableLINSendBreak

__STATIC_INLINE void DL_UART_disableLINSendBreak(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable send break.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

When disabled, a low level is not continually output on the TXD signal after completing transmission of the current character.

function DL_UART_isLINSendBreakEnabled

__STATIC_INLINE bool DL_UART_isLINSendBreakEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if send break is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Send break is enabled

  • false Send break is disabled

Return: The status of send break

function DL_UART_isParityEnabled

__STATIC_INLINE bool DL_UART_isParityEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if parity is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Parity is enabled

  • false Parity is disabled

Return: The status of parity

function DL_UART_setParityMode

__STATIC_INLINE void DL_UART_setParityMode(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_PARITY parity
)

Set the parity mode.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • parity Parity mode to set UART to. One of DL_UART_PARITY

For 9-bit UART mode transmissions, the parity mode affects the address byte and data byte indication (9th bit). If DL_UART_PARITY_EVEN or DL_UART_PARITY_STICK_ZERO is enabled, then the transferred byte is a data byte. If DL_UART_PARITY_EVEN or DL_UART_PARITY_STICK_ZERO is not enabled, then the transferred byte is an address byte.

function DL_UART_getParityMode

__STATIC_INLINE DL_UART_PARITY DL_UART_getParityMode(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get parity mode.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The current parity mode being used

function DL_UART_setStopBits

__STATIC_INLINE void DL_UART_setStopBits(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_STOP_BITS numStopBits
)

Set the number of stop bits.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • numStopBits The number of stop bits transmitted. One of DL_UART_STOP_BITS

When in 7816 smart code mode (DL_UART_MODE_SMART_CARD mode), the number of stop bits is forced to 2

function DL_UART_getStopBits

__STATIC_INLINE DL_UART_STOP_BITS DL_UART_getStopBits(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the number of stop bits.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The number of stop bits transmitted.

function DL_UART_setWordLength

__STATIC_INLINE void DL_UART_setWordLength(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_WORD_LENGTH wordLength
)

Set the word length.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • wordLength The number of data bits transmitted or received in a frame. One of DL_UART_WORD_LENGTH

function DL_UART_getWordLength

__STATIC_INLINE DL_UART_WORD_LENGTH DL_UART_getWordLength(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the word length.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The length of the data bits transmitted or received in a frame

function DL_UART_enableSendIdlePattern

__STATIC_INLINE void DL_UART_enableSendIdlePattern(
    DL_UNICOMM_Inst_Regs * unicomm
)

Send idle pattern.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

When enabled, a SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards.

function DL_UART_disableSendIdlePattern

__STATIC_INLINE void DL_UART_disableSendIdlePattern(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable send idle pattern.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_isSendIdlePatternEnabled

__STATIC_INLINE bool DL_UART_isSendIdlePatternEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if send idle pattern is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Send idle pattern is enabled

  • false Send idle pattern is disabled

Return: The status of the send idle pattern

function DL_UART_setExternalDriverSetup

__STATIC_INLINE void DL_UART_setExternalDriverSetup(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t val
)

Set external driver setup value.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • val The number of UNICOMMUARTclk ticks the signal before the RS485 is setup. Value between 0 - 31.

Defines the number of UNICOMMUARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is sent

function DL_UART_getExternalDriverSetup

__STATIC_INLINE uint32_t DL_UART_getExternalDriverSetup(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the external driver setup value.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 - 31 The number of UNICOMMUARTclk ticks

Return: The number of UNICOMMUARTclk ticks the signal to control the external driver

function DL_UART_setExternalDriverHold

__STATIC_INLINE void DL_UART_setExternalDriverHold(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t val
)

Set external driver setup hold.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • val The number of UNICOMMUARTclk ticks the signal to hold the external driver before the RS485 will be reset. Value between 0 - 31.

Defines the number of UNICOMMUARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. If 2 STOP bits are enabled, the RS485 will be reset at the beginning of the 2nd STOP bit.

function DL_UART_getExternalDriverHold

__STATIC_INLINE uint32_t DL_UART_getExternalDriverHold(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the external driver setup hold.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 - 31 The number of UNICOMMUARTclk ticks

Return: The number of UNICOMMUARTclk ticks the signal to hold the external driver before the RS485 will be reset

function DL_UART_isBusy

__STATIC_INLINE bool DL_UART_isBusy(
    DL_UNICOMM_Inst_Regs * unicomm
)

Checks if the UART is busy.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true The UART is busy

  • false The UART is not busy

Return: The status of the UART Busy bit

This bit is set as soon as the transmit FIFO or TXDATA register becomes non-empty (regardless of whether UART is enabled) or if a receive data is currently ongoing (after the start edge have been detected until a complete byte, including all stop bits, has been received by the shift register).

In IDLE Line mode the Busy signal also stays set during the idle time generation.

function DL_UART_isRXFIFOEmpty

__STATIC_INLINE bool DL_UART_isRXFIFOEmpty(
    DL_UNICOMM_Inst_Regs * unicomm
)

Checks if the RX FIFO is empty.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true If the FIFO is enabled, the receive FIFO is empty. If the FIFO is disabled, the receiver has no data.

  • false The receiver is not empty

Return: Returns the empty status of the RX FIFO

The meaning of this bit depends on if the FIFOs were enabled.

function DL_UART_isRXFIFOFull

__STATIC_INLINE bool DL_UART_isRXFIFOFull(
    DL_UNICOMM_Inst_Regs * unicomm
)

Checks if the RX FIFO is full.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true If the FIFO is enabled, the receive FIFO is full. If the FIFO is disabled, the receiver has 1-byte of data.

  • false The receiver is not full

Return: Returns the full status of the RX FIFO

The meaning of this bit depends on if the FIFOs were enabled.

function DL_UART_isTXFIFOEmpty

__STATIC_INLINE bool DL_UART_isTXFIFOEmpty(
    DL_UNICOMM_Inst_Regs * unicomm
)

Checks if the TX FIFO is empty.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true If the FIFO is enabled, the transmit FIFO is empty. If the FIFO is disabled, the transmitter has no data.

  • false The transmitter is not empty

Return: Returns the empty status of the TX FIFO

The meaning of this bit depends on if the FIFOs were enabled.

function DL_UART_isTXFIFOFull

__STATIC_INLINE bool DL_UART_isTXFIFOFull(
    DL_UNICOMM_Inst_Regs * unicomm
)

Checks if the TX FIFO is full.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true If the FIFO is enabled, the transmit FIFO is full. If the FIFO is disabled, the transmitter has 1-byte of data.

  • false The transmitter is not full

Return: Returns the full status of the TX FIFO

The meaning of this bit depends on if the FIFOs were enabled.

function DL_UART_isClearToSend

__STATIC_INLINE bool DL_UART_isClearToSend(
    DL_UNICOMM_Inst_Regs * unicomm
)

Checks if UART is clear to send.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true The CTS signal is asserted (low)

  • false The CTS signal is not asserted (high)

See: DL_UART_isClearToSendEnabled

Return: Returns the status of the CTS signal

function DL_UART_isIdleModeDetected

__STATIC_INLINE bool DL_UART_isIdleModeDetected(
    DL_UNICOMM_Inst_Regs * unicomm
)

Checks if Idle mode has been detected.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Idle has been detected before last received character

  • false Idle has not been detected before last received character

Return: Returns the status if Idle mode has been detected

Idle mode has been detected in Idleline-Multiprocessor-Mode. The IDLE bit is used as an address tag for each block of characters. In idle-line multiprocessor format, this bit is set when a received character is an address.

function DL_UART_setTXFIFOThreshold

__STATIC_INLINE void DL_UART_setTXFIFOThreshold(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_TX_FIFO_LEVEL threshold
)

Set the TX FIFO interrupt threshold level.

Parameters:

Select the threshold for the transmit FIFO interrupt. The interrupts are generated based on a transition through a level rather than being based on the level. That is, the interrupts are generated when the fill level progresses through the trigger level. For example, if the transmit trigger level is set to the half-way mark, the interrupt is triggered when the transmit FIFO becomes half empty. In other words, if the transmit FIFO was filled with four characters, the interrupt would trigger once there are two or less characters after transmitting.

function DL_UART_getTXFIFOThreshold

__STATIC_INLINE DL_UART_TX_FIFO_LEVEL DL_UART_getTXFIFOThreshold(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the TX FIFO interrupt threshold level.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The TX FIFO interrupt threshold level

function DL_UART_setRXFIFOThreshold

__STATIC_INLINE void DL_UART_setRXFIFOThreshold(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_RX_FIFO_LEVEL threshold
)

Set the RX FIFO interrupt threshold level. The interrupts are generated based on a transition through a level rather than being based on the level. That is, the interrupts are generated when the fill level progresses through the trigger level. For example, if the receive trigger level is set to the half-way mark, the interrupt is triggered when the receive FIFO becomes half full. In other words, the interrupt is triggered after the receive FIFO is filled with two or more characters.

Parameters:

function DL_UART_getRXFIFOThreshold

__STATIC_INLINE DL_UART_RX_FIFO_LEVEL DL_UART_getRXFIFOThreshold(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the RX FIFO interrupt threshold level.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

Return: The RX FIFO interrupt threshold level

function DL_UART_setRXInterruptTimeout

__STATIC_INLINE void DL_UART_setRXInterruptTimeout(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t timeout
)

Set the RX interrupt timeout.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • timeout Timeout to set the RX interrupt to. Value between 0 - 15

When an additional character has not been received within the set timeout, a RX interrupt will still trigger even if the FIFO level has not been reached. A value of 0 disables this function.

function DL_UART_getRXInterruptTimeout

__STATIC_INLINE uint32_t DL_UART_getRXInterruptTimeout(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the RX interrupt timeout.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 - 15 The RX interrupt timeout value

Return: The RX interrupt timeout value

function DL_UART_getIntegerBaudRateDivisor

__STATIC_INLINE uint32_t DL_UART_getIntegerBaudRateDivisor(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get Integer Baud-Rate Divisor.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 - 65535 The integer baud date divisor

Return: The integer component of the baud rate divisor

function DL_UART_getFractionalBaudRateDivisor

__STATIC_INLINE uint32_t DL_UART_getFractionalBaudRateDivisor(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get Fractional Baud-Rate Divisor.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 - 63 The fractional baud date divisor

Return: The fractional component of the baud rate divisor

function DL_UART_setBaudRateDivisor

__STATIC_INLINE void DL_UART_setBaudRateDivisor(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t integerDivisor,
    uint32_t fractionalDivisor
)

Set the baud rate divisor.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • integerDivisor The integer component of the baud rate divisor

  • fractionalDivisor The fractional component of the baud rate divisor

Set the integer baud rate divisor and fractional baud rate divisor components of the baud rate divisor

function DL_UART_setDigitalPulseWidth

__STATIC_INLINE void DL_UART_setDigitalPulseWidth(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t pulseWidth
)

Set the pulse width select for the digital glitch suppresion.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • pulseWidth Pulse width select for the glitch suppresion. Value between 0 - 63.

Controls the pulse width select for glitch suppression on the RX line. The glitch suppression values are in terms of functional clocks.

In IrDA mode, this sets the receive filter length. The minimum pulse length for receive is given by: t(MIN) = (DGFSEL) / f(IRTXCLK)

function DL_UART_getDigitalPulseWidth

__STATIC_INLINE uint32_t DL_UART_getDigitalPulseWidth(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the pulse width select for the digital glitch suppresion.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 indicating digital glitch suppression is disabled

  • 1 - 63 the digital glitch suppression pulse width

Return: The digital glitch suppression pulse width

Gets the pulse width select for glitch suppression on the RX line. The glitch suppression values are in terms of functional clocks.

function DL_UART_transmitData

__STATIC_INLINE void DL_UART_transmitData(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint8_t data
)

Writes data into the TX FIFO to transmit.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • data The data to transmit

See:

Puts the data into the TX FIFO without checking it’s status. Use if already sure the TX FIFO has space for the write. See related APIs for additional transmit options.

For transmitted data, if the FIFO is enabled, data written to this location is pushed onto the transmit FIFO. If the FIFO is disabled, data is stored in the 1-byte deep transmitter.

function DL_UART_receiveData

__STATIC_INLINE uint8_t DL_UART_receiveData(
    DL_UNICOMM_Inst_Regs * unicomm
)

Reads data from the RX FIFO.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See:

Return: The data in the RX FIFO

Reads the data from the RX FIFO without checking its status. Use if already sure the RX FIFO has data available. See related APIs for additional receive options.

function DL_UART_getErrorStatus

__STATIC_INLINE uint32_t DL_UART_getErrorStatus(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t errorMask
)

Gets the status of the error flags of the received data.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • errorMask Bit mask of error flags to check. Bitwise OR of [DL_UART_ERROR].

Returns:

  • Bitwise OR of [DL_UART_ERROR] values

Return: The status of the requested UART error flags

function DL_UART_setLINCounterValue

__STATIC_INLINE void DL_UART_setLINCounterValue(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint16_t value
)

Set the LIN counter value.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • value Pulse width select for the glitch suppresion.

The LIN counter is a 16 bit up counter clocked by the functional clock of the UNICOMMUART

function DL_UART_getLINCounterValue

__STATIC_INLINE uint16_t DL_UART_getLINCounterValue(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the LIN counter value.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 - 65535 The clock counter value

Return: The clock counter value

The LIN counter is a 16 bit up counter clocked by the module clock of the UNICOMMUART

function DL_UART_enableLINCounter

__STATIC_INLINE void DL_UART_enableLINCounter(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable the LIN counter.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

The LIN counter will only count when enabled.

function DL_UART_isLINCounterEnabled

__STATIC_INLINE bool DL_UART_isLINCounterEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if the LIN counter is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true LIN counter is enabled

  • false LIN counter is disabled

Return: The status of the LIN counter

function DL_UART_disableLINCounter

__STATIC_INLINE void DL_UART_disableLINCounter(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable the LIN counter.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

LIN counter will only count when enabled.

function DL_UART_enableLINCounterClearOnFallingEdge

__STATIC_INLINE void DL_UART_enableLINCounterClearOnFallingEdge(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable LIN counter clear and start counting on falling edge of RXD.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See: DL_UART_enableLINCounter

When enabled, the counter is set to 0 and starts counting on the LIN counter on a falling edge of RXD.

The LIN counter will only count when it is enabled.

function DL_UART_isLINCounterClearOnFallingEdge

__STATIC_INLINE bool DL_UART_isLINCounterClearOnFallingEdge(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if LIN counting on falling edge of RXD is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Counting on falling edge is enabled

  • false Counting on falling edge is disabled

Return: The status of counting on falling edge of RXD

function DL_UART_disableLINCounterClearOnFallingEdge

__STATIC_INLINE void DL_UART_disableLINCounterClearOnFallingEdge(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable LIN counting on falling edge of RXD.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_enableLINCountWhileLow

__STATIC_INLINE void DL_UART_enableLINCountWhileLow(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable LIN counter incrementing while RXD signal is low.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See: DL_UART_enableLINCounter

When LIN counter is enabled and the signal on RXD is low, the counter increments

function DL_UART_isLINCountWhileLowEnabled

__STATIC_INLINE bool DL_UART_isLINCountWhileLowEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if LIN counter increments while RXD signal is low is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Counter increments while RXD signal is low is enabled

  • false Counter increments while RXD signal is low is disabled

Return: The status of counter increments while RXD signal is low

function DL_UART_disableLINCountWhileLow

__STATIC_INLINE void DL_UART_disableLINCountWhileLow(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable LIN counter increments while RXD signal is low.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

LIN counter will not increment while the RXD signal is low

function DL_UART_enableLINFallingEdgeCapture

__STATIC_INLINE void DL_UART_enableLINFallingEdgeCapture(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable capture of the LIN counter on a falling edge.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See: DL_UART_configLINMode

When enabled, the LIN counter value is captured to the LINC0 register on each falling RXD edge. A LINC0 interrupt is triggered when enabled. Disables counter compare match mode if enabled.

function DL_UART_isLINFallingEdgeCaptureEnabled

__STATIC_INLINE bool DL_UART_isLINFallingEdgeCaptureEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check status of capture of LIN counter on a falling edge.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Capture to LINC0 on falling RXD edge is enabled

  • false Capture to LINC0 on falling RXD edge is disabled

Return: The status of capture the LIN counter on a falling edge

function DL_UART_disableLINFallingEdgeCapture

__STATIC_INLINE void DL_UART_disableLINFallingEdgeCapture(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable capture of LIN counter on a falling edge.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_enableLINRisingEdgeCapture

__STATIC_INLINE void DL_UART_enableLINRisingEdgeCapture(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable capture of the LIN counter on a rising edge.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

When enabled the LIN counter value is captured to LINC1 register on each rising RXD edge. A LINC1 interrupt is triggered when enabled.

function DL_UART_isLINRisingEdgeCaptureEnabled

__STATIC_INLINE bool DL_UART_isLINRisingEdgeCaptureEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check status of capture of LIN counter on a rising edge.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true Capture to LINC1 on rising RXD edge is enabled

  • false Capture to LINC1 on rising RXD edge is disabled

Return: The status of capture of LIN counter on a rising edge

function DL_UART_disableLINRisingEdgeCapture

__STATIC_INLINE void DL_UART_disableLINRisingEdgeCapture(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable capture of LIN counter on a rising edge.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_enableLINCounterCompareMatch

__STATIC_INLINE void DL_UART_enableLINCounterCompareMatch(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable LIN counter compare match mode.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

When enabled, a match between a value in LINC0 and the LIN counter can trigger a LINC0 interrupt. Disables capture on falling edge if enabled.

function DL_UART_enableLINSyncFieldValidationCounterControl

__STATIC_INLINE void DL_UART_enableLINSyncFieldValidationCounterControl(
    DL_UNICOMM_Inst_Regs * unicomm
)

Setup LIN counter control for sync field validation.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Enable LIN counter capture on rising RX edge. Enable LIN counter capture on falling RX edge. Enable LIN counter clearing on RX falling edge. Enable LIN counter.

function DL_UART_enableLINReceptionCountControl

__STATIC_INLINE void DL_UART_enableLINReceptionCountControl(
    DL_UNICOMM_Inst_Regs * unicomm
)

Setup LIN counter control for LIN reception.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Enable count while low signal on RXD. Enable LIN counter clearing on RXD falling edge. Enable LIN counter.

function DL_UART_isLINCounterCompareMatchEnabled

__STATIC_INLINE bool DL_UART_isLINCounterCompareMatchEnabled(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if LIN counter compare match mode is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true LIN counter compare match mode is enabled

  • false LIN counter compare match mode is disabled

Return: The status of counter compare match mode

function DL_UART_disableLINCounterCompareMatch

__STATIC_INLINE void DL_UART_disableLINCounterCompareMatch(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disable LIN counter compare match mode.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

function DL_UART_setLINCounterCompareValue

__STATIC_INLINE void DL_UART_setLINCounterCompareValue(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint16_t value
)

Set the value to be compared to the LIN counter.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • value Value to be compared to the LIN counter for matching. Value between 0 - 65535.

See: DL_UART_enableLINCounterCompareMatch

Sets the value of LINC0 to be used to compare to the LIN counter. For use when LIN counter compare match mode is enabled.

function DL_UART_getLINFallingEdgeCaptureValue

__STATIC_INLINE uint16_t DL_UART_getLINFallingEdgeCaptureValue(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the LINC0 counter value.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 - 65535 The LINC0 counter value

See:

Return: The LINC0 counter value

Captures current LINCTR value on RXD falling edge.

If capture is enabled with DL_UART_enableLINFallingEdgeCapture, a capture can generate a LINC0 interrupt. If compare mode is enabled with DL_UART_enableLINCounterCompareMatch, a counter match can generate a LINC0 interrupt.

function DL_UART_getLINRisingEdgeCaptureValue

__STATIC_INLINE uint16_t DL_UART_getLINRisingEdgeCaptureValue(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the LINC1 counter value.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0 - 65535 The LINC1 counter value

See: DL_UART_enableLINRisingEdgeCapture

Return: The LINC1 counter value

Captures current LINCTR value on RXD rising edge. For use when LIN rising edge capture is enabled. It can generate a LINC1 interrupt on capture.

function DL_UART_setAddressMask

__STATIC_INLINE void DL_UART_setAddressMask(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t addressMask
)

Set the address mask for DALI, 9-bit, or Idle-Line mode.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • addressMask The address mask to set

The address bits are masked to create a set of addresses to be matched with the received address byte.

A 0 bit in the MSK bitfield configures that the corresponding bit in the ADDR bitfield of the ADDR register is don’t care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the ADDR register must match.

Used in DALI, UART 9-Bit or Idle-Line mode.

function DL_UART_getAddressMask

__STATIC_INLINE uint32_t DL_UART_getAddressMask(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the address mask being used.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0-255 The address mask

Return: The address mask being used

The address bits are masked to create a set of addresses to be matched with the received address byte.

A 0 bit in the MSK bitfield configures that the corresponding bit in the ADDR bitfield of the ADDR register is don’t care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the ADDR register must match.

Used in DALI, UART 9-Bit or Idle-Line mode.

function DL_UART_setAddress

__STATIC_INLINE void DL_UART_setAddress(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t address
)

Set the address.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • address The address to set

Used to write the specific address that should be matched with the receiving byte when the Address Mask (AMASK) is set to FFh. This register is used in conjunction with AMASK to form a match for address-byte received.

Used in DALI, UART 9-Bit or Idle-Line mode.

function DL_UART_getAddress

__STATIC_INLINE uint32_t DL_UART_getAddress(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get the address being used.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • 0-255 The address being used

Return: The address being used

Used to write the specific address that should be matched with the receiving byte when the Address Mask (AMASK) is set to FFh. This register is used in conjunction with AMASK to form a match for address-byte received.

Used in DALI, UART 9-Bit or Idle-Line mode.

function DL_UART_enableInterrupt

__STATIC_INLINE void DL_UART_enableInterrupt(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Enable UART interrupts.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to enable. Bitwise OR of [DL_UART_INTERRUPT].

function DL_UART_disableInterrupt

__STATIC_INLINE void DL_UART_disableInterrupt(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Disable UART interrupts.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to disable. Bitwise OR of [DL_UART_INTERRUPT].

function DL_UART_getEnabledInterrupts

__STATIC_INLINE uint32_t DL_UART_getEnabledInterrupts(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Check which UART interrupts are enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_UART_INTERRUPT].

Returns:

  • Bitwise OR of [DL_UART_INTERRUPT] values

Return: Which of the requested UART interrupts are enabled

function DL_UART_getEnabledInterruptStatus

__STATIC_INLINE uint32_t DL_UART_getEnabledInterruptStatus(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Check interrupt flag of enabled UART interrupts.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_UART_INTERRUPT].

Returns:

  • Bitwise OR of [DL_UART_INTERRUPT] values

See: DL_UART_enableInterrupt

Return: Which of the requested UART interrupts are pending

Checks if any of the UART interrupts that were previously enabled are pending.

function DL_UART_getRawInterruptStatus

__STATIC_INLINE uint32_t DL_UART_getRawInterruptStatus(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Check interrupt flag of any UART interrupt.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_UART_INTERRUPT].

Returns:

  • Bitwise OR of [DL_UART_INTERRUPT] values

Return: Which of the requested UART interrupts are pending

Checks if any of the UART interrupts are pending. Interrupts do not have to be previously enabled.

function DL_UART_getPendingInterrupt

__STATIC_INLINE DL_UART_IIDX DL_UART_getPendingInterrupt(
    DL_UNICOMM_Inst_Regs * unicomm
)

Get highest priority pending UART interrupt.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • TBD

Return: The highest priority pending UART interrupt

Checks if any of the UART interrupts are pending. Interrupts do not have to be previously enabled.

function DL_UART_clearInterruptStatus

__STATIC_INLINE void DL_UART_clearInterruptStatus(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Clear pending UART interrupts.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to clear. Bitwise OR of [DL_UART_INTERRUPT].

function DL_UART_changeConfig

__STATIC_INLINE void DL_UART_changeConfig(
    DL_UNICOMM_Inst_Regs * unicomm
)

Prepares the UART to change the configuration.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Postcondition: After calling this API, the user must be re-enabled by calling DL_UART_enable.

If the UART has already been enabled, then it is recommended to call this function before calling other APIs that make changes to the CTL0 register. If changes are made to the CTL0 register without disabling the UNICOMMUART, then results are unpredictable. This API performs the following:

  1. Disable the UNICOMMUART.

  2. Wait for the end of transmission or reception of the current character.

  3. Flush the transmit FIFO by clearing bit FEN in the UART control register CTL0.

function DL_UART_transmitDataBlocking

void DL_UART_transmitDataBlocking(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint8_t data
)

Blocks to ensure transmit is ready before sending data.

Parameters:

  • unicomm pointer to the register overlay for the peripheral

  • data data to send

See:

Puts the data into the TX FIFO after blocking to ensure the TX FIFO is not full. Will wait indefintely until there is space in the TX FIFO. See related APIs for additional transmit options.

Can be used for any data transfers that are less than or equal to 8 bits.

function DL_UART_receiveDataBlocking

uint8_t DL_UART_receiveDataBlocking(
    DL_UNICOMM_Inst_Regs * unicomm
)

Blocks to ensure receive is ready before reading data.

Parameters:

  • unicomm pointer to the register overlay for the peripheral

See:

Return: The data in the RX FIFO

Reads the data from the RX FIFO after blocking to ensure the RX FIFO is not empty. Will wait indefintely until there is data in the RX FIFO. See related APIs for additional receive options.

Can be used for any data transfers that are less than or equal to 8 bits.

function DL_UART_transmitDataCheck

bool DL_UART_transmitDataCheck(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint8_t data
)

Checks the TX FIFO before trying to transmit data.

Parameters:

  • unicomm pointer to the register overlay for the peripheral

  • data data to send

Returns:

  • true if data was added to the TX FIFO

  • false if the TX FIFO was full and data was not added

See:

Return: If the transmit occurred

Checks if the TX FIFO is already full before trying to add new data to the FIFO. Exits immediately if full rather than trying to block. See related APIs for additional transmit options.

Can be used for any data transfers that are less than or equal to 8 bits.

function DL_UART_receiveDataCheck

bool DL_UART_receiveDataCheck(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint8_t * buffer
)

Checks the RX FIFO before trying to transmit data.

Parameters:

  • unicomm pointer to the register overlay for the peripheral

  • buffer a buffer to write the received data into

Returns:

  • true if data was read from the RX FIFO

  • false if the RX FIFO was empty and data was not read

See:

Return: If the receive occurred

Checks if the RX FIFO is already empty before trying to read new data from the FIFO. Exits immediately if empty rather than trying to block. See related APIs for additional receive options.

Can be used for any data transfers that are less than or equal to 8 bits.

function DL_UART_drainRXFIFO

uint32_t DL_UART_drainRXFIFO(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint8_t * buffer,
    uint32_t maxCount
)

Read all available data out of the RX FIFO using 8 bit access.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • buffer Buffer to write received data into

  • maxCount Max number of bytes to read from the RX FIFO

Return: Number of bytes read from the RX FIFO

function DL_UART_fillTXFIFO

uint32_t DL_UART_fillTXFIFO(
    DL_UNICOMM_Inst_Regs * unicomm,
    const uint8_t * buffer,
    uint32_t count
)

Fill the TX FIFO until full using 8 bit access.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • buffer Buffer of data to write to the TX FIFO

  • count Max number of bytes to write to the TX FIFO

Return: Number of bytes written to the TX FIFO

Continuously write data into the TX FIFO until it is filled up or count has been reached.

function DL_UART_enableDMAReceiveEvent

__STATIC_INLINE void DL_UART_enableDMAReceiveEvent(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interrupt
)

Enable UART interrupt for triggering the DMA receive event.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interrupt Interrupt to enable as the trigger condition for the DMA. One of [DL_UART_DMA_INTERRUPT_RX].

Note: Only one interrupt source should be enabled at a time.

Enables the UART interrupt to be used as the condition to generate an event to directly trigger the DMA. This API configures the DMA_TRIG_RX register, which is the event publisher used for triggering the DMA to do a receive data transfer.

function DL_UART_enableDMATransmitEvent

__STATIC_INLINE void DL_UART_enableDMATransmitEvent(
    DL_UNICOMM_Inst_Regs * unicomm
)

Enable UART interrupt for triggering the DMA transmit event.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Note: DMA_TRIG_TX only has one transmit interrupt source

Enables the UART interrupt to be used as the condition to generate an event to directly trigger the DMA. This API configures the DMA_TRIG_TX register, which is the event publisher used for triggering the DMA to do a transmit data transfer.

function DL_UART_disableDMAReceiveEvent

__STATIC_INLINE void DL_UART_disableDMAReceiveEvent(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interrupt
)

Disables UART interrupt from triggering the DMA receive event.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interrupt Interrupt to disable as the trigger condition for the DMA. One of [DL_UART_DMA_INTERRUPT_RX].

Disables the UART interrupt as the condition to generate an event to directly trigger the DMA. This API configures the DMA_TRIG_RX register, which is the event publisher used for triggering the DMA to do a receive data transfer.

function DL_UART_disableDMATransmitEvent

__STATIC_INLINE void DL_UART_disableDMATransmitEvent(
    DL_UNICOMM_Inst_Regs * unicomm
)

Disables UART interrupt from triggering the DMA transmit event.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Note: DMA_TRIG_TX only has one transmit interrupt source

Disables the UART interrupt as the condition to generate an event to directly trigger the DMA. This API configures the DMA_TRIG_TX register, which is the event publisher used for triggering the DMA to do a transmit data transfer.

function DL_UART_getEnabledDMAReceiveEvent

__STATIC_INLINE uint32_t DL_UART_getEnabledDMAReceiveEvent(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Check which UART interrupt for DMA receive events is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to check Bitwise OR of [DL_UART_DMA_INTERRUPT_RX].

Returns:

  • One of [DL_UART_DMA_INTERRUPT_RX]

Return: Which of the requested UART interrupts is enabled

This API checks the DMA_TRIG_RX register, which is the event publisher used for triggering the DMA to do a receive data transfer.

function DL_UART_getEnabledDMATransmitEvent

__STATIC_INLINE uint32_t DL_UART_getEnabledDMATransmitEvent(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check if UART interrupt for DMA transmit event is enabled.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • DL_UART_DMA_INTERRUPT_TX if enabled, 0 if not enabled

Return: The requested UART interrupt status

This API checks the DMA_TRIG_TX register, which is the event publisher used for triggering the DMA to do a transmit data transfer.

function DL_UART_getEnabledDMAReceiveEventStatus

__STATIC_INLINE uint32_t DL_UART_getEnabledDMAReceiveEventStatus(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Check interrupt flag of enabled UART interrupt for DMA receive event.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_UART_DMA_INTERRUPT_RX].

Returns:

  • One of [DL_UART_DMA_INTERRUPT_RX]

See: DL_UART_enableDMAReceiveEvent

Return: The requested UART interrupt status

Checks if any of the UART interrupts for the DMA receive event that were previously enabled are pending. This API checks the DMA_TRIG_RX register, which is the event publisher used for triggering the DMA to do a receive data transfer.

function DL_UART_getEnabledDMATransmitEventStatus

__STATIC_INLINE uint32_t DL_UART_getEnabledDMATransmitEventStatus(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check interrupt flag of enabled UART interrupt for DMA transmit event.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • DL_UART_DMA_INTERRUPT_TX if enabled, 0 if not enabled

See: DL_UART_enableDMATransmitEvent

Return: The requested UART interrupt status

Checks if the UART interrupt for the DMA transmit event that was previously enabled is pending. This API checks the DMA_TRIG_TX register, which is the event publisher used for triggering the DMA to do a transmit data transfer.

function DL_UART_getRawDMAReceiveEventStatus

__STATIC_INLINE uint32_t DL_UART_getRawDMAReceiveEventStatus(
    DL_UNICOMM_Inst_Regs * unicomm,
    uint32_t interruptMask
)

Check interrupt flag of any UART interrupt for DMA receive event.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_UART_DMA_INTERRUPT_RX].

Returns:

  • Bitwise OR of [DL_UART_DMA_INTERRUPT_RX] values

Return: Which of the requested UART interrupts are pending

Checks if any of the UART interrupts for DMA receive event are pending. Interrupts do not have to be previously enabled. This API checks the DMA_TRIG_RX register, which is the event publisher used for triggering the DMA to do a receive data transfer.

function DL_UART_getRawDMATransmitEventStatus

__STATIC_INLINE uint32_t DL_UART_getRawDMATransmitEventStatus(
    DL_UNICOMM_Inst_Regs * unicomm
)

Check interrupt flag of any UART interrupt for DMA transmit event.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • DL_UART_DMA_INTERRUPT_TX if enabled, 0 if not enabled

Return: The requested UART interrupt status

Checks if any of the UART interrupts for DMA transmit event are pending. Interrupts do not have to be previously enabled. This API checks the DMA_TRIG_TX register, which is the event publisher used for triggering the DMA to do a transmit data transfer.

function DL_UART_enableFlushRxFifo

__STATIC_INLINE void DL_UART_enableFlushRxFifo(
    DL_UNICOMM_Inst_Regs * unicomm
)

Initiate a flush (clear) of the RX FIFO.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See:

Sets the RXCLR bit in the IFLS register to trigger a hardware clear of the RX FIFO. Poll DL_UART_isRxFifoClearDone to check when the clear has completed, then call DL_UART_disableFlushRxFifo to deassert the clear request.

function DL_UART_disableFlushRxFifo

__STATIC_INLINE void DL_UART_disableFlushRxFifo(
    DL_UNICOMM_Inst_Regs * unicomm
)

Deassert the RX FIFO flush request.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See:

Clears the RXCLR bit in the IFLS register after the RX FIFO clear has completed.

function DL_UART_enableFlushTxFifo

__STATIC_INLINE void DL_UART_enableFlushTxFifo(
    DL_UNICOMM_Inst_Regs * unicomm
)

Initiate a flush (clear) of the TX FIFO.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See:

Sets the TXCLR bit in the IFLS register to trigger a hardware clear of the TX FIFO. Poll DL_UART_isTxFifoClearDone to check when the clear has completed, then call DL_UART_disableFlushTxFifo to deassert the clear request.

function DL_UART_disableFlushTxFifo

__STATIC_INLINE void DL_UART_disableFlushTxFifo(
    DL_UNICOMM_Inst_Regs * unicomm
)

Deassert the TX FIFO flush request.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

See:

Clears the TXCLR bit in the IFLS register after the TX FIFO clear has completed.

function DL_UART_isRxFifoClearDone

__STATIC_INLINE bool DL_UART_isRxFifoClearDone(
    const DL_UNICOMM_Inst_Regs * unicomm
)

Check if the RX FIFO hardware clear has completed.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true RX FIFO clear is complete

  • false RX FIFO clear is still in progress

See:

Return: Whether the RX FIFO clear is complete

Reads the RXCLR status bit in the STAT register. This bit is set by hardware once the RX FIFO clear initiated by DL_UART_enableFlushRxFifo is complete.

function DL_UART_isTxFifoClearDone

__STATIC_INLINE bool DL_UART_isTxFifoClearDone(
    const DL_UNICOMM_Inst_Regs * unicomm
)

Check if the TX FIFO hardware clear has completed.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

Returns:

  • true TX FIFO clear is complete

  • false TX FIFO clear is still in progress

See:

Return: Whether the TX FIFO clear is complete

Reads the TXCLR status bit in the STAT register. This bit is set by hardware once the TX FIFO clear initiated by DL_UART_enableFlushTxFifo is complete.

function DL_UART_saveConfiguration

bool DL_UART_saveConfiguration(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_backupConfig * ptr
)

Save UART configuration before entering a power loss state.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • ptr Configuration backup setup structure. See DL_UART_backupConfig.

Returns:

  • FALSE if a configuration already exists in ptr (will not be overwritten). TRUE if a configuration was successfully saved

function DL_UART_restoreConfiguration

bool DL_UART_restoreConfiguration(
    DL_UNICOMM_Inst_Regs * unicomm,
    DL_UART_backupConfig * ptr
)

Restore UART configuration after leaving a power loss state.

Parameters:

  • unicomm Pointer to the register overlay for the peripheral

  • ptr Configuration backup setup structure. See DL_UART_backupConfig.

Returns:

  • FALSE if a configuration does not exist in ptr (will not be loaded). TRUE if a configuration successfully loaded

Macros Documentation

define DL_UART_MAIN_INTERRUPT_DMA_DONE_TX

#define DL_UART_MAIN_INTERRUPT_DMA_DONE_TX DL_UART_INTERRUPT_DMA_DONE_TX

Redirects to DL_UART_INTERRUPT_DMA_DONE_TX

define DL_UART_MAIN_INTERRUPT_DMA_DONE_RX

#define DL_UART_MAIN_INTERRUPT_DMA_DONE_RX DL_UART_INTERRUPT_DMA_DONE_RX

Redirects to DL_UART_INTERRUPT_DMA_DONE_RX

define DL_UART_MAIN_INTERRUPT_CTS_DONE

#define DL_UART_MAIN_INTERRUPT_CTS_DONE DL_UART_INTERRUPT_CTS_DONE

Redirects to DL_UART_INTERRUPT_CTS_DONE

define DL_UART_MAIN_INTERRUPT_EOT_DONE

#define DL_UART_MAIN_INTERRUPT_EOT_DONE DL_UART_INTERRUPT_EOT_DONE

Redirects to DL_UART_INTERRUPT_EOT_DONE

define DL_UART_MAIN_INTERRUPT_TX

#define DL_UART_MAIN_INTERRUPT_TX DL_UART_INTERRUPT_TX

Redirects to DL_UART_INTERRUPT_TX

define DL_UART_MAIN_INTERRUPT_RX

#define DL_UART_MAIN_INTERRUPT_RX DL_UART_INTERRUPT_RX

Redirects to DL_UART_INTERRUPT_RX

define DL_UART_MAIN_INTERRUPT_LTOUT

#define DL_UART_MAIN_INTERRUPT_LTOUT DL_UART_INTERRUPT_LTOUT

Redirects to DL_UART_INTERRUPT_LTOUT

define DL_UART_MAIN_INTERRUPT_RXD_POS_EDGE

#define DL_UART_MAIN_INTERRUPT_RXD_POS_EDGE DL_UART_INTERRUPT_RXD_POS_EDGE

Redirects to DL_UART_INTERRUPT_RXD_POS_EDGE

define DL_UART_MAIN_INTERRUPT_RXD_NEG_EDGE

#define DL_UART_MAIN_INTERRUPT_RXD_NEG_EDGE DL_UART_INTERRUPT_RXD_NEG_EDGE

Redirects to DL_UART_INTERRUPT_RXD_NEG_EDGE

define DL_UART_MAIN_INTERRUPT_OVERRUN_ERROR

#define DL_UART_MAIN_INTERRUPT_OVERRUN_ERROR DL_UART_INTERRUPT_OVERRUN_ERROR

Redirects to DL_UART_INTERRUPT_OVERRUN_ERROR

define DL_UART_MAIN_INTERRUPT_BREAK_ERROR

#define DL_UART_MAIN_INTERRUPT_BREAK_ERROR DL_UART_INTERRUPT_BREAK_ERROR

Redirects to DL_UART_INTERRUPT_BREAK_ERROR

define DL_UART_MAIN_INTERRUPT_PARITY_ERROR

#define DL_UART_MAIN_INTERRUPT_PARITY_ERROR DL_UART_INTERRUPT_PARITY_ERROR

Redirects to DL_UART_INTERRUPT_PARITY_ERROR

define DL_UART_MAIN_INTERRUPT_FRAMING_ERROR

#define DL_UART_MAIN_INTERRUPT_FRAMING_ERROR DL_UART_INTERRUPT_FRAMING_ERROR

Redirects to DL_UART_INTERRUPT_FRAMING_ERROR

define DL_UART_MAIN_INTERRUPT_RX_TIMEOUT_ERROR

#define DL_UART_MAIN_INTERRUPT_RX_TIMEOUT_ERROR DL_UART_INTERRUPT_RX_TIMEOUT_ERROR

Redirects to DL_UART_INTERRUPT_RX_TIMEOUT_ERROR

define DL_UART_MAIN_INTERRUPT_NOISE_ERROR

#define DL_UART_MAIN_INTERRUPT_NOISE_ERROR DL_UART_INTERRUPT_NOISE_ERROR

Redirects to DL_UART_INTERRUPT_NOISE_ERROR

define DL_UART_MAIN_IIDX_DMA_DONE_TX

#define DL_UART_MAIN_IIDX_DMA_DONE_TX DL_UART_IIDX_DMA_DONE_TX

Redirects to DL_UART_IIDX_DMA_DONE_TX

define DL_UART_MAIN_IIDX_DMA_DONE_RX

#define DL_UART_MAIN_IIDX_DMA_DONE_RX DL_UART_IIDX_DMA_DONE_RX

Redirects to DL_UART_IIDX_DMA_DONE_RX

define DL_UART_MAIN_IIDX_CTS_DONE

#define DL_UART_MAIN_IIDX_CTS_DONE DL_UART_IIDX_CTS_DONE

Redirects to DL_UART_IIDX_CTS_DONE

define DL_UART_MAIN_IIDX_EOT_DONE

#define DL_UART_MAIN_IIDX_EOT_DONE DL_UART_IIDX_EOT_DONE

Redirects to DL_UART_IIDX_EOT_DONE

define DL_UART_MAIN_IIDX_TX

#define DL_UART_MAIN_IIDX_TX DL_UART_IIDX_TX

Redirects to DL_UART_IIDX_TX

define DL_UART_MAIN_IIDX_RX

#define DL_UART_MAIN_IIDX_RX DL_UART_IIDX_RX

Redirects to DL_UART_IIDX_RX

define DL_UART_MAIN_IIDX_RXD_POS_EDGE

#define DL_UART_MAIN_IIDX_RXD_POS_EDGE DL_UART_IIDX_RXD_POS_EDGE

Redirects to DL_UART_IIDX_RXD_POS_EDGE

define DL_UART_MAIN_IIDX_RXD_NEG_EDGE

#define DL_UART_MAIN_IIDX_RXD_NEG_EDGE DL_UART_IIDX_RXD_NEG_EDGE

Redirects to DL_UART_IIDX_RXD_NEG_EDGE

define DL_UART_MAIN_IIDX_OVERRUN_ERROR

#define DL_UART_MAIN_IIDX_OVERRUN_ERROR DL_UART_IIDX_OVERRUN_ERROR

Redirects to DL_UART_IIDX_OVERRUN_ERROR

define DL_UART_MAIN_IIDX_BREAK_ERROR

#define DL_UART_MAIN_IIDX_BREAK_ERROR DL_UART_IIDX_BREAK_ERROR

Redirects to DL_UART_IIDX_BREAK_ERROR

define DL_UART_MAIN_IIDX_PARITY_ERROR

#define DL_UART_MAIN_IIDX_PARITY_ERROR DL_UART_IIDX_PARITY_ERROR

Redirects to DL_UART_IIDX_PARITY_ERROR

define DL_UART_MAIN_IIDX_FRAMING_ERROR

#define DL_UART_MAIN_IIDX_FRAMING_ERROR DL_UART_IIDX_FRAMING_ERROR

Redirects to DL_UART_IIDX_FRAMING_ERROR

define DL_UART_MAIN_IIDX_RX_TIMEOUT_ERROR

#define DL_UART_MAIN_IIDX_RX_TIMEOUT_ERROR DL_UART_IIDX_RX_TIMEOUT_ERROR

Redirects to DL_UART_IIDX_RX_TIMEOUT_ERROR

define DL_UART_MAIN_IIDX_NOISE_ERROR

#define DL_UART_MAIN_IIDX_NOISE_ERROR DL_UART_IIDX_NOISE_ERROR

Redirects to DL_UART_IIDX_NOISE_ERROR

define DL_UART_MAIN_IIDX_NO_INTERRUPT

#define DL_UART_MAIN_IIDX_NO_INTERRUPT DL_UART_IIDX_NO_INTERRUPT

Redirects to DL_UART_IIDX_NO_INTERRUPT

define DL_UART_MAIN_DMA_INTERRUPT_RX

#define DL_UART_MAIN_DMA_INTERRUPT_RX DL_UART_DMA_INTERRUPT_RX

Redirects to [DL_UART_DMA_INTERRUPT_RX]

define DL_UART_MAIN_DMA_INTERRUPT_RX_TIMEOUT

#define DL_UART_MAIN_DMA_INTERRUPT_RX_TIMEOUT DL_UART_DMA_INTERRUPT_RX_TIMEOUT

Redirects to DL_UART_DMA_INTERRUPT_RX_TIMEOUT

define DL_UART_MAIN_DMA_INTERRUPT_TX

#define DL_UART_MAIN_DMA_INTERRUPT_TX DL_UART_DMA_INTERRUPT_TX

Redirects to DL_UART_DMA_INTERRUPT_TX

define DL_UART_MAIN_ERROR_OVERRUN

#define DL_UART_MAIN_ERROR_OVERRUN DL_UART_ERROR_OVERRUN

Redirects to DL_UART_ERROR_OVERRUN

define DL_UART_MAIN_ERROR_BREAK

#define DL_UART_MAIN_ERROR_BREAK DL_UART_ERROR_BREAK

Redirects to DL_UART_ERROR_BREAK

define DL_UART_MAIN_ERROR_PARITY

#define DL_UART_MAIN_ERROR_PARITY DL_UART_ERROR_PARITY

Redirects to DL_UART_ERROR_PARITY

define DL_UART_MAIN_ERROR_FRAMING

#define DL_UART_MAIN_ERROR_FRAMING DL_UART_ERROR_FRAMING

Redirects to DL_UART_ERROR_FRAMING

define DL_UART_MAIN_OVERSAMPLING_RATE_16X

#define DL_UART_MAIN_OVERSAMPLING_RATE_16X DL_UART_OVERSAMPLING_RATE_16X

Redirects to DL_UART_OVERSAMPLING_RATE_16X

define DL_UART_MAIN_OVERSAMPLING_RATE_8X

#define DL_UART_MAIN_OVERSAMPLING_RATE_8X DL_UART_OVERSAMPLING_RATE_8X

Redirects to DL_UART_OVERSAMPLING_RATE_8X

define DL_UART_MAIN_OVERSAMPLING_RATE_3X

#define DL_UART_MAIN_OVERSAMPLING_RATE_3X DL_UART_OVERSAMPLING_RATE_3X

Redirects to DL_UART_OVERSAMPLING_RATE_3X

define DL_UART_MAIN_PARITY_EVEN

#define DL_UART_MAIN_PARITY_EVEN DL_UART_PARITY_EVEN

Redirects to DL_UART_PARITY_EVEN

define DL_UART_MAIN_PARITY_ODD

#define DL_UART_MAIN_PARITY_ODD DL_UART_PARITY_ODD

Redirects to DL_UART_PARITY_ODD

define DL_UART_MAIN_PARITY_STICK_ONE

#define DL_UART_MAIN_PARITY_STICK_ONE DL_UART_PARITY_STICK_ONE

Redirects to DL_UART_PARITY_STICK_ONE

define DL_UART_MAIN_PARITY_STICK_ZERO

#define DL_UART_MAIN_PARITY_STICK_ZERO DL_UART_PARITY_STICK_ZERO

Redirects to DL_UART_PARITY_STICK_ZERO

define DL_UART_MAIN_PARITY_NONE

#define DL_UART_MAIN_PARITY_NONE DL_UART_PARITY_NONE

Redirects to DL_UART_PARITY_NONE

define DL_UART_MAIN_WORD_LENGTH_5_BITS

#define DL_UART_MAIN_WORD_LENGTH_5_BITS DL_UART_WORD_LENGTH_5_BITS

Redirects to DL_UART_WORD_LENGTH_5_BITS

define DL_UART_MAIN_WORD_LENGTH_6_BITS

#define DL_UART_MAIN_WORD_LENGTH_6_BITS DL_UART_WORD_LENGTH_6_BITS

Redirects to DL_UART_WORD_LENGTH_6_BITS

define DL_UART_MAIN_WORD_LENGTH_7_BITS

#define DL_UART_MAIN_WORD_LENGTH_7_BITS DL_UART_WORD_LENGTH_7_BITS

Redirects to DL_UART_WORD_LENGTH_7_BITS

define DL_UART_MAIN_WORD_LENGTH_8_BITS

#define DL_UART_MAIN_WORD_LENGTH_8_BITS DL_UART_WORD_LENGTH_8_BITS

Redirects to DL_UART_WORD_LENGTH_8_BITS

define DL_UART_MAIN_MODE_NORMAL

#define DL_UART_MAIN_MODE_NORMAL DL_UART_MODE_NORMAL

Redirects to DL_UART_MODE_NORMAL

define DL_UART_MAIN_MODE_RS485

#define DL_UART_MAIN_MODE_RS485 DL_UART_MODE_RS485

Redirects to DL_UART_MODE_RS485

define DL_UART_MAIN_MODE_IDLE_LINE

#define DL_UART_MAIN_MODE_IDLE_LINE DL_UART_MODE_IDLE_LINE

Redirects to DL_UART_MODE_IDLE_LINE

define DL_UART_MAIN_MODE_ADDR_9_BIT

#define DL_UART_MAIN_MODE_ADDR_9_BIT DL_UART_MODE_ADDR_9_BIT

Redirects to DL_UART_MODE_ADDR_9_BIT

define DL_UART_MAIN_DIRECTION_TX

#define DL_UART_MAIN_DIRECTION_TX DL_UART_DIRECTION_TX

Redirects to DL_UART_DIRECTION_TX

define DL_UART_MAIN_DIRECTION_RX

#define DL_UART_MAIN_DIRECTION_RX DL_UART_DIRECTION_RX

Redirects to DL_UART_DIRECTION_RX

define DL_UART_MAIN_DIRECTION_TX_RX

#define DL_UART_MAIN_DIRECTION_TX_RX DL_UART_DIRECTION_TX_RX

Redirects to DL_UART_DIRECTION_TX_RX

define DL_UART_MAIN_DIRECTION_NONE

#define DL_UART_MAIN_DIRECTION_NONE DL_UART_DIRECTION_NONE

Redirects to DL_UART_DIRECTION_NONE

define DL_UART_MAIN_CLOCK_BUSCLK

#define DL_UART_MAIN_CLOCK_BUSCLK DL_UART_CLOCK_BUSCLK

Redirects to DL_UART_CLOCK_BUSCLK

define DL_UART_MAIN_FLOW_CONTROL_RTS

#define DL_UART_MAIN_FLOW_CONTROL_RTS DL_UART_FLOW_CONTROL_RTS

Redirects to DL_UART_FLOW_CONTROL_RTS

define DL_UART_MAIN_FLOW_CONTROL_CTS

#define DL_UART_MAIN_FLOW_CONTROL_CTS DL_UART_FLOW_CONTROL_CTS

Redirects to DL_UART_FLOW_CONTROL_CTS

define DL_UART_MAIN_FLOW_CONTROL_RTS_CTS

#define DL_UART_MAIN_FLOW_CONTROL_RTS_CTS DL_UART_FLOW_CONTROL_RTS_CTS

Redirects to DL_UART_FLOW_CONTROL_RTS_CTS

define DL_UART_MAIN_FLOW_CONTROL_NONE

#define DL_UART_MAIN_FLOW_CONTROL_NONE DL_UART_FLOW_CONTROL_NONE

Redirects to DL_UART_FLOW_CONTROL_NONE

define DL_UART_MAIN_RTS_ASSERT

#define DL_UART_MAIN_RTS_ASSERT DL_UART_RTS_ASSERT

Redirects to DL_UART_RTS_ASSERT

define DL_UART_MAIN_RTS_DEASSERT

#define DL_UART_MAIN_RTS_DEASSERT DL_UART_RTS_DEASSERT

Redirects to DL_UART_RTS_DEASSERT

define DL_UART_MAIN_STOP_BITS_ONE

#define DL_UART_MAIN_STOP_BITS_ONE DL_UART_STOP_BITS_ONE

Redirects to DL_UART_STOP_BITS_ONE

define DL_UART_MAIN_STOP_BITS_TWO

#define DL_UART_MAIN_STOP_BITS_TWO DL_UART_STOP_BITS_TWO

Redirects to DL_UART_STOP_BITS_TWO

define DL_UART_MAIN_TXD_OUT_LOW

#define DL_UART_MAIN_TXD_OUT_LOW DL_UART_TXD_OUT_LOW

Redirects to DL_UART_TXD_OUT_LOW

define DL_UART_MAIN_TXD_OUT_HIGH

#define DL_UART_MAIN_TXD_OUT_HIGH DL_UART_TXD_OUT_HIGH

Redirects to DL_UART_TXD_OUT_HIGH

define DL_UART_MAIN_TX_FIFO_LEVEL_3_4_EMPTY

#define DL_UART_MAIN_TX_FIFO_LEVEL_3_4_EMPTY DL_UART_TX_FIFO_LEVEL_3_4_EMPTY

Redirects to DL_UART_TX_FIFO_LEVEL_3_4_EMPTY

define DL_UART_MAIN_TX_FIFO_LEVEL_1_4_EMPTY

#define DL_UART_MAIN_TX_FIFO_LEVEL_1_4_EMPTY DL_UART_TX_FIFO_LEVEL_1_4_EMPTY

Redirects to DL_UART_TX_FIFO_LEVEL_1_4_EMPTY

define DL_UART_MAIN_TX_FIFO_LEVEL_EMPTY

#define DL_UART_MAIN_TX_FIFO_LEVEL_EMPTY DL_UART_TX_FIFO_LEVEL_EMPTY

Redirects to DL_UART_TX_FIFO_LEVEL_EMPTY

define DL_UART_MAIN_RX_FIFO_LEVEL_FULL

#define DL_UART_MAIN_RX_FIFO_LEVEL_FULL DL_UART_RX_FIFO_LEVEL_FULL

Redirects to DL_UART_RX_FIFO_LEVEL_FULL

define DL_UART_MAIN_RX_FIFO_LEVEL_3_4_FULL

#define DL_UART_MAIN_RX_FIFO_LEVEL_3_4_FULL DL_UART_RX_FIFO_LEVEL_3_4_FULL

Redirects to DL_UART_RX_FIFO_LEVEL_3_4_FULL

define DL_UART_MAIN_RX_FIFO_LEVEL_1_2_FULL

#define DL_UART_MAIN_RX_FIFO_LEVEL_1_2_FULL DL_UART_RX_FIFO_LEVEL_1_2_FULL

Redirects to DL_UART_RX_FIFO_LEVEL_1_2_FULL

define DL_UART_MAIN_RX_FIFO_LEVEL_1_4_FULL

#define DL_UART_MAIN_RX_FIFO_LEVEL_1_4_FULL DL_UART_RX_FIFO_LEVEL_1_4_FULL

Redirects to DL_UART_RX_FIFO_LEVEL_1_4_FULL

define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_1

#define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_1 DL_UART_CLOCK_DIVIDE_RATIO_1

Redirects to DL_UART_CLOCK_DIVIDE_RATIO_1

define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_2

#define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_2 DL_UART_CLOCK_DIVIDE_RATIO_2

Redirects to DL_UART_CLOCK_DIVIDE_RATIO_2

define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_3

#define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_3 DL_UART_CLOCK_DIVIDE_RATIO_3

Redirects to DL_UART_CLOCK_DIVIDE_RATIO_3

define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_4

#define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_4 DL_UART_CLOCK_DIVIDE_RATIO_4

Redirects to DL_UART_CLOCK_DIVIDE_RATIO_4

define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_5

#define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_5 DL_UART_CLOCK_DIVIDE_RATIO_5

Redirects to DL_UART_CLOCK_DIVIDE_RATIO_5

define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_6

#define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_6 DL_UART_CLOCK_DIVIDE_RATIO_6

Redirects to DL_UART_CLOCK_DIVIDE_RATIO_6

define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_7

#define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_7 DL_UART_CLOCK_DIVIDE_RATIO_7

Redirects to DL_UART_CLOCK_DIVIDE_RATIO_7

define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_8

#define DL_UART_MAIN_CLOCK_DIVIDE_RATIO_8 DL_UART_CLOCK_DIVIDE_RATIO_8

Redirects to DL_UART_CLOCK_DIVIDE_RATIO_8

define DL_UART_Main_backupConfig

#define DL_UART_Main_backupConfig DL_UART_backupConfig

Redirects to DL_UART_backupConfig

define DL_UART_Main_saveConfiguration

#define DL_UART_Main_saveConfiguration DL_UART_saveConfiguration

Redirects to DL_UART_saveConfiguration

define DL_UART_Main_restoreConfiguration

#define DL_UART_Main_restoreConfiguration DL_UART_restoreConfiguration

Redirects to DL_UART_restoreConfiguration

define DL_UART_Main_Config

#define DL_UART_Main_Config DL_UART_Config

Redirects to DL_UART_Config

define DL_UART_Main_ClockConfig

#define DL_UART_Main_ClockConfig DL_UART_ClockConfig

Redirects to DL_UART_ClockConfig

define DL_UART_Main_init

#define DL_UART_Main_init DL_UART_init

Redirects to DL_UART_init

define DL_UART_Main_enablePower

#define DL_UART_Main_enablePower DL_UART_enablePower

Redirects to DL_UART_enablePower

define DL_UART_Main_disablePower

#define DL_UART_Main_disablePower DL_UART_disablePower

Redirects to DL_UART_disablePower

define DL_UART_Main_isPowerEnabled

#define DL_UART_Main_isPowerEnabled DL_UART_isPowerEnabled

Redirects to DL_UART_isPowerEnabled

define DL_UART_Main_reset

#define DL_UART_Main_reset DL_UART_reset

Redirects to DL_UART_reset

define DL_UART_Main_enable

#define DL_UART_Main_enable DL_UART_enable

Redirects to DL_UART_enable

define DL_UART_Main_isEnabled

#define DL_UART_Main_isEnabled DL_UART_isEnabled

Redirects to DL_UART_isEnabled

define DL_UART_Main_disable

#define DL_UART_Main_disable DL_UART_disable

Redirects to DL_UART_disable

define DL_UART_Main_setClockConfig

#define DL_UART_Main_setClockConfig DL_UART_setClockConfig

Redirects to DL_UART_setClockConfig

define DL_UART_Main_getClockConfig

#define DL_UART_Main_getClockConfig DL_UART_getClockConfig

Redirects to DL_UART_getClockConfig

define DL_UART_Main_configBaudRate

#define DL_UART_Main_configBaudRate DL_UART_configBaudRate

Redirects to DL_UART_configBaudRate

define DL_UART_Main_setOversampling

#define DL_UART_Main_setOversampling DL_UART_setOversampling

Redirects to DL_UART_setOversampling

define DL_UART_Main_getOversampling

#define DL_UART_Main_getOversampling DL_UART_getOversampling

Redirects to DL_UART_getOversampling

define DL_UART_Main_enableLoopbackMode

#define DL_UART_Main_enableLoopbackMode DL_UART_enableLoopbackMode

Redirects to DL_UART_enableLoopbackMode

define DL_UART_Main_isLoopbackModeEnabled

#define DL_UART_Main_isLoopbackModeEnabled DL_UART_isLoopbackModeEnabled

Redirects to DL_UART_isLoopbackModeEnabled

define DL_UART_Main_disableLoopbackMode

#define DL_UART_Main_disableLoopbackMode DL_UART_disableLoopbackMode

Redirects to DL_UART_disableLoopbackMode

define DL_UART_Main_setDirection

#define DL_UART_Main_setDirection DL_UART_setDirection

Redirects to DL_UART_setDirection

define DL_UART_Main_getDirection

#define DL_UART_Main_getDirection DL_UART_getDirection

Redirects to DL_UART_getDirection

define DL_UART_Main_enableMajorityVoting

#define DL_UART_Main_enableMajorityVoting DL_UART_enableMajorityVoting

Redirects to DL_UART_enableMajorityVoting

define DL_UART_Main_isMajorityVotingEnabled

#define DL_UART_Main_isMajorityVotingEnabled DL_UART_isMajorityVotingEnabled

Redirects to DL_UART_isMajorityVotingEnabled

define DL_UART_Main_disableMajorityVoting

#define DL_UART_Main_disableMajorityVoting DL_UART_disableMajorityVoting

Redirects to DL_UART_disableMajorityVoting

define DL_UART_Main_enableMSBFirst

#define DL_UART_Main_enableMSBFirst DL_UART_enableMSBFirst

Redirects to DL_UART_enableMSBFirst

define DL_UART_Main_isMSBFirstEnabled

#define DL_UART_Main_isMSBFirstEnabled DL_UART_isMSBFirstEnabled

Redirects to DL_UART_isMSBFirstEnabled

define DL_UART_Main_disableMSBFirst

#define DL_UART_Main_disableMSBFirst DL_UART_disableMSBFirst

Redirects to DL_UART_disableMSBFirst

define DL_UART_Main_enableTransmitPinManualControl

#define DL_UART_Main_enableTransmitPinManualControl DL_UART_enableTransmitPinManualControl

Redirects to DL_UART_enableTransmitPinManualControl

define DL_UART_Main_isTransmitPinManualControlEnabl

#define DL_UART_Main_isTransmitPinManualControlEnabl DL_UART_isTransmitPinManualControlEnabled

Redirects to DL_UART_isTransmitPinManualControlEnabled

define DL_UART_Main_disableTransmitPinManualControl

#define DL_UART_Main_disableTransmitPinManualControl DL_UART_disableTransmitPinManualControl

Redirects to DL_UART_disableTransmitPinManualControl

define DL_UART_Main_setTransmitPinManualOutput

#define DL_UART_Main_setTransmitPinManualOutput DL_UART_setTransmitPinManualOutput

Redirects to DL_UART_setTransmitPinManualOutput

define DL_UART_Main_getTransmitPinManualOutput

#define DL_UART_Main_getTransmitPinManualOutput DL_UART_getTransmitPinManualOutput

Redirects to DL_UART_getTransmitPinManualOutput

define DL_UART_Main_setCommunicationMode

#define DL_UART_Main_setCommunicationMode DL_UART_setCommunicationMode

Redirects to DL_UART_setCommunicationMode

define DL_UART_Main_getCommunicationMode

#define DL_UART_Main_getCommunicationMode DL_UART_getCommunicationMode

Redirects to DL_UART_getCommunicationMode

define DL_UART_Main_setFlowControl

#define DL_UART_Main_setFlowControl DL_UART_setFlowControl

Redirects to DL_UART_setFlowControl

define DL_UART_Main_getFlowControl

#define DL_UART_Main_getFlowControl DL_UART_getFlowControl

Redirects to DL_UART_getFlowControl

define DL_UART_Main_setRTSOutput

#define DL_UART_Main_setRTSOutput DL_UART_setRTSOutput

Redirects to DL_UART_setRTSOutput

define DL_UART_Main_enableFIFOs

#define DL_UART_Main_enableFIFOs DL_UART_enableFIFOs

Redirects to DL_UART_enableFIFOs

define DL_UART_Main_disableFIFOs

#define DL_UART_Main_disableFIFOs DL_UART_disableFIFOs

Redirects to DL_UART_disableFIFOs

define DL_UART_Main_isFIFOsEnabled

#define DL_UART_Main_isFIFOsEnabled DL_UART_isFIFOsEnabled

Redirects to DL_UART_isFIFOsEnabled

define DL_UART_Main_isParityEnabled

#define DL_UART_Main_isParityEnabled DL_UART_isParityEnabled

Redirects to DL_UART_isParityEnabled

define DL_UART_Main_setParityMode

#define DL_UART_Main_setParityMode DL_UART_setParityMode

Redirects to DL_UART_setParityMode

define DL_UART_Main_getParityMode

#define DL_UART_Main_getParityMode DL_UART_getParityMode

Redirects to DL_UART_getParityMode

define DL_UART_Main_setStopBits

#define DL_UART_Main_setStopBits DL_UART_setStopBits

Redirects to DL_UART_setStopBits

define DL_UART_Main_getStopBits

#define DL_UART_Main_getStopBits DL_UART_getStopBits

Redirects to DL_UART_getStopBits

define DL_UART_Main_setWordLength

#define DL_UART_Main_setWordLength DL_UART_setWordLength

Redirects to DL_UART_setWordLength

define DL_UART_Main_getWordLength

#define DL_UART_Main_getWordLength DL_UART_getWordLength

Redirects to DL_UART_getWordLength

define DL_UART_Main_enableSendIdlePattern

#define DL_UART_Main_enableSendIdlePattern DL_UART_enableSendIdlePattern

Redirects to DL_UART_enableSendIdlePattern

define DL_UART_Main_disableSendIdlePattern

#define DL_UART_Main_disableSendIdlePattern DL_UART_disableSendIdlePattern

Redirects to DL_UART_disableSendIdlePattern

define DL_UART_Main_isSendIdlePatternEnabled

#define DL_UART_Main_isSendIdlePatternEnabled DL_UART_isSendIdlePatternEnabled

Redirects to DL_UART_isSendIdlePatternEnabled

define DL_UART_Main_setExternalDriverSetup

#define DL_UART_Main_setExternalDriverSetup DL_UART_setExternalDriverSetup

Redirects to DL_UART_setExternalDriverSetup

define DL_UART_Main_getExternalDriverSetup

#define DL_UART_Main_getExternalDriverSetup DL_UART_getExternalDriverSetup

Redirects to DL_UART_getExternalDriverSetup

define DL_UART_Main_setExternalDriverHold

#define DL_UART_Main_setExternalDriverHold DL_UART_setExternalDriverHold

Redirects to DL_UART_setExternalDriverHold

define DL_UART_Main_getExternalDriverHold

#define DL_UART_Main_getExternalDriverHold DL_UART_getExternalDriverHold

Redirects to DL_UART_getExternalDriverHold

define DL_UART_Main_isBusy

#define DL_UART_Main_isBusy DL_UART_isBusy

Redirects to DL_UART_isBusy

define DL_UART_Main_isRXFIFOEmpty

#define DL_UART_Main_isRXFIFOEmpty DL_UART_isRXFIFOEmpty

Redirects to DL_UART_isRXFIFOEmpty

define DL_UART_Main_isRXFIFOFull

#define DL_UART_Main_isRXFIFOFull DL_UART_isRXFIFOFull

Redirects to DL_UART_isRXFIFOFull

define DL_UART_Main_isTXFIFOEmpty

#define DL_UART_Main_isTXFIFOEmpty DL_UART_isTXFIFOEmpty

Redirects to DL_UART_isTXFIFOEmpty

define DL_UART_Main_isTXFIFOFull

#define DL_UART_Main_isTXFIFOFull DL_UART_isTXFIFOFull

Redirects to DL_UART_isTXFIFOFull

define DL_UART_Main_isClearToSend

#define DL_UART_Main_isClearToSend DL_UART_isClearToSend

Redirects to DL_UART_isClearToSend

define DL_UART_Main_isIdleModeDetected

#define DL_UART_Main_isIdleModeDetected DL_UART_isIdleModeDetected

Redirects to DL_UART_isIdleModeDetected

define DL_UART_Main_setTXFIFOThreshold

#define DL_UART_Main_setTXFIFOThreshold DL_UART_setTXFIFOThreshold

Redirects to DL_UART_setTXFIFOThreshold

define DL_UART_Main_getTXFIFOThreshold

#define DL_UART_Main_getTXFIFOThreshold DL_UART_getTXFIFOThreshold

Redirects to DL_UART_getTXFIFOThreshold

define DL_UART_Main_setRXFIFOThreshold

#define DL_UART_Main_setRXFIFOThreshold DL_UART_setRXFIFOThreshold

Redirects to DL_UART_setRXFIFOThreshold

define DL_UART_Main_getRXFIFOThreshold

#define DL_UART_Main_getRXFIFOThreshold DL_UART_getRXFIFOThreshold

Redirects to DL_UART_getRXFIFOThreshold

define DL_UART_Main_setRXInterruptTimeout

#define DL_UART_Main_setRXInterruptTimeout DL_UART_setRXInterruptTimeout

Redirects to DL_UART_setRXInterruptTimeout

define DL_UART_Main_getRXInterruptTimeout

#define DL_UART_Main_getRXInterruptTimeout DL_UART_getRXInterruptTimeout

Redirects to DL_UART_getRXInterruptTimeout

define DL_UART_Main_getIntegerBaudRateDivisor

#define DL_UART_Main_getIntegerBaudRateDivisor DL_UART_getIntegerBaudRateDivisor

Redirects to DL_UART_getIntegerBaudRateDivisor

define DL_UART_Main_getFractionalBaudRateDivisor

#define DL_UART_Main_getFractionalBaudRateDivisor DL_UART_getFractionalBaudRateDivisor

Redirects to DL_UART_getFractionalBaudRateDivisor

define DL_UART_Main_setBaudRateDivisor

#define DL_UART_Main_setBaudRateDivisor DL_UART_setBaudRateDivisor

Redirects to DL_UART_setBaudRateDivisor

define DL_UART_Main_transmitData

#define DL_UART_Main_transmitData DL_UART_transmitData

Redirects to DL_UART_transmitData

define DL_UART_Main_receiveData

#define DL_UART_Main_receiveData DL_UART_receiveData

Redirects to DL_UART_receiveData

define DL_UART_Main_getErrorStatus

#define DL_UART_Main_getErrorStatus DL_UART_getErrorStatus

Redirects to DL_UART_getErrorStatus

define DL_UART_Main_enableInterrupt

#define DL_UART_Main_enableInterrupt DL_UART_enableInterrupt

Redirects to DL_UART_enableInterrupt

define DL_UART_Main_disableInterrupt

#define DL_UART_Main_disableInterrupt DL_UART_disableInterrupt

Redirects to DL_UART_disableInterrupt

define DL_UART_Main_getEnabledInterrupts

#define DL_UART_Main_getEnabledInterrupts DL_UART_getEnabledInterrupts

Redirects to DL_UART_getEnabledInterrupts

define DL_UART_Main_getEnabledInterruptStatus

#define DL_UART_Main_getEnabledInterruptStatus DL_UART_getEnabledInterruptStatus

Redirects to DL_UART_getEnabledInterruptStatus

define DL_UART_Main_getRawInterruptStatus

#define DL_UART_Main_getRawInterruptStatus DL_UART_getRawInterruptStatus

Redirects to DL_UART_getRawInterruptStatus

define DL_UART_Main_getPendingInterrupt

#define DL_UART_Main_getPendingInterrupt DL_UART_getPendingInterrupt

Redirects to DL_UART_getPendingInterrupt

define DL_UART_Main_clearInterruptStatus

#define DL_UART_Main_clearInterruptStatus DL_UART_clearInterruptStatus

Redirects to DL_UART_clearInterruptStatus

define DL_UART_Main_changeConfig

#define DL_UART_Main_changeConfig DL_UART_changeConfig

Redirects to DL_UART_changeConfig

define DL_UART_Main_transmitDataBlocking

#define DL_UART_Main_transmitDataBlocking DL_UART_transmitDataBlocking

Redirects to DL_UART_transmitDataBlocking

define DL_UART_Main_receiveDataBlocking

#define DL_UART_Main_receiveDataBlocking DL_UART_receiveDataBlocking

Redirects to DL_UART_receiveDataBlocking

define DL_UART_Main_transmitDataCheck

#define DL_UART_Main_transmitDataCheck DL_UART_transmitDataCheck

Redirects to DL_UART_transmitDataCheck

define DL_UART_Main_receiveDataCheck

#define DL_UART_Main_receiveDataCheck DL_UART_receiveDataCheck

Redirects to DL_UART_receiveDataCheck

define DL_UART_Main_drainRXFIFO

#define DL_UART_Main_drainRXFIFO DL_UART_drainRXFIFO

Redirects to DL_UART_drainRXFIFO

define DL_UART_Main_fillTXFIFO

#define DL_UART_Main_fillTXFIFO DL_UART_fillTXFIFO

Redirects to DL_UART_fillTXFIFO

define DL_UART_Main_enableDMAReceiveEvent

#define DL_UART_Main_enableDMAReceiveEvent DL_UART_enableDMAReceiveEvent

Redirects to DL_UART_enableDMAReceiveEvent

define DL_UART_Main_enableDMATransmitEvent

#define DL_UART_Main_enableDMATransmitEvent DL_UART_enableDMATransmitEvent

Redirects to DL_UART_enableDMATransmitEvent

define DL_UART_Main_disableDMAReceiveEvent

#define DL_UART_Main_disableDMAReceiveEvent DL_UART_disableDMAReceiveEvent

Redirects to DL_UART_disableDMAReceiveEvent

define DL_UART_Main_disableDMATransmitEvent

#define DL_UART_Main_disableDMATransmitEvent DL_UART_disableDMATransmitEvent

Redirects to DL_UART_disableDMATransmitEvent

define DL_UART_Main_getEnabledDMAReceiveEvent

#define DL_UART_Main_getEnabledDMAReceiveEvent DL_UART_getEnabledDMAReceiveEvent

Redirects to DL_UART_getEnabledDMAReceiveEvent

define DL_UART_Main_getEnabledDMATransmitEvent

#define DL_UART_Main_getEnabledDMATransmitEvent DL_UART_getEnabledDMATransmitEvent

Redirects to DL_UART_getEnabledDMATransmitEvent

define DL_UART_Main_getEnabledDMAReceiveEventStatus

#define DL_UART_Main_getEnabledDMAReceiveEventStatus DL_UART_getEnabledDMAReceiveEventStatus

Redirects to DL_UART_getEnabledDMAReceiveEventStatus

define DL_UART_Main_getEnabledDMATransmitEventStatu

#define DL_UART_Main_getEnabledDMATransmitEventStatu DL_UART_getEnabledDMATransmitEventStatus

Redirects to DL_UART_getEnabledDMATransmitEventStatus

define DL_UART_Main_getRawDMAReceiveEventStatus

#define DL_UART_Main_getRawDMAReceiveEventStatus DL_UART_getRawDMAReceiveEventStatus

Redirects to DL_UART_getRawDMAReceiveEventStatus

define DL_UART_Main_getRawDMATransmitEventStatus

#define DL_UART_Main_getRawDMATransmitEventStatus DL_UART_getRawDMATransmitEventStatus

Redirects to DL_UART_getRawDMATransmitEventStatus

define DL_UART_INTERRUPT_DMA_DONE_TX

#define DL_UART_INTERRUPT_DMA_DONE_TX (UNICOMMUART_CPU_INT_IMASK_DMA_DONE_TX_SET)

DMA done on transmit interrupt.

define DL_UART_INTERRUPT_DMA_DONE_RX

#define DL_UART_INTERRUPT_DMA_DONE_RX (UNICOMMUART_CPU_INT_IMASK_DMA_DONE_RX_SET)

DMA done on receive interrupt.

define DL_UART_INTERRUPT_CTS_DONE

#define DL_UART_INTERRUPT_CTS_DONE (UNICOMMUART_CPU_INT_IMASK_CTS_SET)

Clear to send interrupt.

define DL_UART_INTERRUPT_ADDRESS_MATCH

#define DL_UART_INTERRUPT_ADDRESS_MATCH (UNICOMMUART_CPU_INT_IMASK_ADDR_MATCH_SET)

9-bit mode address match interrupt

define DL_UART_INTERRUPT_LINC0_MATCH

#define DL_UART_INTERRUPT_LINC0_MATCH (UNICOMMUART_CPU_INT_IMASK_LINC0_SET)

LINC0 match interrupt.

define DL_UART_INTERRUPT_EOT_DONE

#define DL_UART_INTERRUPT_EOT_DONE (UNICOMMUART_CPU_INT_IMASK_EOT_SET)

End of transmission interrupt.

define DL_UART_INTERRUPT_TX

#define DL_UART_INTERRUPT_TX (UNICOMMUART_CPU_INT_IMASK_TXINT_SET)

UART transmit interrupt.

define DL_UART_INTERRUPT_RX

#define DL_UART_INTERRUPT_RX (UNICOMMUART_CPU_INT_IMASK_RXINT_SET)

UART receive interrupt.

define DL_UART_INTERRUPT_LTOUT

#define DL_UART_INTERRUPT_LTOUT (UNICOMMUART_CPU_INT_IMASK_LTOUT_SET)

UART Line Time Out interrupt.

define DL_UART_INTERRUPT_LIN_COUNTER_OVERFLOW

#define DL_UART_INTERRUPT_LIN_COUNTER_OVERFLOW (UNICOMMUART_CPU_INT_IMASK_LINOVF_SET)

LIN hardware counter overflow interrupt.

define DL_UART_INTERRUPT_LIN_RISING_EDGE

#define DL_UART_INTERRUPT_LIN_RISING_EDGE (UNICOMMUART_CPU_INT_IMASK_LINC1_SET)

LIN rising edge LINC1 interrupt.

define DL_UART_INTERRUPT_LIN_FALLING_EDGE

#define DL_UART_INTERRUPT_LIN_FALLING_EDGE (UNICOMMUART_CPU_INT_IMASK_LINC0_SET)

LIN falling edge LINC0 interrupt.

define DL_UART_INTERRUPT_RXD_POS_EDGE

#define DL_UART_INTERRUPT_RXD_POS_EDGE (UNICOMMUART_CPU_INT_IMASK_RXPE_SET)

Positive Edge on UNICOMMUARTxRXD interrupt.

define DL_UART_INTERRUPT_RXD_NEG_EDGE

#define DL_UART_INTERRUPT_RXD_NEG_EDGE (UNICOMMUART_CPU_INT_IMASK_RXNE_SET)

Negative Edge on UNICOMMUARTxRXD interrupt.

define DL_UART_INTERRUPT_OVERRUN_ERROR

#define DL_UART_INTERRUPT_OVERRUN_ERROR (UNICOMMUART_CPU_INT_IMASK_OVRERR_SET)

Overrun error interrupt.

define DL_UART_INTERRUPT_BREAK_ERROR

#define DL_UART_INTERRUPT_BREAK_ERROR (UNICOMMUART_CPU_INT_IMASK_BRKERR_SET)

Break error interrupt.

define DL_UART_INTERRUPT_PARITY_ERROR

#define DL_UART_INTERRUPT_PARITY_ERROR (UNICOMMUART_CPU_INT_IMASK_PARERR_SET)

Parity error interrupt.

define DL_UART_INTERRUPT_FRAMING_ERROR

#define DL_UART_INTERRUPT_FRAMING_ERROR (UNICOMMUART_CPU_INT_IMASK_FRMERR_SET)

Framing error interrupt.

define DL_UART_INTERRUPT_RX_TIMEOUT_ERROR

#define DL_UART_INTERRUPT_RX_TIMEOUT_ERROR (UNICOMMUART_CPU_INT_IMASK_RTOUT_SET)

Receive timeout interrupt.

define DL_UART_INTERRUPT_NOISE_ERROR

#define DL_UART_INTERRUPT_NOISE_ERROR (UNICOMMUART_CPU_INT_IMASK_NERR_SET)

Noise error interrupt.

define DL_UART_DMA_INTERRUPT_RX

#define DL_UART_DMA_INTERRUPT_RX (UNICOMMUART_DMA_TRIG_RX_IMASK_RXINT_SET)

UART interrupt for enabling UART receive as DMA trigger.

define DL_UART_DMA_INTERRUPT_RX_TIMEOUT

#define DL_UART_DMA_INTERRUPT_RX_TIMEOUT (UNICOMMUART_DMA_TRIG_RX_IMASK_RTOUT_SET)

UART interrupt for enabling UART receive timeout as DMA trigger.

define DL_UART_ERROR_OVERRUN

#define DL_UART_ERROR_OVERRUN (UNICOMMUART_RXDATA_OVRERR_SET)

Overrun error ocurred.

define DL_UART_ERROR_BREAK

#define DL_UART_ERROR_BREAK (UNICOMMUART_RXDATA_BRKERR_SET)

Break error ocurred.

define DL_UART_ERROR_PARITY

#define DL_UART_ERROR_PARITY (UNICOMMUART_RXDATA_PARERR_SET)

Parity error ocurred.

define DL_UART_ERROR_FRAMING

#define DL_UART_ERROR_FRAMING (UNICOMMUART_RXDATA_FRMERR_SET)

Framing error ocurred.

define DL_UART_DMA_INTERRUPT_TX

#define DL_UART_DMA_INTERRUPT_TX (UNICOMMUART_DMA_TRIG_TX_IMASK_TXINT_SET)

UART interrupt for enabling UART transmit as DMA trigger.

define DL_UART_PULSE_WIDTH_3_16_BIT_PERIOD

#define DL_UART_PULSE_WIDTH_3_16_BIT_PERIOD ((uint32_t)0x00000000U)

Sets the IrDA pulse width to 3/16 bit period when using the BITCLK16.