Indicator#

Indicator CC is mandatory since Z-Wave+ V2.

It can be used to identify a device in the network, by sending command that will, for example, set the LED indicator to ON over a certain period.

Modules#

s_CC_indicator_data_t_

Typedefs#

typedef struct s_CC_indicator_data_t_

Struct used to pass operational data to TSE module.

Functions#

void

Resets the indicator CC properties to their "off" values.

void
cc_indicator_handler(uint32_t on_time_ms, uint32_t off_time_ms, uint32_t num_cycles)

CC Indicator handler that MUST be defined by the platform specific application source code to signal patterns.

Macros#

#define
INDICATOR_IND_NA INDICATOR_SET_NA_V3
#define
INDICATOR_IND_NODE_IDENTIFY INDICATOR_SET_NODE_IDENTIFY_V3
#define
INDICATOR_PROP_ON_OFF_PERIOD INDICATOR_SET_ON_OFF_PERIOD_V3
#define
INDICATOR_PROP_ON_OFF_CYCLES INDICATOR_SET_ON_OFF_CYCLES_V3
#define
INDICATOR_PROP_ON_TIME INDICATOR_SET_ONE_TIME_ON_OFF_PERIOD_V3
#define
INDICATOR_OBJECT_COUNT_MASK INDICATOR_SET_PROPERTIES1_INDICATOR_OBJECT_COUNT_MASK_V3
#define
INDICATOR_RESERVED_MASK INDICATOR_SET_PROPERTIES1_RESERVED_MASK_V3
#define
INDICATOR_RESERVED_SHIFT INDICATOR_SET_PROPERTIES1_RESERVED_SHIFT_V3

Typedef Documentation#

s_CC_indicator_data_t#

typedef struct s_CC_indicator_data_t_ s_CC_indicator_data_t

Struct used to pass operational data to TSE module.

See ZAF_TSE_Trigger() for more information.

  • Receive options MUST be the first element as TSE relies on the receive options.


Function Documentation#

CC_Indicator_RefreshIndicatorProperties#

void CC_Indicator_RefreshIndicatorProperties (void )

Resets the indicator CC properties to their "off" values.

Parameters
TypeDirectionArgument NameDescription
voidN/A

If the application manually de-activates the Indicator (e.g. learn mode), it should call this function to have the CC Indicator values refreshed before it reports its state to the Lifeline destinations.

When starting a blink sequence we simply off load the blinking to a board specific indicator LED implementation. The indicator command class does not keep time on when the indicator LED has completed its blink sequence, instead it queries the board when a GET request is received.


cc_indicator_handler#

void cc_indicator_handler (uint32_t on_time_ms, uint32_t off_time_ms, uint32_t num_cycles)

CC Indicator handler that MUST be defined by the platform specific application source code to signal patterns.

Parameters
TypeDirectionArgument NameDescription
uint32_tN/Aon_time_ms

ON duration (in milliseconds) for a single blink cycle. If on_time_ms is zero the indicator should be turned off.

uint32_tN/Aoff_time_ms

OFF duration (in milliseconds) for a single blink cycle.

uint32_tN/Anum_cycles

Number of blink cycles. If num_cycles is zero the indicator LED should blink "forever" or until the next time this function is called.

Even though on/off time parameters are given in milliseconds, the resolution is 1/10'th of a second.