I'm starting with the ad9361-iiostream.c example and am trying to get the receiver's RSSI and gain status, but seem to be unable to 'find' the attribute.
I've tried to get it a few ways and nothing seems to work
1) iio_device_attr_read_double () from the ad9361-phy and channel voltage 0 asking for attribute "rssi"
2) iio_device_attr_read_double () from the ad9361-phy and channel voltage 0 asking for attribute "rssi"
3) iio_channel_attr_read_double () from cf-ad9361-A and channel voltage 0 asking for attribute "rssi"
I've been trying to rely on iio_info to tell me what are the valid current device/channel/attribute combinations but it seems not to be helping.
What am I missing? Is there a good primer that would help?
Thanks!