Browse Source

recode

change_pipette_api
zhaohe 1 year ago
parent
commit
46658ddf81
  1. 19
      api/api.hpp
  2. 14
      api/apibasic/basic.hpp
  3. 3
      api/apibasic/cmdid.hpp
  4. 0
      api/apibasic/errorcode.cpp
  5. 0
      api/apibasic/errorcode.hpp
  6. 0
      api/apibasic/module_type_index.hpp
  7. 1
      api/apibasic/packet_interface.hpp
  8. 0
      api/apibasic/protocol_constant.hpp
  9. 2
      api/apibasic/reg_index.hpp
  10. 3
      api/zi_a8000_optical_module.hpp
  11. 15
      api/zi_adc_capture.hpp
  12. 22
      api/zi_board_module.hpp
  13. 18
      api/zi_code_scaner.hpp
  14. 5
      api/zi_event_bus.hpp
  15. 4
      api/zi_module.hpp
  16. 4
      api/zi_motor.hpp
  17. 3
      api/zi_pipette_ctrl_module.hpp
  18. 3
      api/zi_xymotor.hpp
  19. 3
      i_zcanreceiver.hpp
  20. 8
      protocol.hpp
  21. 2
      protocol_event_bus_sender.cpp
  22. 1
      protocol_event_bus_sender.hpp
  23. 2
      reg_index_table.cpp
  24. 0
      reg_index_table.hpp

19
api/api.hpp

@ -1,6 +1,7 @@
#pragma once
#include "apibasic/basic.hpp"
//
#include "errorcode.hpp"
//
#include "zi_module.hpp"
//
@ -8,24 +9,8 @@
//
#include "zi_xymotor.hpp"
//
#include "packet_interface.hpp"
//
#include "i_zcanreceiver.hpp"
//
#include "protocol_constant.hpp"
//
#include "reg_index.hpp"
//
#include "zi_code_scaner.hpp"
//
#include "zi_event_bus.hpp"
//
#include "zi_a8000_optical_module.hpp"
//
#include "zi_board_module.hpp"
//
#include "zi_pipette_ctrl_module.hpp"
#include "reg_index_table.hpp"

14
api/apibasic/basic.hpp

@ -0,0 +1,14 @@
#pragma once
#include "cmdid.hpp"
//
#include "errorcode.hpp"
//
#include "packet_interface.hpp"
//
#include "module_type_index.hpp"
//
#include "protocol_constant.hpp"
//
#include "reg_index.hpp"
//

3
cmdid.hpp → api/apibasic/cmdid.hpp

