xPCIe1516 API
|
Functions | |
_INT_ | i_PCIe1516_Read1DigitalInput (IN HANDLE h_DeviceHandle, IN BYTE b_Channel, OUT BYTE *b_Value) |
_INT_ | i_PCIe1516_Read4DigitalInputs (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT BYTE *b_Value) |
_INT_ | i_PCIe1516_Read8DigitalInputs (IN HANDLE h_DeviceHandle, OUT BYTE *b_Value) |
_INT_ i_PCIe1516_Read1DigitalInput | ( | IN HANDLE | h_DeviceHandle, |
IN BYTE | b_Channel, | ||
OUT BYTE * | b_Value | ||
) |
Reads 1 digital input of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Channel | Channel to be read (0..7) |
[out] | b_Value | Status of the digital input |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The b_Channel parameter is wrong |
_INT_ i_PCIe1516_Read4DigitalInputs | ( | IN HANDLE | h_DeviceHandle, |
IN BYTE | b_Port, | ||
OUT BYTE * | b_Value | ||
) |
Reads 4 digital inputs of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Port | Port to be read. One port includes 4 channels (0..1) |
[out] | b_Value | Status of the digital inputs |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The b_Port parameter is wrong |
_INT_ i_PCIe1516_Read8DigitalInputs | ( | IN HANDLE | h_DeviceHandle, |
OUT BYTE * | b_Value | ||
) |
Reads 8 digital inputs of the board
[in] | h_DeviceHandle | Handle of the board |
[out] | b_Value | Status of the digital inputs |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-100 | An error occurred while calling the IOCTL function |