XBee Firmware Library  1.6.0
Files | Functions | Variables

Files

file  zcl_identify.c
 
file  zcl_identify.h
 

Functions

uint_fast8_t _zcl_identify_time_get (const zcl_attribute_full_t FAR *attribute)
 
int _zcl_identify_time_set (const zcl_attribute_full_t FAR *attribute, zcl_attribute_write_rec_t *rec)
 Function registered to #ZCL_IDENTIFY_ATTR_IDENTIFY_TIME attribute of Identify Cluster. More...
 
int zcl_identify_command (const wpan_envelope_t FAR *envelope, void FAR *context)
 Handler for ZCL Identify Server Commands (Identify, IdentifyQuery). More...
 
uint16_t zcl_identify_isactive (void)
 Used by main program to see if a device is in "Identification mode". More...
 

Variables

uint16_t   end_of_list
 
zcl_attribute_full_t   identify_time
 
struct {
   uint16_t   end_of_list
 
   zcl_attribute_full_t   identify_time
 
zcl_identify_attr
 Standard attribute list for the Identify Server Cluster. More...
 
XBEE_BEGIN_DECLS const zcl_attribute_tree_t zcl_identify_attribute_tree []
 
const zcl_attribute_tree_t zcl_identify_attribute_tree []
 
uint32_t zcl_identify_end = 0
 
uint16_t zcl_identify_time = 0
 Private variable for tracking amount of "Identification mode" time left. More...
 

Detailed Description

Function Documentation

uint_fast8_t _zcl_identify_time_get ( const zcl_attribute_full_t FAR *  attribute)
int _zcl_identify_time_set ( const zcl_attribute_full_t FAR *  attribute,
zcl_attribute_write_rec_t rec 
)

Function registered to #ZCL_IDENTIFY_ATTR_IDENTIFY_TIME attribute of Identify Cluster.

Responsible for updating the IdentifyTime attribute, and also for determining when identify mode should end.

Parameters
[in]attributeignored; assumed to point to zcl_identify_time
[in,out]recvalue from write request or NULL to update the time when identify mode should end (used by the Identify cluster command).

See zcl_attribute_write_fn() for calling convention.

int zcl_identify_command ( const wpan_envelope_t FAR *  envelope,
void FAR *  context 
)

Handler for ZCL Identify Server Commands (Identify, IdentifyQuery).

Used in the #ZCL_CLUST_IDENTIFY cluster entry for an endpoint.

Parameters
[in]envelopeenvelope from received message
[in]contextpointer to attribute list for cluster (typically passed in via endpoint dispatcher)
Return values
0command was processed, including sending a possible Identify Query Response
!0error sending response or processing command
uint16_t zcl_identify_isactive ( void  )

Used by main program to see if a device is in "Identification mode".

Return values
>0Number of seconds of "Identification mode" left.
0Device is not in "Identification mode".

Variable Documentation

uint16_t end_of_list
uint16_t end_of_list
zcl_attribute_full_t identify_time
zcl_attribute_full_t identify_time
const { ... } zcl_identify_attr
Initial value:
=
{
{ { ZCL_IDENTIFY_ATTR_IDENTIFY_TIME,
ZCL_ATTRIB_FLAG_FULL,
ZCL_TYPE_UNSIGNED_16BIT,
{ 0 }, { 0 },
ZCL_ATTRIBUTE_END_OF_LIST
}
int _zcl_identify_time_set(const zcl_attribute_full_t FAR *attribute, zcl_attribute_write_rec_t *rec)
Function registered to #ZCL_IDENTIFY_ATTR_IDENTIFY_TIME attribute of Identify Cluster.
Definition: zcl_identify.c:104
uint_fast8_t _zcl_identify_time_get(const zcl_attribute_full_t FAR *attribute)
Definition: zcl_identify.c:134
uint16_t zcl_identify_time
Private variable for tracking amount of "Identification mode" time left.
Definition: zcl_identify.c:53

Standard attribute list for the Identify Server Cluster.

XBEE_BEGIN_DECLS const zcl_attribute_tree_t zcl_identify_attribute_tree[]
const zcl_attribute_tree_t zcl_identify_attribute_tree[]
Initial value:
=
{ { ZCL_MFG_NONE, &zcl_identify_attr.identify_time.base, NULL } }
const struct @9 zcl_identify_attr
Standard attribute list for the Identify Server Cluster.
uint32_t zcl_identify_end = 0

Private variable for tracking value of xbee_seconds_timer() that "Idenfication mode" should end.

uint16_t zcl_identify_time = 0

Private variable for tracking amount of "Identification mode" time left.