optris_sdk_action
One thing a rule does about a transition, read back.
A rule is built by calling optris_sdk_rule_add_*_action(), which take their parameters separately; this is the other direction, and it is one struct because a reader does not know which kind it is about to get. kind says which fields carry meaning; the rest are zero rather than invalid.
Read with optris_sdk_rule_get_action(). Added in API version 12.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_action).
kind
optris_sdk_action_kind kind
Which of the fields below mean anything.
on
optris_sdk_action_trigger on
Which transition runs it.
callback_slot
uint32_t callback_slot
OPTRIS_SDK_ACTION_KIND_CALLBACK: which registered handler.
pif_channel
uint8_t pif_channel
OPTRIS_SDK_ACTION_KIND_PIF_OUTPUT: which output channel.
pif_digital
uint8_t pif_digital
Non-zero for a digital output, zero for analogue.
reserved0
uint8_t reserved0[2]
Reserved; always zero. Named so the struct has no implicit padding.
pif_active_value
float pif_active_value
Driven while the alarm is raised.
pif_inactive_value
float pif_inactive_value
Driven once it clears.
snapshot_format
optris_sdk_snapshot_format snapshot_format
OPTRIS_SDK_ACTION_KIND_SNAPSHOT: what to write.
min_interval_ms
uint32_t min_interval_ms
The least time between two snapshots from this action, or OPTRIS_SDK_SNAPSHOT_NO_MIN_INTERVAL when the action has no spacing at all.
Never 0 for a snapshot action: 0 is the "use the default" value on the way in, and on the way out an action is always reported with the interval it will actually apply.
recording_mode
optris_sdk_recording_action_mode recording_mode
OPTRIS_SDK_ACTION_KIND_RECORDING: what ends the recording.
duration_s
uint32_t duration_s
How long to record under OPTRIS_SDK_RECORDING_FIXED_DURATION.
directory
char directory[OPTRIS_SDK_MAX_PATH]
Snapshot and recording: where to write. Empty means the imager's output directory and then the working directory, which is what was passed as NULL.
name_pattern
char name_pattern[OPTRIS_SDK_MAX_NAME]
Snapshot and recording: the file-name stem. See File name patterns.