Skip to content

Commit b17478b

Browse files
committed
added stubs
1 parent 684ea6e commit b17478b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from python_hackrf import pyhackrf
2+
3+
def stop_all() -> None:
4+
...
5+
6+
def stop_sdr(serialno: str) -> None:
7+
...
8+
9+
def pyhackrf_sweep(frequencies: list[int] | None = None, sample_rate: int = 20_000_000, baseband_filter_bandwidth: int | None = None,
10+
lna_gain: int = 16, vga_gain: int = 20, bin_width: int = 100_000, amp_enable: bool = False, antenna_enable: bool = False,
11+
sweep_style: pyhackrf.py_sweep_style = pyhackrf.py_sweep_style.INTERLEAVED, serial_number: str | None = None,
12+
binary_output: bool = False, one_shot: bool = False, num_sweeps: int | None = None,
13+
filename: str | None = None, queue: object | None = None,
14+
print_to_console: bool = True) -> None:
15+
...
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from python_hackrf import pyhackrf
2+
3+
def stop_all() -> None:
4+
...
5+
6+
def stop_sdr(serialno: str) -> None:
7+
...
8+
9+
def pyhackrf_transfer(frequency: int | None = None, sample_rate: int = 10_000_000, baseband_filter_bandwidth: int | None = None, i_frequency: int | None = None, lo_frequency: int | None = None, image_reject: pyhackrf.py_rf_path_filter = pyhackrf.py_rf_path_filter.RF_PATH_FILTER_BYPASS,
10+
rx_lna_gain: int = 16, rx_vga_gain: int = 20, tx_vga_gain: int = 0, amp_enable: bool = False, antenna_enable: bool = False,
11+
repeat_tx: bool = False, synchronize: bool = False, num_samples: int | None = None, serial_number: str | None = None,
12+
rx_filename: str | None = None, tx_filename: str | None = None, rx_buffer: object | None = None, tx_buffer: object | None = None,
13+
print_to_console: bool = True) -> None:
14+
...

0 commit comments

Comments
 (0)