POC-300 Series
107
RegisterCallbackDICOS
Syntax
BOOL RegisterCallbackDICOS(COS_INT_CALLBACK
callback);
Description:
Registers a callback function, which is called when the DICOS
interrupt occurred.
Parameter
callback
[in]
Specifies the callback function. The prototype for this function
is descripted as follow.
void __stdcall callback_func(COS_INT_CALLBACK_ARG*
arg);
Return Value
TRUE
if setup successes,
FALSE
if setup failed.
Usage
void __stdcall callback_func(COS_INT_CALLBACK_ARG*
arg)
{
printf("data=0x%02x, flag=0x%02x, seq=%02d\n",
arg->portData, arg->intrFlag, arg->intrSeq);
}
BOOL bRet = RegisterCallbackDICOS(callback_func);
StartDICOS
Syntax
BOOL StartDICOS(void);
Description
Start DI Change-of-State interrupt
Parameter
None
Return Value
TRUE
if start procedure successes
FALSE
if start procedure failed
Usage
BOOL bRet = StartDICOS();
Содержание POC-300
Страница 1: ...Neousys Technology Inc POC 300 Series User Manual Revision 1 0 ...
Страница 4: ...Table of Contents 4 StopDICOS 108 DI COS Example 108 ...
Страница 20: ...POC 300 Series 20 1 5 Dimension 1 5 1 Superior View NOTE All measurements are in millimeters mm ...
Страница 21: ...POC 300 Series 21 1 5 2 Front Panel View NOTE All measurements are in millimeters mm ...
Страница 22: ...POC 300 Series 22 1 5 3 Bottom View NOTE All measurements are in millimeters mm ...
Страница 24: ...POC 300 Series 24 1 6 2 Wall Mount Bracket WM 300V NOTE All measurements are in millimeters mm ...
Страница 25: ...POC 300 Series 25 1 6 3 Wall Mount Bracket WM 300H NOTE All measurements are in millimeters mm ...
Страница 58: ...POC 300 Series 58 5 Reinstall the system enclosure ...
Страница 110: ...POC 300 Series 110 printf StopDICOS PASSED n printf npress any key to exit n system pause nul return 0 ...