• Navigation überspringen
  • Zur Navigation
  • Zum Seitenende
Organisationsmenü öffnen Organisationsmenü schließen
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
  • FAUZur zentralen FAU Website
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Suche öffnen
  • English
  • Campo
  • StudOn
  • FAUdir
  • Stellenangebote
  • Lageplan
  • Hilfe im Notfall
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
Menu Menu schließen
  • Lehrstuhl
    • Team
    • Aktuelles
    • Kontakt und Anfahrt
    • Leitbild
    • 50-jähriges Jubiläum
    Portal Lehrstuhl
  • Forschung
    • Forschungsbereiche
      • Betriebssysteme
      • Confidential Computing
      • Embedded Systems Software
      • Verteilte Systeme
    • Projekte
      • AIMBOS
      • BALu
      • BFT2Chain
      • DOSS
      • Mirador
      • NEON
      • PAVE
      • ResPECT
      • Watwa
    • Projektkampagnen
      • maRE
    • Seminar
      • Systemsoftware
    Portal Forschung
  • Publikationen
  • Lehre
    • Sommersemester 2025
      • Applied Software Architecture
      • Ausgewählte Kapitel der Systemsoftware
      • Betriebssystemtechnik
      • Projekt angewandte Systemsoftwaretechnik
      • System-Level Programming
      • Systemnahe Programmierung in C
      • Systemprogrammierung 1
      • Verteilte Systeme
    • Wintersemester 2025/26
      • Systemprogrammierung 2
      • Betriebssysteme
      • Middleware – Cloud Computing
      • Echtzeitsysteme
      • Virtuelle Maschinen
      • Web-basierte Systeme
      • Projekt angewandte Systemsoftwaretechnik
      • Aktuelle Entwicklung in Verteilten und Objektorientierten Betriebssystemen (für Bachelor-/Masterarbeit)
    Portal Lehre
  • Examensarbeiten
  1. Startseite
  2. Extern

Extern

Bereichsnavigation: Lehre

libspicboard-doc

  • libspicboard
adc.h
Go to the documentation of this file.
1 #ifndef ADC_H
2 #define ADC_H
3 
4 #include <stdint.h>
5 
6 #include "check.h"
7 
8 /**
9  * \addtogroup ADC ADC (Analog to Digital Converter)
10  *
11  * \brief Interface to the AD-converter of the ATmega32, which allows to
12  * query the potentiometer and the photosensor of the board
13  *
14  * @{
15  * \file adc.h
16  * \version \$Rev: 7715 $
17  */
18 
19 /**
20  * \brief Device ids of available periphery connected to ADC channels
21  */
22 typedef enum {
23  POTI = 0, /**< the potentiometer (rotation towards LEDs yields higher numbers) **/
24  PHOTO = 1 /**< the photosensor (brighter ambience yields higher numbers) **/
25 } __attribute__ ((__packed__)) ADCDEV;
26 
27 CHECK_ENUM_SIZE(ADCDEV, 1)
28 
29 /**
30  * \brief Perform a 10-bit A/D conversion for a specific channel/device
31  *
32  * \param dev id of a device connected to the ADC
33  *
34  * \retval >=0 10-bit result of the conversion
35  * \retval -1 invalid device id
36  */
37 int16_t sb_adc_read(ADCDEV dev);
38 
39 /** @}*/
40 
41 #endif
42 
check.h
sb_adc_read
int16_t sb_adc_read(ADCDEV dev)
Perform a 10-bit A/D conversion for a specific channel/device.
ADCDEV
ADCDEV
Device ids of available periphery connected to ADC channels.
Definition: adc.h:22
PHOTO
@ PHOTO
Definition: adc.h:24
POTI
@ POTI
Definition: adc.h:23
CHECK_ENUM_SIZE
#define CHECK_ENUM_SIZE(VAR, LEN)
Definition: check.h:71
Friedrich-Alexander-Universität
Erlangen-Nürnberg

Schlossplatz 4
91054 Erlangen
  • Impressum
  • Datenschutz
  • Barrierefreiheit
  • Facebook
  • RSS Feed
  • Xing
Nach oben