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.

18 lines
473 B

2 years ago
  1. #pragma once
  2. #include <map>
  3. #include "api/api.hpp"
  4. #include "cmdid.hpp"
  5. namespace iflytop {
  6. class ZIProtocolParser : public IZcanCmderListener {
  7. private:
  8. IZCanCmder* m_cancmder = nullptr;
  9. map<uint16_t, ZIModule*> m_modulers;
  10. public:
  11. void initialize(IZCanCmder* cancmder);
  12. virtual void onRceivePacket(cmd_header_t* rxcmd, uint8_t* data, int32_t len);
  13. void registerModule(uint16_t id, ZIModule* module);
  14. };
  15. } // namespace iflytop