zcancmder_v2
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.

19 lines
473 B

#pragma once
#include <map>
#include "api/api.hpp"
#include "cmdid.hpp"
namespace iflytop {
class ZIProtocolParser : public IZcanCmderListener {
private:
IZCanCmder* m_cancmder = nullptr;
map<uint16_t, ZIModule*> m_modulers;
public:
void initialize(IZCanCmder* cancmder);
virtual void onRceivePacket(cmd_header_t* rxcmd, uint8_t* data, int32_t len);
void registerModule(uint16_t id, ZIModule* module);
};
} // namespace iflytop