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

📄 calibration.h

📁 TDK 6521 SOC 芯片 DEMO程序
💻 H
字号:
/***************************************************************************
 * This code and information is provided "as is" without warranty of any   *
 * kind, either expressed or implied, including but not limited to the     *
 * implied warranties of merchantability and/or fitness for a particular   *
 * purpose.                                                                *
 *                                                                         *
 * Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved.    *
 ***************************************************************************/
//**************************************************************************
//  DESCRIPTION: 71M652x POWER METER - calibration.
// 
//  AUTHORs:  RGV/MTF
//
//  HISTORY: See end of file.
//**************************************************************************
// File: calibration.h
//               
#ifndef CALIBRATION_H
#define CALIBRATION_H 1
#if CAL_SAVE

extern bool cal_flag;                   // TRUE, if in calibration mode.

void cal_begin (void);                  // Begin calibration.
bool cal_restore (void);             	// Restore the calibration; return nonzero if it worked.
void cal_save (void);                	// Save the calibration.
void Calibrate (void);                  // The calibration state machine

#endif

/***************************************************************************
 * History:
 * $Log: calibration.h,v $
 * Revision 1.13  2006/09/09 01:12:55  gmikef
 * *** empty log message ***
 *
 * Revision 1.12  2006/08/09 00:57:33  tvander
 * *** empty log message ***
 *
 * Revision 1.11  2006/06/06 03:58:17  tvander
 * Modified so that the save and restore functions are independent of the
 * autocal functions.
 *
 * Revision 1.10  2006/03/08 00:08:01  tvander
 * Multiplexed interrupts are in io65xx.c
 * Added stubbed interrupt to io65xx.c
 * Clean build
 *
 * Revision 1.9  2006/03/06 03:36:49  Michael T. Fischer
 * More 6530 prep.
 *
 * Revision 1.8  2006/01/10 04:04:25  gmikef
 * Added PDATA support for CE Outputs.
 *
 * Revision 1.7  2006/01/04 04:47:52  gmikef
 * Switched RMS and VA calculations to use floating point. (and Calibration).
 *
 * Revision 1.5  2005/10/08 04:41:23  tvander
 * Fixed priority inversion.
 * Rewrote watchdog to work in brownout, but of course it doesn't work.
 * Watchdog can now be defeated by clearing watchdog option to 0.
 * Reorganized watt hour modules (at last!).
 * Disabled reading of STATUS in 6521_cli because the CE's status is always SAG.
 * Tested with 6521_CLI; measurements seem to work.
 * Fixed other builds.
 *
 * Revision 1.4  2005/09/22 23:45:14  tvander
 * Clean build all models and unit tests, updated copyright to be fore Teridian
 *
 * Revision 1.3  2005/08/30 18:14:44  gmikef
 * *** empty log message ***
 *
 * Revision 1.2  2005/08/10 02:00:48  gmikef
 * *** empty log message ***
 *
 * Revision 1.1  2005/05/13 00:34:46  tvander
 * 6511/32k works
 * Integrated and debugged self-calibration.
 * The build has one unused segment, and no other errors or warnings.
 * default LCD and pulse displays appear OK.
 * EEPROM, software timers and hardware timers are all integrated.
 *
 * Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved.    *
 * this program is fully protected by the United States copyright          *
 * laws and is the property of Teridian Semiconductor Corporation.         *
 ***************************************************************************/
#endif  // calibration.h

⌨️ 快捷键说明

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