|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| void | reset (bool chip_present) |
| void | fail_next_receive (RadioStatus result) |
| void | set_send_result (RadioStatus result) |
| bool | inject (const uint8_t *bytes, uint8_t len) |
| uint8_t | last_sent (uint8_t *out, uint8_t out_cap) |
| unsigned | sent_count () |
| void radio_link::fake::fail_next_receive | ( | RadioStatus | result | ) |
Definition at line 41 of file radio_fake.cpp.
References result.
Referenced by test_radio_errors_are_counted_apart_from_bad_frames().
| bool radio_link::fake::inject | ( | const uint8_t * | bytes, |
| uint8_t | len ) |
Definition at line 49 of file radio_fake.cpp.
References radio_link::anonymous_namespace{radio_fake.cpp}::Packet::len.
Referenced by inject_arm(), test_bad_frame_does_not_replace_the_last_good_one(), test_heartbeat_is_counted_but_not_acted_on(), test_inject_refuses_empty_packet(), test_inject_refuses_when_queue_full(), test_noise_between_good_arms_does_not_cancel_them(), test_pure_noise_never_arms(), test_receive_drops_packet_bigger_than_buffer(), test_receive_is_first_in_first_out(), test_receive_keeps_working_after_queue_wraps(), and test_receive_returns_injected_packet_with_its_length().
| uint8_t radio_link::fake::last_sent | ( | uint8_t * | out, |
| uint8_t | out_cap ) |
Definition at line 60 of file radio_fake.cpp.
Referenced by test_reset_forgets_what_was_sent(), test_send_counts_each_packet(), test_send_goes_through_the_seam(), and test_send_is_visible_to_the_test().
| void radio_link::fake::reset | ( | bool | chip_present | ) |
Definition at line 31 of file radio_fake.cpp.
References radio_link::Ok.
Referenced by setUp(), test_probe_ok_when_chip_present(), test_probe_reports_chip_presence(), test_probe_reports_not_found_when_chip_missing(), test_reset_forgets_what_was_sent(), test_send_fails_when_chip_missing(), and test_send_gives_the_failure_the_test_asks_for().
| unsigned radio_link::fake::sent_count | ( | ) |
Definition at line 66 of file radio_fake.cpp.
Referenced by test_reset_forgets_what_was_sent(), test_send_counts_each_packet(), test_send_fails_when_chip_missing(), and test_send_gives_the_failure_the_test_asks_for().
| void radio_link::fake::set_send_result | ( | RadioStatus | result | ) |
Definition at line 45 of file radio_fake.cpp.
References result.
Referenced by test_send_gives_the_failure_the_test_asks_for().