main.h File Reference


Detailed Description

Headerfile for main.c.

Contains some basic definitions (FALSE, TRUE, ZERO) as well as what battery type (NiMh or Li-Ion) the charger is for.

Application note:
AVR458: Charging Li-Ion 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
2302
$RCSfile$
URL
http://svn.norway.atmel.com/AppsAVR8/avr463_Charging_NiMH_Batteries_with_BC100/tags/20070904_release_code_1.0/code/IAR/main.h
Date
2007-08-23 14:57:36 +0200 (to, 23 aug 2007)

Definition in file main.h.

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

Go to the source code of this file.

Defines

#define FALSE   0
 We have to define this ourselves.
#define NIMH
 Use specs and state menu for NIMH.
#define SWHIGH   1
#define SWLOW   0
#define TRUE   (!FALSE)
 We have to define this ourselves.
#define ZERO   0
 We have to define this ourselves.

Variables

unsigned char CurrentState
 Global that indicates current state.


Define Documentation

#define FALSE   0

We have to define this ourselves.

Definition at line 50 of file main.h.

Referenced by ADC_Init(), ADC_ISR(), ADC_Wait(), BatteryCheck(), BatteryDataRefresh(), BatteryStatusRefresh(), ConstantCurrent(), ConstantVoltage(), Doze(), Error(), HaltNow(), JumperCheck(), NTCLookUp(), PWM_DecrementDutyCycle(), PWM_IncrementDutyCycle(), RIDLookUp(), SPI_Init(), SPI_Put(), SPI_Wait(), Time_Left(), and USI_OVF_ISR().

#define NIMH

Use specs and state menu for NIMH.

Definition at line 43 of file main.h.

#define SWHIGH   1

Definition at line 36 of file main.h.

#define SWLOW   0

Definition at line 37 of file main.h.

#define TRUE   (!FALSE)

We have to define this ourselves.

Definition at line 51 of file main.h.

Referenced by ADC_ISR(), BatteryCheck(), BatteryDataRefresh(), BatteryStatusRefresh(), Charge(), ConstantCurrent(), ConstantVoltage(), Doze(), HaltNow(), JumperCheck(), main(), NTCLookUp(), PWM_DecrementDutyCycle(), PWM_IncrementDutyCycle(), RIDLookUp(), Sleep(), SPI_Put(), Time_Left(), and USI_OVF_ISR().

#define ZERO   0

We have to define this ourselves.

Definition at line 52 of file main.h.

Referenced by main().


Variable Documentation

unsigned char CurrentState

Global that indicates current state.

Updated by main().

Note:
See menu.h for definition of states.

Definition at line 78 of file main.c.

Referenced by Charge(), main(), and SetErrorFlag().


Generated on Tue Sep 4 19:17:58 2007 for AVR463 Charging NiMH Batteries with ATAVRBC100 by  doxygen 1.5.2