Delta Electronics PCI-DMC-A01 Computer Hardware User Manual


 
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 6-7
6.10 _DMC_01_get_mailbox_cnt
FORMAT
I16 PASCAL _DMC_01_get_mailbox_cnt (U16 CardNo, U32* PC_cnt, U32* DSP_cnt)
Purpose
Retrieves the MailBox counter value.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
PC_cnt U32* Frequency Mailbox counter value from PC
DSP_cnt U32* Frequency Mailbox counter value from DSP
Example
U16 CardNo = 0;
U32 PC_cnt = 0, DSP_cnt = 0;
I16 status = _DMC_01_get_mailbox_cnt (CardNo, &PC_cnt, &DSP_cnt);
6.11 _DMC_01_get_dsp_cnt
FORMAT
I16 PASCAL _DMC_01_get_dsp_cnt (U16 CardNo, U32* int_cnt, U32* main_cnt)
Purpose
Retrieves the Interrupt counter value.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
int_cnt U32* Frequency
Number of interrupts generated while
establishing communications
main_cnt U32* Frequency
Number of interrupts generated while
establishing DSP
Example
U16 CardNo=0;
U32 int_cnt =0, main_cnt=0;
I16 status= _DMC_01_get_dsp_cnt (CardNo, &int_cnt, &main_cnt);