Transmit/Receive switch control for N200/N210 via the GPS serial or EXP serial io port.
More...
#include <N200Control.hxx>
|
| | N200Control (uhd::usrp::multi_usrp::sptr usrp, int mboard, std::string ip_addr_str, unsigned int portnum=49172) |
| | constructor
|
| bool | setTXOn () |
| | activate external controls to enable transmit mode.
|
| bool | setTXOff () |
| | activate external controls to disable transmit mode.
|
| bool | getTX () |
| | report state of transmit-enable.
|
| 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(!)
|
| bool | getBand (unsigned int band) |
| | query state of signal path for selected band
|
| | USRPTRControl () |
| virtual bool | setServo (unsigned int servo_sel, double val) |
| | set state of selected servo
|
|
| bool | sendCommand (const std::string &cmd, int retry_count) |
|
| static USRPTRControl * | makeUSRPTRControl (uhd::usrp::multi_usrp::sptr usrp, int mboard=0) |
| | make the appropriate TR control widget given a pointer to a USRP device.
|
Transmit/Receive switch control for N200/N210 via the GPS serial or EXP serial io port.
(Default is GPS port).
Definition at line 46 of file N200Control.hxx.
◆ N200Control()
| SoDa::N200Control::N200Control |
( |
uhd::usrp::multi_usrp::sptr | usrp, |
|
|
int | mboard, |
|
|
std::string | ip_addr_str, |
|
|
unsigned int | portnum = 49172 ) |
constructor
- Parameters
-
| usrp | pointer to usrp multi dev |
| mboard | motherboard index (0 is good) |
| ip_addr_str | the ip address of the selected radio |
| portnum | the port to use |
References mboard, and usrp.
◆ getBand()
| bool SoDa::N200Control::getBand |
( |
unsigned int | band | ) |
|
|
virtual |
query state of signal path for selected band
- Parameters
-
| band | band selector (typically index from 1...7) |
- Returns
- true if band signal path is enabled.
Reimplemented from SoDa::USRPTRControl.
◆ getTX()
| bool SoDa::N200Control::getTX |
( |
| ) |
|
|
virtual |
report state of transmit-enable.
- Returns
- true iff the transmitter is currently enabled.
Implements SoDa::USRPTRControl.
◆ sendCommand()
| bool SoDa::N200Control::sendCommand |
( |
const std::string & | cmd, |
|
|
int | retry_count ) |
|
private |
◆ setBand()
| bool SoDa::N200Control::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
-
| band | band selector (typically index from 1...7) |
| state | true to enable band, false otherwise. |
- Returns
- true if band state was changed.
Reimplemented from SoDa::USRPTRControl.
◆ setTXOff()
| bool SoDa::N200Control::setTXOff |
( |
| ) |
|
|
virtual |
activate external controls to disable transmit mode.
- Returns
- true if the operation completed successfully
Implements SoDa::USRPTRControl.
◆ setTXOn()
| bool SoDa::N200Control::setTXOn |
( |
| ) |
|
|
virtual |
activate external controls to enable transmit mode.
- Returns
- true if the operation completed successfully
Implements SoDa::USRPTRControl.
◆ mboard
| int SoDa::N200Control::mboard |
|
private |
◆ skt
◆ usrp
| uhd::usrp::multi_usrp::sptr SoDa::N200Control::usrp |
|
private |
The documentation for this class was generated from the following file: