CTS-SAT-1-OBC-Firmware
|
#include "config/configuration.h"
#include "comms_drivers/ax100_tx.h"
#include "rtos_tasks/rtos_bootup_operation_fsm_task.h"
#include "comms_drivers/rf_antenna_switch.h"
#include "rtos_tasks/rtos_bulk_downlink_task.h"
#include <stdio.h>
#include <stdint.h>
#include <string.h>
Functions | |
int16_t | CONFIG_get_int_var_index (const char *search_name) |
Finds an int config variable in CONFIG_int_config_variables and returns its index. | |
int16_t | CONFIG_get_str_var_index (const char *search_name) |
Finds a string config variable in CONFIG_str_config_variables and returns its index. | |
uint8_t | CONFIG_set_int_variable (const char *var_name, const uint64_t new_value) |
Assigns a new value to an integer configuration variable. | |
uint8_t | CONFIG_set_str_variable (const char *var_name, const char *new_value) |
Assigns a new value to a string configuration variable. | |
uint16_t | CONFIG_int_var_to_json (const char *var_name, char *json_str, const uint16_t json_str_max_len) |
Converts an integer configuration variable to a JSON string. | |
uint16_t | CONFIG_str_var_to_json (const char *var_name, char *json_str, const uint16_t json_str_max_len) |
Converts a string configuration variable to a JSON string. | |
Variables | |
uint32_t | TASK_heartbeat_period_ms |
The period of the heartbeat task, in milliseconds. 0 to disable. | |
uint32_t | TCMD_require_valid_sha256 |
Bool. When 1, the telecommand parser will require a valid SHA256 hash in the telecommand string. | |
uint32_t | CONFIG_EPS_enable_uart_debug_print |
When enabled, the EPS's raw data is sent to the debug UART. | |
uint32_t | CONFIG_int_demo_var_1 = 13345 |
uint32_t | CONFIG_int_demo_var_2 = 242344 |
uint32_t | EPS_monitor_interval_ms = 20000 |
uint32_t | STM32_system_reset_interval_ms = 604800000 |
uint32_t | TCMD_require_unique_tssent = 0 |
const uint32_t | CONFIG_freertos_min_remaining_stack_percent = 20 |
The percentage of the stack space that should remain free. If the free space falls below this percentage, a warning will be logged. | |
CONFIG_integer_config_entry_t | CONFIG_int_config_variables [] |
const uint8_t | CONFIG_int_config_variables_count = sizeof(CONFIG_int_config_variables) / sizeof(CONFIG_integer_config_entry_t) |
char | CONFIG_str_demo_var_1 [25] = "CONFIG_str_demo_var_1" |
char | CONFIG_str_demo_var_2 [50] = "CONFIG_str_demo_var_2" |
CONFIG_string_config_entry_t | CONFIG_str_config_variables [] |
const uint8_t | CONFIG_str_config_variables_count = sizeof(CONFIG_str_config_variables) / sizeof(CONFIG_string_config_entry_t) |
int16_t CONFIG_get_int_var_index | ( | const char * | search_name | ) |
Finds an int config variable in CONFIG_int_config_variables
and returns its index.
name | Name of the variable being searched, as registered in CONFIG_int_config_variables |
CONFIG_int_config_variables
int16_t CONFIG_get_str_var_index | ( | const char * | search_name | ) |
Finds a string config variable in CONFIG_str_config_variables
and returns its index.
name | Name of the variable being searched, as registered in CONFIG_str_config_variables |
CONFIG_str_config_variables
uint16_t CONFIG_int_var_to_json | ( | const char * | var_name, |
char * | json_str, | ||
const uint16_t | json_str_max_len ) |
Converts an integer configuration variable to a JSON string.
var_name | Name of the variable |
json_str | Buffer to write the JSON string to |
json_str_max_len | Max length of the buffer |
uint8_t CONFIG_set_int_variable | ( | const char * | var_name, |
const uint64_t | new_value ) |
Assigns a new value to an integer configuration variable.
var_name | Name of the variable |
new_value | New value |
uint8_t CONFIG_set_str_variable | ( | const char * | var_name, |
const char * | new_value ) |
Assigns a new value to a string configuration variable.
config_var | Pointer to the configuration variable |
new_value | New value |
uint16_t CONFIG_str_var_to_json | ( | const char * | var_name, |
char * | json_str, | ||
const uint16_t | json_str_max_len ) |
Converts a string configuration variable to a JSON string.
var_name | Name of the variable |
json_str | Buffer to write the JSON string to |
json_str_max_len | Max length of the buffer |
|
extern |
When enabled, the EPS's raw data is sent to the debug UART.
const uint32_t CONFIG_freertos_min_remaining_stack_percent = 20 |
The percentage of the stack space that should remain free. If the free space falls below this percentage, a warning will be logged.
CONFIG_integer_config_entry_t CONFIG_int_config_variables[] |
const uint8_t CONFIG_int_config_variables_count = sizeof(CONFIG_int_config_variables) / sizeof(CONFIG_integer_config_entry_t) |
uint32_t CONFIG_int_demo_var_1 = 13345 |
uint32_t CONFIG_int_demo_var_2 = 242344 |
CONFIG_string_config_entry_t CONFIG_str_config_variables[] |
const uint8_t CONFIG_str_config_variables_count = sizeof(CONFIG_str_config_variables) / sizeof(CONFIG_string_config_entry_t) |
char CONFIG_str_demo_var_1[25] = "CONFIG_str_demo_var_1" |
char CONFIG_str_demo_var_2[50] = "CONFIG_str_demo_var_2" |
uint32_t EPS_monitor_interval_ms = 20000 |
uint32_t STM32_system_reset_interval_ms = 604800000 |
|
extern |
The period of the heartbeat task, in milliseconds. 0 to disable.
uint32_t TCMD_require_unique_tssent = 0 |
|
extern |
Bool. When 1, the telecommand parser will require a valid SHA256 hash in the telecommand string.