GNU Radio's BLUETOOTH 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_packet
sptr
 
- 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

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

Member Function Documentation

static int gr::bluetooth::le_packet::chan2index ( const int  chan)
static
virtual bool gr::bluetooth::le_packet::decode_header ( )
pure virtual
virtual void gr::bluetooth::le_packet::decode_payload ( )
pure virtual
static int gr::bluetooth::le_packet::freq2chan ( const double  freq)
static
static int gr::bluetooth::le_packet::freq2index ( const double  freq)
static
virtual uint32_t gr::bluetooth::le_packet::get_AA ( )
pure virtual
virtual int gr::bluetooth::le_packet::get_channel ( )
pure virtual
virtual bool gr::bluetooth::le_packet::header_present ( )
pure virtual
static sptr gr::bluetooth::le_packet::make ( char *  stream,
int  length,
double  freq = 0.0 
)
static
virtual void gr::bluetooth::le_packet::print ( )
pure virtual
static int gr::bluetooth::le_packet::sniff_aa ( char *  stream,
int  stream_length,
double  freq 
)
static
virtual char* gr::bluetooth::le_packet::tun_format ( )
pure virtual

Member Data Documentation

const uint8_t gr::bluetooth::le_packet::ACCESS_ADDRESS_DISTANCE_0[256]
static
const uint8_t gr::bluetooth::le_packet::ACCESS_ADDRESS_DISTANCE_1[256]
static
const uint8_t gr::bluetooth::le_packet::ACCESS_ADDRESS_DISTANCE_2[256]
static
const uint8_t gr::bluetooth::le_packet::ACCESS_ADDRESS_DISTANCE_3[256]
static
const uint8_t gr::bluetooth::le_packet::ACCESS_HEADER_DISTANCE_LSB[256]
static
const uint8_t gr::bluetooth::le_packet::ACCESS_HEADER_DISTANCE_MSB[256]
static
const uint8_t gr::bluetooth::le_packet::DATA_HEADER_DISTANCE_LSB[256]
static
const uint8_t gr::bluetooth::le_packet::DATA_HEADER_DISTANCE_MSB[256]
static
const uint8_t gr::bluetooth::le_packet::INDICES[40]
static
const unsigned gr::bluetooth::le_packet::MAX_OCTETS = LE_MAX_OCTETS
static
const unsigned gr::bluetooth::le_packet::MAX_PDU_OCTETS = LE_MAX_PDU_OCTETS
static
const unsigned gr::bluetooth::le_packet::MAX_SYMBOLS = LE_MAX_SYMBOLS
static
const uint8_t gr::bluetooth::le_packet::PREAMBLE_DISTANCE[512]
static

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