38 #if defined(LEUART_COUNT) && (LEUART_COUNT > 0)
132 #define LEUART_INIT_DEFAULT \
188 leuart->
IEN &= ~flags;
210 leuart->
IEN |= flags;
262 return leuart->
IF & tmp;
336 return (uint8_t)leuart->
RXDATA;
370 return (uint16_t)leuart->
RXDATAX;
void LEUART_Tx(LEUART_TypeDef *leuart, uint8_t data)
Transmit one frame.
#define LEUART_CTRL_PARITY_NONE
#define LEUART_CTRL_PARITY_EVEN
LEUART_Stopbits_TypeDef stopbits
__STATIC_INLINE uint8_t LEUART_RxDataGet(LEUART_TypeDef *leuart)
Receive one 8 bit frame, (or part of a 9 bit frame).
__STATIC_INLINE uint16_t LEUART_RxDataXGet(LEUART_TypeDef *leuart)
Receive one 8-9 bit frame, with extended information.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
__STATIC_INLINE void LEUART_IntDisable(LEUART_TypeDef *leuart, uint32_t flags)
Disable one or more LEUART interrupts.
__STATIC_INLINE void LEUART_IntClear(LEUART_TypeDef *leuart, uint32_t flags)
Clear one or more pending LEUART interrupts.
#define LEUART_CTRL_STOPBITS_TWO
void LEUART_Init(LEUART_TypeDef *leuart, LEUART_Init_TypeDef const *init)
Init LEUART.
__STATIC_INLINE uint32_t LEUART_IntGetEnabled(LEUART_TypeDef *leuart)
Get enabled and pending LEUART interrupt flags. Useful for handling more interrupt sources in the sam...
void LEUART_TxExt(LEUART_TypeDef *leuart, uint16_t data)
Transmit one 8-9 bit frame with extended control.
__STATIC_INLINE void LEUART_IntEnable(LEUART_TypeDef *leuart, uint32_t flags)
Enable one or more LEUART interrupts.
__STATIC_INLINE uint32_t LEUART_StatusGet(LEUART_TypeDef *leuart)
Get LEUART STATUS register.
__STATIC_INLINE uint32_t LEUART_IntGet(LEUART_TypeDef *leuart)
Get pending LEUART interrupt flags.
void LEUART_BaudrateSet(LEUART_TypeDef *leuart, uint32_t refFreq, uint32_t baudrate)
Configure baudrate (or as close as possible to specified baudrate).
uint32_t LEUART_BaudrateGet(LEUART_TypeDef *leuart)
Get current baudrate for LEUART.
#define LEUART_CTRL_DATABITS_NINE
LEUART_Parity_TypeDef parity
void LEUART_Enable(LEUART_TypeDef *leuart, LEUART_Enable_TypeDef enable)
Enable/disable LEUART receiver and/or transmitter.
#define LEUART_CTRL_DATABITS_EIGHT
void LEUART_Reset(LEUART_TypeDef *leuart)
Reset LEUART to same state as after a HW reset.
void LEUART_RxDmaInEM2Enable(LEUART_TypeDef *leuart, bool enable)
Enables handling of LEUART RX by DMA in EM2.
uint16_t LEUART_RxExt(LEUART_TypeDef *leuart)
Receive one 8-9 bit frame, with extended information.
#define LEUART_CTRL_STOPBITS_ONE
__STATIC_INLINE void LEUART_IntSet(LEUART_TypeDef *leuart, uint32_t flags)
Set one or more pending LEUART interrupts from SW.
uint32_t LEUART_BaudrateCalc(uint32_t refFreq, uint32_t clkdiv)
Calculate baudrate for LEUART given reference frequency and clock division.
uint8_t LEUART_Rx(LEUART_TypeDef *leuart)
Receive one 8 bit frame, (or part of 9 bit frame).
void LEUART_TxDmaInEM2Enable(LEUART_TypeDef *leuart, bool enable)
Enables handling of LEUART TX by DMA in EM2.
void LEUART_FreezeEnable(LEUART_TypeDef *leuart, bool enable)
LEUART register synchronization freeze control.
#define LEUART_CTRL_PARITY_ODD
LEUART_Databits_TypeDef databits
LEUART_Enable_TypeDef enable