STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_boot_report.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "battery.h"
#include "boot_report.h"
#include "self_test_devices.h"
Include dependency graph for test_boot_report.c:

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

Macro Definition Documentation

◆ CHECK

#define CHECK ( c)
Value:
do { \
if (!(c)) { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #c); \
exit(1); \
} \
} while (0)

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().

Function Documentation

◆ all_pass()

◆ main()

◆ test_all_pass_on_battery_is_ready()

void test_all_pass_on_battery_is_ready ( void )
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().

◆ test_conversion()

void test_conversion ( void )
static

Definition at line 22 of file test_boot_report.c.

References battery_counts_to_mv(), and CHECK.

Referenced by main().

◆ test_gps_reports_its_baud()

void test_gps_reports_its_baud ( void )
static

◆ test_optional_chip_or_low_battery_is_warn()

◆ test_required_chip_or_bad_battery_is_fail()

void test_required_chip_or_bad_battery_is_fail ( void )
static

◆ test_thresholds()

void test_thresholds ( void )
static

◆ test_usb_is_not_judged()

void test_usb_is_not_judged ( void )
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().

Variable Documentation

◆ r

boot_report_t r
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().