feat: Parser für die UART-Testkonsole

This commit is contained in:
Michael Sauer
2026-09-11 13:43:08 +02:00
parent 663825c165
commit 1074a8f034
4 changed files with 253 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef NL_CONSOLE_CMD_H
#define NL_CONSOLE_CMD_H
#include <stdint.h>
typedef enum {
NL_CMD_NONE = 0,
NL_CMD_ON,
NL_CMD_OFF,
NL_CMD_BRI,
NL_CMD_RGB,
NL_CMD_CT,
NL_CMD_POB,
NL_CMD_FADE,
NL_CMD_STATE,
NL_CMD_BLINK,
NL_CMD_PULSE,
NL_CMD_FACTORY,
NL_CMD_REBOOT,
NL_CMD_HELP,
NL_CMD_ERROR
} nl_cmd_type_t;
typedef struct {
nl_cmd_type_t type;
int32_t arg[4];
uint8_t argc;
} nl_cmd_t;
nl_cmd_t nl_console_parse(const char *line);
extern const char nl_console_help[];
#endif