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
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#
uint16_t
Macro Definition Documentation#
emAfEvents#
#define emAfEventsValue:
emAppEvents
Definition at line
32
of file ./app/framework/include/af-ncp.h
emberAfDebugPrintln#
#define emberAfDebugPrintln
Definition at line
37
of file ./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 ./app/framework/include/af-ncp.h