6#include <Settings/NamespaceSettings.hpp>
Type definitions and callback interfaces for communication between the low-level BLE stacks and highe...
BLEDataType
Describes a byte buffer containing (part of) a BLE packet.
@ None
No buffers available.
@ Continuation
Buffer contains a chunk of a BLE packet.
@ Packet
Buffer contains the start of a BLE packet.
#define BEGIN_CS_NAMESPACE
Circular FIFO buffer for buffering BLE packet data.
static constexpr uint_fast16_t ceil_h(uint_fast16_t i)
unsigned char buffer[capacity]
BLEDataType pop(BLEDataView &data)
Get a view to the next chunk of data.
bool push(BLEDataView data, BLEDataType type=BLEDataType::Packet)
Copy the given data into the buffer.
static constexpr uint_fast16_t header_size
static constexpr uint_fast16_t capacity
Array< T, N > copyAs(const Array< U, N > &src)
Copy an Array to an Array of a different type.
Non-owning, std::span-style read-only view of BLE data.
static constexpr size_t alignment
Alignment for size, and read/write pointers to avoid false sharing.