mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
RF antenna bias voltage control API.
This commit is contained in:
parent
02b3e891f7
commit
10d4172d5c
6 changed files with 40 additions and 1 deletions
|
@ -152,7 +152,13 @@ void set_baseband_decimation_by(const size_t n) {
|
|||
baseband_cpld.set_decimation_by(n);
|
||||
}
|
||||
|
||||
void set_antenna_bias(const bool on) {
|
||||
/* Pull MOSFET gate low to turn on antenna bias. */
|
||||
first_if.set_gpo1(on ? 0 : 1);
|
||||
}
|
||||
|
||||
void disable() {
|
||||
set_antenna_bias(false);
|
||||
baseband_codec.set_mode(max5864::Mode::Shutdown);
|
||||
second_if.set_mode(max2837::Mode::Standby);
|
||||
first_if.disable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue