Zigbee Protocol Controller 1.6.0
ZigPC Net Mgmt Process Event API

Contiki Process API to send events to ZigPC Net Mgmt. More...

Enumerations

enum  zigpc_net_mgmt_process_event { ZIGPC_NET_MGMT_EVENT_MIN_VAL = 0 , ZIGPC_NET_MGMT_EVENT_FSM , ZIGPC_NET_MGMT_EVENT_MAX_VAL }
 ZigPC Network Management Process events. More...
 

Functions

sl_status_t zigpc_net_mgmt_process_send_event (const enum zigpc_net_mgmt_process_event event, const void *data, size_t data_size)
 Helper to send events to Contiki process in ZigPC Net Mgmt by dynamically allocating the event data based on the data_size passed in. More...
 

Detailed Description

Contiki Process API to send events to ZigPC Net Mgmt.

In order to send events to the ZigPC Net Mgmt process, the following header outlines the process event types and helpers to send an event to the Contiki process.

Enumeration Type Documentation

◆ zigpc_net_mgmt_process_event

ZigPC Network Management Process events.

Enumerator
ZIGPC_NET_MGMT_EVENT_MIN_VAL 
ZIGPC_NET_MGMT_EVENT_FSM 

Send the event to the Network Managment FSM. See zigpc_net_mgmt_process_data_fsm_t for more information.

ZIGPC_NET_MGMT_EVENT_MAX_VAL 

Function Documentation

◆ zigpc_net_mgmt_process_send_event()

sl_status_t zigpc_net_mgmt_process_send_event ( const enum zigpc_net_mgmt_process_event  event,
const void *  data,
size_t  data_size 
)

Helper to send events to Contiki process in ZigPC Net Mgmt by dynamically allocating the event data based on the data_size passed in.

Parameters
eventevent type.
dataassociated data.
data_sizesize of associated data.
Returns
SL_STATUS_OK if the event is sent to the ZigPC Net Mgmt contiki process, SL_STATUS_NULL_POINTER on invalid arguments passed in, or SL_STATUS_EMPTY if the data_size to send is 0.