| поискавой системы для электроныых деталей |
|
AN2646 датащи(PDF) 27 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2646 датащи(HTML) 27 Page - STMicroelectronics |
|
27 / 43 page ![]() AN2646 - Application note Smartcard interface library: description 27/43 6.2.1 SC_Handler function SCState SCState informs the user about the smartcard state and allows the user to power off the smartcard. It can take one of the values defined in Table 12 below. Function name SC_Handler Function prototype void SC_Handler(SC_State *SCState, SC_ADPU_Commands *SC_ADPU, SC_ADPU_Responce *SC_Response) Behavior description Handles all smartcard states and serves to send and receive all communication data between smartcard and reader. Input parameter1 SCState: pointer to an SC_State enumeration that will contain the smartcard state. Input parameter2 SC_ADPU: pointer to an SC_ADPU_Commands structure that will be initialized. Input parameter3 SC_Response: pointer to a SC_ADPU_Responce structure which will be initialized. Output parameter None Return parameter None Required preconditions None Called functions None Table 12. SCState SCState Meaning SC_POWER_OFF No power is provided to the smartcard (VCC = 0); the STM8S20x smartcard interface is disabled. No clock is provided to the smartcard. SC_POWER_ON The smartcard peripheral is enabled and initialized; no power is provided to the smartcard; no clock is provided to the smartcard. SC_RESET_LOW In this state, the RST smartcard pin (pin 2) is driven low (RST = 0). VCC = 5 V is provided to the smartcard; clock CLK is provided to the smartcard. Answer to reset (ATR) procedure begins. The reader waits for an ATR frame from the smartcard. SC_RESET_HIGH If no answer is received, the reader forces the reset pin RST high (RST = 1) and holds it high until it receives an answer to reset. SC_ACTIVE If an answer to reset is received, the reader goes in active state and decodes the ATR frame. It returns information about the used protocol. SC_ACTIVE_ON_T0 If the used protocol is T0, the reader goes in SC_ACTIVE_ON_T0 state and commands can then be sent to the smartcard. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |