CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
NvsEditModule.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace cdc::mod_nvsedit {
6
15public:
16 NvsEditModule() : ModuleBase("mod_nvsedit") {}
17
18 // IService - init is module-specific; start/stop inherited from ModuleBase
19 bool init() override;
20
21 // IModule
22 const char* getVersion() const override { return "1.0.0"; }
23 uint8_t getMenuItems(cdc::core::ModuleMenuItem* items, uint8_t maxItems) override;
24};
25
26} // namespace cdc::mod_nvsedit
27
28// Registration function (called by auto-generated code)
29extern "C" void mod_nvsedit_register();
void mod_nvsedit_register()
Registers NVS editor initializer with module registry.
Base implementation that handles common module lifecycle boilerplate.
Definition ModuleBase.h:20
ModuleBase(const char *name)
Constructs a module base with the given module name.
Definition ModuleBase.h:26
bool init() override
Initializes NVS editor module state.
const char * getVersion() const override
Returns the module version string.
uint8_t getMenuItems(cdc::core::ModuleMenuItem *items, uint8_t maxItems) override
Exposes NVS editor entry in the tools menu.
Menu item registered by a module.
Definition IModule.h:29