Delta Electronics PCI-DMC-A01 Computer Hardware User Manual


 
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01
6-6 Revised March, 2012
6.8 _DMC_01_get_master_connect_status
FORMAT
I16 PASCAL _DMC_01_get_master_connect_status (U16 CardNo, U16* Protocol)
Purpose
Retrieves the connection status between the Master Card and the expansion module.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
Protocol U16* Selection
1: No link to module Node1
3: Link with module Node1 normal
4: Link with module Node1 broken
Example
U16 CardNo=0;
U16 Protocol =0;
I16 status = _DMC_01_get_master_connect_status (CardNo, &Protocol);
6.9 _DMC_01_get_mailbox_Error
FORMAT
I16 PASCAL _DMC_01_get_mailbox_Error (U16 CardNo, U32* error_cnt)
Purpose
Retrieves the number of MailBox errors.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
error_cnt U32* Number Unit Value of MailBox error counter
Example
U16 CardNo=0;
U32 error_cnt =0;
I16 status= _DMC_01_get_mailbox_Error (CardNo, &error_cnt);