Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
misc.c File Reference
#include <assert.h>
#include <string.h>
#include "openthread/dataset.h"
#include "openthread/joiner.h"
#include "openthread/link.h"
#include "openthread/platform/misc.h"
#include "openthread/platform/radio.h"
#include "openthread/platform/settings.h"
#include "openthread/random_crypto.h"
#include "openthread/tasklet.h"
#include "openthread/thread.h"
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "platform.h"
Include dependency graph for misc.c:

Classes

struct  join_status
 

Enumerations

enum  { JOINER_CREDENTIAL_LEN = 8 , JOINER_CREDENTIAL_MAXLEN = 32 , JOINER_CREDENTIAL_MINLEN = 6 }
 

Functions

void otPlatReset (otInstance *aInstance)
 
otPlatResetReason otPlatGetResetReason (otInstance *aInstance)
 
void otPlatWakeHost (void)
 
otError PlatformSleep (uint32_t aSleepTime)
 Sends the platform and cax to sleep for the given number of milliseconds. More...
 
bool PlatformCanSleep (otInstance *aInstance)
 Check whether the platform is able to sleep. More...
 
const char * PlatformGetJoinerCredential (otInstance *aInstance)
 Helper function to get the joiner credential of this device. More...
 
otError PlatformTryJoinWithPskd (struct ca821x_dev *pDeviceRef, otInstance *aInstance, const char *aPskd)
 Helper function to attempt the Thread joining process, with an explicit passcode. More...
 
otError PlatformTryJoinWithPskdWithCustomPoll (struct ca821x_dev *pDeviceRef, otInstance *aInstance, const char *aPskd, void(*poll_func)(void))
 Identiacl to PlatformTryJoinWithPsdk(), except that an additional poll function can be provided, which will be called while the joining process is in progress. More...
 
otError PlatformPrintJoinerCredentialsWithPskd (struct ca821x_dev *pDeviceRef, otInstance *aInstance, uint32_t aMaxWaitMs, const char *aPskd)
 Helper function to print the Thread Joiner credentials, with an explicit passcode (for instance, upon boot). More...
 
otError PlatformTryJoin (struct ca821x_dev *pDeviceRef, otInstance *aInstance)
 Helper function to attempt the Thread joining process. More...
 
otError PlatformTryJoinWithCustomPoll (struct ca821x_dev *pDeviceRef, otInstance *aInstance, void(*poll_func)(void))
 Identical to PlatformTryJoin(), except that an additional poll function can be provided, which will be called while the joining process is in progress. More...
 
otError PlatformPrintJoinerCredentials (struct ca821x_dev *pDeviceRef, otInstance *aInstance, uint32_t aMaxWaitMs)
 Helper function to print the Thread Joiner credentials (for instance, upon boot). More...
 
otError PlatformEraseJoinerCredentials (otInstance *aInstance)
 Helper function to erase the joiner credentials of this device. More...
 
ca_error EVBME_GET_OT_Attrib (enum evbme_attribute aAttrib, uint8_t *aOutBufLen, uint8_t *aOutBuf)
 Get an openthread-specific EVBME attribute. More...
 
otError PlatformGetQRString (char *aBufOut, size_t bufferSize, otInstance *aInstance)
 Get the QR text string format to be read as a Thread Connect QR Code, enabling external commissioning via the Thread Commissioning App. More...
 
void HardFault_Handler ()
 
void otPlatAssertFail (const char *aFilename, int aLineNumber)
 

Variables

bool SleepEnabled = 1
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
JOINER_CREDENTIAL_LEN 
JOINER_CREDENTIAL_MAXLEN 
JOINER_CREDENTIAL_MINLEN 

Function Documentation

◆ HardFault_Handler()

void HardFault_Handler ( )

◆ otPlatAssertFail()

void otPlatAssertFail ( const char *  aFilename,
int  aLineNumber 
)

◆ otPlatGetResetReason()

otPlatResetReason otPlatGetResetReason ( otInstance *  aInstance)

◆ otPlatReset()

void otPlatReset ( otInstance *  aInstance)

◆ otPlatWakeHost()

void otPlatWakeHost ( void  )

Variable Documentation

◆ SleepEnabled

bool SleepEnabled = 1