xPCIe1516 API
xPCIe1516 Digital input functions

Functions

_INT_ i_PCIe1516_Read1DigitalInput (IN HANDLE h_DeviceHandle, IN BYTE b_Channel, OUT BYTE *b_Value)
 
_INT_ i_PCIe1516_Read4DigitalInputs (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT BYTE *b_Value)
 
_INT_ i_PCIe1516_Read8DigitalInputs (IN HANDLE h_DeviceHandle, OUT BYTE *b_Value)
 

Detailed Description

Function Documentation

_INT_ i_PCIe1516_Read1DigitalInput ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Channel,
OUT BYTE *  b_Value 
)

Reads 1 digital input of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ChannelChannel to be read (0..7)
[out]b_ValueStatus of the digital input
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2The b_Channel parameter is wrong
_INT_ i_PCIe1516_Read4DigitalInputs ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Port,
OUT BYTE *  b_Value 
)

Reads 4 digital inputs of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort to be read. One port includes 4 channels (0..1)
[out]b_ValueStatus of the digital inputs
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2The b_Port parameter is wrong
_INT_ i_PCIe1516_Read8DigitalInputs ( IN HANDLE  h_DeviceHandle,
OUT BYTE *  b_Value 
)

Reads 8 digital inputs of the board

Parameters
[in]h_DeviceHandleHandle of the board
[out]b_ValueStatus of the digital inputs
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-100An error occurred while calling the IOCTL function