25#ifndef INCLUDED_BLUETOOTH_KISMET_BLOCK_H
26#define INCLUDED_BLUETOOTH_KSIMET_BLOCK_H
34typedef std::shared_ptr<bluetooth_kismet_block> bluetooth_kismet_block_sptr;
53 bluetooth_kismet_block(
double sample_rate,
double center_freq,
double squelch_threshold);
55 void enqueue(bluetooth_packet_sptr packet,
int channel);
79 int work(
int noutput_items,
80 gr_vector_const_void_star &input_items,
81 gr_vector_void_star &output_items);
bluetooth_kismet_block_sptr bluetooth_make_kismet_block(double sample_rate, double center_freq, double squelch_threshold)
Return a shared_ptr to a new instance of bluetooth_kismet_block.
Sniff Bluetooth packets.
Definition bluetooth_kismet_block.h:46
~bluetooth_kismet_block()
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
vector< struct usrp_bt_pkt * > packet_queue
Definition bluetooth_kismet_block.h:70
friend bluetooth_kismet_block_sptr bluetooth_make_kismet_block(double sample_rate, double center_freq, double squelch_threshold)
Return a shared_ptr to a new instance of bluetooth_kismet_block.
int fake_fd[2]
Definition bluetooth_kismet_block.h:76
int pending_packet
Definition bluetooth_kismet_block.h:73
pthread_mutex_t packet_lock
Definition bluetooth_kismet_block.h:67
bluetooth_multi_block(double sample_rate, double center_freq, double squelch_threshold)
Definition bluetooth_kismet_block.h:61
int len
Definition bluetooth_kismet_block.h:63
char * data
Definition bluetooth_kismet_block.h:62
int channel
Definition bluetooth_kismet_block.h:64