Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
+ Collaboration diagram for Indicator:

Data Structures

struct  s_CC_indicator_data_t_
 

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
 

Typedefs

typedef struct s_CC_indicator_data_t_ s_CC_indicator_data_t
 

Functions

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

Detailed Description

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.

Macro Definition Documentation

◆ INDICATOR_IND_NA

#define INDICATOR_IND_NA   INDICATOR_SET_NA_V3

◆ INDICATOR_IND_NODE_IDENTIFY

#define INDICATOR_IND_NODE_IDENTIFY   INDICATOR_SET_NODE_IDENTIFY_V3

◆ INDICATOR_OBJECT_COUNT_MASK

#define INDICATOR_OBJECT_COUNT_MASK   INDICATOR_SET_PROPERTIES1_INDICATOR_OBJECT_COUNT_MASK_V3

◆ INDICATOR_PROP_ON_OFF_CYCLES

#define INDICATOR_PROP_ON_OFF_CYCLES   INDICATOR_SET_ON_OFF_CYCLES_V3

◆ INDICATOR_PROP_ON_OFF_PERIOD

#define INDICATOR_PROP_ON_OFF_PERIOD   INDICATOR_SET_ON_OFF_PERIOD_V3

◆ INDICATOR_PROP_ON_TIME

#define INDICATOR_PROP_ON_TIME   INDICATOR_SET_ONE_TIME_ON_OFF_PERIOD_V3

◆ INDICATOR_RESERVED_MASK

#define INDICATOR_RESERVED_MASK   INDICATOR_SET_PROPERTIES1_RESERVED_MASK_V3

◆ INDICATOR_RESERVED_SHIFT

#define INDICATOR_RESERVED_SHIFT   INDICATOR_SET_PROPERTIES1_RESERVED_SHIFT_V3

Typedef Documentation

◆ s_CC_indicator_data_t

Struct used to pass operational data to TSE module.

See ZAF_TSE_Trigger() for more information.

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

Function Documentation

◆ 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.

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

Parameters
on_time_msON duration (in milliseconds) for a single blink cycle. If on_time_ms is zero the indicator should be turned off.
off_time_msOFF duration (in milliseconds) for a single blink cycle.
num_cyclesNumber of blink cycles. If num_cycles is zero the indicator LED should blink "forever" or until the next time this function is called.

◆ CC_Indicator_RefreshIndicatorProperties()

void CC_Indicator_RefreshIndicatorProperties ( void )

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

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.