POC-551VTC
108
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();
StopDICOS
Syntax
BOOL StopDICOS(void);
Description
Stop DI Change-of-State interrupt
Parameter
None
Return Value
TRUE
if stop procedure successes
FALSE
if stop procedure failed
Usage
BOOL bRet = StopDICOS();
Содержание POC-551VTC Series
Страница 1: ...Neousys Technology Inc POC 551VTC Series User Manual Revision 1 0...
Страница 14: ...POC 551VTC 14 1 2 Dimension of POC 551VTC NOTE All measurements are in millimeters mm 1 2 1 Front Panel View...
Страница 15: ...POC 551VTC 15 1 2 2 DIO Panel View 1 2 3 COM and Audio Port Panel View...
Страница 16: ...POC 551VTC 16 1 2 4 Bottom View...
Страница 17: ...POC 551VTC 17 1 2 5 Exploded View...