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.

23 lines
678 B

2 years ago
2 years ago
2 years ago
2 years ago
  1. //
  2. // Created by zwsd
  3. //
  4. #pragma once
  5. #include <functional>
  6. #include "config_index.hpp"
  7. #include "errorcode.hpp"
  8. #include "packet_interface.hpp"
  9. namespace iflytop {
  10. using namespace std;
  11. using namespace zcr;
  12. class IZcanCmderMaster {
  13. public:
  14. virtual int32_t sendCmd(int32_t cmdid, int32_t moduleid, int32_t *param, size_t npara, int32_t *ack, size_t nack, int overtime_ms) = 0;
  15. virtual int32_t sendCmdAndReceiveBuf(int32_t cmdid, int32_t moduleid, int32_t *param, size_t npara, uint8_t *ack, int32_t *rxsize, int overtime_ms) = 0;
  16. virtual void regEventPacketListener(function<void(uint8_t *data, size_t len)> on_event) = 0;
  17. };
  18. } // namespace iflytop