Delta Electronics PCI-DMC-A01 Computer Hardware User Manual


 
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01
37-4 Revised March, 2012
37.5 _DMC_01_ check_userpassword
FORMAT
I16 PASCAL _DMC_01_ check_userpassword (U16 CardNo, U32 password_data, U16
password_state)
Purpose
Before reading/writing data on the Master Card, checks that user has permission to read/write
to memory.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
Password_data U32 Number Enter password to check
Password_state U16 Flag Response after password check. 0Fail 1OK
Example
U16 CardNo=0;
U32 Password_data; //64bit data
U16 Password_state;
I16 status = _DMC_01_ check_userpassword ( CardNo, Password_data, &Password_state );
37.6 _DMC_01_write_ userpassword
FORMAT
I16 PASCAL _DMC_01_write_ userpassword (U16 CardNo, U32 password_data)
Purpose
Master Card: Changes user password.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
Password_data U32 Number Enter password to change
Example
U16 CardNo=0;
U32 Password_data; //64bit data
I16 status = _DMC_01_ write_userpassword ( CardNo, Password_data );