|
BlueToe
an alternative GATT/BLE implementation
|
implements a PDU layout, where in memory and over the air layout are equal. More...
#include <bluetoe/link_layer/include/bluetoe/default_pdu_layout.hpp>
Static Public Member Functions | |
| static std::uint16_t | header (const std::uint8_t *pdu) |
| retrieves the 16 bit LL header from a PDU. | |
| static void | header (std::uint8_t *pdu, std::uint16_t header_value) |
| sets the 16 but LL header for the pdu | |
| static std::pair< std::uint8_t *, std::uint8_t * > | body (const read_buffer &pdu) |
| returns a begin and end pointer to the body of a PDU | |
| static std::pair< const std::uint8_t *, const std::uint8_t * > | body (const write_buffer &pdu) |
| returns a begin and end pointer to the body of a PDU | |
| static constexpr std::size_t | data_channel_pdu_memory_size (std::size_t payload_size) |
| returns the overall, required buffer size for a PDU with the given payload_size. | |
Static Public Attributes | |
| static constexpr std::size_t | header_size = sizeof( std::uint16_t ) |
| fixed 16 bit size of a LL PDU | |
implements a PDU layout, where in memory and over the air layout are equal.
The type is ment to be used as member of a scheduled_radio implementation.
|
inlinestatic |
returns a begin and end pointer to the body of a PDU
That pair can be used to modify the body