hci-decoder  1.0
Lightweight Bluetooth HCI decoder library parsing individually HCI frames into JSON format
hci_acl Struct Reference

#include <hci_acl.h>

Inheritance diagram for hci_acl:
IHciFrame

Public Member Functions

 hci_acl (const std::vector< char > &data)
 
HCI_PACKET_TYPE_ENUM getPacketType ()
 getPacketType retrieve HCI Packet type (HCI_COMMAND / HCI_TYPE_ACL_DATA / HCI_SCO_DATA / HCI_EVENT) More...
 
void print ()
 
std::string toJson (bool beautify)
 toStyledJson convert frame information to beautiful json format More...
 
Json::Value toJsonObj ()
 toStyledJson convert frame information to beautiful json format More...
 
- Public Member Functions inherited from IHciFrame
virtual void clear ()
 
virtual ~IHciFrame ()
 

Public Attributes

uint16_t connection_handle
 
uint8_t packet_boundary_flag
 
uint8_t broadcast_flag
 
uint16_t data_total_length
 
std::vector< uint8_t > acl_data
 

Detailed Description

hci_cmd_packet.h HCI Command packet

Author
Bertrand Martel
Version
1.0

Constructor & Destructor Documentation

hci_acl::hci_acl ( const std::vector< char > &  data)
inline

Member Function Documentation

HCI_PACKET_TYPE_ENUM hci_acl::getPacketType ( )
inlinevirtual

getPacketType retrieve HCI Packet type (HCI_COMMAND / HCI_TYPE_ACL_DATA / HCI_SCO_DATA / HCI_EVENT)

Returns

Reimplemented from IHciFrame.

void hci_acl::print ( )
inlinevirtual

Reimplemented from IHciFrame.

std::string hci_acl::toJson ( bool  beautify)
inlinevirtual

toStyledJson convert frame information to beautiful json format

Returns

Reimplemented from IHciFrame.

Json::Value hci_acl::toJsonObj ( )
inlinevirtual

toStyledJson convert frame information to beautiful json format

Returns

Reimplemented from IHciFrame.

Member Data Documentation

std::vector<uint8_t> hci_acl::acl_data
uint8_t hci_acl::broadcast_flag
uint16_t hci_acl::connection_handle
uint16_t hci_acl::data_total_length
uint8_t hci_acl::packet_boundary_flag

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