|
CTS-SAT-1-OBC-Firmware
|
#include "self_checks/complete_self_check.h"#include "adcs_drivers/adcs_internal_drivers.h"#include "adcs_drivers/adcs_types.h"#include "adcs_drivers/adcs_commands.h"#include "comms_drivers/ax100_hw.h"#include "gnss_receiver/gnss_internal_drivers.h"#include "eps_drivers/eps_commands.h"#include "eps_drivers/eps_channel_control.h"#include "eps_drivers/eps_calculations.h"#include "mpi/mpi_transceiver.h"#include "mpi/mpi_command_handling.h"#include "antenna_deploy_drivers/ant_commands.h"#include "antenna_deploy_drivers/ant_internal_drivers.h"#include "camera/camera_init.h"#include "uart_handler/uart_handler.h"#include "obc_systems/obc_temperature_sensor.h"#include "littlefs/flash_driver.h"#include "log/log.h"#include "debug_tools/debug_uart.h"#include "stm32/stm32_watchdog.h"#include <stdio.h>#include <string.h>#include <stdint.h>
Functions | |
| uint8_t | CTS1_check_is_i2c_addr_alive (I2C_HandleTypeDef *hi2c, uint8_t i2c_addr) |
| uint8_t | CTS1_check_is_adcs_alive () |
| uint8_t | CTS1_check_is_gnss_responsive () |
| uint8_t | CTS1_check_is_eps_responsive () |
| uint8_t | CTS1_check_is_eps_thriving () |
| uint8_t | CTS1_check_mpi_science_rx () |
| Check if the MPI is dumping science data by using the lazy blocking receive method. | |
| uint8_t | CTS1_check_mpi_cmd_works () |
| uint8_t | CTS1_check_is_camera_responsive () |
| uint8_t | CTS1_check_flash_alive (uint8_t flash_chip_number) |
| uint8_t | CTS1_check_antenna_alive (enum ANT_i2c_bus_mcu antenna_number) |
| void | CTS1_run_system_self_check (CTS1_system_self_check_result_struct_t *result) |
| Perform the system self-check and store the results in the provided result struct. | |
| void | CTS1_self_check_struct_TO_json_list (CTS1_system_self_check_result_struct_t self_check_struct, char dest_json_str[], uint16_t dest_json_str_size, uint8_t show_passes) |
| Convert the self-check struct to a JSON string. | |
Variables | |
| static const uint16_t | MPI_boot_duration_ms = 5000 |
| const char * | CTS1_system_self_check_result_struct_field_names [] |
| uint8_t CTS1_check_antenna_alive | ( | enum ANT_i2c_bus_mcu | antenna_number | ) |


| uint8_t CTS1_check_flash_alive | ( | uint8_t | flash_chip_number | ) |


| uint8_t CTS1_check_is_adcs_alive | ( | ) |


| uint8_t CTS1_check_is_camera_responsive | ( | ) |


| uint8_t CTS1_check_is_eps_responsive | ( | ) |


| uint8_t CTS1_check_is_eps_thriving | ( | ) |


| uint8_t CTS1_check_is_gnss_responsive | ( | ) |


| uint8_t CTS1_check_is_i2c_addr_alive | ( | I2C_HandleTypeDef * | hi2c, |
| uint8_t | i2c_addr ) |

| uint8_t CTS1_check_mpi_cmd_works | ( | ) |


| uint8_t CTS1_check_mpi_science_rx | ( | ) |
Check if the MPI is dumping science data by using the lazy blocking receive method.

| void CTS1_run_system_self_check | ( | CTS1_system_self_check_result_struct_t * | result | ) |
Perform the system self-check and store the results in the provided result struct.
| result | Pointer to the struct to store the results of the self-check. |


| void CTS1_self_check_struct_TO_json_list | ( | CTS1_system_self_check_result_struct_t | self_check_struct, |
| char | dest_json_str[], | ||
| uint16_t | dest_json_str_size, | ||
| uint8_t | show_passes ) |
Convert the self-check struct to a JSON string.
| self_check_struct | Self-check struct to convert to JSON. |
| dest_json_str | Destination string to write the JSON to. |
| dest_json_str_size | Size of the destination string (max length to write). |
| show_passes | If 1, include the passed checks in the JSON. |

| const char* CTS1_system_self_check_result_struct_field_names[] |
|
static |