theCore C++ embedded framework
uart_bat/case.cpp File Reference
#include <ecl/unity_helpers.hpp>
#include "test_uart.hpp"
#include <atomic>
#include <unity.h>
#include <unity_fixture.h>
Include dependency graph for uart_bat/case.cpp:

Functions

static void test_handler (ecl::bus_channel ch, ecl::bus_event type, size_t total)
 
static void wait_transfer_complete ()
 
 TEST_GROUP (uart_bat)
 
 TEST_SETUP (uart_bat)
 
 TEST_TEAR_DOWN (uart_bat)
 
 TEST (uart_bat, transmit_buf)
 
 TEST (uart_bat, transmit_buf_fill_mode)
 
 TEST (uart_bat, receive_buf)
 
 TEST (uart_bat, listen_mode)
 

Variables

static bool uart_inited
 
static volatile std::atomic_bool transfer_complete
 
static volatile std::atomic_bool tx_complete
 
static volatile std::atomic_bool rx_complete
 
static size_t expected_rx
 
static size_t expected_tx
 

Function Documentation

◆ test_handler()

static void test_handler ( ecl::bus_channel  ch,
ecl::bus_event  type,
size_t  total 
)
static

◆ wait_transfer_complete()

static void wait_transfer_complete ( )
static

◆ TEST_GROUP()

TEST_GROUP ( uart_bat  )

◆ TEST_SETUP()

TEST_SETUP ( uart_bat  )

◆ TEST_TEAR_DOWN()

TEST_TEAR_DOWN ( uart_bat  )

◆ TEST() [1/4]

TEST ( uart_bat  ,
transmit_buf   
)
Here is the call graph for this function:

◆ TEST() [2/4]

TEST ( uart_bat  ,
transmit_buf_fill_mode   
)
Here is the call graph for this function:

◆ TEST() [3/4]

TEST ( uart_bat  ,
receive_buf   
)
Here is the call graph for this function:

◆ TEST() [4/4]

TEST ( uart_bat  ,
listen_mode   
)
Here is the call graph for this function:

Variable Documentation

◆ uart_inited

bool uart_inited
static

◆ transfer_complete

volatile std::atomic_bool transfer_complete
static

◆ tx_complete

volatile std::atomic_bool tx_complete
static

◆ rx_complete

volatile std::atomic_bool rx_complete
static

◆ expected_rx

size_t expected_rx
static

◆ expected_tx

size_t expected_tx
static