Friedrich-Alexander-Universität UnivisSuche FAU-Logo
Techn. Fakultät Willkommen am Department Informatik FAU-Logo
Logo I4
Lehrstuhl für Informatik 4
SPiC
 
  Vorlesung
    - UnivIS-Infos
    - Inhalt
    - Folien
 
  Übungen
    - Inhalt
    - Folien
    - Aufgaben
    - UnivIS-Infos
    - SPiCboard
    - libspicboard-Doku
    - FAQ
    - FSI-Forum für Fragen
 
  Prüfung
 
  Evaluation
 
  protected area Intern
Department Informatik  >  Informatik 4  >  Lehre  >  SS 2016  >  SPiC  >  Übungen  >  libspicboard-Doku  >  ADC (Analog to Digital Converter)

SPiCboard library (libspicboard, revision 12428) 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 { PHOTO = 0, POTI = 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

device ids of available periphery connected to ADC channels.

Enumerator
PHOTO 

the photosensor (brighter ambience yields higher numbers)

POTI 

the potentiometer (rotation towards LEDs yields higher numbers)

Function Documentation

int16_t sb_adc_read ( ADCDEV  dev)

perform a 10-bit A/D conversion for a specific channel/device.

Parameters
devid of a device connected to the ADC
Return values
>010-bit result of the conversion
-1invalid device id
  Impressum   Datenschutz Stand: 2016-04-26 17:58   MS