-
9.9. Write Card’s Block Data
Function Description:
Write data to card's block.
Function call:
int Mifare_WriteCardData(char *szData, int nKeyMode, int nSector, int nBlock, char *szKey);
Parameters:
szData:
[In]
Point to the buffer containing the data to write.
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.
9.10. Read Card’s Value
Function Description:
Read the data form card’s block with value type.
Function call:
int Mifare_ReadValue(UINT *nValue, int nKeyMode, int nSector, int nBlock, char *szKey);
Parameters:
nValue:
[Out] Point to the buffer that receive the data.
nKeyMode:
[In]
The key mode, 0 for Key A, 1 for Key B.
nSector:
[In]
The sector number to read value.
nBlock:
[In]
The block number to read value.
szKey:
[In]
The key value for 12 characters.
Return code:
Please refer to chapter 10.21.
9.11. Write Card’s Value
Function Description:
Write data to card’s block with value type.
Function call:
int Mifare_WriteValue(UINT nValue, int nKeyMode, int nSector, int nBlock, char *szKey);
Parameters:
nValue:
[In]
The value which be written to the card.
nKeyMode:
[In]
The key mode, 0 for Key A, 1 for Key B.
nSector:
[In]
The sector number to write value.
nBlock:
[In]
The block number to write value.
szKey:
[In]
The key value for 12 characters.
Return code:
Please refer to chapter 10.21.
9.12. Increase Value
Function Description:
Increase the value in the card.
Function call:
int Mifare_IncrementValue(UINT nValue, int nKeyMode, int nSector, int nBlock, char *szKey);
Parameters:
nValue:
The value which be increased to the card.
nKeyMode:
[In]
The key mode, 0 for Key A, 1 for Key B.
nSector:
[In]
The sector number to increased value.
nBlock:
[In]
The block number to increased value.
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 ...