forked from sdr/gr-osmosdr
bladerf: formatting/style fixes on .h files
This commit is contained in:
parent
399db91385
commit
077697cb2d
|
@ -79,7 +79,8 @@ protected:
|
|||
|
||||
std::vector < std::string > get_gain_names(size_t chan = 0);
|
||||
osmosdr::gain_range_t get_gain_range(size_t chan = 0);
|
||||
osmosdr::gain_range_t get_gain_range( const std::string & name, size_t chan = 0 );
|
||||
osmosdr::gain_range_t get_gain_range(const std::string &name, size_t chan =
|
||||
0);
|
||||
bool set_gain_mode(bool automatic, size_t chan = 0);
|
||||
bool get_gain_mode(size_t chan = 0);
|
||||
double set_gain(double gain, size_t chan = 0);
|
||||
|
@ -87,8 +88,10 @@ protected:
|
|||
double get_gain(size_t chan = 0);
|
||||
double get_gain(const std::string &name, size_t chan = 0);
|
||||
|
||||
int set_dc_offset(bladerf_direction direction, const std::complex<double> &offset, size_t chan);
|
||||
int set_iq_balance(bladerf_direction direction, const std::complex<double> &balance, size_t chan);
|
||||
int set_dc_offset(bladerf_direction direction,
|
||||
const std::complex < double > &offset, size_t chan);
|
||||
int set_iq_balance(bladerf_direction direction,
|
||||
const std::complex < double > &balance, size_t chan);
|
||||
|
||||
void set_clock_source(const std::string &source, const size_t mboard = 0);
|
||||
std::string get_clock_source(const size_t mboard = 0);
|
||||
|
|
|
@ -53,10 +53,8 @@ typedef boost::shared_ptr<bladerf_sink_c> bladerf_sink_c_sptr;
|
|||
*/
|
||||
bladerf_sink_c_sptr make_bladerf_sink_c(const std::string &args = "");
|
||||
|
||||
class bladerf_sink_c :
|
||||
public gr::sync_block,
|
||||
public sink_iface,
|
||||
protected bladerf_common
|
||||
class bladerf_sink_c:public gr::sync_block,
|
||||
public sink_iface, protected bladerf_common
|
||||
{
|
||||
private:
|
||||
// The friend declaration allows bladerf_make_sink_c to
|
||||
|
@ -98,7 +96,8 @@ public:
|
|||
|
||||
std::vector < std::string > get_gain_names(size_t chan = 0);
|
||||
osmosdr::gain_range_t get_gain_range(size_t chan = 0);
|
||||
osmosdr::gain_range_t get_gain_range( const std::string & name, size_t chan = 0 );
|
||||
osmosdr::gain_range_t get_gain_range(const std::string &name, size_t chan =
|
||||
0);
|
||||
bool set_gain_mode(bool automatic, size_t chan = 0);
|
||||
bool get_gain_mode(size_t chan = 0);
|
||||
double set_gain(double gain, size_t chan = 0);
|
||||
|
|
|
@ -53,10 +53,8 @@ typedef boost::shared_ptr<bladerf_source_c> bladerf_source_c_sptr;
|
|||
*/
|
||||
bladerf_source_c_sptr make_bladerf_source_c(const std::string &args = "");
|
||||
|
||||
class bladerf_source_c :
|
||||
public gr::sync_block,
|
||||
public source_iface,
|
||||
protected bladerf_common
|
||||
class bladerf_source_c:public gr::sync_block,
|
||||
public source_iface, protected bladerf_common
|
||||
{
|
||||
private:
|
||||
// The friend declaration allows bladerf_make_source_c to
|
||||
|
@ -90,7 +88,8 @@ public:
|
|||
|
||||
std::vector < std::string > get_gain_names(size_t chan = 0);
|
||||
osmosdr::gain_range_t get_gain_range(size_t chan = 0);
|
||||
osmosdr::gain_range_t get_gain_range( const std::string & name, size_t chan = 0 );
|
||||
osmosdr::gain_range_t get_gain_range(const std::string &name, size_t chan =
|
||||
0);
|
||||
bool set_gain_mode(bool automatic, size_t chan = 0);
|
||||
bool get_gain_mode(size_t chan = 0);
|
||||
double set_gain(double gain, size_t chan = 0);
|
||||
|
|
Loading…
Reference in New Issue