brazos-trapezoidal
SRMCAtod_macros.h
Go to the documentation of this file.
1
9#ifndef SRMCATOD_MACROS_H_
10#define SRMCATOD_MACROS_H_
11
12//=====================================================================================================================
13//-------------------------------------- PUBLIC (Extern Variables, Constants & Defines) -------------------------------
14//=====================================================================================================================
19#define SRMCATOD_AN_000_REG()
20#define SRMCATOD_AN_001_REG()
21#define SRMCATOD_AN_002_REG()
22#define SRMCATOD_AN_003_REG()
23#define SRMCATOD_AN_100_REG()
24#define SRMCATOD_AN_101_REG()
25#define SRMCATOD_AN_102_REG()
26#define SRMCATOD_AN_103_REG()
27
28#define SR_MCATOD_MINIMUM_12BITS_AD_VALUE 0x0000
29#define SR_MCATOD_MAXIMUM_12BITS_AD_VALUE 0x0FFF
30#define SR_MCATOD_HALF_RANGE_12BITS_AD_VALUE 0x0800
31
32#define VREF_AD 2.5*(4096/5.0)
33#define AD_5V_VALUE 3500
34
35//=====================================================================================================================
36//-------------------------------------- PUBLIC (Function Prototypes) -------------------------------------------------
37//=====================================================================================================================
38
39#endif // MCATOD_MACROS_H_