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.

30 lines
689 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
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. #include "sdk\components\zcanreceiver\zcanreceiver.hpp"
  8. namespace iflytop {
  9. using namespace std;
  10. class Main : public ZCanRceiverListener {
  11. private:
  12. /* data */
  13. public:
  14. virtual void onRceivePacket(CanPacketRxBuffer *rxbuf, uint8_t *packet, size_t len);
  15. Main(/* args */){};
  16. ~Main(){};
  17. void run();
  18. void reg_debug_fn();
  19. void reg_cancmd_fn();
  20. };
  21. extern Main gmain;
  22. } // namespace iflytop
  23. extern "C" {
  24. void umain(void) { iflytop::gmain.run(); }
  25. }