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.

45 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
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. ktest_optical = 2,
  13. } optical_type_t;
  14. public:
  15. virtual ~ZIA8000OpticalModule(){};
  16. /*******************************************************************************
  17. * TEST *
  18. *******************************************************************************/
  19. /**
  20. * @:
  21. * 1. ڵԲķڵԡһֶƶѧģȻв
  22. * 2. ʽ߼ʹ߼
  23. */
  24. virtual int32_t a8000_optical_module_power_ctrl(int32_t state) { return err::kmodule_not_support_action; }
  25. virtual int32_t a8000_optical_open_laser(int32_t type) { return err::kmodule_not_support_action; }
  26. virtual int32_t a8000_optical_close_laser(int32_t type) { return err::kmodule_not_support_action; }
  27. virtual int32_t a8000_optical_set_laster_gain(int32_t type, int32_t gain) { return err::kmodule_not_support_action; }
  28. virtual int32_t a8000_optical_set_scan_amp_gain(int32_t type, int32_t gain) { return err::kmodule_not_support_action; }
  29. virtual int32_t a8000_optical_read_scanner_adc_val(int32_t type, int32_t* adcval) { return err::kmodule_not_support_action; }
  30. virtual int32_t a8000_optical_read_laster_adc_val(int32_t type, int32_t* adcval) { return err::kmodule_not_support_action; }
  31. /**
  32. * @brief ƶȡǰһIJϢ
  33. *
  34. * @param type
  35. * @param adcval
  36. * @return int32_t
  37. */
  38. 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; }
  39. };
  40. } // namespace iflytop