CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::hal::BleUuid Struct Reference

#include <IBluetoothController.h>

Public Types

enum  Type : uint8_t { UUID_16 = 0 , UUID_128 = 1 }

Public Member Functions

bool operator== (const BleUuid &other) const

Static Public Member Functions

static BleUuid from16 (uint16_t v)
static BleUuid from128 (const uint8_t v[16])

Public Attributes

Type type
union { 
   uint16_t   u16 
   uint8_t   u128 [16] 
}; 

Detailed Description

Stack-independent BLE UUID (no NimBLE/Bluedroid dependency)

Definition at line 34 of file IBluetoothController.h.

Member Enumeration Documentation

◆ Type

enum cdc::hal::BleUuid::Type : uint8_t
Enumerator
UUID_16 
UUID_128 

Definition at line 35 of file IBluetoothController.h.

Member Function Documentation

◆ from128()

BleUuid cdc::hal::BleUuid::from128 ( const uint8_t v[16])
inlinestatic

◆ from16()

BleUuid cdc::hal::BleUuid::from16 ( uint16_t v)
inlinestatic

Definition at line 42 of file IBluetoothController.h.

References type, u128, u16, and UUID_16.

Referenced by cdc::ui::bleResolveTick(), and cdc::ui::rOnServiceDiscovered().

◆ operator==()

bool cdc::hal::BleUuid::operator== ( const BleUuid & other) const
inline

Definition at line 58 of file IBluetoothController.h.

References type, u128, u16, and UUID_16.

Member Data Documentation

◆ [union]

union { ... } cdc::hal::BleUuid

◆ type

Type cdc::hal::BleUuid::type

Definition at line 36 of file IBluetoothController.h.

Referenced by from128(), from16(), and operator==().

◆ u128

uint8_t cdc::hal::BleUuid::u128[16]

Definition at line 39 of file IBluetoothController.h.

Referenced by from128(), from16(), and operator==().

◆ u16

uint16_t cdc::hal::BleUuid::u16

Definition at line 38 of file IBluetoothController.h.

Referenced by from16(), and operator==().


The documentation for this struct was generated from the following file: