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

CMD subsystem implementation. More...

#include <stdbool.h>
#include "cmd.h"
#include "common.h"
#include "err.h"
#include "log.h"
#include "configuration.h"
#include "modules.h"
Include dependency graph for cmd.c:

Go to the source code of this file.

Classes

struct  internal_state_s
 Internal state of the SysTick driver. More...

Functions

ERR_te cmd_register (CMD_CLIENT_INFO_ts *cmd_client_info)
 Registers a client with the command subsystem.
ERR_te cmd_deregister (CMD_CLIENT_INFO_ts const *cmd_client_info)
 Deregisters a client from the command subsystem.
ERR_te cmd_execute (char *console_text)
 Parses and executes a command from a console text string.

Variables

static struct internal_state_s internal_state
 Singleton instance of the command subsystem internal state.

Detailed Description

CMD subsystem implementation.

Author
github.com/Baksi675
Version
0.1
Date
2025-11-05

Definition in file cmd.c.

Variable Documentation

◆ internal_state

struct internal_state_s internal_state
static
Initial value:
= {
.subsys = MODULES_CMD,
.log_level = LOG_LEVEL_INFO
}
@ LOG_LEVEL_INFO
Definition log.h:64
@ MODULES_CMD
Definition modules.h:43

Singleton instance of the command subsystem internal state.

Definition at line 40 of file cmd.c.

40 {
41 .subsys = MODULES_CMD,
42 .log_level = LOG_LEVEL_INFO
43};