/**************************************************************************//** * @file sc.h * @brief NUC980 Smartcard (SC) driver header file * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2018 Nuvoton Technology Corp. All rights reserved. *****************************************************************************/ #ifndef __NU_SC_H__ #define __NU_SC_H__ #include "nuc980.h" #ifdef __cplusplus extern "C" { #endif /** @addtogroup Standard_Driver Standard Driver @{ */ /** @addtogroup SC_Driver SC Driver @{ */ /** @addtogroup SC_EXPORTED_CONSTANTS SC Exported Constants @{ */ #define SC_INTERFACE_NUM 2 /*!< Smartcard interface numbers */ /* NUC980 series has two SC interface */ #define SC_PIN_STATE_HIGH 1 /*!< Smartcard pin status high */ #define SC_PIN_STATE_LOW 0 /*!< Smartcard pin status low */ #define SC_PIN_STATE_IGNORE 0xFFFFFFFF /*!< Ignore pin status */ #define SC_CLK_ON 1 /*!< Smartcard clock on */ #define SC_CLK_OFF 0 /*!< Smartcard clock off */ #define SC_TMR_MODE_0 (0ul << 24) /*!