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
@@ -959,6 +959,16 @@ enum radio_config_mode {
959
959
RADIO_CONFIG_HALF_PRECISION=4,
960
960
};
961
961
962
+
/**
963
+
* 40.24 Fixed-point type.
964
+
*/
965
+
typedefuint64_tfp_40_24_t;
966
+
967
+
/**
968
+
* 28.36 Fixed-point type.
969
+
*/
970
+
typedefuint64_tfp_28_36_t;
971
+
962
972
/**
963
973
* 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
964
974
* @ingroup device
@@ -1791,6 +1801,18 @@ extern ADDAPI int ADDCALL hackrf_set_freq_explicit(
1791
1801
constuint64_tlo_freq_hz,
1792
1802
constenumrf_path_filterpath);
1793
1803
1804
+
/**
1805
+
* Set the radio center frequency to a fractional, fixed-point value.
1806
+
*
1807
+
* @param[in] device device to query
1808
+
* @param[in] hz center frequency in Hz
1809
+
* @return @ref HACKRF_SUCCESS on success or @ref hackrf_error variant
@@ -1825,6 +1847,20 @@ extern ADDAPI int ADDCALL hackrf_set_sample_rate(
1825
1847
hackrf_device*device,
1826
1848
constdoublefreq_hz);
1827
1849
1850
+
/**
1851
+
* Set the radio sample rate to a fractional, fixed-point value.
1852
+
*
1853
+
* 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.
1854
+
*
1855
+
* @param[in] device device to query
1856
+
* @param[in] sps samples per second
1857
+
* @return @ref HACKRF_SUCCESS on success or @ref hackrf_error variant
0 commit comments