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.

27 lines
641 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
  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. };
  19. extern Main gmain;
  20. } // namespace iflytop
  21. extern "C" {
  22. void umain(void) { iflytop::gmain.run(); }
  23. }