|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include "boot_report.h"#include <stdarg.h>#include <stdio.h>#include <string.h>#include "self_test_devices.h"Go to the source code of this file.
Classes | |
| struct | text_t |
Functions | |
| static const char * | device_name (uint16_t id) |
| static const char * | result_name (self_test_result_t r) |
| const char * | boot_verdict_name (boot_verdict_t v) |
| static void | put (text_t *t, const char *fmt,...) |
| void | boot_report_build (boot_report_t *r, const self_test_status_t *s, battery_t battery, uint32_t now_ms) |
| void boot_report_build | ( | boot_report_t * | r, |
| const self_test_status_t * | s, | ||
| battery_t | battery, | ||
| uint32_t | now_ms ) |
Definition at line 81 of file boot_report.c.
References self_test_device_status_t::attempts, battery(), BATTERY_FAIL, BATTERY_INVALID, battery_state_name(), BATTERY_UNKNOWN, BATTERY_WARN, BOOT_FAIL, BOOT_READY, boot_verdict_name(), BOOT_WARN, self_test_status_t::device_count, self_test_device_status_t::device_id, device_name(), self_test_status_t::devices, self_test_reply_t::diagnostic, put(), r, self_test_device_status_t::reply, self_test_device_status_t::required, self_test_reply_t::result, result_name(), SELF_TEST_DEVICE_GNSS, SELF_TEST_MAX_DEVICES, and SELF_TEST_PASS.
Referenced by bringup_task(), test_all_pass_on_battery_is_ready(), test_gps_reports_its_baud(), test_optional_chip_or_low_battery_is_warn(), test_required_chip_or_bad_battery_is_fail(), and test_usb_is_not_judged().
| const char * boot_verdict_name | ( | boot_verdict_t | v | ) |
Definition at line 49 of file boot_report.c.
References BOOT_READY, and BOOT_WARN.
Referenced by boot_report_build().
|
static |
Definition at line 9 of file boot_report.c.
References SELF_TEST_DEVICE_BAROMETER, SELF_TEST_DEVICE_EMMC, SELF_TEST_DEVICE_ETHERNET, SELF_TEST_DEVICE_GNSS, SELF_TEST_DEVICE_HIGH_G, SELF_TEST_DEVICE_IMU, SELF_TEST_DEVICE_NAND, and SELF_TEST_DEVICE_RADIO.
Referenced by boot_report_build().
|
static |
Definition at line 65 of file boot_report.c.
Referenced by boot_report_build(), smart_calibration_gui.SmartCalibrationGUI::data_processor(), and backend.routers.layerx::put_measurements().
|
static |
Definition at line 32 of file boot_report.c.
References r, SELF_TEST_FAIL, SELF_TEST_NOT_CONFIGURED, SELF_TEST_NOT_IMPLEMENTED, SELF_TEST_PASS, and SELF_TEST_TIMEOUT.
Referenced by boot_report_build().