|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Functions | |
| static bool | interval_valid (uint32_t interval) |
| static bool | elapsed (uint32_t now, uint32_t then, uint32_t interval) |
| static self_test_reply_t | checked_reply (self_test_reply_t reply) |
| static bool | config_valid (const self_test_config_t *c) |
| static void | aggregate (self_test_t *t) |
| bool | self_test_reset (self_test_t *t, uint32_t now_ms) |
| bool | self_test_init (self_test_t *t, const self_test_config_t *config, const self_test_port_t *port, void *context, uint32_t now_ms) |
| static void | finish_probe (self_test_t *t, uint8_t index, uint32_t now_ms) |
| static void | probe_one (self_test_t *t, uint32_t now_ms) |
| static void | sample_battery (self_test_t *t, uint32_t now_ms) |
| static void | publish (self_test_t *t, uint32_t now_ms) |
| void | self_test_tick (self_test_t *t, uint32_t now_ms) |
| const self_test_status_t * | self_test_status (const self_test_t *t) |
|
static |
Definition at line 46 of file self_test.c.
References self_test_device_status_t::complete, self_test_device_status_t::reply, self_test_device_status_t::required, self_test_reply_t::result, SELF_TEST_FAIL, SELF_TEST_NOT_CONFIGURED, SELF_TEST_PASS, and SELF_TEST_PENDING.
Referenced by fsw::config::detail::parse_t7_boards(), self_test_reset(), and self_test_tick().
|
static |
Definition at line 14 of file self_test.c.
References reply(), SELF_TEST_DIAG_BAD_REPLY, SELF_TEST_FAIL, SELF_TEST_NOT_IMPLEMENTED, and SELF_TEST_PENDING.
Referenced by probe_one(), publish(), and sample_battery().
|
static |
Definition at line 22 of file self_test.c.
References self_test_config_t::battery_interval_ms, self_test_config_t::battery_max_age_ms, self_test_config_t::callback_budget_ms, self_test_config_t::device_count, self_test_device_t::device_id, self_test_config_t::devices, self_test_config_t::heartbeat_interval_ms, interval_valid(), self_test_config_t::probe_max_attempts, self_test_config_t::probe_timeout_ms, self_test_config_t::publication_max_attempts, self_test_config_t::retry_interval_ms, SELF_TEST_DEFAULT_SESSION_TIMEOUT_MS, SELF_TEST_MAX_DEVICES, self_test_config_t::session_timeout_ms, and self_test_config_t::tick_budget_ms.
|
static |
Definition at line 10 of file self_test.c.
Referenced by fsw::control::ControllerService::controllerLoop(), sequencer::anonymous_namespace{ScriptRunner.cpp}::Interp::eval(), main(), probe_one(), publish(), run_NoConnectionAbort(), run_PTAbort(), sample_battery(), self_test_tick(), and sequencer::AbortBroadcaster::waitAndSendAbortDone().
|
static |
Definition at line 118 of file self_test.c.
References self_test_device_status_t::attempts, self_test_device_status_t::complete, p, self_test_device_status_t::reply, self_test_reply_t::result, SELF_TEST_FAIL, and SELF_TEST_TIMEOUT.
Referenced by probe_one().
|
static |
Definition at line 6 of file self_test.c.
Referenced by config_valid().
|
static |
Definition at line 131 of file self_test.c.
References self_test_device_status_t::attempts, checked_reply(), self_test_device_status_t::complete, self_test_device_status_t::device_id, elapsed(), finish_probe(), p, self_test_device_status_t::reply, self_test_reply_t::result, SELF_TEST_NOT_IMPLEMENTED, SELF_TEST_PENDING, and SELF_TEST_TIMEOUT.
Referenced by self_test_tick().
|
static |
Definition at line 216 of file self_test.c.
References checked_reply(), elapsed(), result, SELF_TEST_FAIL, SELF_TEST_NOT_IMPLEMENTED, SELF_TEST_PENDING, and SELF_TEST_TIMEOUT.
Referenced by main(), and self_test_tick().
|
static |
Definition at line 182 of file self_test.c.
References checked_reply(), elapsed(), SELF_TEST_DIAG_BAD_REPLY, SELF_TEST_DIAG_STALE_BATTERY, SELF_TEST_FAIL, SELF_TEST_NOT_IMPLEMENTED, SELF_TEST_PASS, and SELF_TEST_TIMEOUT.
Referenced by self_test_tick().
| bool self_test_init | ( | self_test_t * | t, |
| const self_test_config_t * | config, | ||
| const self_test_port_t * | port, | ||
| void * | context, | ||
| uint32_t | now_ms ) |
Definition at line 98 of file self_test.c.
References config, config_valid, port, SELF_TEST_DEFAULT_SESSION_TIMEOUT_MS, and self_test_reset().
Referenced by bringup_task(), main(), setup(), test_invalid_inputs(), test_missing_and_optional(), and test_reset_and_copied_dependencies().
| bool self_test_reset | ( | self_test_t * | t, |
| uint32_t | now_ms ) |
Definition at line 74 of file self_test.c.
References aggregate().
Referenced by main(), self_test_init(), test_invalid_inputs(), test_probe_retry_bounds_and_recovery(), test_reset_and_copied_dependencies(), and test_session_deadline().
| const self_test_status_t * self_test_status | ( | const self_test_t * | t | ) |
Definition at line 270 of file self_test.c.
References NULL.
Referenced by bringup_task(), main(), test_battery_validity(), test_deadline_retry_and_unstarted(), test_failure_completes_after_three_attempts(), test_full_inventory_budget(), test_invalid_inputs(), test_malformed_driver_results(), test_missing_and_optional(), test_pass_and_inventory(), test_pending_timeout_and_fairness(), test_probe_retry_bounds_and_recovery(), test_publication_retry_and_recovery(), test_reset_and_copied_dependencies(), test_session_deadline(), test_timeout_retry(), and test_wraparound().
| void self_test_tick | ( | self_test_t * | t, |
| uint32_t | now_ms ) |
Definition at line 244 of file self_test.c.
References aggregate(), self_test_device_status_t::complete, elapsed(), probe_one(), publish(), self_test_device_status_t::reply, sample_battery(), SELF_TEST_DIAG_SESSION_TIMEOUT, and SELF_TEST_TIMEOUT.
Referenced by bringup_task(), main(), test_battery_validity(), test_deadline_retry_and_unstarted(), test_failure_completes_after_three_attempts(), test_full_inventory_budget(), test_heartbeat_boundaries_and_gap(), test_invalid_inputs(), test_malformed_driver_results(), test_missing_and_optional(), test_pass_and_inventory(), test_pending_timeout_and_fairness(), test_probe_retry_bounds_and_recovery(), test_publication_retry_and_recovery(), test_reset_and_copied_dependencies(), test_session_deadline(), test_terminal_results(), test_timeout_retry(), and test_wraparound().