mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-17 19:00:41 -04:00
Single function to configure/enable radio.
This commit is contained in:
parent
692a262f41
commit
49a89b9dee
5 changed files with 54 additions and 24 deletions
|
@ -32,6 +32,17 @@
|
|||
|
||||
namespace radio {
|
||||
|
||||
struct Configuration {
|
||||
rf::Frequency tuning_frequency;
|
||||
uint32_t baseband_rate;
|
||||
uint32_t baseband_filter_bandwidth;
|
||||
rf::Direction direction;
|
||||
bool rf_amp;
|
||||
int8_t lna_gain;
|
||||
int8_t vga_gain;
|
||||
uint8_t baseband_decimation;
|
||||
};
|
||||
|
||||
void init();
|
||||
|
||||
void set_direction(const rf::Direction new_direction);
|
||||
|
@ -44,6 +55,8 @@ void set_baseband_rate(const uint32_t rate);
|
|||
void set_baseband_decimation_by(const size_t n);
|
||||
void set_antenna_bias(const bool on);
|
||||
|
||||
void enable(Configuration configuration);
|
||||
void configure(Configuration configuration);
|
||||
void disable();
|
||||
|
||||
extern rffc507x::RFFC507x first_if;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue