hci-decoder  1.0
Lightweight Bluetooth HCI decoder library parsing individually HCI frames into JSON format
hci_global.h File Reference

Go to the source code of this file.

Classes

struct  bt_address
 

Macros

#define COMMAND_FRAME_OFFSET   3
 
#define EVENT_FRAME_OFFSET   2
 
#define ACL_FRAME_OFFSET   1
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 
#define E(x, y)   x = y,
 
#define E(x, y)   { x,#x },
 

Enumerations

enum  COMMAND_OCF_LE_ENUM
 
enum  COMMAND_OCF_CTRL_BSB_ENUM
 
enum  COMMAND_OCF_INFORMATIONAL_ENUM
 
enum  COMMAND_OCF_LINK_POLICY_ENUM
 
enum  COMMAND_OCF_LINK_CONTROL_ENUM
 
enum  EVENT_ENUM
 
enum  LE_SUBEVENT_ENUM
 
enum  COMMAND_OGF_ENUM
 
enum  HCI_PACKET_TYPE_ENUM
 

Functions

uint8_t get_ogf (uint8_t data)
 
uint8_t get_ocf (uint8_t msb, uint8_t lsb)
 
std::string convert_json_to_string (bool beautify, Json::Value output)
 

Variables

const std::map< int, std::string > COMMAND_OCF_LE_STRING_ENUM
 
const std::map< int, std::string > COMMAND_OCF_CTRL_BSB_STRING_ENUM
 
const std::map< int, std::string > COMMAND_OCF_INFORMATIONAL_STRING_ENUM
 
const std::map< int, std::string > COMMAND_OCF_LINK_POLICY_STRING_ENUM
 
const std::map< int, std::string > COMMAND_OCF_LINK_CONTROL_STRING_ENUM
 
const std::map< int, std::string > EVENT_STRING_ENUM
 
const std::map< int, std::string > LE_SUBEVENT_STRING_ENUM
 
const std::map< int, std::string > COMMAND_OGF_STRING_ENUM
 
const std::map< int, std::string > HCI_PACKET_TYPE_STRING_ENUM
 

Macro Definition Documentation

#define ACL_FRAME_OFFSET   1
#define COMMAND_FRAME_OFFSET   3

hci_global.h generation of enum/map according to supported HCI Event/Command

Author
Bertrand Martel
Version
1.0
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define E (   x,
 
)    x = y,
#define E (   x,
 
)    { x,#x },
#define EVENT_FRAME_OFFSET   2

Enumeration Type Documentation

enum EVENT_ENUM

Function Documentation

std::string convert_json_to_string ( bool  beautify,
Json::Value  output 
)
inline

convert Json value to string without linefeed / indent

uint8_t get_ocf ( uint8_t  msb,
uint8_t  lsb 
)
inline
uint8_t get_ogf ( uint8_t  data)
inline

Variable Documentation

const std::map< int, std::string> COMMAND_OCF_CTRL_BSB_STRING_ENUM
Initial value:
= {
}
const std::map< int, std::string> COMMAND_OCF_INFORMATIONAL_STRING_ENUM
Initial value:
= {
}
const std::map< int, std::string> COMMAND_OCF_LE_STRING_ENUM
Initial value:
= {
}
const std::map< int, std::string> COMMAND_OCF_LINK_CONTROL_STRING_ENUM
Initial value:
= {
}
const std::map< int, std::string> COMMAND_OCF_LINK_POLICY_STRING_ENUM
Initial value:
= {
}
const std::map< int, std::string> COMMAND_OGF_STRING_ENUM
Initial value:
= {
}
const std::map< int, std::string> EVENT_STRING_ENUM
Initial value:
= {
}
const std::map< int, std::string> HCI_PACKET_TYPE_STRING_ENUM
Initial value:
= {
}
const std::map< int, std::string> LE_SUBEVENT_STRING_ENUM
Initial value:
= {
}