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.

11 years ago
12345678910111213141516
  1. #ifndef ADC_H
  2. #define ADC_H
  3. #include "config.h"
  4. /* Initialize external 12-bit ADC (AD7450) */
  5. void adc_init(void);
  6. /* Trigger conversion and return it.
  7. Result is a signed value (-2048 to +2047) */
  8. int16_t adc_get(void);
  9. /* Trigger conversion and get raw 16-bit value from ADC */
  10. uint16_t adc_get_raw(void);
  11. #endif