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

EvaBoard Management Entity (EVBME) functions. More...

Include dependency graph for cascoda_evbme.c:

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...
 

Detailed Description

EvaBoard Management Entity (EVBME) functions.

Variable Documentation

◆ cascoda_serial_dispatch

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