?? an_compare.h
字號:
/*
**
****************************************************************************
**
**
** Copyright (c) 2007 - Atmel Corporation
** Proprietaty Information
**
** Project : ATMEGA88 + ATA6824 High Temperature H-bridge System
** Module : an_compare.h
** Description : Over current detection through analog comparator
**
**
** Version : Date: Author: Comment:
** 1.0 06.03.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 _AN_COMPARE_H
#define _AN_COMPARE_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 ______________________________________________*/
typedef struct
{
unsigned char occured :1; //!< signals an overcurrent has occured
unsigned char status :1; //!< gives the actual current value status (current over limit or not)
unsigned char not_used :6;
}over_current_t;
/*_____ P R O T O T Y P E S - D E C L A R A T I O N ________________________*/
void AN_compare_init(void); // initate the analog comparator to detect Over-currents
/*_____ G L O B A L S ______________________________________________________*/
extern over_current_t over_current; // over-current monitoring
#endif // _AN_COMPARE_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -