![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
#include <f2972.hpp>
Public Types | |
| enum class | port : uint8_t { RF1 , RF2 } |
Public Member Functions | |
| f2972 (const etl::istring &name, bsp::gpio &en, bsp::gpio &ctl) | |
| const etl::istring & | name () const |
| void | enable (bool set=true) |
| bool | enabled () const |
| void | set_port (port p) |
| port | active_port () const |
|
strong |
Creates an object for controlling the F2972 RF-switch. If the initialization is successful the switch is set to a disabled state. In this state port ports are terminated. However, if the switch is enabled, the first selected port will be the RF1, unless the user specifies another one.
| name | a descriptive name of the switch |
| en | the GPIO of the EN pin |
| ctl | the GPIO of the CTL pin |
| f2972::port satnogs::comms::lib::f2972::active_port | ( | ) | const |
| void satnogs::comms::lib::f2972::enable | ( | bool | set = true | ) |
| bool satnogs::comms::lib::f2972::enabled | ( | ) | const |
| const etl::istring & satnogs::comms::lib::f2972::name | ( | ) | const |
| void satnogs::comms::lib::f2972::set_port | ( | port | p | ) |