Searched defs:sc (Results 1 – 4 of 4) sorted by relevance
/hal_nuvoton-3.4.0/m48x/StdDriver/inc/ |
D | scuart.h | 57 #define SCUART_WRITE(sc, u8Data) ((sc)->DAT = (u8Data)) argument 67 #define SCUART_GET_TX_EMPTY(sc) ((sc)->STATUS & SC_STATUS_TXEMPTY_Msk) argument 77 #define SCUART_GET_TX_FULL(sc) ((sc)->STATUS & SC_STATUS_TXFULL_Msk) argument 86 #define SCUART_WAIT_TX_EMPTY(sc) while((sc)->STATUS & SC_STATUS_TXACT_Msk) argument 96 #define SCUART_IS_TX_FULL(sc) ((sc)->STATUS & SC_STATUS_TXFULL_Msk ? 1 : 0) argument 106 #define SCUART_IS_TX_EMPTY(sc) ((sc)->STATUS & SC_STATUS_TXACT_Msk ? 0 : 1) argument 116 #define SCUART_IS_TX_ACTIVE(sc) (((sc)->STATUS & SC_STATUS_TXACT_Msk)? 1 : 0) argument 126 #define SCUART_READ(sc) ((sc)->DAT) argument 136 #define SCUART_GET_RX_EMPTY(sc) ((sc)->STATUS & SC_STATUS_RXEMPTY_Msk) argument 147 #define SCUART_GET_RX_FULL(sc) ((sc)->STATUS & SC_STATUS_RXFULL_Msk) argument [all …]
|
D | sc.h | 73 #define SC_ENABLE_INT(sc, u32Mask) ((sc)->INTEN |= (u32Mask)) argument 93 #define SC_DISABLE_INT(sc, u32Mask) ((sc)->INTEN &= ~(u32Mask)) argument 102 #define SC_SET_VCC_PIN(sc, u32State) \ argument 119 #define SC_SET_CLK_PIN(sc, u32OnOff)\ argument 135 #define SC_SET_IO_PIN(sc, u32State)\ argument 151 #define SC_SET_RST_PIN(sc, u32State)\ argument 166 #define SC_READ(sc) ((char)((sc)->DAT)) argument 175 #define SC_WRITE(sc, u8Data) ((sc)->DAT = (u8Data)) argument 185 #define SC_SET_STOP_BIT_LEN(sc, u32Len) ((sc)->CTL = ((sc)->CTL & ~SC_CTL_NSB_Msk) | ((u32Len) == 1… argument 197 __STATIC_INLINE void SC_SetTxRetry(SC_T *sc, uint32_t u32Count) in SC_SetTxRetry() [all …]
|
/hal_nuvoton-3.4.0/m48x/StdDriver/src/ |
D | sc.c | 36 uint32_t SC_IsCardInserted(SC_T *sc) in SC_IsCardInserted() 71 void SC_ClearFIFO(SC_T *sc) in SC_ClearFIFO() 85 void SC_Close(SC_T *sc) in SC_Close() 113 void SC_Open(SC_T *sc, uint32_t u32CardDet, uint32_t u32PWR) in SC_Open() 152 void SC_ResetReader(SC_T *sc) in SC_ResetReader() 225 void SC_SetBlockGuardTime(SC_T *sc, uint32_t u32BGT) in SC_SetBlockGuardTime() 236 void SC_SetCharGuardTime(SC_T *sc, uint32_t u32CGT) in SC_SetCharGuardTime() 248 void SC_StopAllTimer(SC_T *sc) in SC_StopAllTimer() 278 void SC_StartTimer(SC_T *sc, uint32_t u32TimerNum, uint32_t u32Mode, uint32_t u32ETUCount) in SC_StartTimer() 321 void SC_StopTimer(SC_T *sc, uint32_t u32TimerNum) in SC_StopTimer() [all …]
|
D | scuart.c | 31 void SCUART_Close(SC_T* sc) in SCUART_Close() 44 static uint32_t SCUART_GetClock(SC_T *sc) in SCUART_GetClock() 109 uint32_t SCUART_Open(SC_T* sc, uint32_t u32baudrate) in SCUART_Open() 133 uint32_t SCUART_Read(SC_T* sc, uint8_t pu8RxBuf[], uint32_t u32ReadBytes) in SCUART_Read() 172 uint32_t SCUART_SetLineConfig(SC_T* sc, uint32_t u32Baudrate, uint32_t u32DataWidth, uint32_t u32Pa… in SCUART_SetLineConfig() 205 void SCUART_SetTimeoutCnt(SC_T* sc, uint32_t u32TOC) in SCUART_SetTimeoutCnt() 219 void SCUART_Write(SC_T* sc,uint8_t pu8TxBuf[], uint32_t u32WriteBytes) in SCUART_Write()
|