main.h File Reference


Detailed Description

Headerfile for main.c.

Application note:
AVR453: Smart Battery Reference Design
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
Original author: Rob G. Fries - Apt Inc.
Revision
URL
Date

Definition in file main.h.

Go to the source code of this file.

Defines

#define ADCDONEFLAG   2
#define ALARMMODEFLAG   4
#define CALIBREQUESTED   16
#define CheckADCScanDone   (action_flags & ADCDONEFLAG)
#define CheckAlarmMode   (action_flags & ALARMMODEFLAG)
#define CheckCalibRequest   (action_flags & CALIBREQUESTED)
#define CheckMasterSMBdone   (action_flags & MASTERSMBDONE)
#define CheckQtrSec   (action_flags & QTRSECFLAG)
#define ClrADCScanDone   {action_flags &= ~ADCDONEFLAG;}
#define ClrAlarmMode   {action_flags &= ~ALARMMODEFLAG;}
#define ClrCalibRequest   {action_flags &= ~CALIBREQUESTED;}
#define ClrMasterSMBdone   {action_flags &= ~MASTERSMBDONE;}
#define ClrQtrSec   {action_flags &= ~QTRSECFLAG;}
#define MASTERSMBDONE   8
#define OP_MODE_FULL   0
#define OP_MODE_SLEEP   2
#define OP_MODE_STDBY   1
#define QTRSECFLAG   1
#define SetADCScanDone   {action_flags |= ADCDONEFLAG;}
#define SetAlarmMode   {action_flags |= ALARMMODEFLAG;}
#define SetCalibRequest   {action_flags |= CALIBREQUESTED;}
#define SetMasterSMBdone   {action_flags |= MASTERSMBDONE;}
#define SetQtrSec   {action_flags |= QTRSECFLAG;}

Variables

unsigned char action_flags
unsigned char OperatingMode


Define Documentation

#define ADCDONEFLAG   2

Definition at line 39 of file main.h.

#define ALARMMODEFLAG   4

Definition at line 40 of file main.h.

#define CALIBREQUESTED   16

Definition at line 42 of file main.h.

#define CheckADCScanDone   (action_flags & ADCDONEFLAG)

Definition at line 45 of file main.h.

Referenced by main().

#define CheckAlarmMode   (action_flags & ALARMMODEFLAG)

Definition at line 53 of file main.h.

Referenced by main().

#define CheckCalibRequest   (action_flags & CALIBREQUESTED)

Definition at line 61 of file main.h.

Referenced by main().

#define CheckMasterSMBdone   (action_flags & MASTERSMBDONE)

Definition at line 57 of file main.h.

Referenced by main().

#define CheckQtrSec   (action_flags & QTRSECFLAG)

Definition at line 49 of file main.h.

Referenced by main().

#define ClrADCScanDone   {action_flags &= ~ADCDONEFLAG;}

Definition at line 47 of file main.h.

Referenced by main().

#define ClrAlarmMode   {action_flags &= ~ALARMMODEFLAG;}

Definition at line 55 of file main.h.

Referenced by main().

#define ClrCalibRequest   {action_flags &= ~CALIBREQUESTED;}

Definition at line 63 of file main.h.

Referenced by main().

#define ClrMasterSMBdone   {action_flags &= ~MASTERSMBDONE;}

Definition at line 59 of file main.h.

Referenced by main().

#define ClrQtrSec   {action_flags &= ~QTRSECFLAG;}

Definition at line 51 of file main.h.

Referenced by main().

#define MASTERSMBDONE   8

Definition at line 41 of file main.h.

#define OP_MODE_FULL   0

Definition at line 25 of file main.h.

#define OP_MODE_SLEEP   2

Definition at line 27 of file main.h.

#define OP_MODE_STDBY   1

Definition at line 26 of file main.h.

#define QTRSECFLAG   1

Definition at line 38 of file main.h.

#define SetADCScanDone   {action_flags |= ADCDONEFLAG;}

Definition at line 46 of file main.h.

Referenced by ADC_INT().

#define SetAlarmMode   {action_flags |= ALARMMODEFLAG;}

Definition at line 54 of file main.h.

Referenced by SMBW_BattMode().

#define SetCalibRequest   {action_flags |= CALIBREQUESTED;}

Definition at line 62 of file main.h.

Referenced by SMBW_Opt4().

#define SetMasterSMBdone   {action_flags |= MASTERSMBDONE;}

Definition at line 58 of file main.h.

#define SetQtrSec   {action_flags |= QTRSECFLAG;}

Definition at line 50 of file main.h.

Referenced by generictimer1expired().


Variable Documentation

unsigned char action_flags

Referenced by main().

unsigned char OperatingMode


Generated on Mon Nov 12 15:59:58 2007 for AVR453 Smart Battery Reference Design by  doxygen 1.5.3