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

#include <packet_impl.h>

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

Public Member Functions

 classic_packet_impl (char *stream, int length)
 ~classic_packet_impl ()
uint32_t get_LAP ()
uint8_t get_UAP ()
void set_UAP (uint8_t UAP)
void set_NAP (uint16_t NAP)
void set_clock (uint32_t clk6, bool have27)
uint32_t get_clock ()
int crc_check (int clock)
uint8_t try_clock (int clock)
bool decode_header ()
void decode_payload ()
void print ()
char * tun_format ()
bool header_present ()
uint32_t lap_from_fhs ()
uint8_t uap_from_fhs ()
uint16_t nap_from_fhs ()
uint32_t clock_from_fhs ()
Public Member Functions inherited from gr::bluetooth::classic_packet
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::classic_packet
typedef std::shared_ptr< classic_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::classic_packet
static sptr make (char *stream, int length)
 Return a shared_ptr to a new instance of gr::bluetooth::classic_packet.
static sptr make (char *stream, int length, uint32_t clkn, double freq)
static int sniff_ac (char *stream, int stream_length)
static uint8_t * lfsr (uint8_t *data, int length, int k, uint8_t *g)
static uint8_t * acgen (int LAP)
static bool unfec13 (char *input, char *output, int length)
static char * unfec23 (char *input, int length)
static bool check_ac (char *stream, int LAP)
static uint16_t crcgen (char *payload, int length, int UAP)
static int UAP_from_hec (uint16_t data, uint8_t hec)
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)
Public Attributes inherited from gr::bluetooth::classic_packet
uint32_t d_clkn
Static Public Attributes inherited from gr::bluetooth::classic_packet
static const int ID_THRESHOLD = 5
static const int SYMBOLS_PER_BASIC_RATE_ACCESS_CODE = 68
static const uint8_t INDICES [64]
static const uint8_t PREAMBLE_DISTANCE [32]
static const uint8_t BARKER_DISTANCE [128]
static const std::string TYPE_NAMES [16]
Static Public Attributes inherited from gr::bluetooth::packet
static const uint8_t WHITENING_DATA [127]

Constructor & Destructor Documentation

◆ classic_packet_impl()

gr::bluetooth::classic_packet_impl::classic_packet_impl ( char * stream,
int length )

◆ ~classic_packet_impl()

gr::bluetooth::classic_packet_impl::~classic_packet_impl ( )

Member Function Documentation

◆ clock_from_fhs()

uint32_t gr::bluetooth::classic_packet_impl::clock_from_fhs ( )
virtual

◆ crc_check()

int gr::bluetooth::classic_packet_impl::crc_check ( int clock)
virtual

◆ decode_header()

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

◆ decode_payload()

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

◆ get_clock()

uint32_t gr::bluetooth::classic_packet_impl::get_clock ( )
virtual

◆ get_LAP()

uint32_t gr::bluetooth::classic_packet_impl::get_LAP ( )
virtual

◆ get_UAP()

uint8_t gr::bluetooth::classic_packet_impl::get_UAP ( )
virtual

◆ header_present()

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

◆ lap_from_fhs()

uint32_t gr::bluetooth::classic_packet_impl::lap_from_fhs ( )
virtual

◆ nap_from_fhs()

uint16_t gr::bluetooth::classic_packet_impl::nap_from_fhs ( )
virtual

◆ print()

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

◆ set_clock()

void gr::bluetooth::classic_packet_impl::set_clock ( uint32_t clk6,
bool have27 )
virtual

◆ set_NAP()

void gr::bluetooth::classic_packet_impl::set_NAP ( uint16_t NAP)
virtual

◆ set_UAP()

void gr::bluetooth::classic_packet_impl::set_UAP ( uint8_t UAP)
virtual

◆ try_clock()

uint8_t gr::bluetooth::classic_packet_impl::try_clock ( int clock)
virtual

◆ tun_format()

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

◆ uap_from_fhs()

uint8_t gr::bluetooth::classic_packet_impl::uap_from_fhs ( )
virtual

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