NUC472_NUC442_BSP V3.03.004
The Board Support Package for NUC472/NUC442
Macros | Functions | Variables
scuart.h File Reference
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
 
#define SCUART_CHAR_LEN_6
 
#define SCUART_CHAR_LEN_7
 
#define SCUART_CHAR_LEN_8
 
#define SCUART_PARITY_NONE
 
#define SCUART_PARITY_ODD
 
#define SCUART_PARITY_EVEN
 
#define SCUART_STOP_BIT_1
 
#define SCUART_STOP_BIT_2
 
#define SCUART_TIMEOUT_ERR
 
#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)
 The function is used to disable smartcard interface UART mode. More...
 
uint32_t SCUART_Open (SC_T *sc, uint32_t u32baudrate)
 This function use to enable smartcard module UART mode and set baudrate. More...
 
uint32_t SCUART_Read (SC_T *sc, uint8_t *pu8RxBuf, uint32_t u32ReadBytes)
 The function is used to read Rx data from RX FIFO. 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...
 
uint32_t SCUART_Write (SC_T *sc, uint8_t *pu8TxBuf, uint32_t u32WriteBytes)
 This function is to write data into transmit FIFO to send data out. More...
 

Variables

int32_t g_SCUART_i32ErrCode