xPCI-3120 API
|
Functions | |
_INT_ | i_APCI3120_Read1DigitalInput (BYTE_ b_BoardHandle, BYTE b_Channel, PBYTE_ pb_ChannelValue) |
_INT_ | i_APCI3120_Read4DigitalInput (BYTE_ b_BoardHandle, PBYTE_ pb_PortValue) |
_INT_ i_APCI3120_Read1DigitalInput | ( | BYTE_ | b_BoardHandle, |
BYTE | b_Channel, | ||
PBYTE_ | pb_ChannelValue | ||
) |
Indicates the state of an input
The variable b_Channel passes the input to be read (1 to 4) returned with the variable pb_ChannelValue : 0 (low) or 1 (high)
[in] | b_BoardHandle | Handle of the board |
[in] | b_Channel | The index of the channel to read (1 to 4) |
[out] | pb_ChannelValue | Status of the digital input, 0 -> low, 1 -> high |
0 | : No Error |
-1 | : The b_BoardHandle parameter of the board is wrong |
-2 | : Channel number is not between 1 and 4 |
_INT_ i_APCI3120_Read4DigitalInput | ( | BYTE_ | b_BoardHandle, |
PBYTE_ | pb_PortValue | ||
) |
Indicates the state of the port. A value is returned with the variable pb_PortValue
[in] | b_BoardHandle | Handle of the board |
[out] | pb_PortValue | State of the digital input port (0 to 15) |
0 | : No Error |
-1 | : The handle parameter of the board is wrong |