Zigbee Protocol Controller 1.6.0
attribute_management_process.c File Reference
#include <stdlib.h>
#include "process.h"
#include "sys/ctimer.h"
#include "sys/etimer.h"
#include "sl_log.h"
#include "zigpc_common_zigbee.h"
#include "zigpc_gateway.h"
#include "zigpc_gateway_notify.h"
#include "attribute_management.h"
#include "attribute_management_int.h"
#include "attribute_management_process.h"
#include "zcl_attribute_info.h"
#include "attribute_map.h"
#include "zigpc_config.h"

Functions

 PROCESS_NAME (attribute_management_process)
 
sl_status_t attribute_management_setup (void)
 attribute_management_setup - sets up the parts of the software used by the attribute manager More...
 
int attribute_management_shutdown (void)
 attribute_management_shutdown - graceful shuts down all parts of the attribute_management component, expected to be called before the program exits More...
 
sl_status_t zigpc_attrmgmt_process_send_event (const enum attr_mgmt_evt event, const void *data, size_t data_size)
 Send an event and associated data to the attribute management Contiki process. Based on the data and data_size passed in, memory will be dynamically allocated in the heap and sent in order to be processed. More...
 
 PROCESS (attribute_management_process, "attribute_management_process")
 
 PROCESS_THREAD (attribute_management_process, ev, data)
 
sl_status_t node_send_report_config_cmd (const zigbee_node_t node)
 node_send_report_config_cmd - API for sending a ZCL command to the zigpc_gateway to configure reports for a node. This is an internal API, expected to be abstracted away. More...
 

Variables

static const char LOG_TAG [] = "attribute_management"
 

Function Documentation

◆ node_send_report_config_cmd()

sl_status_t node_send_report_config_cmd ( const zigbee_node_t  node)

node_send_report_config_cmd - API for sending a ZCL command to the zigpc_gateway to configure reports for a node. This is an internal API, expected to be abstracted away.

Parameters
node- the node, whose endpoints should be configured for reports
Returns
SL_STATUS_OK if the command was sent successfully, SL_STATUS_FAIL otherwise

◆ PROCESS()

PROCESS ( attribute_management_process  ,
"attribute_management_process"   
)

◆ PROCESS_NAME()

PROCESS_NAME ( attribute_management_process  )

◆ PROCESS_THREAD()

PROCESS_THREAD ( attribute_management_process  ,
ev  ,
data   
)

◆ zigpc_attrmgmt_process_send_event()

sl_status_t zigpc_attrmgmt_process_send_event ( const enum attr_mgmt_evt  event,
const void *  data,
size_t  data_size 
)

Send an event and associated data to the attribute management Contiki process. Based on the data and data_size passed in, memory will be dynamically allocated in the heap and sent in order to be processed.

NOTE: The attribute management process will free the memory allocated for data in the process loop.

Parameters
eventEvent type to send
dataPointer to data to be sent with the above event.
data_sizeSize of the data passed in.
Returns
SL_STATUS_OK if the event is sent to the Contiki process, SL_STATUS_NULL_POINTER on invalid arguments passed in, or SL_STATUS_EMPTY if the data_size to send is 0.

Variable Documentation

◆ LOG_TAG

const char LOG_TAG[] = "attribute_management"
static