The structure of Actuator module.
Public Attributes#
Step/rate counted in milliseconds - how often app refresh its state when transitions from current to target value.
Adjusted refreshRate if needed, greater than defaultRefreshRate.
Minimum value that object can have.
Maximum value that object can have.
Current value of object.
End value.
Pointer to function called when CC needs to take an action.
Internal value used to increase/decrease valueCurrent during timed changes.
Internal value, determines should valueCurrent be increasing or decreasing.
Last ON value before setting to OFF (when applicable)
Factory default duration, used in timed changes, when no other duration was given.
Public Attribute Documentation#
defaultRefreshRate#
uint32_t actuator::defaultRefreshRate
Step/rate counted in milliseconds - how often app refresh its state when transitions from current to target value.
Used as timeout in timer
refreshRate#
uint32_t actuator::refreshRate
Adjusted refreshRate if needed, greater than defaultRefreshRate.
valueCurrent#
uint16_t actuator::valueCurrent
Current value of object.
Internally stored as 10 times higher to get more accurate change. Warnings
Always use ZAF_Actuator_GetCurrentValue() to get current value
valueTarget#
uint16_t actuator::valueTarget
End value.
Internally stored as 10 times higher to match current value format Warnings
Always use ZAF_Actuator_GetTargetValue() to get target value
cc_cb#
zaf_actuator_callback_t actuator::cc_cb
Pointer to function called when CC needs to take an action.
singleStepValue#
uint16_t actuator::singleStepValue
Internal value used to increase/decrease valueCurrent during timed changes.
directionUp#
bool actuator::directionUp
Internal value, determines should valueCurrent be increasing or decreasing.
durationDefault#
uint8_t actuator::durationDefault
Factory default duration, used in timed changes, when no other duration was given.