6 changed files with 99 additions and 4 deletions
-
4api/api.hpp
-
1api/errorcode.hpp
-
19api/reg_index.hpp
-
44api/zi_a8000_optical_module.hpp
-
17cmdid.hpp
-
18protocol_parser.cpp
@ -0,0 +1,44 @@ |
|||
#pragma once
|
|||
#include <stdint.h>
|
|||
|
|||
#include <functional>
|
|||
|
|||
#include "errorcode.hpp"
|
|||
|
|||
namespace iflytop { |
|||
using namespace std; |
|||
class ZIA8000OpticalModule { |
|||
public: |
|||
typedef enum { |
|||
kf_optical = 0, |
|||
kt_optical = 1, |
|||
} optical_type_t; |
|||
|
|||
public: |
|||
virtual ~ZIA8000OpticalModule() = 0; |
|||
|
|||
/*******************************************************************************
|
|||
* TEST * |
|||
*******************************************************************************/ |
|||
/**
|
|||
* @概述: |
|||
* 1. 下面方法属于单步测试采样的方法,用于调试。一般手动移动光学模组,然后利用下面方法进行测试 |
|||
* 2. 正式逻辑不使用下面逻辑 |
|||
*/ |
|||
|
|||
virtual int32_t a8000_optical_open_laser(int32_t type) = 0; |
|||
virtual int32_t a8000_optical_close_laser(int32_t type) = 0; |
|||
virtual int32_t a8000_optical_set_laster_gain(int32_t type, int32_t gain) = 0; |
|||
virtual int32_t a8000_optical_set_scan_amp_gain(int32_t type, int32_t gain) = 0; |
|||
virtual int32_t a8000_optical_read_scanner_adc_val(int32_t type, int32_t* adcval) = 0; |
|||
virtual int32_t a8000_optical_read_laster_adc_val(int32_t type, int32_t* adcval) = 0; |
|||
/**
|
|||
* @brief 打开闪光灯读取当前这一点的采样信息 |
|||
* |
|||
* @param type |
|||
* @param adcval |
|||
* @return int32_t |
|||
*/ |
|||
virtual int32_t a8000_optical_scan_current_point_amp_adc_val(int32_t type, int32_t lastergain, int32_t ampgain, int32_t* laster_fb_val, int32_t* adcval) = 0; |
|||
}; |
|||
} // namespace iflytop
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue