Success
[out, retval] TRUE if the digital I/O port was successfully set high, and FALSE if the port was
not set.
Remarks
The voltage is a reference from the GND line of the DIO connector block.
DIO_IsOutput ( Port )
Returns whether the Digital I/O line is set for output or input.
Syntax
HRESULT DIO_IsOutput(
[in] long Port,
[out, retval] long* Result
);
Parameters
Port
[in] Port number for the digital I/O. Valid values are 1, 2, 3, and 4.
Result
[out, retval] Returns 1 if the DIO line is set as an output, and 0 if set as an input.
DIO_IsPulledUp ( Port )
Used to determine whether a pull-up or pull-down resistor is connected to the input of the specified DIO line.
Syntax
HRESULT DIO_IsPulledUp(
[in] long Port,
[out, retval] long* Result
);
Parameters
Port
[in] Port number for the digital I/O. Valid values are 1, 2, 3, and 4.
Result
[out, retval] If the returned value is 1, then the input port has an internal pull-up resistor
connected to it. A 0 indicates that the input line is connected to a pull-down resistor.
Remarks
The value returned is only valid if the DIO port is set to be an input. The pull-up and pull-down resistors are
used to prevent the input from floating when no driving output is physically connected to the port.
DIO_GetPortCount ( )
Returns the number of digital I/O ports supported by the WACI hardware.
Syntax
HRESULT DIO_GetPortCount(
[out, retval] long* NumPorts
);
Parameters
NumPorts
[out, retval] Number of digital I/O ports supported by the hardware.
11
Summary of Contents for WACI NX-22
Page 36: ......
Page 53: ...Finally drag and drop selected files from your File Explorer...