FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/pwr/pwr_analog_dev.h @ 145:246f4a7dd92b
src/cs/drivers/drv_app/pwr: import from MV100 source
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 09 Oct 2016 05:59:14 +0000 |
parents | |
children | fb95e3f83dc5 |
comparison
equal
deleted
inserted
replaced
144:fd8227e3047d | 145:246f4a7dd92b |
---|---|
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 (ANALOG == 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 (ANALOG == 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 // ANALOG | |
46 | |
47 #endif /* __PWR_ANALOG_DEV_H__ */ |