SoDaRadio-5.0.3-master:8901fb5
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SoDa::B200Control Class Reference

Transmit/Receive switch control for B200/B210 via the FX3 debug GPIO pins. More...

#include <B200Control.hxx>

Inheritance diagram for SoDa::B200Control:
SoDa::TRControl

Public Member Functions

 B200Control (uhd::usrp::multi_usrp::sptr usrp, int mboard=0)
 constructor More...
 
bool setTXOn ()
 activate external controls to enable transmit mode. More...
 
bool setTXOff ()
 activate external controls to disable transmit mode. More...
 
bool getTX ()
 report state of transmit-enable. More...
 
bool setBand (unsigned int band, bool state)
 turn on/off signal path for selected band note that multiple bands can be enabled at one time(!) More...
 
bool getBand (unsigned int band)
 query state of signal path for selected band More...
 
- Public Member Functions inherited from SoDa::TRControl
 TRControl ()
 
virtual bool setServo (unsigned int servo_sel, double val)
 set state of selected servo More...
 

Private Member Functions

bool sendCommand (const std::string &cmd, int retry_count)
 

Private Attributes

uhd::usrp::multi_usrp::sptr usrp
 
int mboard
 

Additional Inherited Members

- Static Public Member Functions inherited from SoDa::TRControl
static TRControlmakeTRControl (uhd::usrp::multi_usrp::sptr usrp, int mboard=0)
 make the appropriate TR control widget given a pointer to a USRP device. More...
 

Detailed Description

Transmit/Receive switch control for B200/B210 via the FX3 debug GPIO pins.

This module requires a special version of the B2x0 fpga firmware.

On TRANSMIT, pin 1 of J400 will be pulled HIGH. On RECEIVE pin 1 of J400 will be pulled LOW. On TRANSMIT, pin 3 of J400 will be pulled LOW. On RECEIVE pin 1 of J400 will be pulled HIGH.

Definition at line 54 of file B200Control.hxx.

Constructor & Destructor Documentation

◆ B200Control()

SoDa::B200Control::B200Control ( uhd::usrp::multi_usrp::sptr  usrp,
int  mboard = 0 
)

constructor

Parameters
usrpa pointer to the radio object
mboardwhich B200 object in the usrp

Definition at line 49 of file B200Control.cxx.

References mboard, n200serbabble::port, setTXOff(), and usrp.

Member Function Documentation

◆ getBand()

bool SoDa::B200Control::getBand ( unsigned int  band)
virtual

query state of signal path for selected band

Parameters
bandband selector (typically index from 1...7)
Returns
true if band signal path is enabled.

Reimplemented from SoDa::TRControl.

Definition at line 91 of file B200Control.cxx.

◆ getTX()

bool SoDa::B200Control::getTX ( )
virtual

report state of transmit-enable.

Returns
true iff the transmitter is currently enabled.

Implements SoDa::TRControl.

Definition at line 84 of file B200Control.cxx.

◆ sendCommand()

bool SoDa::B200Control::sendCommand ( const std::string &  cmd,
int  retry_count 
)
private

◆ setBand()

bool SoDa::B200Control::setBand ( unsigned int  band,
bool  state 
)
virtual

turn on/off signal path for selected band note that multiple bands can be enabled at one time(!)

Parameters
bandband selector (typically index from 1...7)
statetrue to enable band, false otherwise.
Returns
true if band state was changed.

Reimplemented from SoDa::TRControl.

Definition at line 89 of file B200Control.cxx.

◆ setTXOff()

bool SoDa::B200Control::setTXOff ( )
virtual

activate external controls to disable transmit mode.

Returns
true if the operation completed successfully

Implements SoDa::TRControl.

Definition at line 77 of file B200Control.cxx.

References usrp.

Referenced by B200Control().

◆ setTXOn()

bool SoDa::B200Control::setTXOn ( )
virtual

activate external controls to enable transmit mode.

Returns
true if the operation completed successfully

Implements SoDa::TRControl.

Definition at line 71 of file B200Control.cxx.

References usrp.

Member Data Documentation

◆ mboard

int SoDa::B200Control::mboard
private

Definition at line 104 of file B200Control.hxx.

Referenced by B200Control().

◆ usrp

uhd::usrp::multi_usrp::sptr SoDa::B200Control::usrp
private

Definition at line 102 of file B200Control.hxx.

Referenced by B200Control(), setTXOff(), and setTXOn().


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