GPS Device
Loading...
Searching...
No Matches
modules.c File Reference

System module name string table. More...

#include "modules.h"
Include dependency graph for modules.c:

Go to the source code of this file.

Variables

const char * modules_names []
 Maps each MODULES_te enumerator to its human-readable name string.

Detailed Description

System module name string table.

Author
github.com/Baksi675
Version
0.1
Date
2026-01-28

Definition in file modules.c.

Variable Documentation

◆ modules_names

const char* modules_names[]
Initial value:
= {
[MODULES_CMD] = "cmd",
[MODULES_SSD1309] = "ssd1309",
[MODULES_NEO6] = "neo6",
[MODULES_IO] = "io",
[MODULES_BUTTON] = "button",
[MODULES_MENU] = "menu",
[MODULES_SD] = "sd",
[MODULES_DATALOG] = "datalog"
}
@ MODULES_SD
Definition modules.h:49
@ MODULES_CMD
Definition modules.h:43
@ MODULES_BUTTON
Definition modules.h:47
@ MODULES_SSD1309
Definition modules.h:44
@ MODULES_NEO6
Definition modules.h:45
@ MODULES_MENU
Definition modules.h:48
@ MODULES_DATALOG
Definition modules.h:50
@ MODULES_IO
Definition modules.h:46

Maps each MODULES_te enumerator to its human-readable name string.

External array mapping MODULES_te values to their name strings.

Indexed by MODULES_te values. Used by the log subsystem to prefix each log message with the originating subsystem name, and by the CLI to display module names.

The order and count of entries must remain in sync with MODULES_te.

Definition at line 24 of file modules.c.

24 {
25 [MODULES_CMD] = "cmd",
26 [MODULES_SSD1309] = "ssd1309",
27 [MODULES_NEO6] = "neo6",
28 [MODULES_IO] = "io",
29 [MODULES_BUTTON] = "button",
30 [MODULES_MENU] = "menu",
31 [MODULES_SD] = "sd",
32 [MODULES_DATALOG] = "datalog"
33}