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.

HardwareTaskSimulation.h 420B

12345678910111213141516171819
  1. #pragma once
  2. #include "../../software/signal_processing/system/task_function.h"
  3. #include <cinttypes>
  4. class HardwareTaskSimulation {
  5. public:
  6. HardwareTaskSimulation( task_function function );
  7. uint32_t read( uint32_t offset ) const;
  8. void write( uint32_t offset, uint32_t value );
  9. private:
  10. void start();
  11. uint32_t state;
  12. uint32_t cycleCount;
  13. uint32_t config[4];
  14. task_function function;
  15. };