Evaluation Board Management Entity (EVBME) for core application-platform interactions.
More...
Evaluation Board Management Entity (EVBME) for core application-platform interactions.
◆ CA_TARGET_NAME
#define CA_TARGET_NAME "UNKNOWN-TARGET" |
◆ powerdown_mode
Definitions for Powerdown Modes.
Enumerator |
---|
PDM_ALLON | Mainly for Testing.
|
PDM_ACTIVE | CAX Full Data Retention, MAC Running.
|
PDM_STANDBY | CAX Full Data Retention.
|
PDM_POWERDOWN | No CAX Retention, PIB has to be re-initialised.
|
PDM_POWEROFF | No CAX Retention, PIB has to be re-initialised.
Timer-Wakeup only
|
PDM_DPD | No CAX Retention or MCU Retention (Data saved in NVM)
|
PDM_DPD_MCU_ONLY | No CAX Retention or MCU Retention (Data saved in NVM)
|
◆ cascoda_io_handler()
void cascoda_io_handler |
( |
struct ca821x_dev * |
pDeviceRef | ) |
|
Processes messages received over available interfaces.
This function should be called regularly from application context eg the main loop. Alternatively, you may use cascoda_io_signal() to notify the application that it must call cascoda_io_handler().
◆ EVBME_CAX_Restart()
void EVBME_CAX_Restart |
( |
struct ca821x_dev * |
pDeviceRef | ) |
|
Restarts Air Interface.
Resets and re-initialises CAX
◆ EVBME_GET_OT_Attrib()
Get an openthread-specific EVBME attribute.
Only valid when openthread is being used, otherwise will return CA_ERROR_UNKNOWN.
- Parameters
-
| aAttrib | The attribute to get |
[in,out] | aOutBufLen | out:The length of the attribute data in octets, in: the maximum length of the attribute value in octets |
[out] | aOutBuf | The buffer to fill with attribute data |
- Returns
- Status of the command
- Return values
-
CA_ERROR_SUCCESS | The output buffer is filled with the attribute data |
CA_ERROR_UNKNOWN | The attribute was not recognised for this system |
CA_ERROR_NO_BUFFER | The output buffer isn't big enough to store the attribute |
◆ EVBME_GetAppName()
const char* EVBME_GetAppName |
( |
void |
| ) |
|
Returns the app name string.
- Returns
- app_name
◆ EVBME_NotHandled()
Sends DownStream Command from API UpStream to Serial.
- Parameters
-
msg | - Message to send upstream |
pDeviceRef | - Cascoda device reference |
◆ EVBME_PowerDown()
Put the system into a state of power-down for a given time.
- Parameters
-
mode | - Power-Down Mode |
sleeptime_ms | - milliseconds to sleep for |
pDeviceRef | - Pointer to initialised ca821x_device_ref struct |
Power-Down Modes
Enum | MCU | CAX | Notes |
PDM_ALLON | Active | Active | Mainly for Testing |
PDM_ACTIVE | Power-Down | Active | CAX Full Data Retention, MAC Running |
PDM_STANDBY | Power-Down | Standby | CAX Full Data Retention |
PDM_POWERDOWN | Power-Down | Power-Down 0 | No CAX Retention, PIB has to be re-initialised |
PDM_POWEROFF | Power-Down | Power-Down 1 | No CAX Retention, PIB has to be re-initialised. Timer-Wakeup only |
PDM_DPD | Deep-Power-Down | Power-Down 1 | No CAX Retention or MCU Retention (Data saved in NVM) |
PDM_DPD_MCU_ONLY | Deep-Power-Down | Power-Down 0 | No CAX Retention or MCU Retention (Data saved in NVM). MCU-Wakeup only |
◆ EVBME_SwitchClock()
void EVBME_SwitchClock |
( |
struct ca821x_dev * |
pDeviceRef, |
|
|
u8_t |
useExternalClock |
|
) |
| |
System Clock Switch.
- Parameters
-
pDeviceRef | - a pointer to the ca821x_dev struct |
useExternalClock | - boolean (1: use external clock from ca821x, 0: use internal clock) |
◆ EVBMEInitialise()
Initialises EVBME after Reset.
Initialises low level interfaces, resets and initialises CA-8210.
- Parameters
-
aAppName | - App name string |
dev | - Pointer to initialised ca821x_device_ref struct |
- Returns
- Status of initialisation
◆ cascoda_reinitialise
re-initialises CA821x / MAC PIB after powerdown.
The function pointer should be populated at the top level
re-initialises CA821x / MAC PIB after powerdown.
◆ EVBME_HasReset
Used to notify apps that radio has been reset.
◆ EVBME_Message
void(* EVBME_Message) (char *message, size_t len) |
( |
char * |
message, |
|
|
size_t |
len |
|
) |
| |
|
extern |
Function pointer for sending ASCII reporting messages upstream.
◆ EVBME_UseMAC
Use MAC functionality during phy tests.
◆ MAC_Message
Function pointer for sending API commands upstream.