Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_evbme.h File Reference

Declaration of EVBME Functions. More...

#include "cascoda-bm/cascoda_bm.h"
#include "ca821x_api.h"
Include dependency graph for cascoda_evbme.h:

Go to the source code of this file.

Macros

#define CA_TARGET_NAME   "UNKNOWN-TARGET"
 

Enumerations

enum  powerdown_mode {
  PDM_ALLON = 0 , PDM_ACTIVE = 1 , PDM_STANDBY = 2 , PDM_POWERDOWN = 3 ,
  PDM_POWEROFF = 4 , PDM_DPD = 5 , PDM_DPD_MCU_ONLY = 6
}
 Definitions for Powerdown Modes. More...
 

Functions

ca_error EVBMEInitialise (const char *aAppName, struct ca821x_dev *dev)
 Initialises EVBME after Reset. More...
 
const char * EVBME_GetAppName (void)
 Returns the app name string. More...
 
ca_error EVBME_NotHandled (const struct MAC_Message *msg, struct ca821x_dev *pDeviceRef)
 Sends DownStream Command from API UpStream to Serial. More...
 
void cascoda_io_handler (struct ca821x_dev *pDeviceRef)
 Processes messages received over available interfaces. More...
 
void EVBME_PowerDown (enum powerdown_mode mode, u32_t sleeptime_ms, struct ca821x_dev *pDeviceRef)
 Put the system into a state of power-down for a given time. More...
 
void EVBME_SwitchClock (struct ca821x_dev *pDeviceRef, u8_t useExternalClock)
 System Clock Switch. More...
 
void EVBME_CAX_Restart (struct ca821x_dev *pDeviceRef)
 Restarts Air Interface. More...
 
ca_error EVBME_GET_OT_Attrib (enum evbme_attribute aAttrib, uint8_t *aOutBufLen, uint8_t *aOutBuf)
 Get an openthread-specific EVBME attribute. More...
 

Variables

u8_t EVBME_HasReset
 Used to notify apps that radio has been reset. More...
 
u8_t EVBME_UseMAC
 Use MAC functionality during phy tests. More...
 
void(* EVBME_Message )(char *message, size_t len)
 Function pointer for sending ASCII reporting messages upstream. More...
 
void(* MAC_Message )(u8_t CommandId, u8_t Count, const u8_t *pBuffer)
 Function pointer for sending API commands upstream. More...
 
int(* cascoda_reinitialise )(struct ca821x_dev *pDeviceRef)
 re-initialises CA821x / MAC PIB after powerdown. More...
 

Detailed Description

Declaration of EVBME Functions.