
IRU151-I Programmer Guidel
Function Description
35
2.26 EnDICounterEx
Description
Enable the DI channe.
(Only channel 0 support this mode on IRU device.)
Definition
int EnDICounterEx(
int
channel
int
condition,
int
counter
);
Parameters
channel
[in]: Channel (Bit0-7 indicates channel 0-7)
condition
[in]: Set the trigger condition
0x00 : Raising edge.
0x01 : Falling edge.
0x02 : Both.
counter
[in]: The number of counts. (1 ~ 65535)
Return value
AXIO_OK if success, or other value represents the error. (See Error Code)
Example
short
condition = 2;
int
count = 100;
int
ret = 0;
ret = EnDICounterEx(0x01, condition, count);
if(ret != AXIO_OK)
printf("Enable DI Counter failure\n");
Содержание IRU151-I
Страница 1: ...IRU151 I Software Development Kit Reference Manual...
Страница 2: ...ii Revision History Version Revised Date Author Description 1 0 2018 12 05 Hank 1st release...
Страница 6: ...vi This page is intentionally left blank...
Страница 10: ...IRU151 I Programmer Guidel 4 Introduction if stop 2 break Close_Device...
Страница 11: ...IRU151 I Programmer Guidel Introduction 5 1 3 The Calibration Flow Chart...
Страница 12: ...IRU151 I Programmer Guidel 6 Introduction This page is intentionally left blank...