-
Notifications
You must be signed in to change notification settings - Fork 91
Add support for HackRf. #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,10 +44,30 @@ struct Config { | |
| bool bias_tee = 0; | ||
|
|
||
| std::unique_ptr<SamplePublisher> samplePublisher; | ||
| }; | ||
| }; | ||
|
|
||
| Airspy airspy; | ||
|
|
||
| struct HackRF { | ||
| uint32_t frequency = 0; | ||
| uint32_t sampleRate = 0; | ||
|
|
||
| // Applies to the tuner IF gain setting | ||
| uint8_t if_gain = 8; | ||
|
|
||
| // Applies to the tuner BB gain setting | ||
| uint8_t bb_gain = 30; | ||
|
|
||
| // Enables or disables the RF amplifier | ||
| bool rf_amp_enabled = 0; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I hadn't heard of this one. Is it some kind of AGC? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 62 is for supporting the little amp package that the HackRF has internally (https://github.com/mossmann/hackrf/blob/master/doc/hardware/hackrf-one-schematic.pdf): https://www.broadcom.com/products/wireless/amplifiers/gain-block-and-drivers/mga-81563 The HackRF wiki has some documentation for the gain settings here: https://github.com/mossmann/hackrf/wiki/FAQ#making-sense-of-gain-settings |
||
|
|
||
| bool bias_tee = 0; | ||
|
|
||
| std::unique_ptr<SamplePublisher> samplePublisher; | ||
| }; | ||
|
|
||
| HackRF hackrf; | ||
|
|
||
| struct RTLSDR { | ||
| uint32_t frequency = 0; | ||
| uint32_t sampleRate = 0; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.