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 "fake_air.h"
#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}::IdleChip
class  anonymous_namespace{test_main.cpp}::IdleControl

Namespaces

namespace  anonymous_namespace{test_main.cpp}

Functions

void setUp (void)
void tearDown (void)
static void test_idle_arm_wake_long_preamble_always_heard (void)
static void test_short_preamble_missed_in_sleep_window (void)
static void test_average_idle_current_under_0_3_ma (void)
static void test_radio_rearmed_after_every_rxdone (void)
static void test_no_rearm_means_no_duty_cycle_command (void)
int main (void)

Variables

IdleChip anonymous_namespace{test_main.cpp}::chip
IdleControl anonymous_namespace{test_main.cpp}::control

Function Documentation

◆ main()

◆ setUp()

void setUp ( void )

◆ tearDown()

void tearDown ( void )

Definition at line 111 of file test_main.cpp.

◆ test_average_idle_current_under_0_3_ma()

void test_average_idle_current_under_0_3_ma ( void )
static

Definition at line 138 of file test_main.cpp.

References fake_air_average_current_ma().

Referenced by main().

◆ test_idle_arm_wake_long_preamble_always_heard()

void test_idle_arm_wake_long_preamble_always_heard ( void )
static

Definition at line 116 of file test_main.cpp.

References fake_air_packet_heard().

Referenced by main().

◆ test_no_rearm_means_no_duty_cycle_command()

void test_no_rearm_means_no_duty_cycle_command ( void )
static

◆ test_radio_rearmed_after_every_rxdone()

◆ test_short_preamble_missed_in_sleep_window()

void test_short_preamble_missed_in_sleep_window ( void )
static

Definition at line 129 of file test_main.cpp.

References fake_air_packet_heard().

Referenced by main().