xPCI-3120 API
|
Functions | |
_INT_ | i_APCI3120_Set1DigitalOutputOn (BYTE_ b_BoardHandle, BYTE_ b_Channel) |
_INT_ | i_APCI3120_Set1DigitalOutputOff (BYTE_ b_BoardHandle, BYTE_ b_Channel) |
_INT_ | i_APCI3120_Set4DigitalOutputOn (BYTE_ b_BoardHandle, BYTE_ b_Value) |
_INT_ | i_APCI3120_Set4DigitalOutputOff (BYTE_ b_BoardHandle, BYTE_ b_Value) |
_INT_ i_APCI3120_Set1DigitalOutputOn | ( | BYTE_ | b_BoardHandle, |
BYTE_ | b_Channel | ||
) |
Sets the output which has been passed with the parameter b_Channel
Setting an output means setting an output high
[in] | b_BoardHandle | Handle of the board |
[in] | b_Channel | Number of the output to set (1 to 4) |
0 | : No Error |
-1 | : The handle parameter of the board is wrong |
-2 | : The input number is not between 1 and 4 |
-103 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_APCI3120_Set1DigitalOutputOff | ( | BYTE_ | b_BoardHandle, |
BYTE_ | b_Channel | ||
) |
Resets the output you have passed with b_Channel
Digital output memory must be enabled
Resetting an output means setting low
[in] | b_BoardHandle | Handle of the board |
[in] | b_Channel | Number of the output to be reseted (1 to 4) |
0 | : No Error |
-1 | : The handle parameter of the board is wrong |
-2 | : The input number is not between 1 and 4 |
-103 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_APCI3120_Set4DigitalOutputOn | ( | BYTE_ | b_BoardHandle, |
BYTE_ | b_Value | ||
) |
Sets one or several outputs of a port.
Setting an output means setting high.
If you have switched off the digital output memory (OFF), all the other Outputs are set on "0".
[in] | b_BoardHandle | Handle of the board |
[in] | b_Value | Output value (0 to 15) |
0 | : No Error |
-1 | : The handle parameter of the board is wrong |
-101 | : Wrong mask |
-103 | : Error while calling IOCTL function (wrong handle ?) |
_INT_ i_APCI3120_Set4DigitalOutputOff | ( | BYTE_ | b_BoardHandle, |
BYTE_ | b_Value | ||
) |
Resets one or several outputs of one port.
Digital output memory must be enabled.
Resetting means setting on low.
[in] | b_BoardHandle | Handle of the board |
[in] | b_Value | Output value (0 to 15) |
0 | : No Error |
-1 | : The handle parameter of the board is wrong |
-101 | : Wrong mask |
-103 | : Error while calling IOCTL function (wrong handle ?) |