
IRU151-I Programmer Guidel
44
Function Description
2.35 GetDOStatus
Description
Get the DO status on the selected channels
Definition
int GetDOStatus (
short
channel,
int
*level
);
Parameters
channel
[in]: The value of 1 to 3 indicates the channels 0
– 1.
*level
[out]: The current DO output status. (0x03: channel0&1 HI)
Return value
AXIO_OK if success, or other value represents the error. (See Error Code)
Example
int
status = 0;
short
channel = 3;
/* channel 0 & 1 */
int
ret;
ret = GetDOStatusEx(channel, &status);
if(ret == AXIO_OK)
{
printf(
“DO status=%02X\n”, status);
}
else
{
printf(
“Get DO status 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...