Public Attributes#

Contains information required for Supervision and True Status.

uint8_t

The switch must be tied to an endpoint.

The ZAF actuator handles transitions between values.

That will be invoked on changes of the current value.

uint8_t

As this is a binary switch, the old value must be kept until the target value is reached (in case of a duration higher than zero).

Public Attribute Documentation#

rxOpt#

RECEIVE_OPTIONS_TYPE_EX cc_binary_switch_t::rxOpt

Contains information required for Supervision and True Status.

Must be the first element in this struct because TSE assumes this location.


endpoint#

uint8_t cc_binary_switch_t::endpoint

The switch must be tied to an endpoint.

Must be set to 0 if no endpoints. The endpoint value MUST be located as the second element in this struct as ZAF depends on that for generation of the Node Information Frame.


actuator#

s_Actuator cc_binary_switch_t::actuator

The ZAF actuator handles transitions between values.


callback#

cc_binary_switch_callback_t cc_binary_switch_t::callback

That will be invoked on changes of the current value.

Will only be invoked if no callback is passed to cc_binary_switch_init().


default_duration#

uint8_t cc_binary_switch_t::default_duration

old_value#

uint8_t cc_binary_switch_t::old_value

As this is a binary switch, the old value must be kept until the target value is reached (in case of a duration higher than zero).