GNU Radio's FOOT Package
bluetooth_packet Class Reference

#include <bluetooth_packet.h>

Public Member Functions

int crc_check (int clock)
 
bool decode_header ()
 
void decode_payload ()
 
void decode ()
 
void print ()
 
char * tun_format ()
 
uint32_t get_LAP ()
 
uint8_t get_UAP ()
 
void set_UAP (uint8_t UAP)
 
void set_NAP (uint16_t NAP)
 
bool get_whitened ()
 
void set_whitened (bool whitened)
 
bool got_payload ()
 
uint32_t get_clock ()
 
void set_clock (uint32_t clk6, bool have27)
 
int get_payload_length ()
 
int get_type ()
 
uint8_t try_clock (int clock)
 
bool header_present ()
 
uint32_t lap_from_fhs ()
 
uint8_t uap_from_fhs ()
 
uint16_t nap_from_fhs ()
 
uint32_t clock_from_fhs ()
 
 ~bluetooth_packet ()
 

Static Public Member Functions

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 reverse (char byte)
 
static uint8_t * acgen (int LAP)
 
static void convert_to_grformat (uint8_t input, uint8_t *output)
 
static bool unfec13 (char *input, char *output, int length)
 
static char * unfec23 (char *input, int length)
 
static char * fec23gen (char *data)
 
static bool check_ac (char *stream, int LAP)
 
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 uint16_t crcgen (char *payload, int length, int UAP)
 
static int UAP_from_hec (uint16_t data, uint8_t hec)
 

Public Attributes

int d_channel
 
uint32_t d_clkn
 

Friends

bluetooth_packet_sptr bluetooth_make_packet (char *stream, int length)
 Return a shared_ptr to a new instance of bluetooth_packet. More...
 
bluetooth_packet_sptr bluetooth_make_packet (char *stream, int length, uint32_t clkn, int channel)
 

Constructor & Destructor Documentation

◆ ~bluetooth_packet()

bluetooth_packet::~bluetooth_packet ( )

Member Function Documentation

◆ acgen()

static uint8_t* bluetooth_packet::acgen ( int  LAP)
static

◆ air_to_host16()

static uint16_t bluetooth_packet::air_to_host16 ( char *  air_order,
int  bits 
)
static

◆ air_to_host32()

static uint32_t bluetooth_packet::air_to_host32 ( char *  air_order,
int  bits 
)
static

◆ air_to_host8()

static uint8_t bluetooth_packet::air_to_host8 ( char *  air_order,
int  bits 
)
static

◆ check_ac()

static bool bluetooth_packet::check_ac ( char *  stream,
int  LAP 
)
static

◆ clock_from_fhs()

uint32_t bluetooth_packet::clock_from_fhs ( )

◆ convert_to_grformat()

static void bluetooth_packet::convert_to_grformat ( uint8_t  input,
uint8_t *  output 
)
static

◆ crc_check()

int bluetooth_packet::crc_check ( int  clock)

◆ crcgen()

static uint16_t bluetooth_packet::crcgen ( char *  payload,
int  length,
int  UAP 
)
static

◆ decode()

void bluetooth_packet::decode ( )

◆ decode_header()

bool bluetooth_packet::decode_header ( )

◆ decode_payload()

void bluetooth_packet::decode_payload ( )

◆ fec23gen()

static char* bluetooth_packet::fec23gen ( char *  data)
static

◆ get_clock()

uint32_t bluetooth_packet::get_clock ( )

◆ get_LAP()

uint32_t bluetooth_packet::get_LAP ( )

◆ get_payload_length()

int bluetooth_packet::get_payload_length ( )

◆ get_type()

int bluetooth_packet::get_type ( )

◆ get_UAP()

uint8_t bluetooth_packet::get_UAP ( )

◆ get_whitened()

bool bluetooth_packet::get_whitened ( )

◆ got_payload()

bool bluetooth_packet::got_payload ( )

◆ header_present()

bool bluetooth_packet::header_present ( )

◆ host_to_air()

static void bluetooth_packet::host_to_air ( uint8_t  host_order,
char *  air_order,
int  bits 
)
static

◆ lap_from_fhs()

uint32_t bluetooth_packet::lap_from_fhs ( )

◆ lfsr()

static uint8_t* bluetooth_packet::lfsr ( uint8_t *  data,
int  length,
int  k,
uint8_t *  g 
)
static

◆ nap_from_fhs()

uint16_t bluetooth_packet::nap_from_fhs ( )

◆ print()

void bluetooth_packet::print ( )

◆ reverse()

static uint8_t bluetooth_packet::reverse ( char  byte)
static

◆ set_clock()

void bluetooth_packet::set_clock ( uint32_t  clk6,
bool  have27 
)

◆ set_NAP()

void bluetooth_packet::set_NAP ( uint16_t  NAP)

◆ set_UAP()

void bluetooth_packet::set_UAP ( uint8_t  UAP)

◆ set_whitened()

void bluetooth_packet::set_whitened ( bool  whitened)

◆ sniff_ac()

static int bluetooth_packet::sniff_ac ( char *  stream,
int  stream_length 
)
static

◆ try_clock()

uint8_t bluetooth_packet::try_clock ( int  clock)

◆ tun_format()

char* bluetooth_packet::tun_format ( )

◆ uap_from_fhs()

uint8_t bluetooth_packet::uap_from_fhs ( )

◆ UAP_from_hec()

static int bluetooth_packet::UAP_from_hec ( uint16_t  data,
uint8_t  hec 
)
static

◆ unfec13()

static bool bluetooth_packet::unfec13 ( char *  input,
char *  output,
int  length 
)
static

◆ unfec23()

static char* bluetooth_packet::unfec23 ( char *  input,
int  length 
)
static

Friends And Related Function Documentation

◆ bluetooth_make_packet [1/2]

bluetooth_packet_sptr bluetooth_make_packet ( char *  stream,
int  length 
)
friend

Return a shared_ptr to a new instance of bluetooth_packet.

◆ bluetooth_make_packet [2/2]

bluetooth_packet_sptr bluetooth_make_packet ( char *  stream,
int  length,
uint32_t  clkn,
int  channel 
)
friend

Member Data Documentation

◆ d_channel

int bluetooth_packet::d_channel

◆ d_clkn

uint32_t bluetooth_packet::d_clkn

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