-
9.5. Write Key to EEPROM
Function Description:
Save the key to EEPROM.
Function call:
int Mifare_WriteKeyToEEPROM (int nKeyMode, int nSector, char *szKey);
Parameters:
nKeyMode:
[In]
The key mode, 0 for Key A, 1 for Key B
nSector:
[In]
The sector number to save key.
szKey:
[In]
The key value for 12 characters.
Return code:
Please refer to chapter 10.21.
9.6. Load Key from EEPROM
Function Description:
Load the key from EEPROM.
Function call:
int Mifare_LoadKeyFromInternal (int nKeyMode, int nSector);
Parameters:
nKeyMode:
[In]
The key mode, 0 for Key A, 1 for Key B.
nSector:
[In]
The sector number to load key.
Return code:
Please refer to chapter 10.21.
9.7. Load Key with User Defined
Function Description:
To load user defined key.
Function call:
int Mifare_LoadKeyWithUserDefine(char *szKey);
Parameters:
szKey:
[In]
The key value for 12 characters.
Return code:
Please refer to chapter 10.21.
9.8. Read Card’s Block Data
Function Description:
Read the data form card’s block.
Function call:
int Mifare_ReadCardData(char *szData, int *nLen, int nKeyMode, int nSector, int nBlock, char
*szKey);
Parameters:
szData:
[Out]
Point to the buffer that receive the data
nLen:
[In]
The size of the parameter szData.
[Out]
Return the data length of szData.
nKeyMode:
[In]
The key mode, 0 for Key A, 1 for Key B.
nSector:
[In]
The sector number to read data.
nBlock:
[In]
The block number to read data.
szKey:
[In]
The key value for 12 characters.
Return code:
Please refer to chapter 10.21.
Содержание MR650
Страница 1: ...MR650 Programming Manual V 1 12 1 16 2008 ...
Страница 7: ... 7 13 FUNCTION KEY SETTING ON REGISTRY 65 14 UPDATE NOTES 66 ...
Страница 16: ... it is for internal use send messages ...
Страница 33: ... Be aware to release handles when program ends ...