Zigbee Protocol Controller 1.6.0
zigpc_command_mapper.c File Reference
#include <string.h>
#include <stdarg.h>
#include "sl_log.h"
#include "zigpc_common_zigbee.h"
#include <zigpc_datastore.h>
#include "zigpc_gateway.h"
#include "zcl_util.h"
#include "zigpc_group_mgmt.h"
#include "attribute_management.h"
#include "zigpc_command_mapper.h"
#include "zigpc_command_mapper_int.h"

Functions

sl_status_t zigpc_command_mapper_populate_eui64 (const char *unid, zigbee_eui64_t eui64)
 Convert the UNID into EUI64. More...
 
sl_status_t zigpc_command_mapper_cluster_support_check (const dotdot_unid_t unid, zigbee_endpoint_id_t endpoint_id, zcl_cluster_id_t cluster_id)
 Determine if a cluster is serviced by the UNID/Endpoint combination. More...
 
sl_status_t zigpc_command_mapper_send_unicast (const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint, const zigpc_zcl_frame_type_t frame_type, const zcl_cluster_id_t cluster_id, const zcl_command_id_t command_id, const size_t command_arg_count, const zigpc_zcl_frame_data_t *const command_arg_list)
 Send a ZCL unicast command based on the information provided. More...
 
sl_status_t zigpc_command_mapper_handle_groups (zigbee_eui64_t eui64, const dotdot_endpoint_id_t endpoint, const zcl_cluster_id_t cluster_id, const zcl_command_id_t command_id, const size_t command_arg_count, const zigpc_zcl_frame_data_t *const command_arg_list)
 Process unicast Groups cluster messages. More...
 
sl_status_t zigpc_cmdmapper_redirect_to_unicast (zigbee_group_id_t group_id, zigpc_zcl_frame_type_t frame_type, zcl_cluster_id_t cluster_id, zcl_command_id_t command_id, size_t command_arg_count, const zigpc_zcl_frame_data_t *const command_arg_list)
 Redirect cluster messages to unicast based on the group members (EUI64/endpoint identifiers) associated with a GroupID. For each group member, this function will call zigpc_command_mapper_send_unicast with the EUI64-based UNID and endpoint information. More...
 
sl_status_t zigpc_command_mapper_send_multicast (const zigbee_group_id_t group_id, const zigpc_zcl_frame_type_t frame_type, const zcl_cluster_id_t cluster_id, const zcl_command_id_t command_id, const size_t command_arg_count, const zigpc_zcl_frame_data_t *const command_arg_list)
 Send a ZCL multicast command based on the information provided. More...
 
sl_status_t zigpc_command_mapper_setup (void)
 zigpc_command_mapper_setup - sets up the parts of the software used by the command mapper More...
 
int zigpc_command_mapper_shutdown (void)
 zigpc_command_mapper_shutdown - graceful shuts down all parts of the command mapper, expected to be called before the program exits More...
 

Variables

static const char LOG_TAG [] = "zigpc_cmdmapper"
 

Variable Documentation

◆ LOG_TAG

const char LOG_TAG[] = "zigpc_cmdmapper"
static