xPCIe1032 API
|
Functions | |
_INT_ | i_PCIe1032_Read1DigitalInput (IN HANDLE h_DeviceHandle, IN BYTE b_Channel, OUT BYTE *b_Value) |
_INT_ | i_PCIe1032_Read4DigitalInputs (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT BYTE *b_Value) |
_INT_ | i_PCIe1032_Read8DigitalInputs (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT BYTE *b_Value) |
_INT_ | i_PCIe1032_Read16DigitalInputs (IN HANDLE h_DeviceHandle, IN BYTE b_Port, OUT WORD *w_Value) |
_INT_ | i_PCIe1032_Read32DigitalInputs (IN HANDLE h_DeviceHandle, OUT DWORD *dw_Value) |
_INT_ i_PCIe1032_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..31) |
[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_PCIe1032_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..7) |
[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_PCIe1032_Read8DigitalInputs | ( | IN HANDLE | h_DeviceHandle, |
IN BYTE | b_Port, | ||
OUT BYTE * | b_Value | ||
) |
Reads 8 digital inputs of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Port | Port to be read. One port includes 8 channels (0..3) |
[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_PCIe1032_Read16DigitalInputs | ( | IN HANDLE | h_DeviceHandle, |
IN BYTE | b_Port, | ||
OUT WORD * | w_Value | ||
) |
Reads 16 digital inputs of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Port | Port to be read. One port includes 16 channels (0..1) |
[out] | w_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_PCIe1032_Read32DigitalInputs | ( | IN HANDLE | h_DeviceHandle, |
OUT DWORD * | dw_Value | ||
) |
Reads the 32 digital inputs of the board
[in] | h_DeviceHandle | Handle of the board |
[out] | dw_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 |