You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: host/libhackrf/src/hackrf.h
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -946,6 +946,16 @@ enum clkin_ctrl_signal {
946
946
CLKIN_SIGNAL_P22=1,
947
947
};
948
948
949
+
/**
950
+
* 40.24 Fixed-point type.
951
+
*/
952
+
typedefuint64_tfp_40_24_t;
953
+
954
+
/**
955
+
* 28.36 Fixed-point type.
956
+
*/
957
+
typedefuint64_tfp_28_36_t;
958
+
949
959
/**
950
960
* Opaque struct for hackrf device info. Object can be created via @ref hackrf_open, @ref hackrf_device_list_open or @ref hackrf_open_by_serial and be destroyed via @ref hackrf_close
951
961
* @ingroup device
@@ -1778,6 +1788,18 @@ extern ADDAPI int ADDCALL hackrf_set_freq_explicit(
1778
1788
constuint64_tlo_freq_hz,
1779
1789
constenumrf_path_filterpath);
1780
1790
1791
+
/**
1792
+
* Set the radio center frequency to a fractional, fixed-point value.
1793
+
*
1794
+
* @param[in] device device to query
1795
+
* @param[in] hz center frequency in Hz
1796
+
* @return @ref HACKRF_SUCCESS on success or @ref hackrf_error variant
@@ -1812,6 +1834,20 @@ extern ADDAPI int ADDCALL hackrf_set_sample_rate(
1812
1834
hackrf_device*device,
1813
1835
constdoublefreq_hz);
1814
1836
1837
+
/**
1838
+
* Set the radio sample rate to a fractional, fixed-point value.
1839
+
*
1840
+
* This function does not automatically configure the baseband filter bandwidth, so any calls to this function should be followed by @ref hackrf_set_baseband_filter_bandwidth should it require adjustment.
1841
+
*
1842
+
* @param[in] device device to query
1843
+
* @param[in] sps samples per second
1844
+
* @return @ref HACKRF_SUCCESS on success or @ref hackrf_error variant
0 commit comments