# enums.h File Reference

## Detailed Description

Enums in common for Slave and Master.

Contains enumerations of timers and variable specifiers for time.c and USI.c.
These are also used in the Master, and have therefore been put in a separate file for convenience.

Application note:
  AVR458: Charging Li-Ion Batteries with BC100
  AVR463: Charging NiMH Batteries with BC100

Documentation:
  For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html

Author:
  Atmel Corporation: http://www.atmel.com
  Support email: avr@atmel.com

$Name$

Revision
  2335

$RCSfile$

URL
  http://revisor.norway.atmel.com/AppsAVR8/avr458_Charging_Li-Ion_Batteries_with_BC100/trunk/code/IAR/enums.h

Date
  2007-09-07 10:11:19 +0200 (fr, 07 sep 2007)

Definition in file enums.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Enumerations
enum | { ADR_ADCS = 1, ADR_BATTACTIVE, ADR_BATTDATA, ADR_BATTCTRL, ADR_TIMERS }
enum | { TIMER_USI = 0, TIMER_CHG, TIMER_GEN, TIMER_TEMP, TIMERS }

## Enumeration Type Documentation

anonymous enum

Enumerator:

  ADR_ADCS | Indicates that ADCS is read/write target.
  ADR_BATTACTIVE | Indicates that BattActive is read/write target.
  ADR_BATTDATA | Indicates that BattData is read/write target.
  ADR_BATTCTRL | Indicates that BattControl is read/write target.
  ADR_TIMERS | Indicates that timeval is read/write target.

Definition at line 37 of file enums.h.

    00037      {
    00038         ADR_ADCS = 1,
    00039         ADR_BATTACTIVE,
    00040         ADR_BATTDATA,
    00041         ADR_BATTCTRL,
    00042         ADR_TIMERS
    00043 };

anonymous enum

Enumerator:

  TIMER_USI | Timer meant for USI.
  TIMER_CHG | Timer meant for charging.
  TIMER_GEN | Timer meant for general use.
  TIMER_TEMP | Timer meant for timing of temperature rise.
  TIMERS | Number of timers used.

Definition at line 49 of file enums.h.

    00049      {
    00050         TIMER_USI = 0,
    00051         TIMER_CHG,
    00052         TIMER_GEN,
    00053         TIMER_TEMP,
    00054         TIMERS
    00055 };