Studentenversion des ESY6/A Praktikums "signal_processing".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

device_test.h 719B

123456789101112131415161718192021
  1. #pragma once
  2. #include <inttypes.h>
  3. #include "test_function.h"
  4. #include "../../software/signal_processing/system/float_word.h"
  5. #define TEST_OK " [ OK ]"
  6. #define TEST_FAIL " [ FAIL ]"
  7. #define TEST_DONE "test done\n"
  8. int device_test( test_function test, uint32_t binding, void * task, void * input_a, void * input_b, void * expected, float epsilon );
  9. int assert_float_near( float expected, float value, float abs_err );
  10. int assert_eq( uint32_t expected, uint32_t value );
  11. void print_float_data_for_python( const float_word * data, uint32_t len );
  12. void print_hex_data_for_python( const float_word * data, uint32_t len );
  13. void print_results_for_python( uint32_t cycle_count, const float_word * data, uint32_t len );