Developing with ZBOSS SDK for Zigbee

Macros

#define ZB_MIN_ENDPOINT_NUMBER   1U
 Minimum valid endpoint number.
 
#define ZB_MAX_ENDPOINT_NUMBER   240U
 Maximum valid endpoint number.
 
#define ZB_APS_BROADCAST_ENDPOINT_NUMBER   255U
 Broadcast endpoint number.
 

Typedefs

typedef zb_int8_t zb_aps_status_t
 Type for APS status constants. More...
 
typedef zb_uint8_t zb_aps_addr_mode_t
 Type for APS addressing mode constants. More...
 

APS status constants

#define ZB_APS_STATUS_SUCCESS   0x00
 
#define ZB_APS_ASDU_TOO_LONG   0xa0
 
#define ZB_APS_DEFRAG_DEFERRED   0xa1
 
#define ZB_APS_DEFRAG_UNSUPPORTED   0xa2
 
#define ZB_APS_STATUS_ILLEGAL_REQUEST   0xa3
 
#define ZB_APS_STATUS_INVALID_BINDING   0xa4
 
#define ZB_APS_STATUS_INVALID_GROUP   0xa5
 
#define ZB_APS_STATUS_INVALID_PARAMETER   0xa6
 
#define ZB_APS_STATUS_NO_ACK   0xa7
 
#define ZB_APS_STATUS_NO_BOUND_DEVICE   0xa8
 
#define ZB_APS_STATUS_NO_SHORT_ADDRESS   0xa9
 
#define ZB_APS_STATUS_NOT_SUPPORTED   0xaa
 
#define ZB_APS_STATUS_SECURED_LINK_KEY   0xab
 
#define ZB_APS_STATUS_SECURED_NWK_KEY   0xac
 
#define ZB_APS_STATUS_SECURITY_FAIL   0xad
 
#define ZB_APS_STATUS_TABLE_FULL   0xae
 
#define ZB_APS_STATUS_UNSECURED   0xaf
 
#define ZB_APS_STATUS_UNSUPPORTED_ATTRIBUTE   0xb0
 

APS addressing mode constants

#define ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT   0x00U
 
#define ZB_APS_ADDR_MODE_16_GROUP_ENDP_NOT_PRESENT   0x01U
 
#define ZB_APS_ADDR_MODE_16_ENDP_PRESENT   0x02U
 
#define ZB_APS_ADDR_MODE_64_ENDP_PRESENT   0x03U
 
#define ZB_APS_ADDR_MODE_BIND_TBL_ID   0x04U
 

Detailed Description

Macro Definition Documentation

◆ ZB_APS_ADDR_MODE_16_ENDP_PRESENT

#define ZB_APS_ADDR_MODE_16_ENDP_PRESENT   0x02U

16-bit address for DstAddress and DstEndpoint present

◆ ZB_APS_ADDR_MODE_16_GROUP_ENDP_NOT_PRESENT

#define ZB_APS_ADDR_MODE_16_GROUP_ENDP_NOT_PRESENT   0x01U

16-bit group address for DstAddress; DstEndpoint not present

◆ ZB_APS_ADDR_MODE_64_ENDP_PRESENT

#define ZB_APS_ADDR_MODE_64_ENDP_PRESENT   0x03U

64-bit extended address for DstAddress and DstEndpoint present

◆ ZB_APS_ADDR_MODE_BIND_TBL_ID

#define ZB_APS_ADDR_MODE_BIND_TBL_ID   0x04U

"destination endpoint" is interpreted as an index in the binding table, all other destination address information is ignored

◆ ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT

#define ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT   0x00U

DstAddress and DstEndpoint not present

◆ ZB_APS_ASDU_TOO_LONG

#define ZB_APS_ASDU_TOO_LONG   0xa0

A transmit request failed since the ASDU is too large and fragmentation is not supported.

◆ ZB_APS_DEFRAG_DEFERRED

