|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
MicroSD module for the esp32. More...
#include <module_handler/include/modules/microsd.hpp>
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 |
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.
| ModuleMicroSD::ModuleMicroSD | ( | void | ) |
Definition at line 16 of file microsd.cpp.
References ModuleHandler::Module::type.
| ModuleMicroSD::~ModuleMicroSD | ( | void | ) |
Definition at line 21 of file microsd.cpp.
|
virtual |
Implements ModuleHandler::Module.
Definition at line 23 of file microsd.cpp.
|
virtual |
Implements ModuleHandler::Module.
Definition at line 53 of file microsd.cpp.
References buffer.