zoom/firmware/adc.h

17 lines
322 B
C
Raw Permalink Normal View History

2013-06-12 18:40:40 -04:00
#ifndef ADC_H
#define ADC_H
#include "config.h"
/* Initialize external 12-bit ADC (AD7450) */
void adc_init(void);
/* Trigger conversion and return it.
Result is a signed value (-2048 to +2047) */
int16_t adc_get(void);
/* Trigger conversion and get raw 16-bit value from ADC */
uint16_t adc_get_raw(void);
#endif