GNU Radio's FOOT Package
gr::bluetooth::le_packet Class Referenceabstract

#include <packet.h>

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

Public Types

typedef boost::shared_ptr< le_packetsptr
 
- Public Types inherited from gr::bluetooth::packet
enum  air_format { UNKNOWN = 0, CLASSIC, LOW_ENERGY, NUM_BTAF }
 
typedef boost::shared_ptr< packetsptr
 

Public Member Functions

virtual bool decode_header ()=0
 
virtual void decode_payload ()=0
 
virtual void print ()=0
 
virtual char * tun_format ()=0
 
virtual bool header_present ()=0
 
virtual uint32_t get_AA ()=0
 
virtual int get_channel ()=0
 
- 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 ()
 

Static Public Member Functions

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

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]
 

Member Typedef Documentation

◆ sptr

typedef boost::shared_ptr<le_packet> gr::bluetooth::le_packet::sptr

Member Function Documentation

◆ chan2index()

static int gr::bluetooth::le_packet::chan2index ( const int  chan)
static

◆ decode_header()

virtual bool gr::bluetooth::le_packet::decode_header ( )
pure virtual

◆ decode_payload()

virtual void gr::bluetooth::le_packet::decode_payload ( )
pure virtual

◆ freq2chan()

static int gr::bluetooth::le_packet::freq2chan ( const double  freq)
static

◆ freq2index()

static int gr::bluetooth::le_packet::freq2index ( const double  freq)
static

◆ get_AA()

virtual uint32_t gr::bluetooth::le_packet::get_AA ( )
pure virtual

◆ get_channel()

virtual int gr::bluetooth::le_packet::get_channel ( )
pure virtual

◆ header_present()

virtual bool gr::bluetooth::le_packet::header_present ( )
pure virtual

◆ make()

static sptr gr::bluetooth::le_packet::make ( char *  stream,
int  length,
double  freq = 0.0 
)
static

◆ print()

virtual void gr::bluetooth::le_packet::print ( )
pure virtual

◆ sniff_aa()

static int gr::bluetooth::le_packet::sniff_aa ( char *  stream,
int  stream_length,
double  freq 
)
static

◆ tun_format()

virtual char* gr::bluetooth::le_packet::tun_format ( )
pure virtual

Member Data Documentation

◆ ACCESS_ADDRESS_DISTANCE_0

const uint8_t gr::bluetooth::le_packet::ACCESS_ADDRESS_DISTANCE_0[256]
static

◆ ACCESS_ADDRESS_DISTANCE_1

const uint8_t gr::bluetooth::le_packet::ACCESS_ADDRESS_DISTANCE_1[256]
static

◆ ACCESS_ADDRESS_DISTANCE_2

const uint8_t gr::bluetooth::le_packet::ACCESS_ADDRESS_DISTANCE_2[256]
static

◆ ACCESS_ADDRESS_DISTANCE_3

const uint8_t gr::bluetooth::le_packet::ACCESS_ADDRESS_DISTANCE_3[256]
static

◆ ACCESS_HEADER_DISTANCE_LSB

const uint8_t gr::bluetooth::le_packet::ACCESS_HEADER_DISTANCE_LSB[256]
static

◆ ACCESS_HEADER_DISTANCE_MSB

const uint8_t gr::bluetooth::le_packet::ACCESS_HEADER_DISTANCE_MSB[256]
static

◆ DATA_HEADER_DISTANCE_LSB

const uint8_t gr::bluetooth::le_packet::DATA_HEADER_DISTANCE_LSB[256]
static

◆ DATA_HEADER_DISTANCE_MSB

const uint8_t gr::bluetooth::le_packet::DATA_HEADER_DISTANCE_MSB[256]
static

◆ INDICES

const uint8_t gr::bluetooth::le_packet::INDICES[40]
static

◆ MAX_OCTETS

const unsigned gr::bluetooth::le_packet::MAX_OCTETS = LE_MAX_OCTETS
static

◆ MAX_PDU_OCTETS

const unsigned gr::bluetooth::le_packet::MAX_PDU_OCTETS = LE_MAX_PDU_OCTETS
static

◆ MAX_SYMBOLS

const unsigned gr::bluetooth::le_packet::MAX_SYMBOLS = LE_MAX_SYMBOLS
static

◆ PREAMBLE_DISTANCE

const uint8_t gr::bluetooth::le_packet::PREAMBLE_DISTANCE[512]
static

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