|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include "self_test_port.h"Go to the source code of this file.
Classes | |
| struct | self_test_device_t |
| struct | self_test_config_t |
| struct | self_test_probe_state_t |
| struct | self_test_t |
Macros | |
| #define | SELF_TEST_DEFAULT_SESSION_TIMEOUT_MS 29000U |
Functions | |
| bool | self_test_init (self_test_t *test, const self_test_config_t *config, const self_test_port_t *port, void *context, uint32_t now_ms) |
| bool | self_test_reset (self_test_t *test, uint32_t now_ms) |
| void | self_test_tick (self_test_t *test, uint32_t now_ms) |
| const self_test_status_t * | self_test_status (const self_test_t *test) |
| #define SELF_TEST_DEFAULT_SESSION_TIMEOUT_MS 29000U |
Definition at line 10 of file self_test.h.
Referenced by config_valid(), and self_test_init().
| bool self_test_init | ( | self_test_t * | test, |
| 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 * | test, |
| 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 * | test | ) |
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 * | test, |
| 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().