Initial import
[avr_bc100.git] / BaseTinyFirmware / GCC / enums.h
1 /* This file has been prepared for Doxygen automatic documentation generation.*/\r
2 /*! \file *********************************************************************\r
3  *\r
4  * \brief\r
5  *      Enums in common for Slave and Master\r
6  *\r
7  *      Contains enumerations of timers and variable specifiers for\r
8  *      time.c and USI.c.\n\r
9  *      These are also used in the Master, and have therefore been\r
10  *      put in a separate file for convenience.\r
11  *\r
12  * \par Application note:\r
13  *      AVR458: Charging Li-Ion Batteries with BC100\r
14  *\r
15  * \par Documentation:\r
16  *      For comprehensive code documentation, supported compilers, compiler\r
17  *      settings and supported devices see readme.html\r
18  *\r
19  * \author\r
20  *      Atmel Corporation: http://www.atmel.com \n\r
21  *      Support email: avr@atmel.com \n\r
22  *\r
23  * $Name$\r
24  * $Revision: 2261 $\r
25  * $RCSfile$\r
26  * $URL: http://svn.norway.atmel.com/AppsAVR8/avr458_Charging_Li-Ion_Batteries_with_BC100/tag/20070904_release_1.0/code/IAR/enums.h $\r
27  * $Date: 2007-08-10 09:28:35 +0200 (fr, 10 aug 2007) $\n\r
28  ******************************************************************************/\r
29 \r
30 #ifndef ENUMS_H\r
31 #define ENUMS_H\r
32 \r
33 //******************************************************************************\r
34 // Variable specifiers (for Master-Slave communication)\r
35 //******************************************************************************\r
36 enum {\r
37         ADR_ADCS = 1,          //!< Indicates that ADCS is read/write target.\r
38         ADR_BATTACTIVE,        //!< Indicates that BattActive is read/write target.\r
39         ADR_BATTDATA,          //!< Indicates that BattData is read/write target.\r
40         ADR_BATTCTRL,          //!< Indicates that BattControl is read/write target.\r
41         ADR_TIMERS             //!< Indicates that timeval is read/write target.\r
42 };\r
43 \r
44 \r
45 //******************************************************************************\r
46 // Timers\r
47 //******************************************************************************\r
48 enum {\r
49         TIMER_USI = 0,          //!< Timer meant for USI.\r
50         TIMER_CHG,              //!< Timer meant for charging.\r
51         TIMER_GEN,              //!< Timer meant for general use.\r
52         TIMER_TEMP,             //!< Timer meant for timing of temperature rise.\r
53         TIMERS                  //!< Number of timers used.\r
54 };\r
55 \r
56 #endif // ENUMS_H\r