M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
Macros | Functions
scuart.h File Reference

M471M/R1/S Smartcard UART mode (SCUART) driver header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SCUART_CHAR_LEN_5   (0x3ul << SC_UARTCTL_WLS_Pos)
 
#define SCUART_CHAR_LEN_6   (0x2ul << SC_UARTCTL_WLS_Pos)
 
#define SCUART_CHAR_LEN_7   (0x1ul << SC_UARTCTL_WLS_Pos)
 
#define SCUART_CHAR_LEN_8   (0)
 
#define SCUART_PARITY_NONE   (SC_UARTCTL_PBOFF_Msk)
 
#define SCUART_PARITY_ODD   (SC_UARTCTL_OPE_Msk)
 
#define SCUART_PARITY_EVEN   (0)
 
#define SCUART_STOP_BIT_1   (SC_CTL_NSB_Msk)
 
#define SCUART_STOP_BIT_2   (0)
 
#define SCUART_WRITE(sc, u8Data)
 Write Data to Tx data register. More...
 
#define SCUART_GET_TX_EMPTY(sc)
 Get TX FIFO empty flag status from register. More...
 
#define SCUART_GET_TX_FULL(sc)
 Get TX FIFO full flag status from register. More...
 
#define SCUART_WAIT_TX_EMPTY(sc)
 Wait specified smartcard port transmission complete. More...
 
#define SCUART_IS_TX_FULL(sc)
 Check specified smartcard port transmit FIFO is full or not. More...
 
#define SCUART_IS_TX_EMPTY(sc)
 Check specified smartcard port transmission is over. More...
 
#define SCUART_READ(sc)
 Read Rx data register. More...
 
#define SCUART_GET_RX_EMPTY(sc)
 Get RX FIFO empty flag status from register. More...
 
#define SCUART_GET_RX_FULL(sc)
 Get RX FIFO full flag status from register. More...
 
#define SCUART_IS_RX_READY(sc)
 Check if receive data number in FIFO reach FIFO trigger level or not. More...
 
#define SCUART_IS_RX_FULL(sc)
 Check specified smartcard port receive FIFO is full or not. More...
 
#define SCUART_ENABLE_INT(sc, u32Mask)
 Enable specified interrupts. More...
 
#define SCUART_DISABLE_INT(sc, u32Mask)
 Disable specified interrupts. More...
 
#define SCUART_GET_INT_FLAG(sc, u32Type)
 Get specified interrupt flag/status. More...
 
#define SCUART_CLR_INT_FLAG(sc, u32Type)
 Clear specified interrupt flag/status. More...
 
#define SCUART_GET_ERR_FLAG(sc)
 Get receive error flag/status. More...
 
#define SCUART_CLR_ERR_FLAG(sc, u32Mask)
 Clear specified receive error flag/status. More...
 

Functions

void SCUART_Close (SC_T *sc)
 Disable smartcard uart interface. More...
 
uint32_t SCUART_Open (SC_T *sc, uint32_t u32baudrate)
 Enable smartcard uart interface. More...
 
uint32_t SCUART_Read (SC_T *sc, uint8_t *pu8RxBuf, uint32_t u32ReadBytes)
 Read data from smartcard UART interface. More...
 
uint32_t SCUART_SetLineConfig (SC_T *sc, uint32_t u32Baudrate, uint32_t u32DataWidth, uint32_t u32Parity, uint32_t u32StopBits)
 This function use to config smartcard UART mode line setting. More...
 
void SCUART_SetTimeoutCnt (SC_T *sc, uint32_t u32TOC)
 This function use to set receive timeout count. More...
 
void SCUART_Write (SC_T *sc, uint8_t *pu8TxBuf, uint32_t u32WriteBytes)
 Write data to smartcard UART interface. More...
 

Detailed Description

M471M/R1/S Smartcard UART mode (SCUART) driver header file.

SPDX-License-Identifier: Apache-2.0

Definition in file scuart.h.