BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
bluetoe::link_layer::default_pdu_layout Struct Reference

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>

Inheritance diagram for bluetoe::link_layer::default_pdu_layout:

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
 

Detailed Description

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.

Member Function Documentation

◆ body()

static std::pair< std::uint8_t *, std::uint8_t * > bluetoe::link_layer::default_pdu_layout::body ( const read_buffer pdu)
inlinestatic

returns a begin and end pointer to the body of a PDU

That pair can be used to modify the body


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