STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_main.cpp File Reference
#include <string.h>
#include "../../../src/chips/sx1262.cpp"
#include "../../../src/chips/sx1262_setup.cpp"
#include "unity.h"
Include dependency graph for test_main.cpp:

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 **)

Function Documentation

◆ main()

◆ setUp()

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

◆ tearDown()

void tearDown ( void )

Definition at line 141 of file test_main.cpp.

◆ test_configure_follows_the_datasheet_order()

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

◆ test_configure_names_the_failing_step()

void test_configure_names_the_failing_step ( void )
static

◆ test_duty_cycle_1ms_is_64_steps()

void test_duty_cycle_1ms_is_64_steps ( void )
static

◆ test_duty_cycle_sends_correct_opcode_and_periods()

void test_duty_cycle_sends_correct_opcode_and_periods ( void )
static

◆ test_frequency_word_and_time_on_air()

void test_frequency_word_and_time_on_air ( void )
static

◆ test_rearm_is_noop_in_continuous_mode()

void test_rearm_is_noop_in_continuous_mode ( void )
static

◆ test_rearm_restarts_duty_cycle_after_rxdone()

void test_rearm_restarts_duty_cycle_after_rxdone ( void )
static

◆ test_send_keeps_a_packet_that_just_arrived()

void test_send_keeps_a_packet_that_just_arrived ( void )
static

◆ test_send_refuses_bad_input_and_dead_chip()

void test_send_refuses_bad_input_and_dead_chip ( void )
static

◆ test_send_returns_to_duty_cycle_not_continuous()

void test_send_returns_to_duty_cycle_not_continuous ( void )
static

◆ test_send_times_out()

◆ test_send_waits_for_tx_done_and_returns_to_rx()

void test_send_waits_for_tx_done_and_returns_to_rx ( void )
static

◆ test_start_continuous_after_duty_cycle()

void test_start_continuous_after_duty_cycle ( void )
static