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.

Hardware.h 580B

1 year ago
1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "DataChannelSimulation.h"
  3. #include "HardwareTaskSimulation.h"
  4. #include <cinttypes>
  5. #include <vector>
  6. class Hardware {
  7. public:
  8. static Hardware * getInstance();
  9. ~Hardware();
  10. void write( uint32_t base, uint32_t offset, uint32_t value );
  11. uint32_t read( uint32_t base, uint32_t offset );
  12. private:
  13. Hardware();
  14. Hardware( const Hardware & ) = delete;
  15. static Hardware * instance;
  16. std::vector< DataChannelSimulation * > dataChannel;
  17. std::vector< HardwareTaskSimulation * > task;
  18. std::vector< task_function > function;
  19. };