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.

17 lines
312 B

2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. namespace iflytop {
  4. using namespace std;
  5. class ZIADC {
  6. public:
  7. virtual ~ZIADC(){};
  8. virtual int32_t get_adc_value() {
  9. int32_t adcval = 0;
  10. get_adc_value(adcval);
  11. return adcval;
  12. }
  13. virtual int32_t get_adc_value(int32_t &adcval) = 0;
  14. };
  15. } // namespace iflytop