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.5 KiB

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_open_laser(int32_t type) = 0;
  24. virtual int32_t a8000_optical_close_laser(int32_t type) = 0;
  25. virtual int32_t a8000_optical_set_laster_gain(int32_t type, int32_t gain) = 0;
  26. virtual int32_t a8000_optical_set_scan_amp_gain(int32_t type, int32_t gain) = 0;
  27. virtual int32_t a8000_optical_read_scanner_adc_val(int32_t type, int32_t* adcval) = 0;
  28. virtual int32_t a8000_optical_read_laster_adc_val(int32_t type, int32_t* adcval) = 0;
  29. /**
  30. * @brief ƶȡǰһIJϢ
  31. *
  32. * @param type
  33. * @param adcval
  34. * @return int32_t
  35. */
  36. 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;
  37. };
  38. } // namespace iflytop