mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 18:07:43 +00:00
Use receiver/transmitter models everywhere (#1056)
* Use receiver/transmitter models everywhere * Run formatter * Fix a copy-paste bug, make transmitter_model actually set tx_gain. --------- Co-authored-by: kallanreed <kallanreed@outlook.com>
This commit is contained in:
@@ -27,6 +27,9 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
/* Direct access to the radio. Setting values incorrectly can damage
|
||||
* the device. Applications should use ReceiverModel or TransmitterModel
|
||||
* instead of calling these functions directly. */
|
||||
namespace radio {
|
||||
|
||||
struct Configuration {
|
||||
@@ -51,8 +54,9 @@ void set_baseband_filter_bandwidth(const uint32_t bandwidth_minimum);
|
||||
void set_baseband_rate(const uint32_t rate);
|
||||
void set_antenna_bias(const bool on);
|
||||
|
||||
void enable(Configuration configuration);
|
||||
void configure(Configuration configuration);
|
||||
/* Use ReceiverModel or TransmitterModel instead. */
|
||||
// void enable(Configuration configuration);
|
||||
// void configure(Configuration configuration);
|
||||
void disable();
|
||||
|
||||
namespace debug {
|
||||
|
Reference in New Issue
Block a user