поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN2646 датащи(PDF) 27 Page - STMicroelectronics

номер детали AN2646
подробное описание детали  Smartcard interface with the STM8S microcontroller
PDF  43 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2646 датащи(HTML) 27 Page - STMicroelectronics

Back Button AN2646 Datasheet HTML 23Page - STMicroelectronics AN2646 Datasheet HTML 24Page - STMicroelectronics AN2646 Datasheet HTML 25Page - STMicroelectronics AN2646 Datasheet HTML 26Page - STMicroelectronics AN2646 Datasheet HTML 27Page - STMicroelectronics AN2646 Datasheet HTML 28Page - STMicroelectronics AN2646 Datasheet HTML 29Page - STMicroelectronics AN2646 Datasheet HTML 30Page - STMicroelectronics AN2646 Datasheet HTML 31Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 43 page
background image
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.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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