Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
direct_bt::HCIMetaEvent Class Reference

BT Core Spec v5.2: Vol 4, Part E HCI: 7.7.65 LE Meta event. More...

#include <HCITypes.hpp>

Inheritance diagram for direct_bt::HCIMetaEvent:
Collaboration diagram for direct_bt::HCIMetaEvent:

Public Member Functions

 HCIMetaEvent (const uint8_t *buffer, const jau::nsize_t buffer_len, const jau::nsize_t exp_meta_param_size)
 Passing through preset buffer of this type. More...
 
 HCIMetaEvent (const HCIMetaEventType mc, const jau::nsize_t meta_param_size)
 Enabling manual construction of event without given value. More...
 
 HCIMetaEvent (const HCIMetaEventType mc, const uint8_t *meta_param, const jau::nsize_t meta_param_size)
 Enabling manual construction of event with given value. More...
 
HCIMetaEventType getMetaEventType () const noexcept override
 The meta subevent type. More...
 
jau::nsize_t getParamSize () const noexcept override
 
const uint8_t * getParam () const noexcept override
 
- Public Member Functions inherited from direct_bt::HCIEvent
 HCIEvent (const uint8_t *buffer, const jau::nsize_t buffer_len, const jau::nsize_t exp_param_size)
 Persistent memory, w/ ownership . More...
 
 HCIEvent (const HCIEventType evt, const jau::nsize_t param_size=0)
 Enabling manual construction of event without given value. More...
 
 HCIEvent (const HCIEventType evt, const uint8_t *param, const jau::nsize_t param_size)
 Enabling manual construction of event with given value. More...
 
virtual ~HCIEvent () noexcept
 
uint64_t getTimestamp () const noexcept
 
constexpr HCIEventType getEventType () const noexcept
 
constexpr bool isEvent (HCIEventType t) const noexcept
 
bool isMetaEvent (HCIMetaEventType t) const noexcept
 
virtual bool validate (const HCICommand &cmd) const noexcept
 
- Public Member Functions inherited from direct_bt::HCIPacket
 HCIPacket (const HCIPacketType type, const jau::nsize_t total_packet_size)
 
 HCIPacket (const uint8_t *packet_data, const jau::nsize_t total_packet_size)
 Persistent memory, w/ ownership . More...
 
virtual ~HCIPacket () noexcept
 
constexpr jau::nsize_t getTotalSize () const noexcept
 
TROOctetsgetPDU () noexcept
 Return the underlying octets read only. More...
 
HCIPacketType getPacketType () noexcept
 
std::string toString () const noexcept
 

Protected Member Functions

std::string nameString () const noexcept override
 
std::string baseString () const noexcept override
 
- Protected Member Functions inherited from direct_bt::HCIEvent
std::string valueString () const noexcept override
 
jau::nsize_t getBaseParamSize () const noexcept
 

Static Protected Member Functions

static void checkMetaType (const HCIMetaEventType has, const HCIMetaEventType exp)
 
- Static Protected Member Functions inherited from direct_bt::HCIEvent
static void checkEventType (const HCIEventType has, const HCIEventType min, const HCIEventType max)
 
static void checkEventType (const HCIEventType has, const HCIEventType exp)
 
- Static Protected Member Functions inherited from direct_bt::HCIPacket
static void checkPacketType (const HCIPacketType type)
 

Additional Inherited Members

- Static Public Member Functions inherited from direct_bt::HCIEvent
static std::unique_ptr< HCIEventgetSpecialized (const uint8_t *buffer, jau::nsize_t const buffer_size) noexcept
 Return a newly created specialized instance pointer to base class. More...
 
- Static Public Member Functions inherited from direct_bt::HCIPacket
template<class T >
static T * clone (const T &source) noexcept
 Clone template for convenience, based on derived class's copy-constructor. More...
 
- Protected Attributes inherited from direct_bt::HCIEvent
uint64_t ts_creation
 
- Protected Attributes inherited from direct_bt::HCIPacket
POctets pdu
 

Detailed Description

BT Core Spec v5.2: Vol 4, Part E HCI: 7.7.65 LE Meta event.

Size 1 __u8 subevent;

Definition at line 1035 of file HCITypes.hpp.

Constructor & Destructor Documentation

◆ HCIMetaEvent() [1/3]

direct_bt::HCIMetaEvent::HCIMetaEvent ( const uint8_t *  buffer,
const jau::nsize_t  buffer_len,
const jau::nsize_t  exp_meta_param_size 
)
inline

Passing through preset buffer of this type.

Definition at line 1054 of file HCITypes.hpp.

Here is the call graph for this function:

◆ HCIMetaEvent() [2/3]

direct_bt::HCIMetaEvent::HCIMetaEvent ( const HCIMetaEventType  mc,
const jau::nsize_t  meta_param_size 
)
inline

Enabling manual construction of event without given value.

Definition at line 1061 of file HCITypes.hpp.

Here is the call graph for this function:

◆ HCIMetaEvent() [3/3]

direct_bt::HCIMetaEvent::HCIMetaEvent ( const HCIMetaEventType  mc,
const uint8_t *  meta_param,
const jau::nsize_t  meta_param_size 
)
inline

Enabling manual construction of event with given value.


Definition at line 1068 of file HCITypes.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ baseString()

std::string direct_bt::HCIMetaEvent::baseString ( ) const
inlineoverrideprotectedvirtualnoexcept

Reimplemented from direct_bt::HCIEvent.

Definition at line 1048 of file HCITypes.hpp.

Here is the call graph for this function:

◆ checkMetaType()

static void direct_bt::HCIMetaEvent::checkMetaType ( const HCIMetaEventType  has,
const HCIMetaEventType  exp 
)
inlinestaticprotected

Definition at line 1040 of file HCITypes.hpp.

Here is the call graph for this function:

◆ getMetaEventType()

HCIMetaEventType direct_bt::HCIMetaEvent::getMetaEventType ( ) const
inlineoverridevirtualnoexcept

The meta subevent type.

Reimplemented from direct_bt::HCIEvent.

Definition at line 1076 of file HCITypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getParam()

const uint8_t* direct_bt::HCIMetaEvent::getParam ( ) const
inlineoverridevirtualnoexcept

Reimplemented from direct_bt::HCIEvent.

Definition at line 1079 of file HCITypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getParamSize()

jau::nsize_t direct_bt::HCIMetaEvent::getParamSize ( ) const
inlineoverridevirtualnoexcept

Reimplemented from direct_bt::HCIEvent.

Definition at line 1078 of file HCITypes.hpp.

Here is the call graph for this function:

◆ nameString()

std::string direct_bt::HCIMetaEvent::nameString ( ) const
inlineoverrideprotectedvirtualnoexcept

Reimplemented from direct_bt::HCIEvent.

Definition at line 1038 of file HCITypes.hpp.


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