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 : ATA6824_defs.h 00011 ** Description : High temperature DC motor control 00012 ** 00013 ** 00014 ** Version : Date: Author: Comment: 00015 ** 1.0 26.01.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 #ifndef _ATA6824_DEFS_H 00032 #define _ATA6824_DEFS_H 00033 00034 /*_____ I N C L U D E S ____________________________________________________*/ 00035 00036 /*_____ M A C R O S ________________________________________________________*/ 00037 00038 /*_____ D E F I N I T I O N S ______________________________________________*/ 00040 typedef enum 00041 { 00042 NO_FAILURE, 00043 WARNING, 00044 LATCHED_FAILURE 00045 } ATA6824_failure_t; 00046 00048 typedef struct 00049 { 00050 ATA6824_failure_t dg1; 00051 ATA6824_failure_t dg2; 00052 ATA6824_failure_t dg3; 00053 } ATA6824_diag_mgt_t; 00054 00055 /*_____ P R O T O T Y P E S - D E C L A R A T I O N ________________________*/ 00056 00057 void Diag_inputs_ISR_init(void); // Enable pin change interrupts on diagnostic inputs 00058 void refresh_ATA6824_watchdog(void); // Refresh ATA6824 watchdog pin 00059 void clear_faults(void); // Clear DG1 and DG2 software latched faults 00060 00061 /*_____ G L O B A L S ______________________________________________________*/ 00062 extern ATA6824_diag_mgt_t ATA6824_diag_mgt; // Allows to manage failures 00063 00064 00065 #endif //_ATA6824_DEFS_H
1.4.7