FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/pwr/pwr_analog_dev.h @ 0:4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:23:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4e78acac3d88 |
---|---|
1 /******************************************************************************* | |
2 * | |
3 * pwr_analog_dev.h | |
4 * | |
5 * Purpose: This file contains definitions that can be used by any SWE | |
6 * for power management services. | |
7 * | |
8 * Author Candice Bazanegue (c-brille@ti.com) | |
9 * | |
10 * (C) Texas Instruments 2001 | |
11 * | |
12 ******************************************************************************/ | |
13 | |
14 #ifndef __PWR_ANALOG_DEV_H__ | |
15 #define __PWR_ANALOG_DEV_H__ | |
16 | |
17 #ifndef _WINDOWS | |
18 #include "chipset.cfg" | |
19 #endif | |
20 | |
21 /* Constants relative to the analog device */ | |
22 | |
23 #if (ANLG_FAM == 1) | |
24 | |
25 #define VOLTAGE_LOOP_OFFSET 400 /* (mV) measured */ | |
26 #define MADC_OFFSET 160 /* (mV) measured */ | |
27 | |
28 #define DAC_THRESHOLD 240 /* (mV) spec */ | |
29 #define DAC_VOLTAGE_STEP 1875 /* (uV) spec */ | |
30 #define DAC_CURRENT_STEP 937 /* (uA) */ | |
31 #define MADC_VOLTAGE_STEP 1710 /* (uV) spec */ | |
32 #define MADC_CURRENT_STEP 855 /* (uA) spec */ | |
33 | |
34 #elif (ANLG_FAM == 2) | |
35 | |
36 #define VOLTAGE_LOOP_OFFSET 200 /* (mV) measured */ | |
37 #define MADC_OFFSET 160 /* (mV) measured */ | |
38 | |
39 #define DAC_THRESHOLD 0 /* (mV) spec */ | |
40 #define DAC_VOLTAGE_STEP 1710 /* (uV) spec */ | |
41 #define DAC_CURRENT_STEP 855 /* (uA) */ | |
42 #define MADC_VOLTAGE_STEP 1710 /* (uV) spec */ | |
43 #define MADC_CURRENT_STEP 855 /* (uA) spec */ | |
44 | |
45 #endif // ANLG_FAM | |
46 | |
47 #endif /* __PWR_ANALOG_DEV_H__ */ |