![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
#include <rf_frontend.hpp>
Classes | |
| class | params |
| RF frontend initialization settings. More... | |
| class | io_conf |
| class | rx_gain_params |
| RX gain settings for the two different gain stages. Gain0 stage corresponds to the first stage (closest to the antenna), implemented by the AD8318. The second stage is implemented by the AT86RF215. More... | |
Public Types | |
| enum class | dir : uint8_t { RX , TX , INVALID } |
| enum class | gain_mode : uint8_t { AUTO , MANUAL } |
| enum class | filter : uint8_t { WIDE , NARROW } |
Public Member Functions | |
| rf_frontend (const params &init_params, io_conf &&io, power &pwr) | |
| virtual void | enable (bool set=true)=0 |
| virtual bool | enabled () const =0 |
| virtual void | set_filter (filter f) |
| virtual filter | get_filter () const |
| virtual void | set_direction (dir d, uint64_t lo_freq=0)=0 |
| dir | direction () const |
| void | set_rx_gain (const rx_gain_params &gain) |
| Sets the RX gain parameters. | |
| bool | frequency_valid (dir d, uint32_t freq) const |
| Checks if a frequency is within the permissible range. | |
Protected Attributes | |
| const params | m_params |
| bsp::gpio & | m_filt_sel |
| bsp::dac & | m_dac |
| power & | m_pwr |
| ad8318 | m_agc |
| dir | m_dir |
Definition at line 42 of file rf_frontend.hpp.
|
strong |
Direction / interface
| Enumerator | |
|---|---|
| RX | RX interface |
| TX | TX interface |
| INVALID | |
Definition at line 82 of file rf_frontend.hpp.
|
strong |
| Enumerator | |
|---|---|
| WIDE | |
| NARROW | |
Definition at line 98 of file rf_frontend.hpp.
|
strong |
RX Gain mode
| Enumerator | |
|---|---|
| AUTO | AGC enabled |
| MANUAL | AGC bypassed |
Definition at line 92 of file rf_frontend.hpp.
| satnogs::comms::lib::rf_frontend::rf_frontend | ( | const params & | init_params, |
| io_conf && | io, | ||
| power & | pwr ) |
Definition at line 28 of file rf_frontend.cpp.
| rf_frontend::dir satnogs::comms::lib::rf_frontend::direction | ( | ) | const |
Definition at line 78 of file rf_frontend.cpp.
|
pure virtual |
Enable/Disable the RF frontend and its associated components
| set | true to enable, false to disable |
Implemented in satnogs::comms::lib::rf_frontend09, and satnogs::comms::lib::rf_frontend24.
|
pure virtual |
Implemented in satnogs::comms::lib::rf_frontend09, and satnogs::comms::lib::rf_frontend24.
| bool satnogs::comms::lib::rf_frontend::frequency_valid | ( | dir | d, |
| uint32_t | freq ) const |
Checks if a frequency is within the permissible range.
| d | the direction (RX or TX) |
| freq | the desired frequency |
Definition at line 123 of file rf_frontend.cpp.
|
virtual |
Definition at line 64 of file rf_frontend.cpp.
|
pure virtual |
Implemented in satnogs::comms::lib::rf_frontend09, and satnogs::comms::lib::rf_frontend24.
|
virtual |
Sets the RX hardware filter path
| f | the RF filter path (filter::NARROW or filter::WIDE) |
Definition at line 45 of file rf_frontend.cpp.
| void satnogs::comms::lib::rf_frontend::set_rx_gain | ( | const rx_gain_params & | gain | ) |
Sets the RX gain parameters.
| gain | the gain parameters. Only the first stage gain is used by the rf_frontend class |
Definition at line 90 of file rf_frontend.cpp.
|
protected |
Definition at line 166 of file rf_frontend.hpp.
|
protected |
Definition at line 164 of file rf_frontend.hpp.
|
protected |
Definition at line 167 of file rf_frontend.hpp.
|
protected |
Definition at line 163 of file rf_frontend.hpp.
|
protected |
Definition at line 162 of file rf_frontend.hpp.
|
protected |
Definition at line 165 of file rf_frontend.hpp.