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
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -946,6 +946,19 @@ enum clkin_ctrl_signal {
946
946
CLKIN_SIGNAL_P22=1,
947
947
};
948
948
949
+
/**
950
+
* HackRF Pro Radio Configuration Mode.
951
+
*
952
+
* Used by @ref hackrf_radio_set_config_mode, to set the active configuration mode.
953
+
*/
954
+
enumradio_config_mode {
955
+
RADIO_CONFIG_LEGACY=0,
956
+
RADIO_CONFIG_STANDARD=1,
957
+
RADIO_CONFIG_EXT_PRECISION_RX=2,
958
+
RADIO_CONFIG_EXT_PRECISION_TX=3,
959
+
RADIO_CONFIG_HALF_PRECISION=4,
960
+
};
961
+
949
962
/**
950
963
* 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
964
* @ingroup device
@@ -2477,6 +2490,18 @@ extern ADDAPI int ADDCALL hackrf_radio_lock_register(
2477
2490
constuint8_tregister_number,
2478
2491
constboolregister_locked);
2479
2492
2493
+
/**
2494
+
* Switches the radio configuration mode.
2495
+
*
2496
+
* @param[in] device device to configure
2497
+
* @param[in] mode configuration mode. Defaults to RADIO_CONFIG_LEGACY. Available modes are defined in @ref radio_config_mode.
2498
+
* @return @ref HACKRF_SUCCESS on success or @ref hackrf_error variant
0 commit comments