xPCI-1500 API

Functions

_INT_ i_PCI1500_Set1DigitalOutputOn (HANDLE h_DeviceHandle, BYTE b_Channel)
 
_INT_ i_PCI1500_Set1DigitalOutputOff (HANDLE h_DeviceHandle, BYTE b_Channel)
 
_INT_ i_PCI1500_Set8DigitalOutputsOn (HANDLE h_DeviceHandle, BYTE b_Port, BYTE b_Mask)
 
_INT_ i_PCI1500_Set8DigitalOutputsOff (HANDLE h_DeviceHandle, BYTE b_Port, BYTE b_Mask)
 
_INT_ i_PCI1500_Set16DigitalOutputsOn (HANDLE h_DeviceHandle, WORD w_Mask)
 
_INT_ i_PCI1500_Set16DigitalOutputsOff (HANDLE h_DeviceHandle, WORD w_Mask)
 

Detailed Description

Function Documentation

_INT_ i_PCI1500_Set1DigitalOutputOn ( HANDLE  h_DeviceHandle,
BYTE  b_Channel 
)

Permits to set a digital output of the board xPCI-1500 to ON (high state)

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ChannelDigital output channel to set (0 to 15)
Returns
0 : No Error
-1 : The value of the channel index is wrong
-2 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCI1500_Set1DigitalOutputOff ( HANDLE  h_DeviceHandle,
BYTE  b_Channel 
)

Permits to reset a digital output of the board xPCI-1500
Digital output memory must be enabled

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ChannelDigital output channel to reset (0 to 15)
Returns
0 : No Error
-1 : The value of the channel index is wrong
-2 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCI1500_Set8DigitalOutputsOn ( HANDLE  h_DeviceHandle,
BYTE  b_Port,
BYTE  b_Mask 
)

Sets a digital output port (8 bits) of the board xPCI-1500 to 1 (high state)

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort to set ( PCI1500_PORT_0 : channels 0-7, PCI1500_PORT_1 : channels 8-15)
[in]b_MaskMask of channels to set on the port ( 0x0 to 0xFF)
Returns
0 : No Error
-1 : The value of the port index is wrong
-2 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCI1500_Set8DigitalOutputsOff ( HANDLE  h_DeviceHandle,
BYTE  b_Port,
BYTE  b_Mask 
)

Resets a digital output port (8 bits) of the board xPCI-1500
Digital output memory must be enabled

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort to set ( PCI1500_PORT_0 : channels 0-7, PCI1500_PORT_1 : channels 8-15)
[in]b_MaskMask of channels to reset on the port ( 0x0 to 0xFF)
Returns
0 : No Error
-1 : The value of the port index is wrong
-2 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCI1500_Set16DigitalOutputsOn ( HANDLE  h_DeviceHandle,
WORD  w_Mask 
)

Sets several digital outputs of the board xPCI-1500

Parameters
[in]h_DeviceHandleHandle of the board
[in]w_MaskDigital output mask value to set (0x0 to 0xFFFF)
Returns
0 : No Error
-1 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCI1500_Set16DigitalOutputsOff ( HANDLE  h_DeviceHandle,
WORD  w_Mask 
)

Resets several digital outputs of the board xPCI-1500
Digital output memory must be enabled

Parameters
[in]h_DeviceHandleHandle of the board
[in]w_MaskDigital output mask value to reset (0x0 to 0xFFFF)
Returns
0 : No Error
-1 : Error while calling IOCTL function (wrong handle ?)