Download MF RD700 Command Set User & Reference Manual

Transcript
Philips Semiconductors
User Manual Rev. 3.0 June 2005
Command Set
MF RD 700
3.9 Self Test Functions
3.9.1 INCLUDED FUNCTIONS
This group of functions makes it possible to test all important parts of the MF RD700, as there are:
communication with a MIFARE® card, communication with PC or 'writing to the 'flash' memory.
Function name
Function call
RicTestPcd
signed char RicTestPcd(unsigned char *errorNumber)
RicTestPicc
signed char RicTestPicc(unsigned char *errorNumber)
RicTestFlashNr
signed char RicTestFlashNr(unsigned char *errorNumber)
RicTestCommunication
signed char RicTestCommunication(unsigned char errorNumber)
Table 3-10. Self Test Functions
3.9.2 FUNCTION DESCRIPTION
3.9.2.1 RicTestPcd
signed char RicTestPcd (unsigned char *errorNumber)
Cmd-Code: 0x70
IN
OUT errorNumber (1)
Parameters:
errorNumber (OUT) specifies the error number (no MIFARE® error number)
Returns:
MI_OK
MI_TEST_FAILED
test okay
test failed
MI_UNKNOWN_COMMAND
command not found
An extensive test of the reader IC will be executed. The test includes all read/write registers, the FIFO
functionality (check over run etc.), interrupt requests, and the writing to the EEPROM.
This function writes 16 times to the EEPROM therefore make sure that this command is not included in a
loop.
59