nRF5 SDK for Thread and Zigbee v3.2.0
Modules | Data Structures | Macros | Typedefs
ZCL Time cluster

Modules

 Time cluster attributes
 
 Time cluster commands
 

Data Structures

struct  zb_zcl_time_attrs_s
 Time cluster attributes. More...
 

Macros

#define ZB_ZCL_TIME_SET_REAL_TIME_CLOCK_CB(func_ptr)   (zb_zcl_set_real_time_clock_callback((func_ptr)))
 Set user's callback that will be initialize real time clock on device by specified value. "If the Master bit of the @ref ZB_ZCL_ATTR_TIME_TIME_STATUS_ID "TimeStatus" attribute has a value of 0, writing to @ref ZB_ZCL_ATTR_TIME_TIME_ID "Time" attribute SHALL set the real time clock to the written value, otherwise it cannot be written.". More...
 
#define ZB_ZCL_DECLARE_TIME_ATTR_LIST(attr_list, attrs)
 Declare attribute list for Time cluster. More...
 

Typedefs

typedef zb_bool_t(* zb_zcl_time_set_real_time_clock_t )(zb_uint32_t time)
 Set real time clock callback. More...
 
typedef struct zb_zcl_time_attrs_s zb_zcl_time_attrs_t
 

Detailed Description

Macro Definition Documentation

#define ZB_ZCL_DECLARE_TIME_ATTR_LIST (   attr_list,
  attrs 
)
Value:
&attrs.time, &attrs.time_status, &attrs.time_zone, \
&attrs.dst_start, &attrs.dst_end, &attrs.dst_shift, \
&attrs.standard_time, &attrs.local_time, \
&attrs.last_set_time, &attrs.valid_until_time )
#define ZB_ZCL_DECLARE_TIME_ATTRIB_LIST(attr_list, time, time_status, time_zone,dst_start, dst_end, dst_shift, standard_time, local_time, last_set_time, valid_until_time)
Declare attribute list for Time cluster.
Definition: zb_zcl_time.h:241

Declare attribute list for Time cluster.

Parameters
[in]attr_list- attribute list variable name
[in]attrs- variable of zb_zcl_time_attrs_s type (containing Time cluster attributes)
#define ZB_ZCL_TIME_SET_REAL_TIME_CLOCK_CB (   func_ptr)    (zb_zcl_set_real_time_clock_callback((func_ptr)))

Set user's callback that will be initialize real time clock on device by specified value. "If the Master bit of the @ref ZB_ZCL_ATTR_TIME_TIME_STATUS_ID "TimeStatus" attribute has a value of 0, writing to @ref ZB_ZCL_ATTR_TIME_TIME_ID "Time" attribute SHALL set the real time clock to the written value, otherwise it cannot be written.".

See also
ZCL spec, subclause 3.12.2.2.1

Typedef Documentation

typedef zb_bool_t(* zb_zcl_time_set_real_time_clock_t)(zb_uint32_t time)

Set real time clock callback.

Parameters
[in]time- UTC time at which real time clock will be set
Returns
ZB_TRUE if real time clock was set to new value and ZB_FALSE otherwise

Documentation feedback | Developer Zone | Subscribe | Updated