[srslte-users] LimeSDR/SoapySDR List Antenna change in source code
Sandi Suhendro
djks74 at gmail.com
Sat Nov 17 13:25:07 UTC 2018
Dear list,
anyone know where the LNAL, LNAW, LNAH setting?
I looked up to the source code in purpose to change setting from LNAH to
LNAL, but cannot find it.
I found only SoapySDR_TRX 0 but not see anything with LNA setting.
as here:
// rx antenna
const char rx_ant_arg[] = "rxant=";
char rx_ant_str[64] = {0};
char *rx_ant_ptr = strstr(args, rx_ant_arg);
if (rx_ant_ptr) {
copy_subdev_string(rx_ant_str, rx_ant_ptr + strlen(rx_ant_arg));
printf("Setting Rx antenna to %s\n", rx_ant_str);
if (SoapySDRDevice_setAntenna(handler->device, SOAPY_SDR_RX, 0,
rx_ant_str) != 0) {
fprintf(stderr, "Failed to set Rx antenna.\n");
}
Maybe I miss when looking or readng the code include to other folders?
please help me if anyone know! Thanks :-)
--
Best Regards,
Sandi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20181117/b62681f6/attachment.htm>
More information about the srsran-users
mailing list