Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open BLADERF_RX_X2 alone #61

Open
metasim opened this issue Jun 11, 2024 · 0 comments
Open

Unable to open BLADERF_RX_X2 alone #61

metasim opened this issue Jun 11, 2024 · 0 comments

Comments

@metasim
Copy link

metasim commented Jun 11, 2024

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");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant