nl::Weave::DeviceLayer::Internal::GenericThreadStackManagerImpl_OpenThread

#include <src/adaptations/device-layer/include/Weave/DeviceLayer/OpenThread/GenericThreadStackManagerImpl_OpenThread.h>

Cung cấp cách triển khai chung các tính năng ThreadStackManager hoạt động cùng với OpenThread.

Tóm tắt

Lớp này chứa cách triển khai một số tính năng từ giao diện trừu tượng ThreadStackManager phù hợp để sử dụng trên các thiết bị sử dụng OpenThread. Mẫu này là lớp kế thừa trực tiếp hoặc gián tiếp từ lớp ThreadStackManagerImpl, cũng xuất hiện dưới dạng tham số ImplClass của mẫu.

Lớp này được thiết kế độc lập với việc lựa chọn hệ điều hành của máy chủ (ví dụ: RTOS hoặc posix) và ngăn xếp mạng (ví dụ: LwIP hoặc ngăn xếp IP khác).

Tính kế thừa

Lớp con đã biết trực tiếp:
  nl::Weave::DeviceLayer::Internal::GenericThreadStackManagerImpl_OpenThread_LwIP< ThreadStackManagerImpl >
  nl::Weave::DeviceLayer::Internal::GenericThreadStackManagerl_OpenThread_LwIP< ImplClass >

Hàm công khai

OTInstance() const
otInstance *
Trả về đối tượng thực thể OpenThread cơ bản.

Hàm tĩnh công khai

OnOpenThreadStateChange(uint32_t flags, void *context)
void

Hàm được bảo vệ

AdjustPollingInterval(void)
DoInit(otInstance *otInst)
IsThreadAttachedNoLock(void)
bool
_ClearThreadProvision(void)
void
_GetAndLogThreadStatsCounters(void)
_GetAndLogThreadTopologyFull(void)
_GetAndLogThreadTopologyMinimal(void)
_GetPrimary802154MACAddress(uint8_t *buf)
_GetThreadDeviceType(void)
ConnectivityManager::ThreadDeviceType
_GetThreadPollingConfig(ConnectivityManager::ThreadPollingConfig & pollingConfig)
void
_GetThreadProvision(DeviceNetworkInfo & netInfo, bool includeCredentials)
_HaveMeshConnectivity(void)
bool
_HaveRouteToAddress(const IPAddress & destAddr)
bool
_IsThreadAttached(void)
bool
_IsThreadEnabled(void)
bool
_IsThreadProvisioned(void)
bool
_OnMessageLayerActivityChanged(bool messageLayerIsActive)
void
_OnPlatformEvent(const WeaveDeviceEvent *event)
void
_OnWoBLEAdvertisingStart(void)
void
_OnWoBLEAdvertisingStop(void)
void
_ProcessThreadActivity(void)
void
_SetThreadDeviceType(ConnectivityManager::ThreadDeviceType deviceType)
_SetThreadEnabled(bool val)
_SetThreadPollingConfig(const ConnectivityManager::ThreadPollingConfig & pollingConfig)
_SetThreadProvision(const DeviceNetworkInfo & netInfo)

Hàm công khai

OTInstance

otInstance * OTInstance() const 

Trả về đối tượng thực thể OpenThread cơ bản.

Hàm tĩnh công khai

OnOpenThreadStateChange

void OnOpenThreadStateChange(
  uint32_t flags,
  void *context
)

Hàm được bảo vệ

AdjustPollingInterval

WEAVE_ERROR AdjustPollingInterval(
  void
)

DoInit

WEAVE_ERROR DoInit(
  otInstance *otInst
)

IsThreadAttachedNoLock

bool IsThreadAttachedNoLock(
  void
)

_ClearThread cung cấp

void _ClearThreadProvision(
  void
)

_GetAndLogThreadStatsCounters

WEAVE_ERROR _GetAndLogThreadStatsCounters(
  void
)

_GetAndLogThreadTopologyFull

WEAVE_ERROR _GetAndLogThreadTopologyFull(
  void
)

_GetAndLogThreadTopology tối thiểu

WEAVE_ERROR _GetAndLogThreadTopologyMinimal(
  void
)

_GetPrimary802154MACAddress

WEAVE_ERROR _GetPrimary802154MACAddress(
  uint8_t *buf
)

_GetThreadDeviceType

ConnectivityManager::ThreadDeviceType _GetThreadDeviceType(
  void
)

_GetThreadPollingConfig

void _GetThreadPollingConfig(
  ConnectivityManager::ThreadPollingConfig & pollingConfig
)

_GetThreadCung cấp

WEAVE_ERROR _GetThreadProvision(
  DeviceNetworkInfo & netInfo,
  bool includeCredentials
)

_HaveMeshConnectivity

bool _HaveMeshConnectivity(
  void
)

_CóRouteToAddress

bool _HaveRouteToAddress(
  const IPAddress & destAddr
)

_IsThreadAttached

bool _IsThreadAttached(
  void
)

_IsThreadEnabled

bool _IsThreadEnabled(
  void
)

_IsThreadđược cung cấp

bool _IsThreadProvisioned(
  void
)

_OnMessageLayerActivityChanged

void _OnMessageLayerActivityChanged(
  bool messageLayerIsActive
)

_OnPlatformEvent

void _OnPlatformEvent(
  const WeaveDeviceEvent *event
)

_OnWoBLEAdvertisingStart

void _OnWoBLEAdvertisingStart(
  void
)

_OnWoBLEAdvertisingStop

void _OnWoBLEAdvertisingStop(
  void
)

_ProcessThreadActivity

void _ProcessThreadActivity(
  void
)

_SetThreadDeviceType

WEAVE_ERROR _SetThreadDeviceType(
  ConnectivityManager::ThreadDeviceType deviceType
)

_SetThreadEnabled

WEAVE_ERROR _SetThreadEnabled(
  bool val
)

_SetThreadPollingConfig

WEAVE_ERROR _SetThreadPollingConfig(
  const ConnectivityManager::ThreadPollingConfig & pollingConfig
)

_SetThreadCung cấp

WEAVE_ERROR _SetThreadProvision(
  const DeviceNetworkInfo & netInfo
)