These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.
optris::PifDiConfig
For a detailed overview of all available modes and parameters please refer to the corresponding section in the documentation of the configuration file.
Public attributes
index
PifIndex index = {0, 0}
Identifies the channel by the indices of its pin and the PIF device on which it is located.
mode
PifDiMode mode = PifDiMode::Off
Mode to be applied to the channel.
triggerLowActive
bool triggerLowActive = true
Indicates whether the trigger will be pulled if the input signal is low.
Public static functions
createOff
static OTC_SDK_API PifDiConfig createOff(int deviceIndex, int pinIndex) noexcept
Creates a configuration for the mode PifDiMode::Off.
Parameters
| Name | Description |
|---|---|
deviceIndex |
identifying the channel. |
pinIndex |
identifying the channel. |
Returns: configuration for the mode PifDiMode::Off.
createFlagControl
static OTC_SDK_API PifDiConfig createFlagControl(int deviceIndex, int pinIndex, bool openIfLow) noexcept
Create a configuration for the mode PifDiMode::FlagControl.
Attention: This mode is unique and can only be applied once for all channels.
Parameters
| Name | Description |
|---|---|
deviceIndex |
identifying the channel. |
pinIndex |
identifying the channel. |
openIfLow |
if true, the shutter flag will be opend, if the input signal is low. |
Returns: configuration for the mode PifDiMode::FlagControl.