zcancmder_v2
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.

44 lines
1.8 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <functional>
  4. #include "errorcode.hpp"
  5. namespace iflytop {
  6. using namespace std;
  7. class ZIA8000OpticalModule {
  8. public:
  9. typedef enum {
  10. kf_optical = 0,
  11. kt_optical = 1,
  12. } optical_type_t;
  13. public:
  14. virtual ~ZIA8000OpticalModule(){};
  15. /*******************************************************************************
  16. * TEST *
  17. *******************************************************************************/
  18. /**
  19. * @:
  20. * 1. ڵԲķڵԡһֶƶѧģȻв
  21. * 2. ʽ߼ʹ߼
  22. */
  23. virtual int32_t a8000_optical_module_power_ctrl(int32_t state) { return err::kmodule_not_support_action; }
  24. virtual int32_t a8000_optical_open_laser(int32_t type) { return err::kmodule_not_support_action; }
  25. virtual int32_t a8000_optical_close_laser(int32_t type) { return err::kmodule_not_support_action; }
  26. virtual int32_t a8000_optical_set_laster_gain(int32_t type, int32_t gain) { return err::kmodule_not_support_action; }
  27. virtual int32_t a8000_optical_set_scan_amp_gain(int32_t type, int32_t gain) { return err::kmodule_not_support_action; }
  28. virtual int32_t a8000_optical_read_scanner_adc_val(int32_t type, int32_t* adcval) { return err::kmodule_not_support_action; }
  29. virtual int32_t a8000_optical_read_laster_adc_val(int32_t type, int32_t* adcval) { return err::kmodule_not_support_action; }
  30. /**
  31. * @brief ƶȡǰһIJϢ
  32. *
  33. * @param type
  34. * @param adcval
  35. * @return int32_t
  36. */
  37. 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; }
  38. };
  39. } // namespace iflytop