xPCIe1516 API
xPCIe1516 Digital output functions

Functions

_INT_ i_PCIe1516_SetDigitalOutputMemoryOn (IN HANDLE h_DeviceHandle)
 
_INT_ i_PCIe1516_SetDigitalOutputMemoryOff (IN HANDLE h_DeviceHandle)
 
_INT_ i_PCIe1516_Set1DigitalOutputOn (IN HANDLE h_DeviceHandle, IN BYTE b_Channel)
 
_INT_ i_PCIe1516_Set1DigitalOutputOff (IN HANDLE h_DeviceHandle, IN BYTE b_Channel)
 
_INT_ i_PCIe1516_Set4DigitalOutputsOn (IN HANDLE h_DeviceHandle, IN BYTE b_Port, IN BYTE b_Mask)
 
_INT_ i_PCIe1516_Set4DigitalOutputsOff (IN HANDLE h_DeviceHandle, IN BYTE b_Port, IN BYTE b_Mask)
 
_INT_ i_PCIe1516_Set8DigitalOutputsOn (IN HANDLE h_DeviceHandle, IN BYTE b_Mask)
 
_INT_ i_PCIe1516_Set8DigitalOutputsOff (IN HANDLE h_DeviceHandle, IN BYTE b_Mask)
 
_INT_ i_PCIe1516_SetAllDigitalOutputs (IN HANDLE h_DeviceHandle, IN BYTE b_Mask)
 
_INT_ i_PCIe1516_Get1DigitalOutputStatus (IN HANDLE h_DeviceHandle, IN BYTE b_Channel, OUT BYTE *b_Status)
 
_INT_ i_PCIe1516_Get4DigitalOutputStatus (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT BYTE *b_Status)
 
_INT_ i_PCIe1516_Get8DigitalOutputsStatus (IN HANDLE h_DeviceHandle, OUT BYTE *b_Status)
 

Detailed Description

Function Documentation

_INT_ i_PCIe1516_SetDigitalOutputMemoryOn ( IN HANDLE  h_DeviceHandle)

Activates the digital output memory of the board

Parameters
[in]h_DeviceHandleHandle of the board
Return values
0No error
-1The h_DeviceHandle parameter is wrong
_INT_ i_PCIe1516_SetDigitalOutputMemoryOff ( IN HANDLE  h_DeviceHandle)

Desactivates the digital output memory of the board

Parameters
[in]h_DeviceHandleHandle of the board
Return values
0No error
-1The h_DeviceHandle parameter is wrong
_INT_ i_PCIe1516_Set1DigitalOutputOn ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Channel 
)

Sets a digital output of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ChannelDigital output to be set (0..7)
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2The b_Channel parameter is wrong
_INT_ i_PCIe1516_Set1DigitalOutputOff ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Channel 
)

Resets a digital output of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ChannelDigital output to be reset (0..7)
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2The b_Channel parameter is wrong
-3Can't set off a digital output while the output memory is off
_INT_ i_PCIe1516_Set4DigitalOutputsOn ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Port,
IN BYTE  b_Mask 
)

Sets several digital outputs of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort on which digital outputs have to be set (0..1)
[in]b_MaskDigital output mask value to set (0..15)
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2The b_Port parameter is wrong
-3The b_Mask parameter is wrong
_INT_ i_PCIe1516_Set4DigitalOutputsOff ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Port,
IN BYTE  b_Mask 
)

Resets several digital outputs of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort on which digital outputs have to be reset (0..1)
[in]b_MaskDigital output mask value to reset (0..15)
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2The b_Port parameter is wrong
-3The b_Mask parameter is wrong
-4Can't set off a digital output while the output memorx os off
_INT_ i_PCIe1516_Set8DigitalOutputsOn ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Mask 
)

Sets several digital outputs of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_MaskDigital output mask value to set
Return values
0No error
-1The h_DeviceHandle parameter is wrong
_INT_ i_PCIe1516_Set8DigitalOutputsOff ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Mask 
)

Resets several digital outputs of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_MaskDigital output mask value to reset
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2Can't set off a digital output while the digital output memory is off
_INT_ i_PCIe1516_SetAllDigitalOutputs ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Mask 
)

Sets / resets several digital outputs of the board without using the output memory

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_MaskDigital output mask value to set / reset
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-100An error occurred while calling the IOCTL function
_INT_ i_PCIe1516_Get1DigitalOutputStatus ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Channel,
OUT BYTE *  b_Status 
)

Reads 1 digital output of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ChannelChannel to be read (0..7)
[out]b_StatusStatus of the digital output (0: off, 1: on)
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2The b_Channel parameter is wrong
_INT_ i_PCIe1516_Get4DigitalOutputStatus ( IN HANDLE  h_DeviceHandle,
IN BYTE  b_Port,
OUT BYTE *  b_Status 
)

Reads 4 digital outputs of the board

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_PortPort on which digital outputs have to be read (0..1)
[out]b_StatusStatus of the digital outputs (0: off, 1: on)
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-2The b_Port parameter is wrong
_INT_ i_PCIe1516_Get8DigitalOutputsStatus ( IN HANDLE  h_DeviceHandle,
OUT BYTE *  b_Status 
)

Read the 8 digital outputs status of the board

Parameters
[in]h_DeviceHandleHandle of the board
[out]b_StatusStatus of the digital outputs (0: off, 1: on)
Return values
0No error
-1The h_DeviceHandle parameter is wrong
-100An error occurred while calling the IOCTL function