-
9.13. Decrease Value
Function Description:
Decrease the value in the card.
Function call:
int Mifare_DecrementValue(UINT nValue, int nKeyMode, int nSector, int nBlock, char *szKey);
Parameters:
nValue:
The value which be decreased to the card.
nKeyMode:
[In]
The key mode, 0 for Key A, 1 for Key B.
nSector:
[In]
The sector number to decreased value.
nBlock:
[In]
The block number to decreased value.
szKey:
[In]
The key value for 12 characters.
Return code:
Please refer to chapter 10.21.
9.14. Read Sector Data
Function Description:
Read a sector data in the card and it will return 3 blocks(48 bytes) data.
Function call:
int Mifare_ReadSectorData(char *szData, int *nLen, int nKeyMode, int nSector, 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.
szKey:
[In]
The key value for 12 characters.
Return code:
Please refer to chapter 10.21.
9.15. Read Multi Sectors Data
Function Description:
Read multi sectors data in the card and it will return 3 blocks(48 bytes) data with each sector.
Function call:
int Mifare_ReadMultiSectorData(char *szData, int *nLen, int nKeyMode, int nSector, int
nSectorNum, 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.
nSectorNum:
[In]
The number of sectors to be read.
szKey:
[In]
The key value for 12 characters.
Return code:
Please refer to chapter 10.21.
9.16. Reader Serial Number
Function Description:
Read reader’s serial number.
Function call:
int Mifare_ReaderSN(char *szSN, int *nLen);
Parameters:
szSN:
[Out] Point to the buffer that receive the serial number.
nLen:
[In]
The size of the parameter szSN.
[Out]
Return the data length of szSN.
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 ...