|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "battery.h"#include "boot_report.h"#include "self_test_devices.h"Go to the source code of this file.
Macros | |
| #define | CHECK(c) |
Functions | |
| static void | test_conversion (void) |
| static void | test_thresholds (void) |
| static self_test_status_t | all_pass (void) |
| static void | test_all_pass_on_battery_is_ready (void) |
| static void | test_optional_chip_or_low_battery_is_warn (void) |
| static void | test_required_chip_or_bad_battery_is_fail (void) |
| static void | test_gps_reports_its_baud (void) |
| static void | test_usb_is_not_judged (void) |
| int | main (void) |
Variables | |
| static boot_report_t | r |
| #define CHECK | ( | c | ) |
Definition at line 10 of file test_boot_report.c.
Referenced by test_all_pass_on_battery_is_ready(), test_conversion(), test_gps_reports_its_baud(), test_optional_chip_or_low_battery_is_warn(), test_required_chip_or_bad_battery_is_fail(), test_thresholds(), and test_usb_is_not_judged().
|
static |
Definition at line 50 of file test_boot_report.c.
References self_test_device_status_t::attempts, self_test_device_status_t::complete, self_test_status_t::device_count, self_test_device_status_t::device_id, self_test_status_t::devices, self_test_device_status_t::reply, self_test_device_status_t::required, self_test_reply_t::result, 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, SELF_TEST_DEVICE_RADIO, and SELF_TEST_PASS.
Referenced by 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().
| int main | ( | void | ) |
Definition at line 137 of file test_boot_report.c.
References test_all_pass_on_battery_is_ready(), test_conversion(), test_gps_reports_its_baud(), test_optional_chip_or_low_battery_is_warn(), test_required_chip_or_bad_battery_is_fail(), test_thresholds(), and test_usb_is_not_judged().
|
static |
Definition at line 75 of file test_boot_report.c.
References all_pass(), battery_assess(), BOOT_READY, boot_report_build(), CHECK, and r.
Referenced by main().
|
static |
Definition at line 22 of file test_boot_report.c.
References battery_counts_to_mv(), and CHECK.
Referenced by main().
|
static |
Definition at line 122 of file test_boot_report.c.
References all_pass(), battery_assess(), boot_report_build(), CHECK, self_test_status_t::devices, self_test_reply_t::diagnostic, r, and self_test_device_status_t::reply.
Referenced by main().
|
static |
Definition at line 87 of file test_boot_report.c.
References all_pass(), self_test_device_status_t::attempts, battery_assess(), boot_report_build(), BOOT_WARN, CHECK, self_test_status_t::devices, r, self_test_device_status_t::reply, self_test_reply_t::result, SELF_TEST_DEVICE_GNSS, and SELF_TEST_TIMEOUT.
Referenced by main().
|
static |
Definition at line 103 of file test_boot_report.c.
References all_pass(), battery_assess(), BOOT_FAIL, boot_report_build(), CHECK, self_test_status_t::devices, self_test_reply_t::diagnostic, NULL, r, self_test_device_status_t::reply, self_test_reply_t::result, and SELF_TEST_FAIL.
Referenced by main().
|
static |
Definition at line 32 of file test_boot_report.c.
References battery_assess(), BATTERY_FAIL, BATTERY_INVALID, BATTERY_OK, BATTERY_USB, BATTERY_WARN, CHECK, battery_t::mv, battery_t::state, and state.
Referenced by main().
|
static |
Definition at line 130 of file test_boot_report.c.
References all_pass(), battery_assess(), BOOT_READY, boot_report_build(), CHECK, and r.
Referenced by main().
|
static |
Definition at line 73 of file test_boot_report.c.
Referenced by sequencer::SequencerService::applyConfig(), sequencer::ActuatorCommander::applyForState(), bias_result_str(), board_bringup_probe(), board_exti_last_us(), board_exti_route(), board_spi_clock_hz(), board_spi_deselect(), board_spi_frame(), board_spi_idle_clocks(), board_spi_lock(), board_spi_mode(), board_spi_select(), board_spi_shift(), board_spi_unlock(), boot_report_build(), anonymous_namespace{config_broadcast_service_main.cpp}::buildPackets(), fsw::calibration::CaptureWindow::capture(), check_sample_values(), check_timestamps(), anonymous_namespace{test_capture_window.cpp}::clear_on_reconnect(), decode(), fsw::calibration::IMUCalibration::detectDrift(), StarOTA::Server::fail(), anonymous_namespace{t7_bridge_main.cpp}::fake_signal(), anonymous_namespace{test_capture_window.cpp}::fast_sensor_bounds_unchanged(), fsw::config::find_pt_role(), fsw::config::anonymous_namespace{Config.cpp}::from_table(), detail::dtoa_impl::grisu2_digit_gen(), HAL_GPIO_EXTI_Callback(), StarOTA::Server::handleClient(), idle_task(), fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::json_mat(), detail::json_sax_dom_callback_parser< BasicJsonType >::json_sax_dom_callback_parser(), detail::json_sax_dom_parser< BasicJsonType >::json_sax_dom_parser(), sequencer::ActuatorCommander::load(), anonymous_namespace{test_capture_window.cpp}::low_rate_step_after_settle(), main(), main(), fsw::config::anonymous_namespace{SensorTables.cpp}::makeRef(), fsw::config::anonymous_namespace{SensorTables.cpp}::makeT7Ref(), sequencer::SequencerService::notifyControllerFireOnce(), on_pvt(), fsw::config::detail::parse_t7_boards(), fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseTerm(), fsw::streams::SensorFramePipeline::poll(), fsw::config::pt_role_tables(), sequencer::PressureFeed::read(), daq_comms::transport::TCPClient::read_exact(), read_highg(), read_image(), read_imu(), read_one(), SensorSelfTest::read_sensor_bias(), fsw::t7::FakeT7Unit::reg(), reply(), fsw::net::resolveDaqBindAddress(), result_name(), StarOTA::resultName(), rig(), rig_init(), anonymous_namespace{idle_e2e.cpp}::run(), run(), run(), run(), sequencer::PressureFeed::runLoop(), fsw::t7::FakeT7Unit::save(), fsw::calibration::RobustCalibrationManager::save_adjustments(), fsw::t7::FakeT7Unit::set_reg(), sequencer::ActuatorCommander::setScriptPosition(), anonymous_namespace{test_capture_window.cpp}::settle_detection(), shift(), sink(), anonymous_namespace{test_capture_window.cpp}::slow_load_cell_captures(), st_reply(), anonymous_namespace{test_capture_window.cpp}::stale_sensor_rejected(), step_baro(), fsw::config::detail::anonymous_namespace{T7Config.cpp}::stream_limit_issues(), test_all_pass_on_battery_is_ready(), test_arm_requested_without_heartbeat(), test_backpressure(), test_clock_and_sequence_wraparound(), test_clock_wrap_is_harmless(), test_cold_start_at_9600_reaches_10hz(), test_command_drain_is_bounded(), test_dead_baro_bus_is_reported(), test_disarm_stays_idle(), test_early_lsi_wake_within_tolerance(), test_failing_imu_is_dropped_and_recovered(), test_first_wake_sends_heartbeat(), test_gps_reports_its_baud(), test_highg_without_edges_is_read_on_timeout(), test_invalid_battery_still_sends(), test_long_gap_sends_one_heartbeat(), test_nak_restarts_and_recovers(), test_nominal_rates_values_and_timestamps(), test_optional_chip_or_low_battery_is_warn(), test_pps_is_stamped(), test_radio_wake_does_not_delay_heartbeat(), test_required_chip_or_bad_battery_is_fail(), test_send_failure_counted_and_sleep_continues(), test_session_roundtrip(), test_silence_then_power_cycle_reconfigures(), test_sixty_seconds_gives_six_heartbeats(), test_stop_powers_down_and_init_restarts(), test_usb_is_not_judged(), test_wait_never_overshoots_a_deadline(), test_wake_before_enter_is_error(), test_warm_module_at_115200_needs_no_baud_change(), test_wrong_chip_never_produces_and_keeps_retrying(), fsw::calibration::type_k_c_from_mv(), wait_busy_low(), and anonymous_namespace{test_capture_window.cpp}::window_bound_high_rate().