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
695 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #include <stddef.h>
  2. #include <stdio.h>
  3. #include "sdk/chip/chip.hpp"
  4. #include "sdk/components/zcancmder/zcan_protocol_parser.hpp"
  5. #include "sdk/components/zcancmder/zcanreceiver.hpp"
  6. #include "sdk/os/zos.hpp"
  7. namespace iflytop {
  8. class GService {
  9. ZCanReceiver zcanreceiver;
  10. ZCanProtocolParser zcan_protocol_parser;
  11. ProtocolEventBusSender evenSender;
  12. public:
  13. void initialize();
  14. static GService* inst();
  15. ZCanReceiver* getZCanReceiver() { return &zcanreceiver; }
  16. ZCanProtocolParser* getZCanProtocolParser() { return &zcan_protocol_parser; }
  17. void registerModule(ZIModule* module) { zcan_protocol_parser.registerModule(module); }
  18. };
  19. } // namespace iflytop