xPCIe1032 API
xPCIe1032 Digital input functions

Functions

_INT_ i_PCIe1032_Read1DigitalInput (IN HANDLE h_DeviceHandle, IN BYTE b_Channel, OUT BYTE *b_Value)
 
_INT_ i_PCIe1032_Read4DigitalInputs (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT BYTE *b_Value)
 
_INT_ i_PCIe1032_Read8DigitalInputs (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT BYTE *b_Value)
 
_INT_ i_PCIe1032_Read16DigitalInputs (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT WORD *w_Value)
 
_INT_ i_PCIe1032_Read32DigitalInputs (IN HANDLE h_DeviceHandle, OUT DWORD *dw_Value)
 

Detailed Description

Function Documentation

_INT_ i_PCIe1032_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..31)
[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_PCIe1032_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..7)
[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_PCIe1032_Read8DigitalInputs ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Port,
OUT BYTE *  b_Value 
)

Reads 8 digital inputs of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort to be read. One port includes 8 channels (0..3)
[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_PCIe1032_Read16DigitalInputs ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Port,
OUT WORD *  w_Value 
)

Reads 16 digital inputs of the board

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

Reads the 32 digital inputs of the board

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