ARMEBS4
revision-26.06.2015
Main Page
Modules
Data Structures
Files
File List
Globals
include
heivs
pot.h
Go to the documentation of this file.
1
//////////////////////////////////////////////////////////////////////////////////
2
/// \file heivs/pot.h
3
/// \brief ARMEBS4 potentiometer access functions
4
/// \author Pascal Sartoretti / Marc pignat
5
//////////////////////////////////////////////////////////////////////////////////
6
/**
7
* \defgroup Potentiometer
8
* \ingroup onboard
9
* @{
10
***************************************************************************/
11
12
#ifndef HEIVS_POT_H
13
#define HEIVS_POT_H
14
15
#include <stdint.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
21
#define POT_MAX_VALUE 4095
///< Maximum potentiomer value
22
23
void
pot_init
(
void
);
24
uint32_t
pot_value
(
void
);
25
26
#ifdef __cplusplus
27
}
28
#endif
29
30
/**
31
* @}
32
*/
33
#endif
/* HEIVS_POT_H */
pot_init
void pot_init(void)
Initialise ADC to measure potentiometer.
Definition:
pot.c:14
pot_value
uint32_t pot_value(void)
Measure the potentiometer value.
Definition:
pot.c:46
Generated on Fri Jun 26 2015 13:11:50 for ARMEBS4 by
1.8.9.1