SoDaRadio-5.0.3-master:8901fb5
|
Transmit/Receive switch control for N200/N210 via the GPS serial or EXP serial io port. More...
#include <N200Control.hxx>
Public Member Functions | |
N200Control (uhd::usrp::multi_usrp::sptr usrp, int mboard, std::string ip_addr_str, unsigned int portnum=49172) | |
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 | |
IP::ClientSocket * | skt |
uhd::usrp::multi_usrp::sptr | usrp |
int | mboard |
Additional Inherited Members | |
Static Public Member Functions inherited from SoDa::TRControl | |
static TRControl * | makeTRControl (uhd::usrp::multi_usrp::sptr usrp, int mboard=0) |
make the appropriate TR control widget given a pointer to a USRP device. More... | |
Transmit/Receive switch control for N200/N210 via the GPS serial or EXP serial io port.
(Default is GPS port).
Definition at line 48 of file N200Control.hxx.
SoDa::N200Control::N200Control | ( | uhd::usrp::multi_usrp::sptr | usrp, |
int | mboard, | ||
std::string | ip_addr_str, | ||
unsigned int | portnum = 49172 |
||
) |
constructor
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 |
Definition at line 48 of file N200Control.cxx.
References mboard, SoDa::IP::NetSocket::setBlocking(), setTXOff(), skt, SoDa::IP::UDP, and usrp.
|
virtual |
query state of signal path for selected band
band | band selector (typically index from 1...7) |
Reimplemented from SoDa::TRControl.
Definition at line 128 of file N200Control.cxx.
|
virtual |
report state of transmit-enable.
Implements SoDa::TRControl.
Definition at line 121 of file N200Control.cxx.
|
private |
|
virtual |
turn on/off signal path for selected band note that multiple bands can be enabled at one time(!)
band | band selector (typically index from 1...7) |
state | true to enable band, false otherwise. |
Reimplemented from SoDa::TRControl.
Definition at line 126 of file N200Control.cxx.
|
virtual |
activate external controls to disable transmit mode.
Implements SoDa::TRControl.
Definition at line 97 of file N200Control.cxx.
References SoDa::IP::NetSocket::getRaw(), SoDa::IP::NetSocket::putRaw(), and skt.
Referenced by N200Control().
|
virtual |
activate external controls to enable transmit mode.
Implements SoDa::TRControl.
Definition at line 73 of file N200Control.cxx.
References SoDa::IP::NetSocket::getRaw(), SoDa::IP::NetSocket::putRaw(), and skt.
|
private |
Definition at line 108 of file N200Control.hxx.
Referenced by N200Control().
|
private |
Definition at line 102 of file N200Control.hxx.
Referenced by N200Control(), setTXOff(), and setTXOn().
|
private |
Definition at line 107 of file N200Control.hxx.
Referenced by N200Control().