|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <string.h>#include "../../../src/chips/sx1262.cpp"#include "../../../src/chips/sx1262_setup.cpp"#include "unity.h"Go to the source code of this file.
Classes | |
| class | anonymous_namespace{test_main.cpp}::TxChip |
| class | anonymous_namespace{test_main.cpp}::Control |
Namespaces | |
| namespace | anonymous_namespace{test_main.cpp} |
Functions | |
| void | setUp (void) |
| void | tearDown (void) |
| static void | test_frequency_word_and_time_on_air (void) |
| static void | test_configure_follows_the_datasheet_order (void) |
| static void | test_configure_names_the_failing_step (void) |
| static void | test_send_waits_for_tx_done_and_returns_to_rx (void) |
| static void | test_send_keeps_a_packet_that_just_arrived (void) |
| static void | test_send_times_out (void) |
| static void | test_send_refuses_bad_input_and_dead_chip (void) |
| static void | test_duty_cycle_sends_correct_opcode_and_periods (void) |
| static void | test_duty_cycle_1ms_is_64_steps (void) |
| static void | test_rearm_restarts_duty_cycle_after_rxdone (void) |
| static void | test_rearm_is_noop_in_continuous_mode (void) |
| static void | test_send_returns_to_duty_cycle_not_continuous (void) |
| static void | test_start_continuous_after_duty_cycle (void) |
| int | main (int, char **) |
| int main | ( | int | , |
| char ** | ) |
Definition at line 391 of file test_main.cpp.
References test_configure_follows_the_datasheet_order(), test_configure_names_the_failing_step(), test_duty_cycle_1ms_is_64_steps(), test_duty_cycle_sends_correct_opcode_and_periods(), test_frequency_word_and_time_on_air(), test_rearm_is_noop_in_continuous_mode(), test_rearm_restarts_duty_cycle_after_rxdone(), test_send_keeps_a_packet_that_just_arrived(), test_send_refuses_bad_input_and_dead_chip(), test_send_returns_to_duty_cycle_not_continuous(), test_send_times_out(), test_send_waits_for_tx_done_and_returns_to_rx(), and test_start_continuous_after_duty_cycle().
| void setUp | ( | void | ) |
Definition at line 136 of file test_main.cpp.
References chip.
Referenced by test_configure_names_the_failing_step(), and test_send_times_out().
| void tearDown | ( | void | ) |
Definition at line 141 of file test_main.cpp.
|
static |
Definition at line 157 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), radio_link::kDefaultLora, and radio_link::Ok.
Referenced by main().
|
static |
Definition at line 195 of file test_main.cpp.
References a, b, chip, radio_link::Sx1262Setup::configure(), radio_link::DeviceErrors, radio_link::kDefaultLora, setUp(), radio_link::Standby, and radio_link::TxClamp.
Referenced by main().
|
static |
Definition at line 310 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), radio_link::kDefaultLora, and radio_link::Sx1262Setup::start_rx_duty_cycle().
Referenced by main().
|
static |
Definition at line 280 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), radio_link::kDefaultLora, and radio_link::Sx1262Setup::start_rx_duty_cycle().
Referenced by main().
|
static |
Definition at line 144 of file test_main.cpp.
References radio_link::kDefaultLora, radio_link::lora_time_on_air_us(), radio_link::LoraConfig::sf, and radio_link::sx1262_frequency_word().
Referenced by main().
|
static |
Definition at line 346 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), radio_link::kDefaultLora, and radio_link::Sx1262Setup::rearm_rx().
Referenced by main().
|
static |
Definition at line 329 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), radio_link::kDefaultLora, radio_link::Sx1262Setup::rearm_rx(), and radio_link::Sx1262Setup::start_rx_duty_cycle().
Referenced by main().
|
static |
Definition at line 240 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), frame(), radio_link::kDefaultLora, radio_link::kIrqRxDone, radio_link::Ok, and radio_link::Sx1262Setup::send().
Referenced by main().
|
static |
Definition at line 268 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), radio_link::ErrNotFound, radio_link::ErrTooLong, frame(), radio_link::kDefaultLora, and radio_link::Sx1262Setup::send().
Referenced by main().
|
static |
Definition at line 357 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), frame(), radio_link::kDefaultLora, radio_link::Ok, radio_link::Sx1262Setup::send(), and radio_link::Sx1262Setup::start_rx_duty_cycle().
Referenced by main().
|
static |
Definition at line 249 of file test_main.cpp.
References b, chip, radio_link::Sx1262Setup::configure(), radio_link::ErrTimeout, frame(), radio_link::kDefaultLora, radio_link::Sx1262Setup::send(), setUp(), and radio_link::Sx1262Setup::tx_timeouts().
Referenced by main().
|
static |
Definition at line 213 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), frame(), radio_link::kDefaultLora, radio_link::Ok, radio_link::Sx1262Setup::send(), and radio_link::Sx1262Setup::tx_ok().
Referenced by main().
|
static |
Definition at line 374 of file test_main.cpp.
References chip, radio_link::Sx1262Setup::configure(), radio_link::kDefaultLora, radio_link::Sx1262Setup::start_rx_continuous(), and radio_link::Sx1262Setup::start_rx_duty_cycle().
Referenced by main().