pwrmgmt.c File Reference


Detailed Description

Power mangagement.

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 pwrmgmt.c.

#include <iom406.h>
#include <inavr.h>
#include "pwrmgmt.h"
#include "ee.h"
#include "analog.h"
#include "timer.h"

Go to the source code of this file.

Defines

#define MODULE_PWRMGMT

Functions

void ChangePowerMode (unsigned char newmode, unsigned char shutdown_reason)
void DoShutdown (unsigned char reason)
void SetActiveMode (void)
void SetIdleMode (void)
void SetPowerSaveMode (void)


Define Documentation

#define MODULE_PWRMGMT

Definition at line 29 of file pwrmgmt.c.


Function Documentation

void ChangePowerMode ( unsigned char  newmode,
unsigned char  shutdown_reason 
)

Definition at line 45 of file pwrmgmt.c.

Referenced by CalibrateCCoffset(), CC_RegularCurrent_ISR(), main(), and TWICD_ISR().

void DoShutdown ( unsigned char  reason  ) 

Definition at line 94 of file pwrmgmt.c.

Referenced by CalculateADCresults(), ChangePowerMode(), HWP_int(), and ThermalCheck().

void SetActiveMode ( void   ) 

Definition at line 133 of file pwrmgmt.c.

References CC_ACCUMULATE, CCmode(), PowerMode, POWERMODE_ACTIVE, setWakeup(), SLEEP_IDLE, and WUoff.

Referenced by ChangePowerMode().

void SetIdleMode ( void   ) 

Definition at line 122 of file pwrmgmt.c.

References CC_REGULAR, CCmode(), PowerMode, POWERMODE_IDLE, and SLEEP_IDLE.

Referenced by ChangePowerMode().

void SetPowerSaveMode ( void   ) 

Definition at line 112 of file pwrmgmt.c.

References CC_DISABLED, CCmode(), PowerMode, POWERMODE_POWERSAVE, setWakeup(), SLEEP_NONE, SLEEP_POWERSAVE, and WU4sec.

Referenced by ChangePowerMode().


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