|
CTS-SAT-1-OBC-Firmware
|


Go to the source code of this file.
Macros | |
| #define | TCMD_AGENDA_SIZE 750 |
| #define | TCMD_TIMESTAMP_RECORD_SIZE 750 |
| Max number of tssent timestamp values that can be stored at a time (for unique telecommand tssent validation). | |
Enumerations | |
| enum | TCMD_agenda_entry_state_enum_t { TCMD_AGENDA_ENTRY_INVALID = 0 , TCMD_AGENDA_ENTRY_VALID_AND_PENDING = 1 , TCMD_AGENDA_ENTRY_EXECUTING = 2 } |
Functions | |
| uint8_t | TCMD_add_tcmd_to_agenda (const TCMD_parsed_tcmd_to_execute_t *parsed_tcmd) |
| Adds a telecommand to the agenda (schedule/queue) of telecommands to execute. | |
| uint16_t | TCMD_get_agenda_used_slots_count () |
| Gets the number of used slots in the agenda (how many valid and pending telecommands). | |
| int16_t | TCMD_get_next_tcmd_agenda_slot_to_execute () |
| Finds the index into TCMD_agenda (slot_num) of the next telecommand to execute. | |
| uint8_t | TCMD_execute_telecommand_in_agenda (const uint16_t tcmd_agenda_slot_num, char *response_output_buf, uint16_t response_output_buf_size) |
| Executes a telecommand from the agenda immediately. | |
| uint8_t | TCMD_log_pending_agenda_entries () |
| Fetches the active agendas and logs each as a JSONL entry. | |
Variables | |
| TCMD_parsed_tcmd_to_execute_t | TCMD_agenda [TCMD_AGENDA_SIZE] |
| The agenda (schedule queue) of telecommands to execute. | |
| uint8_t | TCMD_agenda_is_valid [TCMD_AGENDA_SIZE] |
| A flag indicating whether a given index in TCMD_agenda is valid (i.e., filled with a not-yet-executed command). | |
| uint16_t | TCMD_agenda_last_used_slot |
| Index into TCMD_agenda and TCMD_agenda_is_valid of the last used slot. | |
| uint32_t | TCMD_total_tcmd_queued_count |
| uint64_t | TCMD_latest_received_tcmd_timestamp_sent |
| #define TCMD_AGENDA_SIZE 750 |
| #define TCMD_TIMESTAMP_RECORD_SIZE 750 |
Max number of tssent timestamp values that can be stored at a time (for unique telecommand tssent validation).
| uint8_t TCMD_add_tcmd_to_agenda | ( | const TCMD_parsed_tcmd_to_execute_t * | parsed_tcmd | ) |
Adds a telecommand to the agenda (schedule/queue) of telecommands to execute.
| parsed_tcmd | The parsed telecommand to add to the agenda. |


| uint8_t TCMD_execute_telecommand_in_agenda | ( | const uint16_t | tcmd_agenda_slot_num, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_size ) |
Executes a telecommand from the agenda immediately.
| tcmd_agenda_slot_num | The index into TCMD_agenda for the telecommand to execute. |
| response_output_buf | A buffer to store the response from the telecommand. |
| response_output_buf_size | The size of the response_output_buf. |


| uint16_t TCMD_get_agenda_used_slots_count | ( | ) |
Gets the number of used slots in the agenda (how many valid and pending telecommands).

| int16_t TCMD_get_next_tcmd_agenda_slot_to_execute | ( | ) |
Finds the index into TCMD_agenda (slot_num) of the next telecommand to execute.


| uint8_t TCMD_log_pending_agenda_entries | ( | ) |
Fetches the active agendas and logs each as a JSONL entry.


|
extern |
The agenda (schedule queue) of telecommands to execute.
|
extern |
A flag indicating whether a given index in TCMD_agenda is valid (i.e., filled with a not-yet-executed command).
|
extern |
Index into TCMD_agenda and TCMD_agenda_is_valid of the last used slot.
The next telecommand to entered into the agenda will fill this slot, or will go into the first free slot after this one.
|
extern |
|
extern |