Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:smartcard_api [2018/03/15 15:32] yjjung [BS2SmartCardHeader] |
en:smartcard_api [2018/08/07 16:46] yjjung [BS2SmartCardHeader] |
||
---|---|---|---|
Line 62: | Line 62: | ||
</code> | </code> | ||
**1. //hdrCRC//** \\ | **1. //hdrCRC//** \\ | ||
- | Value of card header checksum. \\ \\ | + | Value of card header checksum. (cardCRC - reserved) \\ \\ |
**2. //cardCRC//** \\ | **2. //cardCRC//** \\ | ||
- | Value of card data checksum. \\ \\ | + | Value of card data checksum. (BS2SmartCardHeader.cardType - BS2SmartCardData.accessOnData) \\ \\ |
**3. //cardType//** \\ | **3. //cardType//** \\ | ||
Code of card types. \\ | Code of card types. \\ | ||
Line 134: | Line 134: | ||
==== BS2Card ==== | ==== BS2Card ==== | ||
<code cpp> | <code cpp> | ||
- | typedef struct | + | typedef struct { |
- | { | + | |
uint8_t isSmartCard; | uint8_t isSmartCard; | ||
- | union | + | union { |
- | { | + | |
BS2CSNCard card; | BS2CSNCard card; | ||
BS2SmartCardData smartCard; | BS2SmartCardData smartCard; |