Zigbee Protocol Controller 1.6.0
ZigPC Gateway Process Event API

Observer API for getting events from zigpc_gateway. More...

Enumerations

enum  zigpc_gateway_process_event { ZIGPC_GW_EVENT_MIN_VAL = 0 , ZIGPC_GW_EVENT_MAX_VAL }
 

Functions

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

Detailed Description

Observer API for getting events from zigpc_gateway.

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

Enumeration Type Documentation

◆ zigpc_gateway_process_event

Enumerator
ZIGPC_GW_EVENT_MIN_VAL 
ZIGPC_GW_EVENT_MAX_VAL 

Function Documentation

◆ zigpc_gateway_process_send_event()

sl_status_t zigpc_gateway_process_send_event ( const enum zigpc_gateway_process_event  event,
const void *  data,
size_t  data_size 
)

Helper to send events to Contiki process in ZigPC Gateway 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 Gateway contiki process, SL_STATUS_NULL_POINTER on invalid arguments passed in, or SL_STATUS_EMPTY if the data_size to send is 0.