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/02/21 09:19] yjjung [BS2SmartCardData] |
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 - \\ \\ |
**3. //cardType//** \\ | **3. //cardType//** \\ | ||
Code of card types. \\ | Code of card types. \\ | ||
<WRAP group 50%> | <WRAP group 50%> | ||
^Value ^Description ^ | ^Value ^Description ^ | ||
- | |0 |Unknown card | | + | |0x00 |Unknown card | |
- | |1 |CSN card | | + | |0x01 |CSN card | |
- | |2 |Secure card | | + | |0x02 |Secure card | |
- | |3 |Access card | | + | |0x03 |Access card | |
- | |4 |Wiegand card | | + | |0x0A |Wiegand card | |
+ | |0x0B |Config card | | ||
</WRAP> | </WRAP> | ||
**4. //numOfTemplate//** \\ | **4. //numOfTemplate//** \\ | ||
Line 133: | 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; |