XBee Firmware Library  1.6.0
Files | Typedefs | Functions | Variables
XBee-specific support of ZCL Commissioning

Files

file  commissioning.h
 
file  xbee_commissioning.c
 

Typedefs

typedef struct xbee_comm_dl_t xbee_comm_dl_t
 
typedef void(* xbee_comm_fn) (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
 
typedef struct xbee_comm_reg_t xbee_comm_reg_t
 

Functions

void xbee_comm_AR (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
 
void xbee_comm_BH (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
 
void xbee_comm_DL (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
 
void xbee_comm_EO (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
 
void xbee_comm_OI (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
 
void xbee_comm_OP (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
 
int xbee_comm_reg_callback (const xbee_cmd_response_t FAR *response)
 
void xbee_comm_SC (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
 
int xbee_commissioning_init (zcl_comm_state_t *comm, xbee_dev_t *xbee)
 
int xbee_commissioning_query (zcl_comm_state_t *comm, xbee_dev_t *xbee, const char FAR *reg)
 
int xbee_commissioning_set (xbee_dev_t *xbee, zcl_comm_startup_param_t *p)
 
void xbee_commissioning_tick (xbee_dev_t *xbee, zcl_comm_state_t *comm_state)
 

Variables

xbee_comm_fn assign_fn
 function to process result More...
 
uint8_t b0
 
uint8_t b1
 
uint8_t b2
 
xbee_at_cmd_t command
 command to send to XBee device More...
 
uint8_t startup_control
 
const xbee_comm_reg_t xbee_comm_regs []
 

Detailed Description

Cluster

Typedef Documentation

typedef struct xbee_comm_dl_t xbee_comm_dl_t
typedef void(* xbee_comm_fn) (zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
typedef struct xbee_comm_reg_t xbee_comm_reg_t

Function Documentation

void xbee_comm_AR ( zcl_comm_startup_param_t FAR *  p,
const void FAR *  value_be 
)
void xbee_comm_BH ( zcl_comm_startup_param_t FAR *  p,
const void FAR *  value_be 
)
void xbee_comm_DL ( zcl_comm_startup_param_t FAR *  p,
const void FAR *  value_be 
)
void xbee_comm_EO ( zcl_comm_startup_param_t FAR *  p,
const void FAR *  value_be 
)
void xbee_comm_OI ( zcl_comm_startup_param_t FAR *  p,
const void FAR *  value_be 
)
void xbee_comm_OP ( zcl_comm_startup_param_t FAR *  p,
const void FAR *  value_be 
)
int xbee_comm_reg_callback ( const xbee_cmd_response_t FAR *  response)
void xbee_comm_SC ( zcl_comm_startup_param_t FAR *  p,
const void FAR *  value_be 
)

Depending on the value of StartupControl, the extended_panid attribute might be set from ID (extended PAN ID) or OP (operating PAN ID).

I think.

Note that spec (3.15.2.2.1.2) says that all Fs is used for "unspecified", so we may need to map all 0s to all Fs.

int xbee_commissioning_init ( zcl_comm_state_t comm,
xbee_dev_t xbee 
)
int xbee_commissioning_query ( zcl_comm_state_t comm,
xbee_dev_t xbee,
const char FAR *  reg 
)
int xbee_commissioning_set ( xbee_dev_t xbee,
zcl_comm_startup_param_t p 
)
void xbee_commissioning_tick ( xbee_dev_t xbee,
zcl_comm_state_t comm_state 
)

Variable Documentation

xbee_comm_fn assign_fn

function to process result

uint8_t b0
uint8_t b1
uint8_t b2
xbee_at_cmd_t command

command to send to XBee device

uint8_t startup_control
const xbee_comm_reg_t xbee_comm_regs[]
Initial value:
= {
{ { { 'D', 'L' } }, xbee_comm_DL },
{ { { 'S', 'C' } }, xbee_comm_SC },
{ { { 'A', 'R' } }, xbee_comm_AR },
{ { { 'B', 'H' } }, xbee_comm_BH },
{ { { 'E', 'O' } }, xbee_comm_EO },
{ { { 'O', 'P' } }, xbee_comm_OP },
{ { { 'O', 'I' } }, xbee_comm_OI },
}
void xbee_comm_AR(zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
Definition: xbee_commissioning.c:79
void xbee_comm_EO(zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
Definition: xbee_commissioning.c:123
void xbee_comm_BH(zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
Definition: xbee_commissioning.c:100
void xbee_comm_SC(zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
Definition: xbee_commissioning.c:52
void xbee_comm_OP(zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
Definition: xbee_commissioning.c:58
void xbee_comm_OI(zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
Definition: xbee_commissioning.c:71
void xbee_comm_DL(zcl_comm_startup_param_t FAR *p, const void FAR *value_be)
Definition: xbee_commissioning.c:116