xPCI-1710 API
|
Functions | |
_INT_ | i_PCI1710_ReadDigitalInputs (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, PBYTE_ pb_DigitalInputs) |
_INT_ | i_PCI1710_SetDigitalOutputsOn (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_DigitalOutputs) |
_INT_ | i_PCI1710_SetDigitalOutputsOff (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_DigitalOutputs) |
_INT_ | i_PCI1710_SetPortConfiguration (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_PortAMode, BYTE_ b_PortBMode) |
_INT_ | i_PCI1710_SetDigitalOutputMemory (HANDLE h_DeviceHandle, BYTE_ b_DOMOnOff) |
_INT_ i_PCI1710_ReadDigitalInputs | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
PBYTE_ | pb_DigitalInputs | ||
) |
Get the value of the digital inputs
There can be 5 to 7 inputs (A to G, with A and B configurable as inputs or outputs)
The output value pb_DigitalInputs is a 7-bits value, which represent the following inputs :
For further information regarding pin assignement and input types, please refer to the manual
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module (0 to 3) |
[out] | pb_DigitalInputs | Value of the inputs (0x0 to 0x7F) |
_INT_ i_PCI1710_SetDigitalOutputsOn | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_DigitalOutputs | ||
) |
Set the value of the digital outputs
If digital output memory is OFF, the outputs which are not covered by the mask b_DigitalOutputs are reset. Else, they can only be reset by calling i_PCI1710_SetDigitalOutputsOff.
There can be 1 to 3 outputs (A, B and H, with A and B configurable as inputs or outputs)
The value b_DigitalOutputs is a 3-bits value, which represent the following outputs :
For further information regarding pin assignement and input types, please refer to the manual
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module (0 to 3) |
[out] | b_DigitalOutputs | Value of the outputs (0x0 to 0x7) |
_INT_ i_PCI1710_SetDigitalOutputsOff | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_DigitalOutputs | ||
) |
Reset the digital outputs
This function only works if the digital output memory is ON. Otherwise, it returns an error.
There can be 1 to 3 outputs (A, B and H, with A and B configurable as inputs or outputs)
The value b_DigitalOutputs is a 3-bits value, which represent the following outputs :
For further information regarding pin assignement and input types, please refer to the manual
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module (0 to 3) |
[out] | b_DigitalOutputs | Value of the outputs (0x0 to 0x7) |
_INT_ i_PCI1710_SetPortConfiguration | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_PortAMode, | ||
BYTE_ | b_PortBMode | ||
) |
Set the mode of the digital inputs/outputs A and B
This function must be called before any other digital function
For further information regarding pin assignement and input types, please refer to the manual
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module (0 to 3) |
[in] | b_PortAMode | Mode of pin A (PCI1710_PORT_INPUT or PCI1710_PORT_OUTPUT) |
[in] | b_PortBMode | Mode of pin B (PCI1710_PORT_INPUT or PCI1710_PORT_OUTPUT) |
_INT_ i_PCI1710_SetDigitalOutputMemory | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_DOMOnOff | ||
) |
Set the digital output memory ON or OFF according to b_DOMOnOff :
[in] | h_DeviceHandle | Handle of the board |
[in] | b_DOMOnOff | Digital output memory mode (PCI1710_ENABLE or PCI1710_DISABLE) |