Pigweed
 
Loading...
Searching...
No Matches
pw::bluetooth::proxy::H4PacketWithH4 Class Referencefinal

H4PacketWithH4 is an H4Packet backed by an H4 buffer. More...

#include <h4_packet.h>

Inheritance diagram for pw::bluetooth::proxy::H4PacketWithH4:
pw::bluetooth::proxy::H4PacketInterface

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
 
H4PacketWithH4operator= (const H4PacketWithH4 &other)=delete
 
 H4PacketWithH4 (H4PacketWithH4 &&other)
 
H4PacketWithH4operator= (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 ()
 
- Public Member Functions inherited from pw::bluetooth::proxy::H4PacketInterface
 H4PacketInterface (const H4PacketInterface &other)=delete
 
 H4PacketInterface (H4PacketInterface &&other)=default
 
H4PacketInterfaceoperator= (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

- Protected Member Functions inherited from pw::bluetooth::proxy::H4PacketInterface
H4PacketInterfaceoperator= (const H4PacketInterface &other)=default
 

Detailed Description

H4PacketWithH4 is an H4Packet backed by an H4 buffer.

Member Function Documentation

◆ GetH4Type()

emboss::H4PacketType pw::bluetooth::proxy::H4PacketWithH4::GetH4Type ( )
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.

◆ GetHciSpan()

pw::span< uint8_t > pw::bluetooth::proxy::H4PacketWithH4::GetHciSpan ( )
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.

◆ SetH4Type()

void pw::bluetooth::proxy::H4PacketWithH4::SetH4Type ( emboss::H4PacketType  )
inlinefinalvirtual

Sets HCI packet type indicator.

Implements pw::bluetooth::proxy::H4PacketInterface.


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