0.01.00
instance.h File Reference

This file defines the OpenThread Instance API. More...

#include <stdlib.h>
#include <openthread/types.h>
#include <openthread/platform/logging.h>

Go to the source code of this file.

Typedefs

typedef void(OTCALLotStateChangedCallback) (uint32_t aFlags, void *aContext)
 This function pointer is called to notify certain configuration or state changes within OpenThread. More...
 

Functions

otInstanceotInstanceInit (void *aInstanceBuffer, size_t *aInstanceBufferSize)
 This function initializes the OpenThread library. More...
 
otInstanceotInstanceInitSingle (void)
 This function initializes the static single instance of the OpenThread library. More...
 
bool otInstanceIsInitialized (otInstance *aInstance)
 This function indicates whether or not the instance is valid/initialized. More...
 
void otInstanceFinalize (otInstance *aInstance)
 This function disables the OpenThread library. More...
 
OTAPI otError OTCALL otSetStateChangedCallback (otInstance *aInstance, otStateChangedCallback aCallback, void *aContext)
 This function registers a callback to indicate when certain configuration or state changes within OpenThread. More...
 
OTAPI void OTCALL otRemoveStateChangeCallback (otInstance *aInstance, otStateChangedCallback aCallback, void *aCallbackContext)
 This function removes a callback to indicate when certain configuration or state changes within OpenThread. More...
 
OTAPI void OTCALL otInstanceReset (otInstance *aInstance)
 This method triggers a platform reset. More...
 
OTAPI void OTCALL otInstanceFactoryReset (otInstance *aInstance)
 This method deletes all the settings stored on non-volatile memory, and then triggers platform reset. More...
 
otError otInstanceErasePersistentInfo (otInstance *aInstance)
 This function erases all the OpenThread persistent info (network settings) stored on non-volatile memory. More...
 
otLogLevel otGetDynamicLogLevel (otInstance *aInstance)
 This function returns the current dynamic log level. More...
 
otError otSetDynamicLogLevel (otInstance *aInstance, otLogLevel aLogLevel)
 This function sets the dynamic log level. More...
 

Detailed Description

This file defines the OpenThread Instance API.