XBee Firmware Library  1.6.0
Functions | Variables

Functions

uint_fast8_t _zcl_time_time_get (const zcl_attribute_full_t FAR *attribute)
 
int _zcl_time_time_set (const zcl_attribute_full_t FAR *attribute, zcl_attribute_write_rec_t *rec)
 
_zcl_time_debug int _zcl_time_timestatus_set (const zcl_attribute_full_t FAR *attribute, zcl_attribute_write_rec_t *rec)
 
int zcl_time_client (const wpan_envelope_t FAR *envelope, void FAR *context)
 Handle Read Attribute Responses to requests sent as part of the zcl_time_find_servers() process. More...
 
int zcl_time_find_servers (wpan_dev_t *dev, uint16_t profile_id)
 Find Time Servers on the network, query them for the current time and then synchronize this device's clock to that time. More...
 
zcl_utctime_t zcl_time_now (void)
 Returns the current date/time, using the ZCL epoch of January 1, 2000. More...
 

Variables

struct {
   uint16_t   end_of_list
 
   zcl_attribute_full_t   time
 
   zcl_attribute_full_t   time_status
 
zcl_time_attr
 
const zcl_attribute_tree_t zcl_time_attribute_tree []
 
int32_t zcl_time_skew = 0
 difference between xbee_seconds_timer() and actual calendar time More...
 
zcl_utctime_t zcl_time_time
 
uint8_t zcl_time_timestatus = ZCL_TIME_STATUS_MASTER
 Current value of TimeStatus Attribute (#ZCL_TIME_ATTR_TIME_STATUS) More...
 

Detailed Description

Client and server code to implement the ZigBee Time Cluster.

This is an attribute-only cluster, so it could use the General Command handler in its cluster definition, but we use a special client to intercept Read Attribute Responses so we don't take up an entry in the conversation table.