aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Resampler.cpp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-07-29 20:14:47 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-07-29 20:42:56 +0200
commit2c673e0f3ec1853ae93afb06c22ff5af9fe3595b (patch)
treea75f1c10ab7d72ce1fe6cf2aeeca1ad883de0c4e /Transceiver52M/Resampler.cpp
parentb4c749b32bb47e2a7fcc59f2931d4e2e2fd76ad9 (diff)
radioInterface: Clarify how underruns are handled driving a radioDevice
The underrun parameter in radioDevice's readSamples() is not a "Rx Underrun" event, but rather it's used to retrieve a "Tx Underrun" which on some SDRs (like USRP1) seems to be (so far) available only at readSamples() times. Thus, underrun parameter for both readSamples() and writeSamples() is actually flagging the same event, and should be ORed in pushBuffer() as it's already done in pullBuffer(). Otherwise if implementation is setting the underrun pointer to false, it could erase the flag being marked by the counterpart function before isUnderrun() is called (which is the one responsible to clear the flag). Change-Id: Id549489fc1485e0d762818c8e682aaddd5041f1c
Diffstat (limited to 'Transceiver52M/Resampler.cpp')
0 files changed, 0 insertions, 0 deletions