Skip to content

Unable to open BLADERF_RX_X2 alone #61

Description

@metasim

As can be seen in the logic below, one cannot open BLADERF_RX_X2 by itself, something supported by the underlying driver. This capability is useful in scenarios where two different types of antennas are attached to the device and you need to programmatically switch between them.

if (channels.size() == 1 and channels.at(0) == 0)
{
layout = (direction == SOAPY_SDR_RX)?BLADERF_RX_X1:BLADERF_TX_X1;
if (metaMode == "auto") sync_format = BLADERF_FORMAT_SC16_Q11_META;
}
else if (channels.size() == 2 and channels.at(0) == 0 and channels.at(1) == 1)
{
layout = (direction == SOAPY_SDR_RX)?BLADERF_RX_X2:BLADERF_TX_X2;
if (metaMode == "auto") sync_format = BLADERF_FORMAT_SC16_Q11;
}
else
{
throw std::runtime_error("setupStream invalid channel selection");
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions