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::HCICommand Class Reference

BT Core Spec v5.2: Vol 4, Part E HCI: 5.4.1 HCI Command packet. More...

#include <HCITypes.hpp>

Inheritance diagram for direct_bt::HCICommand:
Collaboration diagram for direct_bt::HCICommand:

Public Member Functions

 HCICommand (const HCIOpcode opc, const jau::nsize_t param_size)
 Enabling manual construction of command without given value. More...
 
 HCICommand (const HCIOpcode opc, const uint8_t *param, const jau::nsize_t param_size)
 Enabling manual construction of command with given value. More...
 
virtual ~HCICommand () noexcept
 
HCIOpcode getOpcode () const noexcept
 
jau::nsize_t getParamSize () const noexcept
 
const uint8_t * getParam () 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
 
std::string valueString () const noexcept override
 

Static Protected Member Functions

static void checkOpcode (const HCIOpcode has, const HCIOpcode min, const HCIOpcode max)
 
- 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::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::HCIPacket
POctets pdu
 

Detailed Description

BT Core Spec v5.2: Vol 4, Part E HCI: 5.4.1 HCI Command packet.

BT Core Spec v5.2: Vol 4, Part E HCI: 7.8 LE Controller Commands

 __le16  opcode; // OCF & OGF
 __u8    plen;

Definition at line 545 of file HCITypes.hpp.

Constructor & Destructor Documentation

◆ HCICommand() [1/2]

direct_bt::HCICommand::HCICommand ( const HCIOpcode  opc,
const jau::nsize_t  param_size 
)
inline

Enabling manual construction of command without given value.

Definition at line 571 of file HCITypes.hpp.

Here is the call graph for this function:

◆ HCICommand() [2/2]

direct_bt::HCICommand::HCICommand ( const HCIOpcode  opc,
const uint8_t *  param,
const jau::nsize_t  param_size 
)
inline

Enabling manual construction of command with given value.


Definition at line 581 of file HCITypes.hpp.

Here is the call graph for this function:

◆ ~HCICommand()

virtual direct_bt::HCICommand::~HCICommand ( )
inlinevirtualnoexcept

Definition at line 589 of file HCITypes.hpp.

Member Function Documentation

◆ baseString()

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

Reimplemented from direct_bt::HCIPacket.

Definition at line 559 of file HCITypes.hpp.

Here is the call graph for this function:

◆ checkOpcode()

static void direct_bt::HCICommand::checkOpcode ( const HCIOpcode  has,
const HCIOpcode  min,
const HCIOpcode  max 
)
inlinestaticprotected

Definition at line 548 of file HCITypes.hpp.

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

◆ getOpcode()

HCIOpcode direct_bt::HCICommand::getOpcode ( ) const
inlinenoexcept

Definition at line 591 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::HCICommand::getParam ( ) const
inlinenoexcept

Definition at line 593 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::HCICommand::getParamSize ( ) const
inlinenoexcept

Definition at line 592 of file HCITypes.hpp.

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

◆ nameString()

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

Reimplemented from direct_bt::HCIPacket.

Reimplemented in direct_bt::HCIStructCommand< hcistruct >, and direct_bt::HCIDisconnectCmd.

Definition at line 557 of file HCITypes.hpp.

◆ valueString()

std::string direct_bt::HCICommand::valueString ( ) const
inlineoverrideprotectedvirtualnoexcept

Reimplemented from direct_bt::HCIPacket.

Definition at line 562 of file HCITypes.hpp.

Here is the call graph for this function:

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