# menu.c File Reference

## Detailed Description

State menu definition.

Contains the definition of the state menu.
The state menu contains all states and adresses to associated functions.

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
  4254

$RCSfile$

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

Date
  2008-07-25 12:32:45 +0200 (fr, 25 jul 2008)

Definition in file menu.c.

`#include <stdlib.h>`
`#include "statefunc.h"`
`#include "charge.h"`
`#include "main.h"`
`#include "menu.h"`

Include dependency graph for menu.c:

Go to the source code of this file.

## Variables
__flash const MENU_STATE_t | menu_state []
| The state menu.

## Variable Documentation

__flash const MENU_STATE_t menu_state[]

Initial value:

     {

      { ST_INIT,            Initialize},
      { ST_BATCON,          BatteryControl},
      { ST_PREQUAL,         Charge},
      { ST_SLEEP,           Sleep},
      { ST_CCURRENT,        Charge},
      { ST_CVOLTAGE,        Charge},
      { ST_MAXVOLTCURR,     Charge},
      { ST_ENDCHARGE,       Charge},
      { ST_DISCHARGE,       Discharge},
      { ST_ERROR,           Error},
      { 0,                  NULL},
    }

The state menu.

Contains all the defined states and addresses to their associated functions.

Definition at line 66 of file menu.c.

Referenced by main().