nRF5 SDK for Thread and Zigbee v4.0.0
Typedefs | Enumerations | Functions

Typedefs

typedef void(* zb_aps_user_payload_callback_t )(zb_uint8_t param)
 Callback to notify an application of sending an APS user payload status. More...
 
typedef enum
zb_aps_user_payload_cb_status_e 
zb_aps_user_payload_cb_status_t
 APS user payload transmission status. More...
 

Enumerations

enum  zb_aps_user_payload_cb_status_e { ZB_APS_USER_PAYLOAD_CB_STATUS_SUCCESS = (zb_uint8_t)0x00, ZB_APS_USER_PAYLOAD_CB_STATUS_NO_MAC_ACK = (zb_uint8_t)0xe9, ZB_APS_USER_PAYLOAD_CB_STATUS_NO_APS_ACK = (zb_uint8_t)0xbe }
 APS user payload transmission status. More...
 

Functions

zb_ret_t zb_aps_send_user_payload (zb_uint8_t param, zb_addr_u dst_addr, zb_uint16_t profile_id, zb_uint16_t cluster_id, zb_uint8_t dst_endpoint, zb_uint8_t src_endpoint, zb_uint8_t addr_mode, zb_bool_t aps_ack_is_enabled, zb_uint8_t *payload_ptr, zb_uint8_t payload_size)
 Send user payload using APS. More...
 
zb_uint8_tzb_aps_get_aps_payload (zb_uint8_t param, zb_uint8_t *aps_payload_size)
 Get pointer to an APS payload. More...
 
void zb_aps_set_user_data_tx_cb (zb_aps_user_payload_callback_t cb)
 Set callback to notify results of transmitting an APS frame with user payload. More...
 

Detailed Description

Typedef Documentation

typedef void(* zb_aps_user_payload_callback_t)(zb_uint8_t param)

Callback to notify an application of sending an APS user payload status.

Parameters
param- index of buffer with an APS user payload

APS user payload transmission status.

Stored in the buf->u.hdr.status field

Enumeration Type Documentation

APS user payload transmission status.

Stored in the buf->u.hdr.status field

Enumerator
ZB_APS_USER_PAYLOAD_CB_STATUS_SUCCESS 

APS user payload transmition is successful

Function Documentation

zb_uint8_t* zb_aps_get_aps_payload ( zb_uint8_t  param,
zb_uint8_t aps_payload_size 
)

Get pointer to an APS payload.

Parameters
param- reference to a buffer
aps_payload_size- [out] pointer to a variable to store an APS payload size
Returns
Pointer to an APS payload;
NULL if a buffer is invalid or an aps_payload_size pointer is invalid.
zb_ret_t zb_aps_send_user_payload ( zb_uint8_t  param,
zb_addr_u  dst_addr,
zb_uint16_t  profile_id,
zb_uint16_t  cluster_id,
zb_uint8_t  dst_endpoint,
zb_uint8_t  src_endpoint,
zb_uint8_t  addr_mode,
zb_bool_t  aps_ack_is_enabled,
zb_uint8_t payload_ptr,
zb_uint8_t  payload_size 
)

Send user payload using APS.

Parameters
param- reference to a buffer
dst_addr- destination address
profile_id- profile ID for which this frame is intended for
cluster_id- object ID for which this frame is intended for
dst_endpoint- either the endpoint ID of the entity to which the ASDU is being transferred or the broadcast endpoint (0xff)
src_endpoint- the individual endpoint of the entity from which the ASDU is being transferred
addr_mode- the type of destination address supplied by the dst_addr parameter - see zb_aps_addr_mode_e
aps_ack_is_enabled- enable (ZB_TRUE) or disable (ZB_FALSE) APS acknowledging
*payload_ptr- pointer to user data
payload_size- size of user data; not more than 82 bytes
Returns
- if transmission was successful scheduled;
- if the buffer is invalid
- if the payload_ptr parameter is invalid
- if the payload_size parameter is too large
void zb_aps_set_user_data_tx_cb ( zb_aps_user_payload_callback_t  cb)

Set callback to notify results of transmitting an APS frame with user payload.

Parameters
cb- pointer to a callback

Documentation feedback | Developer Zone | Subscribe | Updated