C++ Pixels Library For Windows
Enable communications with Pixels dice using Bluetooth Low Energy.
Loading...
Searching...
No Matches
BleTypes.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <cstdint>
9
14
38{
40 using bluetooth_address_t = std::uint64_t;
41
44 {
46 Success,
47
49 Error,
50
53
56
58 Disconnected, // TODO
59
62
65
68
71
74
77
79 AdapterOff, // TODO
80
82 Timeout,
83 };
84}
A collection of C++ classes that provides a simplified access to Bluetooth Low Energy peripherals.
Definition: BleTypes.h:38
std::uint64_t bluetooth_address_t
Type for a Bluetooth address.
Definition: BleTypes.h:40
BleRequestStatus
Peripheral requests statuses.
Definition: BleTypes.h:44
@ Canceled
The request was canceled.
@ InProgress
The request is still in progress.
@ InvalidParameters
The request did not run because some of its parameters are invalid.
@ Success
The request completed successfully.
@ Error
The request completed with a non-specific error.
@ NotSupported
The request failed because of the operation is not supported by the peripheral.
@ AdapterOff
The request failed because the Bluetooth radio is off.
@ InvalidCall
The request did not run because the operation is not valid or permitted.
@ Timeout
The request did not succeed after the timeout period.
@ ProtocolError
The request failed because of BLE protocol error.
@ InvalidPeripheral
The request did not run because the given peripheral is not valid.
@ AccessDenied
The request failed because it was denied access.
@ Disconnected
The request was aborted because the peripheral got disconnected.