
100
APROTECH GmbH
Rathsbergstrasse 17
90411 Nuremberg / Germany
Trade register:
Nuremberg HRB 23727
USt.-Id-No.: DE 256 058 089
D-U-N-S: 31-260-0530
phone: +49 911 / 65 00 79-50
fax:
+49 911 / 65 00 79-79
eMail: [email protected]
Web: www.aprotech.de
Managing Director:
Peter Jung
Industrial Panel- and Box-PCs
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);
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();
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();