nl::Weave::DeviceLayer::Internal::GenericPlatformManagerImpl

#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericPlatformManagerImpl.h>

提供適用於多個平台的 PlatformManager 功能通用實作方式。

摘要

這個範本包含來自 PlatformManager 抽象介面的精選功能實作,適合所有平台使用。其目標為 PlatformManagerImpl 類別直接繼承 (直接或間接),此類別也會做為範本的 ImplClass 參數。

繼承

直接已知子類別:
  nl::Weave::DeviceLayer::Internal::GenericPlatformManagerImpl_FreeRTOS< PlatformManagerImpl >
  nl::Weave::DeviceLayer::Internal::PlatformManagerImpl_FreeR< ImplClass >

受保護的屬性

mAppEventHandlerList

受保護的函式

DispatchEventToApplication(const WeaveDeviceEvent *event)
void
DispatchEventToDeviceLayer(const WeaveDeviceEvent *event)
void
DispatchEventToSystemLayer(const WeaveDeviceEvent *event)
void
_AddEventHandler(PlatformManager::EventHandlerFunct handler, intptr_t arg)
_DispatchEvent(const WeaveDeviceEvent *event)
void
_InitWeaveStack()
_RemoveEventHandler(PlatformManager::EventHandlerFunct handler, intptr_t arg)
void
_ScheduleWork(AsyncWorkFunct workFunct, intptr_t arg)
void

受保護的靜態函式

HandleMessageLayerActivityChanged(bool messageLayerIsActive)
void
HandleSessionEstablished(WeaveSecurityManager *sm, WeaveConnection *con, void *reqState, uint16_t sessionKeyId, uint64_t peerNodeId, uint8_t encType)
void

受保護的屬性

mAppEventHandlerList

AppEventHandler * mAppEventHandlerList

受保護的函式

DispatchEventToApplication

void DispatchEventToApplication(
  const WeaveDeviceEvent *event
)

DispatchEventToDeviceLayer

void DispatchEventToDeviceLayer(
  const WeaveDeviceEvent *event
)

DispatchEventToSystemLayer

void DispatchEventToSystemLayer(
  const WeaveDeviceEvent *event
)

_新增事件處理常式

WEAVE_ERROR _AddEventHandler(
  PlatformManager::EventHandlerFunct handler,
  intptr_t arg
)

_調度事件

void _DispatchEvent(
  const WeaveDeviceEvent *event
)

_InitWeaveStack

WEAVE_ERROR _InitWeaveStack()

_移除事件處理常式

void _RemoveEventHandler(
  PlatformManager::EventHandlerFunct handler,
  intptr_t arg
)

_ScheduleWork

void _ScheduleWork(
  AsyncWorkFunct workFunct,
  intptr_t arg
)

受保護的靜態函式

HandleMessageLayerActivityChanged

void HandleMessageLayerActivityChanged(
  bool messageLayerIsActive
)

HandleSessionEstablished

void HandleSessionEstablished(
  WeaveSecurityManager *sm,
  WeaveConnection *con,
  void *reqState,
  uint16_t sessionKeyId,
  uint64_t peerNodeId,
  uint8_t encType
)