This file is used to define includes and declarations to adapt afv2 plugins on afv6 framework. This file can be extended to make more afv2 plugins adapt to afv6.

License#

Copyright 2019 Silicon Laboratories Inc. www.silabs.com

The licensor of this software is Silicon Laboratories Inc. Your use of this software is governed by the terms of Silicon Labs Master Software License Agreement (MSLA) available at www.silabs.com/about-us/legal/master-software-license-agreement. This software is distributed to you in Source Code format and is governed by the sections of the MSLA applicable to Source Code.

/***************************************************************************/
#ifndef SILABS_AF_NCP_H
#define SILABS_AF_NCP_H

#include "ncp-callbacks.h"
#include "hal/plugin/serial/serial.h"
#include "stack/include/ember.h"
#include "hal/hal.h"
#include "event_control/event.h"

// Renaming afv2 application events to afv6.
// Afv2 framework defines application events as emAfEvents
// where as emAppEvents for afv6.
#define emAfEvents emAppEvents
extern EmberEventData emAfEvents[];
extern EmberTaskId emAfTaskId;
// Enable this to get prints on virtual uart if needed.
//#define emberAfDebugPrintln(...)  emberSerialPrintfLine(0, __VA_ARGS__)
#define emberAfDebugPrintln(...)

// This is being used by idle-sleep plugin
typedef enum {
  EMBER_AF_OK_TO_SLEEP,
  EMBER_AF_OK_TO_HIBERNATE = EMBER_AF_OK_TO_SLEEP,
  EMBER_AF_OK_TO_NAP,
  EMBER_AF_STAY_AWAKE,
} EmberAfEventSleepControl;

// Get length of data in a callback queue.
uint16_t emberGetCallbackQueueLength(void);

#endif // SILABS_AF_NCP_H

Macros#

#define
emAfEvents emAppEvents
#define

Enumerations#

enum
EMBER_AF_OK_TO_SLEEP
EMBER_AF_OK_TO_HIBERNATE = EMBER_AF_OK_TO_SLEEP
EMBER_AF_OK_TO_NAP
EMBER_AF_STAY_AWAKE
EMBER_AF_OK_TO_SLEEP
EMBER_AF_OK_TO_HIBERNATE = EMBER_AF_OK_TO_SLEEP
EMBER_AF_OK_TO_NAP
EMBER_AF_STAY_AWAKE
}

Functions#

Macro Definition Documentation#

emAfEvents#

#define emAfEvents
Value:
emAppEvents

Definition at line 32 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af-ncp.h

emberAfDebugPrintln#

#define emberAfDebugPrintln

Definition at line 37 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af-ncp.h

Enumeration Documentation#

EmberAfEventSleepControl#

EmberAfEventSleepControl
Enumerator
EMBER_AF_OK_TO_SLEEP
EMBER_AF_OK_TO_HIBERNATE

Deprecated

EMBER_AF_OK_TO_NAP

Deprecated

EMBER_AF_STAY_AWAKE
EMBER_AF_OK_TO_SLEEP
EMBER_AF_OK_TO_HIBERNATE

Deprecated

EMBER_AF_OK_TO_NAP

Deprecated

EMBER_AF_STAY_AWAKE

Definition at line 40 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af-ncp.h

Variable Documentation#

emAfEvents#

EmberEventData emAfEvents[]

Definition at line 33 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af-ncp.h

emAfTaskId#

EmberTaskId emAfTaskId

Definition at line 34 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af-ncp.h

Function Documentation#

emberGetCallbackQueueLength#

uint16_t emberGetCallbackQueueLength (void )
Parameters
N/A

Definition at line 50 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af-ncp.h