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

📄 pulse_src.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: 71M65xx POWER METER - Pulse Source support.
// 
//  AUTHOR:  MTF
//
//  HISTORY: See end of file
//**************************************************************************
// File: PULSE_SRC.H 
//
#ifndef PULSE_SRC_H
#define PULSE_SRC_H

void SelectPulses (void);

int32_t WSum_src   (void); // These routines read the pulse source
int32_t W0_src     (void);    
int32_t W1_src     (void);    
int32_t W2_src     (void);

int32_t VARSum_src (void);
int32_t VAR0_src   (void);
int32_t VAR1_src   (void);
int32_t VAR2_src   (void);

int32_t VASum_src  (void);
int32_t VA0_src    (void);
int32_t VA1_src    (void);
int32_t VA2_src    (void);

int32_t WSum_Isrc  (void);
int32_t W0_Isrc    (void);    
int32_t W1_Isrc    (void);  
int32_t W2_Isrc    (void);

int32_t VARSum_Isrc (void);
int32_t VAR0_Isrc   (void);
int32_t VAR1_Isrc   (void);  
int32_t VAR2_Isrc   (void);

int32_t VASum_Isrc  (void);
int32_t VA0_Isrc    (void);
int32_t VA1_Isrc    (void);  
int32_t VA2_Isrc    (void);

int32_t WSum_Esrc   (void);
int32_t W0_Esrc     (void);    
int32_t W1_Esrc     (void);  
int32_t W2_Esrc     (void);

int32_t VARSum_Esrc (void);
int32_t VAR0_Esrc   (void);    
int32_t VAR1_Esrc   (void);  
int32_t VAR2_Esrc   (void);

int32_t VASum_Esrc  (void);
int32_t VA0_Esrc    (void);
int32_t VA1_Esrc    (void);
int32_t VA2_Esrc    (void);

int32_t Insq_src    (void);
int32_t I0sq_src    (void); 
int32_t I1sq_src    (void);
int32_t I2sq_src    (void);

int32_t V0sq_src    (void);
int32_t V1sq_src    (void);
int32_t V2sq_src    (void);

/***************************************************************************
 * History                                                                 *
 * $Log: pulse_src.h,v $
 * Revision 1.7  2006/09/09 01:14:49  gmikef
 * *** empty log message ***
 *
 * Revision 1.6  2006/05/18 23:18:53  tvander
 * 16K and 32K
 * First cut at new requirements.
 * 32K 6521 is grossly tested.
 * All others have a clean compile with C51 8.02
 *
 * Revision 1.4  2005/10/08 04:41:26  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.3  2005/09/22 23:45:20  tvander
 * Clean build all models and unit tests, updated copyright to be fore Teridian
 *
 * Revision 1.2  2005/08/30 18:20:23  gmikef
 * *** empty log message ***
 *
 * Revision 1.1  2005/08/28 02:35:26  gmikef
 * *** empty log message ***
 *
 * 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

⌨️ 快捷键说明

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