POC-300 Series
108
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-300
Page 1: ...Neousys Technology Inc POC 300 Series User Manual Revision 1 0 ...
Page 4: ...Table of Contents 4 StopDICOS 108 DI COS Example 108 ...
Page 21: ...POC 300 Series 21 1 5 2 Front Panel View NOTE All measurements are in millimeters mm ...
Page 22: ...POC 300 Series 22 1 5 3 Bottom View NOTE All measurements are in millimeters mm ...
Page 58: ...POC 300 Series 58 5 Reinstall the system enclosure ...