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:GenericPlatformManagerImpl_FreeRTOS< 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()

_RemoveEventHandler

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

_日程安排

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
)