SatNOGS-COMMS  4.1.0
A COMMS subsystem for CubeSats
Loading...
Searching...
No Matches
satnogs::comms::lib::lna Class Reference

#include <lna.hpp>

Public Member Functions

 lna (const etl::istring &name, bsp::gpio &io)
const etl::istring & name () const
void enable (bool set=true)
void toggle ()
bool enabled () const

Protected Attributes

bsp::gpiom_gpio

Detailed Description

Definition at line 31 of file lna.hpp.

Constructor & Destructor Documentation

◆ lna()

satnogs::comms::lib::lna::lna ( const etl::istring & name,
bsp::gpio & io )

Creates a generic LNA handler

Parameters
namethe name of the LNA
iothe GPIO to enable/disable the LNA

Definition at line 33 of file lna.cpp.

Member Function Documentation

◆ enable()

void satnogs::comms::lib::lna::enable ( bool set = true)

Enable/disable the LNA

Parameters
setset to true to enable the LNA, false to disable.

Definition at line 49 of file lna.cpp.

◆ enabled()

bool satnogs::comms::lib::lna::enabled ( ) const
Returns
true of the LNA is enabled, false otherwise

Definition at line 68 of file lna.cpp.

◆ name()

const etl::istring & satnogs::comms::lib::lna::name ( ) const

Definition at line 39 of file lna.cpp.

◆ toggle()

void satnogs::comms::lib::lna::toggle ( )

Toggles the state of the LNA

Definition at line 58 of file lna.cpp.

Member Data Documentation

◆ m_gpio

bsp::gpio& satnogs::comms::lib::lna::m_gpio
protected

Definition at line 49 of file lna.hpp.


The documentation for this class was generated from the following files:
  • libsatnogs-comms/include/satnogs-comms-lib/lna.hpp
  • libsatnogs-comms/src/lna.cpp