Return to previous page Return to menu Go to next page

5. Calling sequence

Recommended example pattern 3 calling sequence

 Uint32 work [10]; / * Peripheral data acquisition work area * /
PerGetSys * sys_data; / * System data * / 

PerDgtInfo * get_per; / * Peripheral output data pointer * / Uint8 * get_tim; / * Time output data pointer * /

Initial processing (immediately after V-BLANK processing)

 PER_Init (PER_KD_SYS, 0, 0, 0, NULL, 0); / * Specify system data acquisition * /
  ...
sys_data = PER_GET_SYS (); / * Get system data * / 

● Normal (immediately after V-BLANK processing)

PER_Init(PER_KD_PERTIM,3,PER_ID_DGT,PER_SIZE_DGT,work,0);
/ * Specify peripheral data and time data acquisition * /
... 

● Normal and subsequent times (immediately after V-BLANK processing)

 PER_GetPer ((PerGetPer **) & get_per); / * Peripheral data acquisition * /
get_tim = PER_GET_TIM (); / * Get time * / Get time * /
if (((get_per [2] .data) & PER_DGT_U) == PER_DGT_U) {/ * Is the current peripheral data of connector 3 UP? * /
...
... 


Return to previous page Return to menu Go to next page