
POC-300 Series
106
COS Function Reference
SetupDICOS
Syntax
BOOL SetupDICOS(COS_INT_SETUP *lpSetup, DWORD
cbSetup);
Description
Setup Digital-Input(DI) Change-of-State(COS) interrupt
parameters.
Parameter
lpSetup
[in]
A pointer to a
COS_INT_SETUP
structure that contains the
COS configuration information for the DI device.
This data structure contains the following variables:
portMask
WORD value specifies the interrupt mask for corresponding
channel(s).
edgeMode
WORD value specifies that interrupt is generated when level
change (set to 0) or on rising/falling edge (set to 1) for the
corresponding channel(s).
edgeType
WORD value specifies that interrupt is generated on rising
edge (set to 0) or falling (set to 1) edge for corresponding
channel(s). This value is neglected if
edgeMode
is set to 0 for
the corresponding channel(s).
cbSetup
[in]
The length of the structure, in bytes. The caller must set this
member to size of (COS_INT_SETUP).
Return Value
TRUE
if setup successes
FALSE
if setup failed
Usage
COS_INT_SETUP setup;
memset(&setup, 0, sizeof(setup));
setup.portMask = 0x0f; // enable ch.0~3
setup.edgeMode = 0; // level
setup.edgeType = 0x00; // Lo/Hi
BOOL
bRet = SetupDICOS(&setup, sizeof(setup));
Содержание 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 ...