#pragma once #include #include #include #include "sdk\components\iflytop_can_slave_modules\device_base_control_service.hpp" #include "sdk\components\iflytop_can_slave_v1\iflytop_can_slave.hpp" #include "sdk\components\zcanreceiver\zcanreceiver.hpp" namespace iflytop { using namespace std; class Main : public ZCanRceiverListener { private: /* data */ public: virtual void onRceivePacket(CanPacketRxBuffer *rxbuf, uint8_t *packet, size_t len); Main(/* args */){}; ~Main(){}; void run(); }; extern Main gmain; } // namespace iflytop extern "C" { void umain(void) { iflytop::gmain.run(); } }