POC-400 Series
94
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();
DI COS Example
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include "WDT_DIO.h"
//Step 0
,
define a Change-of-State Interrupt callback function
void __stdcall callback_function(COS_INT_CALLBACK_ARG* arg)
{
printf("data=0x%02x, flag=0x%02x, seq=%02d\n",
arg->portData, arg->intrFlag, arg->intrSeq);
}
int main(int argc, char* argv[])
{
//Step 1
, initialize DIO library by invoking InitDIO()
if ( ! InitDIO() )
{
printf("InitDIO --> FAILED\n");
return -1;
}
printf("InitDIO --> PASSED\n");
//Step 2
, setup Change-of-State Interrupt mask and level/edge mode
COS_INT_SETUP setup;
Summary of Contents for POC-400 Series
Page 1: ...Neousys Technology Inc POC 400 Series User Manual Revision 1 0...
Page 4: ...Table of Contents 4 GetStatusPoEPort 97 EnablePoEPort 98 DisablePoEPort 99...
Page 16: ...POC 400 Series 16 1 3 Dimension 1 3 1 Superior View 1 3 2 Front Panel View...
Page 17: ...POC 400 Series 17 1 3 3 Bottom View...