Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01
37-2 Revised March, 2012
37.1 _DMC_01_ read_security
FORMAT
I16 PASCAL _DMC_01_read_security (U16 CardNo, U16 page, U16 array)
Purpose
Reads security data specified by the Master Card from memory.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
Page U16 Number Unit Specified memory page number for read
array U16 Number Read data from specified memory
Example
U16 CardNo=0;
U16 Page=0; // 0~F, 16 pages in total
U16 array;
I16 status = _ DMC_01_read_security (CardNo, page ,&array);
37.2 _DMC_01_ read_security_status
FORMAT
I16 PASCAL _DMC_01_read_security_status (U16 CardNo, U16 status)
Purpose
Reads current read/write status of the Master Card.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
status U16 Flag &H4(Read Only) or &H6(Read/Write)
Example
U16 CardNo=0;
U16 *status;
I16 status = _DMC_01_read_seacurity_status (CardNo, &status );