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)
 

Detailed Description

Function Documentation

◆ i_APCI3120_Read1DigitalInput()

_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)

Parameters
[in]b_BoardHandleHandle of the board
[in]b_ChannelThe index of the channel to read (1 to 4)
[out]pb_ChannelValueStatus of the digital input, 0 -> low, 1 -> high
Return values
0: No Error
-1: The b_BoardHandle parameter of the board is wrong
-2: Channel number is not between 1 and 4

◆ i_APCI3120_Read4DigitalInput()

_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

Parameters
[in]b_BoardHandleHandle of the board
[out]pb_PortValueState of the digital input port (0 to 15)
Return values
0: No Error
-1: The handle parameter of the board is wrong