xPCI-1032 API
xPCI-1032 digital inputs functions

Functions

_INT_ i_PCI1032_Read1DigitalInput (HANDLE h_DeviceHandle, BYTE b_Channel, PBYTE pb_Value)
 
_INT_ i_PCI1032_Read8DigitalInputs (HANDLE h_DeviceHandle, BYTE b_Port, PBYTE pb_Value)
 
_INT_ i_PCI1032_Read16DigitalInputs (HANDLE h_DeviceHandle, BYTE b_Port, PWORD pw_Value)
 
_INT_ i_PCI1032_Read32DigitalInputs (HANDLE h_DeviceHandle, PDWORD pdw_Value)
 

Detailed Description

Function Documentation

◆ i_PCI1032_Read1DigitalInput()

_INT_ i_PCI1032_Read1DigitalInput ( HANDLE  h_DeviceHandle,
BYTE  b_Channel,
PBYTE  pb_Value 
)

Read 1 digital inputs of the board xPCI-1032

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ChannelThe index of the channel to read (0 to 31)
[out]pb_ValueStatus of the digital input
Return values
0: No Error
-1: The channel index is wrong
-2: Error while calling IOCTL function (wrong handle ?)

◆ i_PCI1032_Read8DigitalInputs()

_INT_ i_PCI1032_Read8DigitalInputs ( HANDLE  h_DeviceHandle,
BYTE  b_Port,
PBYTE  pb_Value 
)

Read 8 digital inputs of the board xPCI-1032

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort to read ( 0: channels 0-7, 1: channels 8-15, 2: channels 16-23, 3: channels 24-31)
[out]pb_ValueStatus of the digital inputs
Return values
0: No Error
-1: The port index is wrong
-2: Error while calling IOCTL function (wrong handle ?)

◆ i_PCI1032_Read16DigitalInputs()

_INT_ i_PCI1032_Read16DigitalInputs ( HANDLE  h_DeviceHandle,
BYTE  b_Port,
PWORD  pw_Value 
)

Read 16 digital inputs of the board xPCI-1032

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort to read ( 0: channels 0-15, 1: channels 15-31)
[out]pw_ValueStatus of the digital inputs
Return values
0: No Error
-1: Error while calling IOCTL function (wrong handle ?)

◆ i_PCI1032_Read32DigitalInputs()

_INT_ i_PCI1032_Read32DigitalInputs ( HANDLE  h_DeviceHandle,
PDWORD  pdw_Value 
)

Read 32 digital inputs of the board xPCI-1032

Parameters
[in]h_DeviceHandleHandle of the board
[out]pdw_ValueStatus of the digital inputs
Return values
0: No Error
-1: Error while calling IOCTL function (wrong handle ?)