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.
|
|
//
// Created by zwsd
//
#pragma once
#include <functional>
#include "config_index.hpp"
#include "errorcode.hpp"
#include "packet_interface.hpp"
namespace iflytop { using namespace std; using namespace zcr;
typedef function<void(int32_t fromboard, zcr_cmd_header_t *packet, int32_t datalen)> onpacket_t;
class IZcanCmderMaster { public: 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; 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;
virtual void regEventPacketListener(onpacket_t on_event) = 0; };
} // namespace iflytop
|