Added new method used to set loopback to radio interface.

git-svn-id: http://yate.null.ro/svn/yate/trunk@6014 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2015-08-04 11:33:16 +00:00
parent fefef69fc5
commit 70d26b2596
2 changed files with 11 additions and 1 deletions

View File

@ -787,6 +787,14 @@ public:
virtual unsigned int getExpectedNoiseFloor(int& dBm) const
{ return NotSupported; }
/**
* Set radio loopback
* @param name Loopback name (NULL for none)
* @return Error code (0 on success)
*/
virtual unsigned int setLoopback(const char* name = 0)
{ return NotSupported; }
/**
* Put the radio into normal mode
* @return Error code (0 on success)

View File

@ -1751,6 +1751,8 @@ public:
{ return NotSupported; }
virtual unsigned status(int port = -1) const
{ return (m_totalErr & FatalErrorMask); }
virtual unsigned int setLoopback(const char* name = 0)
{ return m_dev ? m_dev->setLoopback(name) : NotInitialized; }
protected:
BrfInterface(const char* name);
@ -6455,7 +6457,7 @@ void BrfLibUsbDevice::computeRx(uint64_t ts)
dcQAvg /= div;
if (dbg)
Debug(m_owner,DebugInfo,
"RX DC values min/avg/max I=%d/%d/%d Q=%d/%d/%d peak=%d TS=" FMT64U "[%p]",
"RX DC values min/avg/max I=%d/%d/%d Q=%d/%d/%d peak=%d TS=" FMT64U " [%p]",
dcIMin,dcIAvg,dcIMax,dcQMin,dcQAvg,dcQMax,peak,peakTs,m_owner);
if (!m_rxDcAuto)
return;