|
|
@ -5,7 +5,6 @@ |
|
|
|
|
|
|
|
#include "apibasic/basic.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace iflytop { |
|
|
|
using namespace std; |
|
|
|
class ZIA8000OpticalModule { |
|
|
@ -18,6 +17,8 @@ class ZIA8000OpticalModule { |
|
|
|
|
|
|
|
public: |
|
|
|
virtual ~ZIA8000OpticalModule(){}; |
|
|
|
virtual int32_t a8000_optical_start_capture() = 0; |
|
|
|
virtual int32_t a8000_optical_read_raw(int32_t index, uint8_t* data, int32_t* len) = 0; |
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
* TEST * |
|
|
@ -27,13 +28,13 @@ class ZIA8000OpticalModule { |
|
|
|
* 1. 下面方法属于单步测试采样的方法,用于调试。一般手动移动光学模组,然后利用下面方法进行测试 |
|
|
|
* 2. 正式逻辑不使用下面逻辑 |
|
|
|
*/ |
|
|
|
virtual int32_t a8000_optical_module_power_ctrl(int32_t state) { return err::kcmd_not_support; } |
|
|
|
virtual int32_t a8000_optical_open_laser(int32_t type) { return err::kcmd_not_support; } |
|
|
|
virtual int32_t a8000_optical_close_laser(int32_t type) { return err::kcmd_not_support; } |
|
|
|
virtual int32_t a8000_optical_set_laster_gain(int32_t type, int32_t gain) { return err::kcmd_not_support; } |
|
|
|
virtual int32_t a8000_optical_set_scan_amp_gain(int32_t type, int32_t gain) { return err::kcmd_not_support; } |
|
|
|
virtual int32_t a8000_optical_read_scanner_adc_val(int32_t type, int32_t* adcval) { return err::kcmd_not_support; } |
|
|
|
virtual int32_t a8000_optical_read_laster_adc_val(int32_t type, int32_t* adcval) { return err::kcmd_not_support; } |
|
|
|
virtual int32_t a8000_optical_module_power_ctrl(int32_t state) = 0; |
|
|
|
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 打开闪光灯读取当前这一点的采样信息 |
|
|
|
* |
|
|
|