M480 BSP V3.05.006
The Board Support Package for M480 Series
Functions | Variables
scuart.c File Reference

M480 Smartcard UART mode (SCUART) driver source file. More...

#include "NuMicro.h"

Go to the source code of this file.

Functions

static uint32_t SCUART_GetClock (SC_T *sc)
 
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 configure 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 = 0
 

Detailed Description

M480 Smartcard UART mode (SCUART) driver source file.

Version
V3.00

SPDX-License-Identifier: Apache-2.0

Definition in file scuart.c.

Function Documentation

◆ SCUART_GetClock()

static uint32_t SCUART_GetClock ( SC_T sc)
static