ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
ModuleMicroSD Class Reference

MicroSD module for the esp32. More...

#include <module_handler/include/modules/microsd.hpp>

Inheritance diagram for ModuleMicroSD:
ModuleHandler::Module

Public Member Functions

 ModuleMicroSD (void)
 
 ~ModuleMicroSD (void)
 
void OnReceive (const Esp32Command &cmd)
 
size_t OnRequest (uint8_t *buffer)
 
- Public Member Functions inherited from ModuleHandler::Module
 Module (void)
 Construct a new Module object.
 
 ~Module (void)
 Destroy the Module object.
 
int State (void)
 Get the current state of the module.
 
int Type ()
 Get the message type associated with the module.
 
void Reset (void)
 Resets the module to default state.
 

Additional Inherited Members

- Protected Attributes inherited from ModuleHandler::Module
int state = 0
 
int type = 0
 

Detailed Description

MicroSD module for the esp32.

The microSD module supports Save commands through OnReceive. The Save command decodes protobuf-serialized data and stores it into a CSV file on the microSD card.

Definition at line 32 of file microsd.hpp.

Constructor & Destructor Documentation

◆ ModuleMicroSD()

ModuleMicroSD::ModuleMicroSD ( void  )

Definition at line 16 of file microsd.cpp.

References ModuleHandler::Module::type.

◆ ~ModuleMicroSD()

ModuleMicroSD::~ModuleMicroSD ( void  )

Definition at line 21 of file microsd.cpp.

Member Function Documentation

◆ OnReceive()

void ModuleMicroSD::OnReceive ( const Esp32Command &  cmd)
virtual
See also
ModuleHandler::Module.OnReceive

Implements ModuleHandler::Module.

Definition at line 23 of file microsd.cpp.

◆ OnRequest()

size_t ModuleMicroSD::OnRequest ( uint8_t *  buffer)
virtual
See also
ModuleHandler::Module.OnRequest

Implements ModuleHandler::Module.

Definition at line 53 of file microsd.cpp.

References buffer.


The documentation for this class was generated from the following files: