📄 psoft.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 - Software pulsing.
//
// AUTHOR: RGV
//
// HISTORY: See end of file.
//**************************************************************************
// File: psoft.h
//
#if PULSE_SOFT
#ifndef PSOFT_H
#define PSOFT_H 1
#if PULSE_CNT
extern uint16d_t dPulse3_Cnt, dPulse4_Cnt; // counts of pulses
#endif
// generates stable pulse outputs. Call from ce_busy_isr
void psoft_out(void) small reentrant;
// the inputs are watt hours, as generated by the CE, and set the pulse
// generators to blink at the same rate as CE pulse outputs, with the same
// units. This should be called each time a new accumulation interval has data.
void psoft_update (int32_t pulse3_in, int32_t pulse4_in);
// Initialize the software pulse outputs
void psoft_init(void);
#endif // PSOFT_H is not defined
#endif // PULSE_SOFT
/***************************************************************************
* History:
* $Log: psoft.h,v $
* Revision 1.6 2006/10/13 00:51:11 tvander
* Removed compile options for 6530, 6515;
* renamed 6511 and 6513 to trace11 and trace13;
* Binary verified unchanged from previous version.
*
* Revision 1.5 2006/09/09 01:14:42 gmikef
* *** empty log message ***
*
* Revision 1.4 2006/03/03 11:30:48 Michael T. Fischer
* Prep for 6530 LCD, etc.
*
* Revision 1.2 2005/09/22 23:45:19 tvander
* Clean build all models and unit tests, updated copyright to be fore Teridian
*
* Revision 1.1 2005/08/02 22:36:30 tvander
* Optional software pulse logic.
* Fixed build in 6511B and 6521B
*
* 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. *
***************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -