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

#include <packet.h>

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

Public Types

enum  air_format { UNKNOWN = 0, CLASSIC, LOW_ENERGY, NUM_BTAF }
 
typedef boost::shared_ptr< packetsptr
 

Public Member Functions

 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 ()
 
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 int get_channel ()=0
 

Static Public Member Functions

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 uint8_t WHITENING_DATA [127]
 

Friends

class classic_packet
 
class classic_packet_impl
 
class le_packet
 
class le_packet_impl
 

Member Typedef Documentation

◆ sptr

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

Member Enumeration Documentation

◆ air_format

Enumerator
UNKNOWN 
CLASSIC 
LOW_ENERGY 
NUM_BTAF 

Constructor & Destructor Documentation

◆ packet() [1/2]

gr::bluetooth::packet::packet ( )
inline

◆ packet() [2/2]

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

◆ ~packet()

virtual gr::bluetooth::packet::~packet ( )
inlinevirtual

Member Function Documentation

◆ air_to_host16()

static uint16_t gr::bluetooth::packet::air_to_host16 ( char *  air_order,
int  bits 
)
static

◆ air_to_host32()

static uint32_t gr::bluetooth::packet::air_to_host32 ( char *  air_order,
int  bits 
)
static

◆ air_to_host8()

static uint8_t gr::bluetooth::packet::air_to_host8 ( char *  air_order,
int  bits 
)
static

◆ convert_to_grformat()

static void gr::bluetooth::packet::convert_to_grformat ( uint8_t  input,
uint8_t *  output 
)
static

◆ decode()

void gr::bluetooth::packet::decode ( )

◆ decode_header()

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

◆ decode_payload()

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

◆ get_channel()

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

◆ get_payload_length()

int gr::bluetooth::packet::get_payload_length ( )

◆ get_type()

int gr::bluetooth::packet::get_type ( )

◆ get_whitened()

bool gr::bluetooth::packet::get_whitened ( )

◆ got_payload()

bool gr::bluetooth::packet::got_payload ( )

◆ header_present()

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

◆ host_to_air()

static void gr::bluetooth::packet::host_to_air ( uint8_t  host_order,
char *  air_order,
int  bits 
)
static

◆ print()

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

◆ reverse()

static uint8_t gr::bluetooth::packet::reverse ( char  byte)
static

◆ set_whitened()

void gr::bluetooth::packet::set_whitened ( bool  whitened)

◆ sniff_packet()

static int gr::bluetooth::packet::sniff_packet ( char *  stream,
int  stream_length,
double  freq,
air_format fmt 
)
static

◆ tun_format()

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

Friends And Related Function Documentation

◆ classic_packet

friend class classic_packet
friend

◆ classic_packet_impl

friend class classic_packet_impl
friend

◆ le_packet

friend class le_packet
friend

◆ le_packet_impl

friend class le_packet_impl
friend

Member Data Documentation

◆ WHITENING_DATA

const uint8_t gr::bluetooth::packet::WHITENING_DATA[127]
static

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