![]() |
0.01.00
|
This file implements the OpenThread Instance API. More...
#include "openthread-core-config.h"#include <openthread/instance.h>#include <openthread/platform/misc.h>#include <openthread/platform/settings.h>#include "openthread-instance.h"#include "openthread-single-instance.h"#include "common/logging.hpp"#include "common/new.hpp"Macros | |
| #define | WPP_NAME "instance_api.tmh" |
Functions | |
| static | otDEFINE_ALIGNED_VAR (sInstanceRaw, sizeof(otInstance), uint64_t) |
| otInstance * | otGetInstance (void) |
| This function returns a pointer to the single otInstance (if initialized and ready). More... | |
| ot::ThreadNetif & | otGetThreadNetif (void) |
| This function returns a reference to the single thread network interface instance. More... | |
| ot::MeshForwarder & | otGetMeshForwarder (void) |
| This function returns a reference to the single MeshForwarder instance. More... | |
| ot::TaskletScheduler & | otGetTaskletScheduler (void) |
| This function returns a reference to the single TaskletShceduler instance. More... | |
| ot::Ip6::Ip6 & | otGetIp6 (void) |
| This function returns a reference to the single Ip6 instance. More... | |
| void | otInstancePostConstructor (otInstance *aInstance) |
| otInstance * | otInstanceInitSingle (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... | |
| otError | otSetStateChangedCallback (otInstance *aInstance, otStateChangedCallback aCallback, void *aCallbackContext) |
| This function registers a callback to indicate when certain configuration or state changes within OpenThread. More... | |
| void | otRemoveStateChangeCallback (otInstance *aInstance, otStateChangedCallback aCallback, void *aCallbackContext) |
| This function removes a callback to indicate when certain configuration or state changes within OpenThread. More... | |
| void | otInstanceReset (otInstance *aInstance) |
| This method triggers a platform reset. More... | |
| void | 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... | |
Variables | |
| otInstance * | sInstance = NULL |
This file implements the OpenThread Instance API.
| otInstance* otGetInstance | ( | void | ) |
This function returns a pointer to the single otInstance (if initialized and ready).
otInstanceInitSingle()) or it is finalized (call to otInstanceFinalize()). | ot::Ip6::Ip6& otGetIp6 | ( | void | ) |
This function returns a reference to the single Ip6 instance.
| ot::MeshForwarder& otGetMeshForwarder | ( | void | ) |
This function returns a reference to the single MeshForwarder instance.
| ot::TaskletScheduler& otGetTaskletScheduler | ( | void | ) |
This function returns a reference to the single TaskletShceduler instance.
| ot::ThreadNetif& otGetThreadNetif | ( | void | ) |
This function returns a reference to the single thread network interface instance.