ADC.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. LUFA Library
  3. Copyright (C) Dean Camera, 2018.
  4. dean [at] fourwalledcubicle [dot] com
  5. www.lufa-lib.org
  6. */
  7. /*
  8. Copyright 2018 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  9. Permission to use, copy, modify, distribute, and sell this
  10. software and its documentation for any purpose is hereby granted
  11. without fee, provided that the above copyright notice appear in
  12. all copies and that both that the copyright notice and this
  13. permission notice and warranty disclaimer appear in supporting
  14. documentation, and that the name of the author not be used in
  15. advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.
  17. The author disclaims all warranties with regard to this
  18. software, including all implied warranties of merchantability
  19. and fitness. In no event shall the author be liable for any
  20. special, indirect or consequential damages or any damages
  21. whatsoever resulting from loss of use, data or profits, whether
  22. in an action of contract, negligence or other tortious action,
  23. arising out of or in connection with the use or performance of
  24. this software.
  25. */
  26. /** \file
  27. * \brief Hardware Analogue-to-Digital converter driver.
  28. *
  29. * This file is the master dispatch header file for the device-specific ADC driver, for microcontrollers
  30. * containing an ADC.
  31. *
  32. * User code should include this file, which will in turn include the correct ADC driver header file for the
  33. * currently selected architecture and microcontroller model.
  34. */
  35. /** \ingroup Group_PeripheralDrivers
  36. * \defgroup Group_ADC ADC Driver - LUFA/Drivers/Peripheral/ADC.h
  37. * \brief Hardware Analogue-to-Digital converter driver.
  38. *
  39. * \section Sec_ADC_Dependencies Module Source Dependencies
  40. * The following files must be built with any user project that uses this module:
  41. * - None
  42. *
  43. * \section Sec_ADC_ModDescription Module Description
  44. * Hardware ADC driver. This module provides an easy to use driver for the hardware ADC
  45. * present on many microcontrollers, for the conversion of analogue signals into the
  46. * digital domain.
  47. *
  48. * \note The exact API for this driver may vary depending on the target used - see
  49. * individual target module documentation for the API specific to your target processor.
  50. */
  51. #ifndef __ADC_H__
  52. #define __ADC_H__
  53. /* Macros: */
  54. #define __INCLUDE_FROM_ADC_H
  55. /* Includes: */
  56. #include "../../Common/Common.h"
  57. /* Includes: */
  58. #if (ARCH == ARCH_AVR8)
  59. #include "AVR8/ADC_AVR8.h"
  60. #else
  61. #error The ADC peripheral driver is not currently available for your selected architecture.
  62. #endif
  63. #endif