Wirepas SDK
test.h File Reference

Go to the source code of this file.

Functions

bool Tests_info (bl_interface_t *interface)
 Tests that prints informations about memory area and flash. More...
 
bool Tests_areas (bl_interface_t *interface)
 Test read/write/erase in memory areas. More...
 
bool Tests_timings (bl_interface_t *interface)
 Test flash read/write/erase timings. More...
 
bool Tests_test_scratchpad (const scratchpad_services_t *scrat_services)
 Tests scratchpad library. More...
 

Macros

#define _TEST_H_
 
#define MAX_TESTED_MEMORY_AREAS   16
 
#define START_TEST(_name_, _desc_)
 
#define END_TEST(_name_, _res_)
 

Function Documentation

◆ Tests_areas()

bool Tests_areas ( bl_interface_t interface)

Test read/write/erase in memory areas.

◆ Tests_info()

bool Tests_info ( bl_interface_t interface)

Tests that prints informations about memory area and flash.

◆ Tests_test_scratchpad()

bool Tests_test_scratchpad ( const scratchpad_services_t scrat_services)

Tests scratchpad library.

◆ Tests_timings()

bool Tests_timings ( bl_interface_t interface)

Test flash read/write/erase timings.

Macro Definition Documentation

◆ _TEST_H_

#define _TEST_H_

Definition at line 10 of file test.h.

◆ END_TEST

#define END_TEST (   _name_,
  _res_ 
)
Value:
Print_printf("TEST [%s]: %s\n", \
#_name_, _res_ ? "OK" : "FAIL");

Definition at line 25 of file test.h.

◆ MAX_TESTED_MEMORY_AREAS

#define MAX_TESTED_MEMORY_AREAS   16

Definition at line 18 of file test.h.

◆ START_TEST

#define START_TEST (   _name_,
  _desc_ 
)
Value:
Print_printf("\nTEST [%s]: %s\n", \
#_name_, #_desc_);

Definition at line 21 of file test.h.

Print_printf
int Print_printf(const char *fmt,...)
printf functionality