Zigbee Protocol Controller 1.6.0
Internal API used within the ZCL utility component.

Functions

const std::unordered_map< zigpc_zcl_data_type_t, size_t > * zigpc_zcl_get_zcl_data_type_size_map (void)
 Get the autogenerated ZCL data type to size map. More...
 
sl_status_t zigpc_zcl_add_command_frame_arg (zcl_frame_t *const frame, zigpc_zcl_data_type_t arg_type, const void *arg_data)
 Append command data to a ZCL frame. More...
 

Detailed Description

Function Documentation

◆ zigpc_zcl_add_command_frame_arg()

sl_status_t zigpc_zcl_add_command_frame_arg ( zcl_frame_t *const  frame,
zigpc_zcl_data_type_t  arg_type,
const void *  arg_data 
)

Append command data to a ZCL frame.

NOTE: Ensure pointers to arg_data passed is valid in the context that this function is called.

Parameters
framePointer to ZCL frame container to be populated.
arg_typeZCL command argument type.
arg_dataZCL command argument data. arguments.
Returns
sl_status_t SL_STATUS_OK on success, SL_STATUS_NULL_POINTER if if invalid pointers are passed in, SL_STATUS_INVALID_SIGNATURE on data that does not conform to the ZCL specification, or other error related to ZCL frame building.

◆ zigpc_zcl_get_zcl_data_type_size_map()

const std::unordered_map< zigpc_zcl_data_type_t, size_t > * zigpc_zcl_get_zcl_data_type_size_map ( void  )

Get the autogenerated ZCL data type to size map.

Returns
const std::unordered_map<zigpc_zcl_data_type_t, size_t>*