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
31 lines
954 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"
|
|
|
|
namespace iflytop {
|
|
using namespace std;
|
|
class Main {
|
|
private:
|
|
/* data */
|
|
public:
|
|
|
|
virtual bool isThisRegOwnToMe(IflytopCanProtocolStackProcesser *processer, icps::Reg_t *reg) { return false; }
|
|
virtual icps::error_t onHostRegisterWriteEvent(IflytopCanProtocolStackProcesser *processer, icps::WriteEvent *event);
|
|
virtual icps::error_t onHostRegisterReadEvent(IflytopCanProtocolStackProcesser *processer, icps::ReadEvent *event);
|
|
virtual void onHostRegisterReportEvent(IflytopCanProtocolStackProcesser *processer, icps::ReportEvent *event);
|
|
|
|
Main(/* args */){};
|
|
~Main(){};
|
|
void run();
|
|
};
|
|
extern Main gmain;
|
|
} // namespace iflytop
|
|
|
|
extern "C" {
|
|
void umain(void) { iflytop::gmain.run(); }
|
|
}
|