⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ata6824_defs.h

📁 基于Atmel ATMega88+ATA682的应用实例 主要功能包括: 1) PWM输出控制 2) H-Bridge,4 POWER FET 驱动 3) 模拟量比较
💻 H
字号:
/*
**
****************************************************************************
**
**
**             Copyright (c) 2007 - Atmel Corporation
**             Proprietaty Information
**
** Project    	: ATMEGA88 + ATA6824 High Temperature H-bridge System
** Module     	: ATA6824_defs.h
** Description	: High temperature DC motor control
**
**
** Version :     Date:         Author:      Comment:
**    1.0        26.01.2007    F.G.          Creation 
**
** LICENSE -
**
** ATMEL - 2007
** All software programs are provided 'as is' without warranty of any kind:
** Atmel does not state the suitability of the provided materials for any
** purpose. Atmel hereby disclaim all warranties and conditions with regard
** to the provided software, including all implied warranties, fitness for
** a particular purpose, title and non-infringement.In no event will Atmel
** be liable for any indirect or consequential damages or any damages
** whatsoever resulting from the usage of the software program.
****************************************************************************
**
*/

#ifndef _ATA6824_DEFS_H
#define _ATA6824_DEFS_H

/*_____ I N C L U D E S ____________________________________________________*/

/*_____ M A C R O S ________________________________________________________*/

/*_____ D E F I N I T I O N S ______________________________________________*/
//! ATA6824_failure_t allow to describe not latched or latched failures
typedef enum
{
  NO_FAILURE,                 //!< Diagnostic show normal operation 
  WARNING,                    //!< Diagnostic shows a warning
  LATCHED_FAILURE             //!< An event had occured and has to be latched
} ATA6824_failure_t;

//! ATA6824_diag_mgt_t Allow to manage diagnotics (latch or not failures)
typedef struct
{
  ATA6824_failure_t dg1;    //!< Diagnostic on DG1 pin
  ATA6824_failure_t dg2;    //!< Diagnostic on DG2 pin
  ATA6824_failure_t dg3;    //!< Diagnostic on DG3 pin
} ATA6824_diag_mgt_t;         

/*_____ P R O T O T Y P E S - D E C L A R A T I O N ________________________*/

void Diag_inputs_ISR_init(void);      // Enable pin change interrupts on diagnostic inputs
void refresh_ATA6824_watchdog(void);  // Refresh ATA6824 watchdog pin
void clear_faults(void);              // Clear DG1 and DG2 software latched faults

/*_____ G L O B A L S ______________________________________________________*/
extern ATA6824_diag_mgt_t  ATA6824_diag_mgt;   // Allows to manage failures


#endif //_ATA6824_DEFS_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -