
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-23
DO2K_GetMode
This function code is used to get the mode of a specific D/O
channel.
C/C++
Arguments
Return Value
int DO2K_GetMode( int hConnection,
BYTE bytChannel,
BYTE * wMode);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wMode: A pointer to the mode of tthe desired D/O
channel. The values are:
0: D/O mode
1: Pulse mode
Succeed MXIO_OK.
Fail R
f
r
R
n
DO2K_SetMode
This function code is used to set the mode for a specific D/O
channel.
C/C++
Arguments
Return Value
int DO2K_SetMode ( int hConnection,
BYTE bytChannel,
WORD wMode);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wMode: A pointer to the mode of the desired D/O
channel. The values are:
0: D/O mode
1: Pulse mode
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Comentarios a estos manuales