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
27 lines
641 B
#pragma once
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
#include <functional>
|
|
|
|
#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(); }
|
|
}
|