CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
config_telecommand_defs.c File Reference
#include "telecommand_exec/telecommand_args_helpers.h"
#include "telecommands/config_telecommand_defs.h"
#include "config/configuration.h"
#include "debug_tools/debug_uart.h"
#include "log/log.h"
#include <string.h>
#include <stdio.h>
Include dependency graph for config_telecommand_defs.c:

Functions

uint8_t TCMDEXEC_config_set_int_var (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Set an integer configuration variable.
 
uint8_t TCMDEXEC_config_set_str_var (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Set a string configuration variable.
 
uint8_t TCMDEXEC_config_get_int_var_json (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Get an integer configuration variable.
 
uint8_t TCMDEXEC_config_get_str_var_json (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Get a string configuration variable.
 
uint8_t TCMDEXEC_config_get_all_vars_jsonl (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Get all configuration variables, as JSON. One variable per line.
 

Function Documentation

◆ TCMDEXEC_config_get_all_vars_jsonl()

uint8_t TCMDEXEC_config_get_all_vars_jsonl ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Get all configuration variables, as JSON. One variable per line.

Parameters
args_strNo arguments.
Returns
0 if successful, >0 if an error occurred
Here is the call graph for this function:

◆ TCMDEXEC_config_get_int_var_json()

uint8_t TCMDEXEC_config_get_int_var_json ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Get an integer configuration variable.

Parameters
args_str
  • Arg 0: variable name
Returns
0 if successful, >0 if an error occurred
Here is the call graph for this function:

◆ TCMDEXEC_config_get_str_var_json()

uint8_t TCMDEXEC_config_get_str_var_json ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Get a string configuration variable.

Parameters
args_str
  • Arg 0: variable name
Returns
0 if successful, >0 if an error occurred
Here is the call graph for this function:

◆ TCMDEXEC_config_set_int_var()

uint8_t TCMDEXEC_config_set_int_var ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Set an integer configuration variable.

Parameters
args_str
  • Arg 0: variable name
  • Arg 1: new value
response_output_bufBuffer to write the response to
response_output_buf_lenMax length of the buffer
Returns
0 if successful, >0 if an error occurred
Here is the call graph for this function:

◆ TCMDEXEC_config_set_str_var()

uint8_t TCMDEXEC_config_set_str_var ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Set a string configuration variable.

Parameters
args_str
  • Arg 0: variable name
  • Arg 1: new value
Returns
0 if successful, >0 if an error occurred
Here is the call graph for this function: