GNU Radio's BLUETOOTH Package
gr::bluetooth::le_packet_impl Class Reference

#include <packet_impl.h>

Inheritance diagram for gr::bluetooth::le_packet_impl:
gr::bluetooth::le_packet gr::bluetooth::packet

Public Member Functions

 le_packet_impl (char *stream, int length, double freq=0.0)
 ~le_packet_impl ()
bool decode_header ()
void decode_payload ()
void print ()
char * tun_format ()
bool header_present ()
uint32_t get_AA ()
int get_channel ()
Public Member Functions inherited from gr::bluetooth::packet
 packet ()
 packet (char *stream, int length, double freq=0.0)
virtual ~packet ()
bool get_whitened ()
void set_whitened (bool whitened)
int get_payload_length ()
bool got_payload ()
int get_type ()
void decode ()

Additional Inherited Members

Public Types inherited from gr::bluetooth::le_packet
typedef std::shared_ptr< le_packetsptr
Public Types inherited from gr::bluetooth::packet
enum  air_format { UNKNOWN = 0 , CLASSIC , LOW_ENERGY , NUM_BTAF }
typedef std::shared_ptr< packetsptr
Static Public Member Functions inherited from gr::bluetooth::le_packet
static sptr make (char *stream, int length, double freq=0.0)
static int freq2chan (const double freq)
static int chan2index (const int chan)
static int freq2index (const double freq)
static int sniff_aa (char *stream, int stream_length, double freq)
Static Public Member Functions inherited from gr::bluetooth::packet
static int sniff_packet (char *stream, int stream_length, double freq, air_format &fmt)
static uint8_t reverse (char byte)
static void convert_to_grformat (uint8_t input, uint8_t *output)
static uint8_t air_to_host8 (char *air_order, int bits)
static uint16_t air_to_host16 (char *air_order, int bits)
static uint32_t air_to_host32 (char *air_order, int bits)
static void host_to_air (uint8_t host_order, char *air_order, int bits)
Static Public Attributes inherited from gr::bluetooth::le_packet
static const unsigned MAX_PDU_OCTETS = LE_MAX_PDU_OCTETS
static const unsigned MAX_OCTETS = LE_MAX_OCTETS
static const unsigned MAX_SYMBOLS = LE_MAX_SYMBOLS
static const uint8_t INDICES [40]
static const uint8_t PREAMBLE_DISTANCE [512]
static const uint8_t ACCESS_ADDRESS_DISTANCE_0 [256]
static const uint8_t ACCESS_ADDRESS_DISTANCE_1 [256]
static const uint8_t ACCESS_ADDRESS_DISTANCE_2 [256]
static const uint8_t ACCESS_ADDRESS_DISTANCE_3 [256]
static const uint8_t ACCESS_HEADER_DISTANCE_LSB [256]
static const uint8_t ACCESS_HEADER_DISTANCE_MSB [256]
static const uint8_t DATA_HEADER_DISTANCE_LSB [256]
static const uint8_t DATA_HEADER_DISTANCE_MSB [256]
Static Public Attributes inherited from gr::bluetooth::packet
static const uint8_t WHITENING_DATA [127]

Constructor & Destructor Documentation

◆ le_packet_impl()

gr::bluetooth::le_packet_impl::le_packet_impl ( char * stream,
int length,
double freq = 0.0 )

◆ ~le_packet_impl()

gr::bluetooth::le_packet_impl::~le_packet_impl ( )

Member Function Documentation

◆ decode_header()

bool gr::bluetooth::le_packet_impl::decode_header ( )
virtual

◆ decode_payload()

void gr::bluetooth::le_packet_impl::decode_payload ( )
virtual

◆ get_AA()

uint32_t gr::bluetooth::le_packet_impl::get_AA ( )
inlinevirtual

◆ get_channel()

int gr::bluetooth::le_packet_impl::get_channel ( )
inlinevirtual

◆ header_present()

bool gr::bluetooth::le_packet_impl::header_present ( )
virtual

◆ print()

void gr::bluetooth::le_packet_impl::print ( )
virtual

◆ tun_format()

char * gr::bluetooth::le_packet_impl::tun_format ( )
virtual

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