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

#include <emmc.hpp>

Public Types

enum class  dir { MCU , FPGA }

Public Member Functions

 emmc (bsp::gpio &en, bsp::gpio &sel, bsp::gpio &rst)
void enable (bool set=false)
void reset (bool set=false)
bool enabled () const
void set_dir (dir d)
emmc::dir get_dir () const

Detailed Description

Definition at line 30 of file emmc.hpp.

Member Enumeration Documentation

◆ dir

enum class satnogs::comms::lib::emmc::dir
strong

Direction / interface

Enumerator
MCU 

MCU interface

FPGA 

FPGA interface

Definition at line 36 of file emmc.hpp.

Constructor & Destructor Documentation

◆ emmc()

satnogs::comms::lib::emmc::emmc ( bsp::gpio & en,
bsp::gpio & sel,
bsp::gpio & rst )

Creates a generic EMMC handler

Parameters
enGPIO to enable/disable the EMMC
selGPIO to select which of MCU or FPGA has access to the EMMC
rstGPIO for the reset signal of the EMMC

Definition at line 35 of file emmc.cpp.

Member Function Documentation

◆ enable()

void satnogs::comms::lib::emmc::enable ( bool set = false)

Enable/disable the EMMC

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

Definition at line 46 of file emmc.cpp.

◆ enabled()

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

Definition at line 66 of file emmc.cpp.

◆ get_dir()

emmc::dir satnogs::comms::lib::emmc::get_dir ( ) const
Returns
the direction of the EMMC

Definition at line 96 of file emmc.cpp.

◆ reset()

void satnogs::comms::lib::emmc::reset ( bool set = false)

Reset the EMMC

Parameters
setset to true to enable the EMMC reset pin, false to disable it.

Definition at line 56 of file emmc.cpp.

◆ set_dir()

void satnogs::comms::lib::emmc::set_dir ( dir d)

Sets the direction of the EMMC

Parameters
dthe direction

Definition at line 76 of file emmc.cpp.


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