#define ZB_APS_DEFRAG_DEFERRED   0xa1

A received fragmented frame could not be defragmented at the current time.

◆ ZB_APS_DEFRAG_UNSUPPORTED

#define ZB_APS_DEFRAG_UNSUPPORTED   0xa2

A received fragmented frame could not be defragmented since the device does not support fragmentation.

◆ ZB_APS_STATUS_ILLEGAL_REQUEST

#define ZB_APS_STATUS_ILLEGAL_REQUEST   0xa3

A parameter value was out of range.

◆ ZB_APS_STATUS_INVALID_BINDING

#define ZB_APS_STATUS_INVALID_BINDING   0xa4

An APSME-UNBIND.request failed due to the requested binding link not existing in the binding table.

◆ ZB_APS_STATUS_INVALID_GROUP

#define ZB_APS_STATUS_INVALID_GROUP   0xa5

An APSME-REMOVE-GROUP.request has been issued with a group identifier that does not appear in the group table.

◆ ZB_APS_STATUS_INVALID_PARAMETER

#define ZB_APS_STATUS_INVALID_PARAMETER   0xa6

A parameter value was invalid or out of range.

◆ ZB_APS_STATUS_NO_ACK

#define ZB_APS_STATUS_NO_ACK   0xa7

An APSDE-DATA.request requesting acknowledged transmission failed due to no acknowledgement being received.

◆ ZB_APS_STATUS_NO_BOUND_DEVICE

#define ZB_APS_STATUS_NO_BOUND_DEVICE   0xa8

An APSDE-DATA.request with a destination addressing mode set to 0x00 failed due to there being no devices bound to this device.

◆ ZB_APS_STATUS_NO_SHORT_ADDRESS

#define ZB_APS_STATUS_NO_SHORT_ADDRESS   0xa9

An APSDE-DATA.request with a destination addressing mode set to 0x03 failed due to no corresponding short address found in the address map table.

◆ ZB_APS_STATUS_NOT_SUPPORTED

#define ZB_APS_STATUS_NOT_SUPPORTED   0xaa

An APSDE-DATA.request with a destination addressing mode set to 0x00 failed due to a binding table not being supported on the device.

◆ ZB_APS_STATUS_SECURED_LINK_KEY

#define ZB_APS_STATUS_SECURED_LINK_KEY   0xab

An ASDU was received that was secured using a link key.

◆ ZB_APS_STATUS_SECURED_NWK_KEY

#define ZB_APS_STATUS_SECURED_NWK_KEY   0xac

An ASDU was received that was secured using a network key.

◆ ZB_APS_STATUS_SECURITY_FAIL

#define ZB_APS_STATUS_SECURITY_FAIL   0xad

An APSDE-DATA.request requesting security has resulted in an error during the corresponding security processing.

◆ ZB_APS_STATUS_SUCCESS

#define ZB_APS_STATUS_SUCCESS   0x00

A request has been executed successfully.

◆ ZB_APS_STATUS_TABLE_FULL

#define ZB_APS_STATUS_TABLE_FULL   0xae

An APSME-BIND.request or APSME.ADD-GROUP.request issued when the binding or group tables, respectively, were full.

◆ ZB_APS_STATUS_UNSECURED

#define ZB_APS_STATUS_UNSECURED   0xaf

An ASDU was received without any security.

◆ ZB_APS_STATUS_UNSUPPORTED_ATTRIBUTE

#define ZB_APS_STATUS_UNSUPPORTED_ATTRIBUTE   0xb0

An APSME-GET.request or APSME-SET.request has been issued with an unknown attribute identifier.

Typedef Documentation

◆ zb_aps_addr_mode_t

Type for APS addressing mode constants.

Holds one of aps_addr_mode. Kept only for backward compatibility as aps_addr_mode were declared previously as enum.

◆ zb_aps_status_t

Type for APS status constants.