35 #ifndef OPENTHREAD_INSTANCE_H_ 36 #define OPENTHREAD_INSTANCE_H_ 77 OTAPI void OTCALL otApiFinalize(otApiInstance *aApiInstance);
95 typedef void (
OTCALL *otDeviceAvailabilityChangedCallback)(
bool aAdded,
const GUID *aDeviceGuid,
void *aContext);
105 OTAPI void OTCALL otSetDeviceAvailabilityChangedCallback(otApiInstance *aApiInstance,
106 otDeviceAvailabilityChangedCallback aCallback,
void *aCallbackContext);
115 OTAPI otDeviceList *
OTCALL otEnumerateDevices(otApiInstance *aApiInstance);
255 void *aCallbackContext);
318 #endif // OPENTHREAD_INSTANCE_H_ otError otSetDynamicLogLevel(otInstance *aInstance, otLogLevel aLogLevel)
This function sets the dynamic log level.
Definition: instance_api.cpp:279
This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
This file defines the types and structures used in the OpenThread library API.
OTAPI void OTCALL otInstanceFactoryReset(otInstance *aInstance)
This method deletes all the settings stored on non-volatile memory, and then triggers platform reset...
Definition: instance_api.cpp:248
uint8_t otLogLevel
Log levels.
Definition: types.h:1182
otError otInstanceErasePersistentInfo(otInstance *aInstance)
This function erases all the OpenThread persistent info (network settings) stored on non-volatile mem...
Definition: instance_api.cpp:254
This file includes the platform abstraction for the debug log service.
bool otInstanceIsInitialized(otInstance *aInstance)
This function indicates whether or not the instance is valid/initialized.
Definition: instance_api.cpp:191
otInstance * otInstanceInitSingle(void)
This function initializes the static single instance of the OpenThread library.
Definition: instance_api.cpp:167
OTAPI void OTCALL otInstanceReset(otInstance *aInstance)
This method triggers a platform reset.
Definition: instance_api.cpp:243
otLogLevel otGetDynamicLogLevel(otInstance *aInstance)
This function returns the current dynamic log level.
Definition: instance_api.cpp:265
void otInstanceFinalize(otInstance *aInstance)
This function disables the OpenThread library.
Definition: instance_api.cpp:198
otInstance * otInstanceInit(void *aInstanceBuffer, size_t *aInstanceBufferSize)
This function initializes the OpenThread library.
OTAPI void OTCALL otRemoveStateChangeCallback(otInstance *aInstance, otStateChangedCallback aCallback, void *aCallbackContext)
This function removes a callback to indicate when certain configuration or state changes within OpenT...
Definition: instance_api.cpp:230
void(OTCALL * otStateChangedCallback)(uint32_t aFlags, void *aContext)
This function pointer is called to notify certain configuration or state changes within OpenThread...
Definition: instance.h:230
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
OTAPI otError OTCALL otSetStateChangedCallback(otInstance *aInstance, otStateChangedCallback aCallback, void *aContext)
This function registers a callback to indicate when certain configuration or state changes within Ope...
Definition: instance_api.cpp:213