@ -1,5 +1,6 @@
#pragma once
#include "api/api.hpp"
#define CMDID(cmdid, cmdSubId) ((cmdid << 8) + cmdSubId)
namespace iflytop {
namespace zcr {

0
api/errorcode.cpp → api/apibasic/errorcode.cpp

0
api/errorcode.hpp → api/apibasic/errorcode.hpp

0
api/module_type_index.hpp → api/apibasic/module_type_index.hpp

1
api/packet_interface.hpp → api/apibasic/packet_interface.hpp

@ -24,7 +24,6 @@ typedef enum {
} // namespace zcr
} // namespace iflytop
#define CMDID(cmdid, cmdSubId) ((cmdid << 8) + cmdSubId)
#define CMD_SUB_ID(cmdid) (cmdid & 0xff)
#define MODULE_CMDID(cmdid) (cmdid >> 8)

0
api/protocol_constant.hpp → api/apibasic/protocol_constant.hpp

2
api/reg_index.hpp → api/apibasic/reg_index.hpp

@ -155,7 +155,7 @@ typedef enum {
kreg_laster_scaner_laster_intensity = REG_INDEX(43, 0, 14),
/***********************************************************************************************************************
* NEW_API *
* XYROBOT *
***********************************************************************************************************************/
kreg_xyrobot_default_velocity = REG_INDEX(100, 0, 0),

3
api/zi_a8000_optical_module.hpp

@ -3,7 +3,8 @@
#include <functional>
#include "errorcode.hpp"
#include "apibasic/basic.hpp"
namespace iflytop {
using namespace std;

15
api/zi_adc_capture.hpp

@ -1,15 +0,0 @@
#pragma once
#include <stdint.h>
#include <functional>
#include "errorcode.hpp"
namespace iflytop {
using namespace std;
class ZICodeScaner {
public:
};
} // namespace iflytop

22
api/zi_board_module.hpp

@ -1,22 +0,0 @@
#pragma once
#include <stdint.h>
#include <functional>
#include "errorcode.hpp"
namespace iflytop {
using namespace std;
class ZIBoardModule {
public:
typedef enum {
kf_optical = 0,
kt_optical = 1,
} optical_type_t;
public:
virtual ~ZIBoardModule(){};
virtual int32_t board_reset() = 0;
};
} // namespace iflytop

18
api/zi_code_scaner.hpp

@ -1,18 +0,0 @@
#pragma once
#include <stdint.h>
#include <functional>
#include "errorcode.hpp"
namespace iflytop {
using namespace std;
#if 0
class ZICodeScaner {
public:
virtual int32_t code_scaner_start_scan() { return err::koperation_not_support; }
virtual int32_t code_scaner_stop_scan() { return err::koperation_not_support; }
virtual int32_t code_scaner_read_scaner_result(int32_t startadd, uint8_t *data, int32_t *len) { return err::koperation_not_support; }
};
#endif
} // namespace iflytop

5
api/zi_event_bus.hpp

@ -2,8 +2,11 @@
#include <stdint.h>
#include <functional>
#include "apibasic/basic.hpp"
#include "errorcode.hpp"
namespace iflytop {
using namespace std;

4
api/zi_module.hpp

@ -3,8 +3,8 @@
#include <functional>
#include "errorcode.hpp"
#include "module_type_index.hpp"
#include "apibasic/basic.hpp"
namespace iflytop {
using namespace std;

4
api/zi_motor.hpp

@ -3,7 +3,9 @@
#include <functional>
#include "errorcode.hpp"
#include "apibasic/basic.hpp"
namespace iflytop {
using namespace std;

3
api/zi_pipette_ctrl_module.hpp

@ -2,8 +2,9 @@
#include <stdint.h>
#include <functional>
#include "apibasic/basic.hpp"
#include "errorcode.hpp"
namespace iflytop {
using namespace std;

3
api/zi_xymotor.hpp

@ -2,8 +2,9 @@
#include <stdint.h>
#include <functional>
#include "apibasic/basic.hpp"
#include "errorcode.hpp"
namespace iflytop {
using namespace std;

3
api/i_zcanreceiver.hpp → i_zcanreceiver.hpp

@ -3,8 +3,7 @@
//
#pragma once
#include "errorcode.hpp"
#include "packet_interface.hpp"
#include "api/api.hpp"
namespace iflytop {
using namespace zcr;

8
protocol.hpp

@ -0,0 +1,8 @@
#pragma once
#include "api/api.hpp"
//
#include "i_zcanreceiver.hpp"
//
#include "reg_index_table.hpp"
//
#include "protocol_event_bus_sender.hpp"

2
protocol_event_bus_sender.cpp

@ -1,7 +1,7 @@
#include "protocol_event_bus_sender.hpp"
#include "api/api.hpp"
#include "cmdid.hpp"
#include "i_zcanreceiver.hpp"
namespace iflytop {
using namespace std;

1
protocol_event_bus_sender.hpp

@ -1,5 +1,6 @@
#pragma once
#include "api/api.hpp"
#include "i_zcanreceiver.hpp"
namespace iflytop {
using namespace std;

2
api/reg_index_table.cpp → reg_index_table.cpp

@ -3,7 +3,7 @@
#include <stdlib.h>
#include <string.h>
#include "reg_index.hpp"
#include "api/api.hpp"
using namespace iflytop;
static reg_index_table_iterm_t iterms[] = {};

0
api/reg_index_table.hpp → reg_index_table.hpp

Loading…
Cancel
Save