xPCI-1500 API

Functions

_INT_ i_APCI1500_Read1DigitalInput (BYTE_ b_BoardHandle, BYTE b_Channel, PBYTE_ pb_ChannelValue)
 
_INT_ i_APCI1500_Read8DigitalInput (BYTE_ b_BoardHandle, BYTE_ b_Port, PBYTE pb_PortValue)
 
_INT_ i_APCI1500_Read16DigitalInput (BYTE_ b_BoardHandle, PLONG_ pl_InputValue)
 

Detailed Description

Function Documentation

_INT_ i_APCI1500_Read1DigitalInput ( BYTE_  b_BoardHandle,
BYTE  b_Channel,
PBYTE_  pb_ChannelValue 
)

Read 1 digital inputs of the board APCI-1500

Parameters
[in]b_BoardHandleHandle of the board
[in]b_ChannelThe index of the channel to read (0 to 15)
[out]pb_ChannelValueStatus of the digital input
Return values
0: No Error
-1: The b_BoardHandle parameter of the board is wrong
-2: Channel number is not between 1 and 16
-102: Error while calling IOCTL function (wrong handle ?)
_INT_ i_APCI1500_Read8DigitalInput ( BYTE_  b_BoardHandle,
BYTE_  b_Port,
PBYTE  pb_PortValue 
)

Read 8 digital inputs of the board APCI-1500

Parameters
[in]b_BoardHandleHandle of the board
[in]b_PortPort to read (1 or 2)
[out]pb_PortValueStatus of the digital inputs (0 to 255)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-2: Port number is not 1 or 2
-102: Error while calling IOCTL function (wrong handle ?)
_INT_ i_APCI1500_Read16DigitalInput ( BYTE_  b_BoardHandle,
PLONG_  pl_InputValue 
)

Read 16 digital inputs of the board APCI-1500

Parameters
[in]b_BoardHandleHandle of the board
[out]pl_InputValueStatus of the digital inputs
Return values
0: No Error
-1: The handle parameter of the board is wrong
-101: Error while calling IOCTL function (wrong handle ?)