xPCIe1516 API
|
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) |
_INT_ i_PCIe1516_SetDigitalOutputMemoryOn | ( | IN HANDLE | h_DeviceHandle | ) |
Activates the digital output memory of the board
[in] | h_DeviceHandle | Handle of the board |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
_INT_ i_PCIe1516_SetDigitalOutputMemoryOff | ( | IN HANDLE | h_DeviceHandle | ) |
Desactivates the digital output memory of the board
[in] | h_DeviceHandle | Handle of the board |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
_INT_ i_PCIe1516_Set1DigitalOutputOn | ( | IN HANDLE | h_DeviceHandle, |
IN BYTE | b_Channel | ||
) |
Sets a digital output of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Channel | Digital output to be set (0..7) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The b_Channel parameter is wrong |
_INT_ i_PCIe1516_Set1DigitalOutputOff | ( | IN HANDLE | h_DeviceHandle, |
IN BYTE | b_Channel | ||
) |
Resets a digital output of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Channel | Digital output to be reset (0..7) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The b_Channel parameter is wrong |
-3 | Can'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
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Port | Port on which digital outputs have to be set (0..1) |
[in] | b_Mask | Digital output mask value to set (0..15) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The b_Port parameter is wrong |
-3 | The 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
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Port | Port on which digital outputs have to be reset (0..1) |
[in] | b_Mask | Digital output mask value to reset (0..15) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The b_Port parameter is wrong |
-3 | The b_Mask parameter is wrong |
-4 | Can'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
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Mask | Digital output mask value to set |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
_INT_ i_PCIe1516_Set8DigitalOutputsOff | ( | IN HANDLE | h_DeviceHandle, |
IN BYTE | b_Mask | ||
) |
Resets several digital outputs of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Mask | Digital output mask value to reset |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | Can'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
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Mask | Digital output mask value to set / reset |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-100 | An 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
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Channel | Channel to be read (0..7) |
[out] | b_Status | Status of the digital output (0: off, 1: on) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The 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
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Port | Port on which digital outputs have to be read (0..1) |
[out] | b_Status | Status of the digital outputs (0: off, 1: on) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The 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
[in] | h_DeviceHandle | Handle of the board |
[out] | b_Status | Status of the digital outputs (0: off, 1: on) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-100 | An error occurred while calling the IOCTL function |