Browse Source

update

master
zhaohe 2 years ago
parent
commit
a054390521
  1. 16
      api/zi_a8000_optical_module.hpp

16
api/zi_a8000_optical_module.hpp

@ -25,13 +25,13 @@ class ZIA8000OpticalModule {
* 1. * 1.
* 2. 使 * 2. 使
*/ */
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;
virtual int32_t a8000_optical_module_power_ctrl(int32_t state) { return err::kmodule_not_support_action; }
virtual int32_t a8000_optical_open_laser(int32_t type) { return err::kmodule_not_support_action; }
virtual int32_t a8000_optical_close_laser(int32_t type) { return err::kmodule_not_support_action; }
virtual int32_t a8000_optical_set_laster_gain(int32_t type, int32_t gain) { return err::kmodule_not_support_action; }
virtual int32_t a8000_optical_set_scan_amp_gain(int32_t type, int32_t gain) { return err::kmodule_not_support_action; }
virtual int32_t a8000_optical_read_scanner_adc_val(int32_t type, int32_t* adcval) { return err::kmodule_not_support_action; }
virtual int32_t a8000_optical_read_laster_adc_val(int32_t type, int32_t* adcval) { return err::kmodule_not_support_action; }
/** /**
* @brief * @brief
* *
@ -39,6 +39,6 @@ class ZIA8000OpticalModule {
* @param adcval * @param adcval
* @return int32_t * @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;
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) { return err::kmodule_not_support_action; }
}; };
} // namespace iflytop } // namespace iflytop
Loading…
Cancel
Save