an_compare.h

Go to the documentation of this file.
00001 /*
00002 **
00003 ****************************************************************************
00004 **
00005 **
00006 **             Copyright (c) 2007 - Atmel Corporation
00007 **             Proprietaty Information
00008 **
00009 ** Project     : ATMEGA88 + ATA6824 High Temperature H-bridge System
00010 ** Module      : an_compare.h
00011 ** Description : Over current detection through analog comparator
00012 **
00013 **
00014 ** Version :     Date:         Author:      Comment:
00015 **    1.0        06.03.2007    F.G.          Creation 
00016 **
00017 ** LICENSE -
00018 **
00019 ** ATMEL - 2007
00020 ** All software programs are provided 'as is' without warranty of any kind:
00021 ** Atmel does not state the suitability of the provided materials for any
00022 ** purpose. Atmel hereby disclaim all warranties and conditions with regard
00023 ** to the provided software, including all implied warranties, fitness for
00024 ** a particular purpose, title and non-infringement.In no event will Atmel
00025 ** be liable for any indirect or consequential damages or any damages
00026 ** whatsoever resulting from the usage of the software program.
00027 ****************************************************************************
00028 **
00029 */
00030 
00031 
00032 #ifndef _AN_COMPARE_H
00033 #define _AN_COMPARE_H
00034 
00035 /*_____ I N C L U D E S ____________________________________________________*/
00036 
00037 /*_____ M A C R O S ________________________________________________________*/
00038 
00039 /*_____ D E F I N I T I O N S ______________________________________________*/
00040 typedef struct
00041 {
00042   unsigned char occured   :1; 
00043   unsigned char status    :1; 
00044   unsigned char not_used  :6;
00045 }over_current_t;
00046 
00047 
00048 /*_____ P R O T O T Y P E S - D E C L A R A T I O N ________________________*/
00049 void AN_compare_init(void);   // initate the analog comparator to detect Over-currents
00050 
00051 
00052 /*_____ G L O B A L S ______________________________________________________*/
00053 extern over_current_t over_current;     // over-current monitoring
00054 
00055 
00056 #endif // _AN_COMPARE_H

Generated on Wed Mar 14 10:53:31 2007 for Mega88_&_ATA6824_High_temperature_H-Bridge_system by  doxygen 1.4.7