Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
EvaBoard Management Entity (EVBME) functions. More...
#include <stdio.h>
#include <string.h>
#include "cascoda-bm/cascoda_bm.h"
#include "cascoda-bm/cascoda_dispatch.h"
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_os.h"
#include "cascoda-bm/cascoda_ota_upgrade.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-bm/chili_test.h"
#include "cascoda-bm/test15_4_evbme.h"
#include "cascoda-util/cascoda_rand.h"
#include "cascoda-util/cascoda_tasklet.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "cascoda_bm_internal.h"
#include "cascoda_chili_config.h"
#include "cascoda_external_flash.h"
#include "evbme_messages.h"
#include "mac_messages.h"
Functions | |
void | cascoda_io_handler (struct ca821x_dev *pDeviceRef) |
Processes messages received over available interfaces. More... | |
ca_error | EVBME_NotHandled (const struct MAC_Message *msg, struct ca821x_dev *pDeviceRef) |
Sends DownStream Command from API UpStream to Serial. More... | |
void | EVBME_SwitchClock (struct ca821x_dev *pDeviceRef, u8_t useExternalClock) |
System Clock Switch. 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_CAX_Restart (struct ca821x_dev *pDeviceRef) |
Restarts Air Interface. More... | |
ca_error | EVBMEInitialise (const char *aAppName, struct ca821x_dev *pDeviceRef) |
Initialises EVBME after Reset. More... | |
const char * | EVBME_GetAppName (void) |
Returns the app name string. More... | |
CA_TOOL_WEAK ca_error | EVBME_GET_OT_Attrib (enum evbme_attribute aAttrib, uint8_t *aOutBufLen, uint8_t *aOutBuf) |
Get an openthread-specific EVBME attribute. More... | |
Variables | |
uint8_t | EVBME_HasReset = 0 |
Used to notify apps that radio has been reset. More... | |
uint8_t | EVBME_UseMAC = 0 |
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) |
Function pointer for reinitialising the CA821X upon a restart/reset. More... | |
int(* | cascoda_serial_dispatch )(u8_t *buf, size_t len, struct ca821x_dev *pDeviceRef) |
Function pointer called when a serial message is received. More... | |
EvaBoard Management Entity (EVBME) functions.
int(* cascoda_serial_dispatch) (u8_t *buf, size_t len, struct ca821x_dev *pDeviceRef) | ( | u8_t * | buf, |
size_t | len, | ||
struct ca821x_dev * | pDeviceRef | ||
) |
Function pointer called when a serial message is received.
Should be populated by applications wishing to use the serial interface