SPiCboard library (libspicboard, revision 14925) API documentation
Found a bug or something ambiguous? Mail us to get it fixed!
ADC (Analog to Digital Converter)
Interface to the AD-converter of the ATmega32, which allows to query the potentiometer and the photosensor of the board. More...
Files | |
file | adc.h |
Enumerations | |
enum | ADCDEV { POTI = 0, PHOTO = 1 } |
device ids of available periphery connected to ADC channels. More... | |
Functions | |
int16_t | sb_adc_read (ADCDEV dev) |
perform a 10-bit A/D conversion for a specific channel/device. More... | |
Detailed Description
Interface to the AD-converter of the ATmega32, which allows to query the potentiometer and the photosensor of the board.
Enumeration Type Documentation
enum ADCDEV |
Function Documentation
int16_t sb_adc_read | ( | ADCDEV | dev | ) |
perform a 10-bit A/D conversion for a specific channel/device.
- Parameters
-
dev id of a device connected to the ADC
- Return values
-
>0 10-bit result of the conversion -1 invalid device id