theCore C++ embedded framework
mmio_unit.cpp File Reference

Memory mapped I/O abstractions unit test. More...

#include <CppUTest/TestHarness.h>
#include <CppUTest/CommandLineTestRunner.h>
#include <CppUTestExt/MockSupport.h>
#include "common/mmio.hpp"
Include dependency graph for mmio_unit.cpp:

Data Structures

struct  mock_mut
 

Functions

 TEST_GROUP (gen_mask)
 
 TEST (gen_mask, unshifted)
 
 TEST (gen_mask, shifted)
 
 TEST_GROUP (mutability_traits)
 
 TEST (mutability_traits, ro)
 
 TEST (mutability_traits, wo)
 
 TEST (mutability_traits, rw_mut)
 
 TEST_GROUP (mmio_reg)
 
 TEST (mmio_reg, at_beginning)
 
 TEST (mmio_reg, at_middle)
 
int main (int argc, char *argv[])
 

Detailed Description

Memory mapped I/O abstractions unit test.

Function Documentation

◆ TEST_GROUP() [1/3]

TEST_GROUP ( gen_mask  )

◆ TEST() [1/7]

TEST ( gen_mask  ,
unshifted   
)
Here is the call graph for this function:

◆ TEST() [2/7]

TEST ( gen_mask  ,
shifted   
)
Here is the call graph for this function:

◆ TEST_GROUP() [2/3]

TEST_GROUP ( mutability_traits  )

◆ TEST() [3/7]

TEST ( mutability_traits  ,
ro   
)
Here is the call graph for this function:

◆ TEST() [4/7]

TEST ( mutability_traits  ,
wo   
)
Here is the call graph for this function:

◆ TEST() [5/7]

TEST ( mutability_traits  ,
rw_mut   
)
Here is the call graph for this function:

◆ TEST_GROUP() [3/3]

TEST_GROUP ( mmio_reg  )
Here is the call graph for this function:

◆ TEST() [6/7]

TEST ( mmio_reg  ,
at_beginning   
)

◆ TEST() [7/7]

TEST ( mmio_reg  ,
at_middle   
)

◆ main()

int main ( int  argc,
char *  argv[] 
)