CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
freertos_telecommand_defs.c File Reference
#include "telecommand_exec/telecommand_definitions.h"
#include "telecommand_exec/telecommand_args_helpers.h"
#include "transforms/arrays.h"
#include "unit_tests/unit_test_executor.h"
#include "timekeeping/timekeeping.h"
#include "telecommands/freertos_telecommand_defs.h"
#include "debug_tools/debug_uart.h"
#include "log/log.h"
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <inttypes.h>
#include <FreeRTOS.h>
#include <task.h>
#include <portmacro.h>
Include dependency graph for freertos_telecommand_defs.c:

Functions

const char * freertos_eTaskState_to_str (eTaskState state)
 Converts a FreeRTOS TaskState enum to a string representation.
 
uint8_t TCMDEXEC_freetos_list_tasks_jsonl (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Telecommand that return metadata regarding Tasks from FreeRTOS.
 
uint8_t TCMDEXEC_freertos_demo_stack_usage (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Demo using stack memory by allocating a Variable-Length Array (VLA) on the stack.
 

Function Documentation

◆ freertos_eTaskState_to_str()

const char * freertos_eTaskState_to_str ( eTaskState state)

Converts a FreeRTOS TaskState enum to a string representation.

Parameters
stateInput TaskState enum
Returns
A pointer to a C-string representing the input TaskState enum (statically-allocated).
Here is the caller graph for this function:

◆ TCMDEXEC_freertos_demo_stack_usage()

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

Demo using stack memory by allocating a Variable-Length Array (VLA) on the stack.

Parameters
args_str
  • Arg 0: num_bytes (uint64_t) - The number of elements to allocate in the VLA. <=1_000_000.
Returns
0 on success, >0 on error
Here is the call graph for this function:

◆ TCMDEXEC_freetos_list_tasks_jsonl()

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

Telecommand that return metadata regarding Tasks from FreeRTOS.

Parameters
args_strNo arguments expected
response_output_bufThe buffer to write the response to
response_output_buf_lenThe maximum length of the response_output_buf (its size)
Returns
0 if successful, >0 if an error occurred (but hello_world can't return an error)
Here is the call graph for this function: