structs.h

Go to the documentation of this file.
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/
00030 #ifndef STRUCTS_H
00031 #define STRUCTS_H
00032 
00033 
00034 //******************************************************************************
00035 // Battery struct declarations
00036 //******************************************************************************
00042 struct Batteries_struct
00043 {
00044         unsigned char Present   : 1; 
00045         unsigned char Charged   : 1; 
00046         unsigned char Low       : 1; 
00047         unsigned char Exhausted : 1; 
00048         unsigned char HasRID            : 1; 
00049         unsigned char Circuit;       
00050         signed char Temperature;     
00051         unsigned char ADCSteps;      
00052         unsigned int  Capacity;      
00053         unsigned int  MaxCurrent;    
00054         unsigned int  MaxTime;       
00055         unsigned int  MinCurrent;    
00056 };
00057 typedef struct Batteries_struct Batteries_t; 
00058 
00059 
00061 struct Battery_struct
00062 {
00064         unsigned char Enabled           : 1;
00065         
00067         unsigned char DisconnectAllowed : 1;
00068         
00070         unsigned char ChargeInhibit     : 1;
00071 };
00072 typedef struct Battery_struct Battery_t; 
00073 
00074 
00075 //******************************************************************************
00076 // ADC status struct declaration
00077 //******************************************************************************
00082 struct ADC_Status_struct
00083 {
00084         unsigned char MUX : 5;  
00085         unsigned char Flag : 1;  
00086         unsigned char Mains : 1;  
00087         unsigned char Halt : 1;  
00088         unsigned char ADC3_G20_OS : 4;  
00089         unsigned char ADC5_G20_OS : 4;  
00090         unsigned int rawRID;  
00091         unsigned int rawNTC;  
00092         unsigned int rawVBAT;  
00093         unsigned int VIN;  
00094         unsigned int VBAT;  
00095         signed int IBAT;  
00096         signed int discIBAT[4];  
00097         signed int avgIBAT;  
00098 };
00099 typedef struct ADC_Status_struct ADC_Status_t; 
00100 
00101 
00102 #endif // STRUCTS_H

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