46 if(sc ==
SC0 && u32CardStateIgnore[0] == 1)
48 else if(sc ==
SC1 && u32CardStateIgnore[1] == 1)
50 else if(cond1 != cond2)
93 uint32_t u32Reg = 0, u32Intf;
104 u32CardStateIgnore[u32Intf] = 0;
108 u32CardStateIgnore[u32Intf] = 1;
148 if(u32CardStateIgnore[u32Intf])
233 else if(u32TimerNum == 1)
255 sc->
ALTCTL &= ~SC_ALTCTL_CNTEN0_Msk;
256 else if(u32TimerNum == 1)
257 sc->
ALTCTL &= ~SC_ALTCTL_CNTEN1_Msk;
259 sc->
ALTCTL &= ~SC_ALTCTL_CNTEN2_Msk;
NANO103 peripheral access layer header file. This file contains all the peripheral register's definit...
#define SC_INTEN_TMR2IEN_Msk
#define SC_INTEN_ACERRIEN_Msk
#define SC_INTEN_CDIEN_Msk
#define SC_PINCTL_PWRINV_Msk
#define SC_CTL_TXRTYEN_Msk
#define SC_CTL_RXRTYEN_Msk
#define SC_PINCTL_ADACEN_Msk
#define SC_INTEN_TMR1IEN_Msk
#define SC_ALTCTL_CNTEN1_Msk
#define SC_INTEN_TMR0IEN_Msk
#define SC_CTL_CDDBSEL_Msk
#define SC_PINCTL_CDPINSTS_Msk
#define SC_CTL_TMRSEL_Msk
#define SC_ALTCTL_CNTEN2_Msk
#define SC_INTEN_BGTIEN_Msk
#define SC_PINCTL_CDPINSTS_Pos
#define SC_INTEN_RDAIEN_Msk
#define SC_ALTCTL_TXRST_Msk
#define SC_PINCTL_CDLV_Pos
#define SC_TMRCTL0_CNT_Msk
#define SC_ALTCTL_CNTEN0_Msk
#define SC_ALTCTL_RXRST_Msk
#define SC_CTL_RXTRGLV_Msk
#define SC_INTEN_TERRIEN_Msk
#define SC_CTL_AUTOCEN_Msk
#define SC_PINCTL_CDLV_Msk
#define CLK_CLKSEL2_SC0SEL_HXT
#define CLK_CLKSEL2_SC0SEL_PLL
#define CLK_CLKSEL2_SC0SEL_HIRC
#define CLK_CLKSEL2_SC0SEL_MIRC
uint32_t CLK_GetPLLClockFreq(void)
This function get PLL frequency. The frequency unit is Hz.
#define CLK_CLKSEL2_SC1SEL_Pos
#define CLK_CLKDIV1_SC1DIV_Pos
#define CLK_CLKDIV0_SC0DIV_Msk
#define CLK_CLKSEL2_SC0SEL_Msk
#define CLK_CLKSEL2_SC1SEL_Msk
#define CLK_CLKSEL2_SC0SEL_Pos
#define CLK_CLKDIV1_SC1DIV_Msk
#define CLK_CLKDIV0_SC0DIV_Pos
#define CLK_CLKSEL0_HIRCSEL_Msk
#define CLK
Pointer to CLK register structure.
#define SC1
Pointer to SC1 register structure.
#define SC0
Pointer to SC0 register structure.
#define SC_PIN_STATE_IGNORE
void SC_SetBlockGuardTime(SC_T *sc, uint32_t u32BGT)
This function block guard time (BGT) of specified smartcard module.
void SC_SetCharGuardTime(SC_T *sc, uint32_t u32CGT)
This function character guard time (CGT) of specified smartcard module.
void SC_ResetReader(SC_T *sc)
This function reset specified smartcard module to its default state for activate smartcard.
void SC_Open(SC_T *sc, uint32_t u32CardDet, uint32_t u32PWR)
This function initialized smartcard module.
void SC_StopAllTimer(SC_T *sc)
This function stop all smartcard timer of specified smartcard module.
uint32_t SC_GetInterfaceClock(SC_T *sc)
This function gets smartcard clock frequency.
uint32_t SC_IsCardInserted(SC_T *sc)
This function indicates specified smartcard slot status.
void SC_StopTimer(SC_T *sc, uint32_t u32TimerNum)
This function stop a smartcard timer of specified smartcard module.
void SC_StartTimer(SC_T *sc, uint32_t u32TimerNum, uint32_t u32Mode, uint32_t u32ETUCount)
This function configure and start a smartcard timer of specified smartcard module.
void SC_ClearFIFO(SC_T *sc)
This function reset both transmit and receive FIFO of specified smartcard module.
void SC_Close(SC_T *sc)
This function disable specified smartcard module.
#define TRUE
Boolean true, define to use in API parameters or return value.
#define FALSE
Boolean false, define to use in API parameters or return value.