CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
IBluetoothController.h File Reference
#include "cdc_core/IService.h"
#include <cstdint>
#include <cstring>
#include <functional>

Go to the source code of this file.

Classes

struct  cdc::hal::BleScanResult
struct  cdc::hal::BleBondInfo
struct  cdc::hal::BleUuid
struct  cdc::hal::GattDescriptor
struct  cdc::hal::GattCharacteristic
struct  cdc::hal::GattServiceDef
class  cdc::hal::IBluetoothController
struct  cdc::hal::IBluetoothController::DiscoveredCharacteristic
struct  cdc::hal::IBluetoothController::DiscoveredService

Namespaces

namespace  cdc
namespace  cdc::hal
namespace  cdc::hal::GattProp
namespace  cdc::hal::GattPerm
namespace  cdc::hal::BleAdvParser

Typedefs

using cdc::hal::GattWriteCallback
using cdc::hal::GattReadCallback
using cdc::hal::ListenerToken = IBluetoothController::ListenerToken

Enumerations

enum class  cdc::hal::GattDescriptorKind : uint8_t { cdc::hal::NONE = 0 , cdc::hal::REPORT_REFERENCE = 1 }

Functions

IBluetoothControllercdc::hal::getBluetoothControllerInstance ()
 Returns singleton Bluetooth stub when NimBLE is unavailable.
bool cdc::hal::BleAdvParser::findManufacturerData (const uint8_t *advData, uint8_t len, uint16_t *companyId, const uint8_t **data, uint8_t *dataLen)
 Extracts manufacturer-specific AD payload and company identifier.
bool cdc::hal::BleAdvParser::findServiceUuid128 (const uint8_t *advData, uint8_t len, const uint8_t uuid128[16])
 Checks whether a specific 128-bit service UUID is present in AD structures.
bool cdc::hal::BleAdvParser::findName (const uint8_t *advData, uint8_t len, char *name, uint8_t nameMaxLen)
 Extracts local device name from advertising data.

Variables

constexpr uint8_t cdc::hal::GattProp::READ = 0x02
constexpr uint8_t cdc::hal::GattProp::WRITE_NO_RSP = 0x04
constexpr uint8_t cdc::hal::GattProp::WRITE = 0x08
constexpr uint8_t cdc::hal::GattProp::NOTIFY = 0x10
constexpr uint8_t cdc::hal::GattProp::INDICATE = 0x20
constexpr uint8_t cdc::hal::GattPerm::READ = 0x01
constexpr uint8_t cdc::hal::GattPerm::WRITE = 0x02
constexpr uint8_t cdc::hal::GattPerm::READ_ENC = 0x04
constexpr uint8_t cdc::hal::GattPerm::WRITE_ENC = 0x08
constexpr ListenerToken cdc::hal::INVALID_LISTENER = IBluetoothController::INVALID_LISTENER