None of the common host libraries seem to have that kind of an API call:
https://github.com/librtlsdr/librtlsdr/blob/master/include/rtl-sdr.h
https://github.com/mossmann/hackrf/blob/master/host/libhackrf/src/hackrf.h
https://github.com/airspy/host/blob/master/libairspy/src/airspy.h

But here's gr-osmosdr's API
https://github.com/osmocom/gr-osmosdr/blob/master/lib/source_iface.h

On Thu, Apr 14, 2016 at 7:44 PM, Richard Bell <richard.be...@gmail.com> wrote:
> I'm new to using gr-osmosdr and I'm trying to implement the equivalent set
> of USRP function calls for a HackRF
>
> set_center_freq(target_freq)
> get_sensor("lo_locked")
>
> which amounts to measuring how long it takes to command a frequency change
> and lock at the new frequency.
>
> The set_center_freq function happens to be the same, but I don't know where
> to find documentation or example code that shows the get_sensor equivalent,
> or if it's even needed. Would someone direct me to an API manual for
> gr-osmosdr, or source code that defines these things?
>
> Thanks,
> Rich
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>



-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to