long long timeNs=0;
long timeoutUs=100000L;
if(isTransmitting()) {
- output_buffer[(output_buffer_index*2)]=isample;
- output_buffer[(output_buffer_index*2)+1]=qsample;
+ if (iqswap) {
+ //
+ // Here I assume that iqswap also applies to the TX samples
+ //
+ output_buffer[(output_buffer_index*2)]=qsample;
+ output_buffer[(output_buffer_index*2)+1]=isample;
+ } else {
+ output_buffer[(output_buffer_index*2)]=isample;
+ output_buffer[(output_buffer_index*2)+1]=qsample;
+ }
output_buffer_index++;
if(output_buffer_index>=max_tx_samples) {
int elements=SoapySDRDevice_writeStream(soapy_device,tx_stream,tx_buffs,max_tx_samples,&flags,timeNs,timeoutUs);