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

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

มีการติดตั้งใช้งานฟีเจอร์ ThreadStackManager เป็นแบบทั่วไปที่ทำงานร่วมกับ OpenThread

สรุป

คลาสนี้ประกอบด้วยการใช้งานฟีเจอร์บางอย่างจากอินเทอร์เฟซนามธรรม ThreadStackManager ที่เหมาะสำหรับการใช้งานในอุปกรณ์ที่ใช้ OpenThread และมีจุดประสงค์เพื่อการรับค่าโดยตรงหรือโดยอ้อมโดยคลาส ThreadStackManagerImpl ซึ่งปรากฏเป็นพารามิเตอร์ ImplClass ของเทมเพลตด้วย

คลาสนี้ออกแบบมาให้เป็นอิสระจากระบบปฏิบัติการของโฮสต์ที่เป็นทางเลือก (เช่น RTOS หรือ posix) และสแต็กเครือข่าย (เช่น LwIP หรือสแต็ก IP อื่นๆ)

การสืบทอด

คลาสย่อยที่รู้จักโดยตรง:
  nl::Weave::DeviceLayer::Internal::genericStackManagerManagerImpl_OpenThread_LwIP< ThreadStackManagerImpl >
  nl::Weave::DeviceLayer::Internal::ThreadStackManagerImpl_OpenThread_LwIP< ImplThreadClass >

ฟังก์ชันสาธารณะ

OTInstance() const
otInstance *
แสดงผลออบเจ็กต์อินสแตนซ์ OpenThread ที่สำคัญ

ฟังก์ชันแบบคงที่แบบสาธารณะ

OnOpenThreadStateChange(uint32_t flags, void *context)
void

ฟังก์ชันที่มีการป้องกัน

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)

ฟังก์ชันสาธารณะ

OTInstance

otInstance * OTInstance() const 

แสดงผลออบเจ็กต์อินสแตนซ์ OpenThread ที่สำคัญ

ฟังก์ชันแบบคงที่แบบสาธารณะ

OnOpenThreadStateChange

void OnOpenThreadStateChange(
  uint32_t flags,
  void *context
)

ฟังก์ชันที่มีการป้องกัน

AdjustPollingInterval

WEAVE_ERROR AdjustPollingInterval(
  void
)

DoInit

WEAVE_ERROR DoInit(
  otInstance *otInst
)

IsThreadAttachedNoLock

bool IsThreadAttachedNoLock(
  void
)

_ClearThreadProvision

void _ClearThreadProvision(
  void
)

_GetAndLogThreadStatsCounters

WEAVE_ERROR _GetAndLogThreadStatsCounters(
  void
)

_GetAndLogThreadTopologyFull

WEAVE_ERROR _GetAndLogThreadTopologyFull(
  void
)

_GetAndLogThreadTopologyต่ำสุด

WEAVE_ERROR _GetAndLogThreadTopologyMinimal(
  void
)

_GetPrimary802154MACAddress

WEAVE_ERROR _GetPrimary802154MACAddress(
  uint8_t *buf
)

_GetThreadDeviceType

ConnectivityManager::ThreadDeviceType _GetThreadDeviceType(
  void
)

_GetThreadPollingConfig

void _GetThreadPollingConfig(
  ConnectivityManager::ThreadPollingConfig & pollingConfig
)

_GetThreadProvision

WEAVE_ERROR _GetThreadProvision(
  DeviceNetworkInfo & netInfo,
  bool includeCredentials
)

_มีการเชื่อมต่อ Mesh

bool _HaveMeshConnectivity(
  void
)

_มีเส้นทางไปที่ที่อยู่

bool _HaveRouteToAddress(
  const IPAddress & destAddr
)

_IsThreadAttached

bool _IsThreadAttached(
  void
)

_IsThreadEnabled

bool _IsThreadEnabled(
  void
)

_IsThreadProvisioninged

bool _IsThreadProvisioned(
  void
)

_OnMessageLayerActivity มีการเปลี่ยนแปลง

void _OnMessageLayerActivityChanged(
  bool messageLayerIsActive
)

_กิจกรรมบนแพลตฟอร์ม

void _OnPlatformEvent(
  const WeaveDeviceEvent *event
)

_OnWoBLEAdvertisingStart

void _OnWoBLEAdvertisingStart(
  void
)

_OnWoBLEAdvertisingStop

void _OnWoBLEAdvertisingStop(
  void
)

_ProcessThreadActivity

void _ProcessThreadActivity(
  void
)

_ตั้งค่าชนิดอุปกรณ์เธรด

WEAVE_ERROR _SetThreadDeviceType(
  ConnectivityManager::ThreadDeviceType deviceType
)

_SetThreadEnabled

WEAVE_ERROR _SetThreadEnabled(
  bool val
)

_SetThreadPollingConfig

WEAVE_ERROR _SetThreadPollingConfig(
  const ConnectivityManager::ThreadPollingConfig & pollingConfig
)

_SetThreadProvisioning

WEAVE_ERROR _SetThreadProvision(
  const DeviceNetworkInfo & netInfo
)