xPCI-1500 API

Functions

_INT_ i_PCI1500_Read1DigitalInput (HANDLE h_DeviceHandle, BYTE b_Channel, PBYTE pb_Value)
 
_INT_ i_PCI1500_Read8DigitalInputs (HANDLE h_DeviceHandle, BYTE b_Port, PBYTE pb_Value)
 
_INT_ i_PCI1500_Read16DigitalInputs (HANDLE h_DeviceHandle, PWORD pw_Value)
 
_INT_ i_PCI1500_Get16DigitalOutputsStatus (HANDLE deviceHandle, PWORD status)
 

Detailed Description

Function Documentation

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

Read 1 digital inputs of the board xPCI-1500

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ChannelThe index of the channel to read (0 to 15)
[out]pb_ValueStatus of the digital input
Returns
0 : No Error
-1 : The channel index is wrong
-2 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCI1500_Read8DigitalInputs ( HANDLE  h_DeviceHandle,
BYTE  b_Port,
PBYTE  pb_Value 
)

Read 8 digital inputs of the board xPCI-1500

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort to read ( PCI1500_PORT_0 : channels 0-7, PCI1500_PORT_1 : channels 8-15)
[out]pb_ValueStatus of the digital inputs
Returns
0 : No Error
-1 : The port index is wrong
-2 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCI1500_Read16DigitalInputs ( HANDLE  h_DeviceHandle,
PWORD  pw_Value 
)

Read 16 digital inputs of the board xPCI-1500

Parameters
[in]h_DeviceHandleHandle of the board
[out]pw_ValueStatus of the digital inputs
Returns
0 : No Error
-1 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCI1500_Get16DigitalOutputsStatus ( HANDLE  deviceHandle,
PWORD  status 
)