nl :: Dệt :: DeviceLayer :: Nội bộ :: GenericThreadStackManagerImpl_OpenThread
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/OpenThread/GenericThreadStackManagerImpl_OpenThread.h>
Cung cấp triển khai chung các tính năng ThreadStackManager hoạt động cùng với OpenThread.
Tóm lược
Lớp này chứa các triển khai các tính năng chọn lọc 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. Nó được dự định sẽ được kế thừa, trực tiếp hoặc gián tiếp, bởi lớp ThreadStackManagerImpl , lớp này cũng xuất hiện dưới dạng tham số ImplClass của mẫu.
Lớp được thiết kế để độc lập với việc lựa chọn hệ điều hành 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).
Di sản
Các lớp con đã biết trực tiếp:nl :: Weave :: DeviceLayer :: Internal :: GenericThreadStackManagerImpl_OpenThread_LwIP <ThreadStackManagerImpl>
nl :: Weave :: DeviceLayer :: Internal :: GenericThreadStackManagerImpl_OpenThread_LwIP <ImplClass>
Chức năng công cộng | |
---|---|
OTInstance () const | otInstance * Trả về đối tượng thể hiện OpenThread bên dưới. |
Chức năng tĩnh công khai | |
---|---|
OnOpenThreadStateChange (uint32_t flags, void *context) | void |
Chức năng công cộng
OTInstance
otInstance * OTInstance() const
Trả về đối tượng phiên bản OpenThread bên dưới.
Chức năng tĩnh công khai
OnOpenThreadStateChange
void OnOpenThreadStateChange( uint32_t flags, void *context )
Các chức năng được bảo vệ
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 )
_GetAndLogThreadTopologyMinimal
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 )
_HaveMeshConnectivity
bool _HaveMeshConnectivity( void )
_HaveRouteToAddress
bool _HaveRouteToAddress( const IPAddress & destAddr )
_IsThreadAttached
bool _IsThreadAttached( void )
_IsThreadEnabled
bool _IsThreadEnabled( void )
_IsThreadProvisoned
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 )
_SetThreadProvision
WEAVE_ERROR _SetThreadProvision( const DeviceNetworkInfo & netInfo )