37 lines
594 B
C
37 lines
594 B
C
#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_WDTEST,
|
|
NL_CMD_NET,
|
|
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
|