xPCI-3200 API
|
Functions | |
_INT_ | i_PCI3200_Read1DigitalInput (HANDLE h_DeviceHandle, BYTE b_Channel, PBYTE pb_Value) |
_INT_ | i_PCI3200_Read4DigitalInputs (HANDLE h_DeviceHandle, PBYTE pb_Value) |
_INT_ | i_PCI3200_Set1DigitalOutputOn (HANDLE h_DeviceHandle, BYTE b_Channel) |
_INT_ | i_PCI3200_Set1DigitalOutputOff (HANDLE h_DeviceHandle, BYTE b_Channel) |
_INT_ | i_PCI3200_Set3DigitalOutputsOn (HANDLE h_DeviceHandle, BYTE b_Mask) |
_INT_ | i_PCI3200_Set3DigitalOutputsOff (HANDLE h_DeviceHandle, BYTE b_Mask) |
_INT_ | i_PCI3200_SetDigitalOutputMemoryOn (HANDLE h_DeviceHandle) |
_INT_ | i_PCI3200_SetDigitalOutputMemoryOff (HANDLE h_DeviceHandle) |
_INT_ | i_PCI3200_Get1DigitalOutputStatus (HANDLE h_DeviceHandle, BYTE b_Channel, PBYTE pb_OutputsStatus) |
_INT_ | i_PCI3200_Get3DigitalOutputsStatus (HANDLE h_DeviceHandle, PBYTE pb_OutputsStatus) |
_INT_ i_PCI3200_Read1DigitalInput | ( | HANDLE | h_DeviceHandle, |
BYTE | b_Channel, | ||
PBYTE | pb_Value | ||
) |
Read 1 digital input of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Channel | Channel to read (0 to 3) |
[out] | pb_Value | Status of the digital input |
0 | : No Error |
-1 | : Invalid channel |
-2 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_Read4DigitalInputs | ( | HANDLE | h_DeviceHandle, |
PBYTE | pb_Value | ||
) |
Read the 4 digital inputs of the board
[in] | h_DeviceHandle | Handle of the board |
[out] | pb_Value | Status of the digital inputs |
0 | : No Error |
-1 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_Set1DigitalOutputOn | ( | HANDLE | h_DeviceHandle, |
BYTE | b_Channel | ||
) |
Set 1 digital output of the board to HIGH
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Channel | Channel to set (0 to 2) |
0 | : No Error |
-1 | : Wrong channel |
-3 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_Set1DigitalOutputOff | ( | HANDLE | h_DeviceHandle, |
BYTE | b_Channel | ||
) |
Set 1 digital output of the board to LOW
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Channel | Channel to reset (0 to 2) |
0 | : No Error |
-1 | : Wrong channel |
-3 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_Set3DigitalOutputsOn | ( | HANDLE | h_DeviceHandle, |
BYTE | b_Mask | ||
) |
Set the digital outputs set in the mask to HIGH
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Mask | Channels to set (0x0 to 0x7) |
0 | : No Error |
-1 | : Wrong mask |
-3 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_Set3DigitalOutputsOff | ( | HANDLE | h_DeviceHandle, |
BYTE | b_Mask | ||
) |
Set the digital outputs set in the mask to LOW
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Mask | Channels to reset (0x0 to 0x7) |
0 | : No Error |
-1 | : Wrong mask |
-3 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_SetDigitalOutputMemoryOn | ( | HANDLE | h_DeviceHandle | ) |
Enable the digital output memory
When digital output memory is enabled, the active channels stay active until calling i_PCI3200_Set1DigitalOutputOff or i_PCI3200_Set4DigitalOutputsOff.
When digital output memory is disabled, the active channels are reset at each call of i_PCI3200_Set1DigitalOutputOn or i_PCI3200_Set4DigitalOutputsOn.
[in] | h_DeviceHandle | Handle of the board |
0 | : No Error |
-1 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_SetDigitalOutputMemoryOff | ( | HANDLE | h_DeviceHandle | ) |
Disable the digital output memory
When digital output memory is enabled, the active channels stay active until calling i_PCI3200_Set1DigitalOutputOff or i_PCI3200_Set4DigitalOutputsOff.
When digital output memory is disabled, the active channels are reset at each call of i_PCI3200_Set1DigitalOutputOn or i_PCI3200_Set4DigitalOutputsOn.
[in] | h_DeviceHandle | Handle of the board |
0 | : No Error |
-1 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_Get1DigitalOutputStatus | ( | HANDLE | h_DeviceHandle, |
BYTE | b_Channel, | ||
PBYTE | pb_OutputsStatus | ||
) |
Get the status of 1 digital output of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_Channel | Channel to get (0 to 3) |
[out] | pb_OutputsStatus | Status of the digital output |
0 | : No Error |
-1 | : Wrong channel |
-2 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_PCI3200_Get3DigitalOutputsStatus | ( | HANDLE | h_DeviceHandle, |
PBYTE | pb_OutputsStatus | ||
) |
Get the status of all the digital outputs of the board
[in] | h_DeviceHandle | Handle of the board |
[out] | pb_OutputsStatus | Status of the digital output |
0 | : No Error |
-1 | : Error while calling IOCTL function (wrong handle ?) |