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.

DataChannelSimulation.h 487B

1 year ago
12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <cinttypes>
  3. #include <deque>
  4. class DataChannelSimulation {
  5. public:
  6. DataChannelSimulation();
  7. ~DataChannelSimulation();
  8. uint32_t read( uint32_t offset );
  9. void write( uint32_t offset, uint32_t value );
  10. private:
  11. uint32_t read();
  12. void write( uint32_t value );
  13. uint32_t isEmpty() const;
  14. uint32_t isFull() const;
  15. void clear();
  16. std::deque< uint32_t > fifo;
  17. uint32_t config;
  18. static const uint32_t MAX_SIZE = 1024;
  19. };