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.

31 lines
954 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdio.h>
  4. #include <functional>
  5. #include "sdk\components\iflytop_can_slave_modules\device_base_control_service.hpp"
  6. #include "sdk\components\iflytop_can_slave_v1\iflytop_can_slave.hpp"
  7. namespace iflytop {
  8. using namespace std;
  9. class Main {
  10. private:
  11. /* data */
  12. public:
  13. virtual bool isThisRegOwnToMe(IflytopCanProtocolStackProcesser *processer, icps::Reg_t *reg) { return false; }
  14. virtual icps::error_t onHostRegisterWriteEvent(IflytopCanProtocolStackProcesser *processer, icps::WriteEvent *event);
  15. virtual icps::error_t onHostRegisterReadEvent(IflytopCanProtocolStackProcesser *processer, icps::ReadEvent *event);
  16. virtual void onHostRegisterReportEvent(IflytopCanProtocolStackProcesser *processer, icps::ReportEvent *event);
  17. Main(/* args */){};
  18. ~Main(){};
  19. void run();
  20. };
  21. extern Main gmain;
  22. } // namespace iflytop
  23. extern "C" {
  24. void umain(void) { iflytop::gmain.run(); }
  25. }