Pigweed
 
Loading...
Searching...
No Matches
pw::bluetooth::proxy::H4PacketInterface Class Referenceabstract

#include <h4_packet.h>

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

Public Member Functions

 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
 

Protected Member Functions

H4PacketInterfaceoperator= (const H4PacketInterface &other)=default
 

Detailed Description

H4PacketInterface is an abstract interface for an H4 HCI packet.

Concrete subclasses are used directly in code so their functions will be properly inlined. This abstract superclass just ensures a common interface across the concrete subclasses

Member Function Documentation

◆ GetH4Type()

virtual emboss::H4PacketType pw::bluetooth::proxy::H4PacketInterface::GetH4Type ( )
pure virtual

Returns HCI packet type indicator as defined in BT Core Spec Version 5.4 | Vol 4, Part A, Section 2.

Implemented in pw::bluetooth::proxy::H4PacketWithHci, and pw::bluetooth::proxy::H4PacketWithH4.

◆ GetHciSpan()

virtual pw::span< uint8_t > pw::bluetooth::proxy::H4PacketInterface::GetHciSpan ( )
pure virtual

Returns pw::span of HCI packet as defined in BT Core Spec Version 5.4 | Vol 4, Part E, Section 5.4.

Implemented in pw::bluetooth::proxy::H4PacketWithHci, and pw::bluetooth::proxy::H4PacketWithH4.

◆ SetH4Type()

virtual void pw::bluetooth::proxy::H4PacketInterface::SetH4Type ( emboss::H4PacketType  )
pure virtual

Sets HCI packet type indicator.

Implemented in pw::bluetooth::proxy::H4PacketWithHci, and pw::bluetooth::proxy::H4PacketWithH4.


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