nl::Ble

此命名空间包含 Weave 中用于蓝牙低功耗 (BLE)(也称为 Bluetooth Smart)的所有接口。

摘要

枚举

@12 枚举
@371 枚举
@372 枚举
@373 枚举
@374 枚举
@375 枚举
@376 枚举
@377 枚举
BleRole 枚举
端点的作用相应的 BLE 连接。确定端点发送和接收数据的方式。
BleTransportProtocolVersion 枚举
定义基于 BLE 传输协议的 Weave 版本的枚举。
PacketType_t 枚举
WeaveBLEServiceDataType 枚举
可能随 Weave BLE 服务广告数据一起出现的 Weave 数据块类型。

类型定义符

SequenceNumber_t typedef
uint8_t

变量

WEAVE_BLE_SVC_ID
const WeaveBleUUID

函数

FormatBleLayerError(char *buf, uint16_t bufSize, int32_t err)
bool
HandleCommandTest(void *ble, BLE_CONNECTION_OBJECT connObj, uint32_t packetCount, uint32_t duration, uint16_t txGap, uint8_t needAck, uint16_t payloadSize, bool reverse)
HandleCommandTestAbort(void *ble, BLE_CONNECTION_OBJECT connObj)
HandleCommandTestResult(void *ble, BLE_CONNECTION_OBJECT connObj, bool local)
HandleCommandTxTiming(void *ble, BLE_CONNECTION_OBJECT connObj, bool enabled, bool remote)
RegisterBleLayerErrorFormatter(void)
void
UUIDsMatch(const WeaveBleUUID *idOne, const WeaveBleUUID *idTwo)
bool

nl::Ble::BLEEndPoint
nl::Ble::BTCommandHeader
nl::Ble::BTCommandTypeAck
nl::Ble::BTCommandTypeTestData
nl::Ble::BTCommandTypeTestRequest
nl::Ble::BTCommandTypeTestResult
nl::Ble::BTCommandTypeTxTiming
nl::Ble::BTCommandTypeWindowSize
nl::Ble::BTCommandTypeWobleMTU
nl::Ble::BleApplicationDelegate
nl::Ble::BleLayer

此类提供了一个接口,可供单个线程通过 BleLayer 平台接口函数将数据驱动到堆栈上行,或者通过与 BLEEndPoint 相关联的 WeaveConnection 对象使数据下行。

nl::Ble::BleLayerObject
nl::Ble::BlePlatformDelegate
nl::Ble::BleTransportCapabilitiesRequestMessage
nl::Ble::BleTransportCapabilitiesResponseMessage
nl::Ble::BleTransportCommandMessage
nl::Ble::WoBle
nl::Ble::WoBleTest
nl::Ble::WoBleTxHistogram
nl::Ble::WoBleTxRecord

结构体

nl::Ble::WeaveBLEDeviceIdentificationInfo

Weave BLE 设备标识信息块。

nl::Ble::WeaveBleUUID

命名空间

nl::Ble::Platform

枚举

12 岁

 @12

@371

 @371

@372

 @372

@373

 @373

@374

 @374

@375

 @375

@376

 @376

@377

 @377

BleRole

 BleRole

端点的作用相应的 BLE 连接。确定端点发送和接收数据的方式。

BleTransportProtocolVersion

 BleTransportProtocolVersion

定义基于 BLE 传输协议的 Weave 版本的枚举。

PacketType_t

 PacketType_t

WeaveBLEServiceDataType

 WeaveBLEServiceDataType

可能随 Weave BLE 服务广告数据一起出现的 Weave 数据块类型。

类型定义符

SequenceNumber_t

uint8_t SequenceNumber_t

变量

WEAVE_BLE_SVC_ID

const WeaveBleUUID WEAVE_BLE_SVC_ID

函数

FormatBleLayerError

bool FormatBleLayerError(
  char *buf,
  uint16_t bufSize,
  int32_t err
)

HandleCommandTest

BLE_ERROR HandleCommandTest(
  void *ble,
  BLE_CONNECTION_OBJECT connObj,
  uint32_t packetCount,
  uint32_t duration,
  uint16_t txGap,
  uint8_t needAck,
  uint16_t payloadSize,
  bool reverse
)

HandleCommandTestAbort

BLE_ERROR HandleCommandTestAbort(
  void *ble,
  BLE_CONNECTION_OBJECT connObj
)

HandleCommandTestResult

BLE_ERROR HandleCommandTestResult(
  void *ble,
  BLE_CONNECTION_OBJECT connObj,
  bool local
)

HandleCommandTxTiming

BLE_ERROR HandleCommandTxTiming(
  void *ble,
  BLE_CONNECTION_OBJECT connObj,
  bool enabled,
  bool remote
)

RegisterBleLayerErrorFormatter

void RegisterBleLayerErrorFormatter(
  void
)

UUIDsMatch

bool UUIDsMatch(
  const WeaveBleUUID *idOne,
  const WeaveBleUUID *idTwo
)