H4PacketWithH4 is an H4Packet backed by an H4 buffer. More...
#include <h4_packet.h>
Public Member Functions | |
H4PacketWithH4 (pw::span< uint8_t > h4_span) | |
H4PacketWithH4 (pw::span< uint8_t > h4_span, pw::Function< void(const uint8_t *buffer)> &&release_fn) | |
release_fn (if callable) will be called when H4PacketWithH4 is destructed. | |
H4PacketWithH4 (emboss::H4PacketType h4_type, pw::span< uint8_t > h4_span) | |
H4PacketWithH4 (const H4PacketWithH4 &other)=delete | |
H4PacketWithH4 & | operator= (const H4PacketWithH4 &other)=delete |
H4PacketWithH4 (H4PacketWithH4 &&other) | |
H4PacketWithH4 & | operator= (H4PacketWithH4 &&other) |
emboss::H4PacketType | GetH4Type () final |
void | SetH4Type (emboss::H4PacketType h4_type) final |
Sets HCI packet type indicator. | |
bool | HasReleaseFn () |
pw::Function< void(const uint8_t *)> | ResetAndReturnReleaseFn () |
pw::span< uint8_t > | GetHciSpan () final |
pw::span< uint8_t > | GetH4Span () |
![]() | |
H4PacketInterface (const H4PacketInterface &other)=delete | |
H4PacketInterface (H4PacketInterface &&other)=default | |
H4PacketInterface & | operator= (H4PacketInterface &&other)=default |
virtual emboss::H4PacketType | GetH4Type ()=0 |
virtual void | SetH4Type (emboss::H4PacketType)=0 |
Sets HCI packet type indicator. | |
virtual pw::span< uint8_t > | GetHciSpan ()=0 |
Additional Inherited Members | |
![]() | |
H4PacketInterface & | operator= (const H4PacketInterface &other)=default |
H4PacketWithH4 is an H4Packet backed by an H4 buffer.
|
inlinefinalvirtual |
Returns HCI packet type indicator as defined in BT Core Spec Version 5.4 | Vol 4, Part A, Section 2.
Implements pw::bluetooth::proxy::H4PacketInterface.
|
inlinefinalvirtual |
Returns pw::span of HCI packet as defined in BT Core Spec Version 5.4 | Vol 4, Part E, Section 5.4.
Implements pw::bluetooth::proxy::H4PacketInterface.
|
inlinefinalvirtual |
Sets HCI packet type indicator.
Implements pw::bluetooth::proxy::H4PacketInterface.