?? ce.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, Corporation.
***************************************************************************/
//**************************************************************************
// DESCRIPTION: 71M652x POWER METER - COMPUTE ENGINE Interface include.
//
// AUTHOR: MTF
//
// HISTORY: See end of file.
//**************************************************************************
// File: CE.H
//
#ifndef CE_H
#define CE_H
/*** Variables declared within this module *** settible via "defaults" */
extern bool xfer_update; // Enables update only if changed.
extern uint8_t ce_first_pass;
extern const uint8r_t pre_samps[];
extern uint16x_t samples;
extern bool meter_alt; // Get temperature on each XFER not BUSY interrupt.
extern struct Constants_t xdata Constants;
/*** Functions declared within this module. ***/
void ce_xfer_busyz_isr (void) small reentrant;
void ce_init (void); // Copy data to CE RAM, etc.
void ce_wait_for_busy (void); // wait till CE busy completes
void memcpy_cer (int32x_t *pDst, int32r_t *pSrc, uint8_t len);
void memcpy_cei (int32x_t *pDst, int32i_t *pSrc, uint8_t len);
void memcpy_ice (int32i_t *pDst, int32x_t *pSrc, uint8_t len);
void memcpy_cep (int32x_t *pDst, int32p_t *pSrc, uint8_t len);
void memcpy_pce (int32p_t *pDst, int32x_t *pSrc, uint8_t len);
void memcpy_cex (int32x_t *pDst, int32x_t *pSrc, uint8_t len) small reentrant;
void memcpy_xce (int32x_t *pDst, int32x_t *pSrc, uint8_t len) small reentrant;
void memset_ce (int32x_t *pDst, int32_t src) small reentrant;
int32_t memget_ce (int32x_t *pSrc) small reentrant;
void get_ce_constants (void);
void set_ce_constants (void);
// longitudinal redundancy check
bool lrc_ce (int32x_t *src, uint16_t len, bool set);
/***************************************************************************
* History:
* $Log: ce.h,v $
* Revision 1.6 2006/06/06 03:59:00 tvander
* Updated battery test logic so it can use hardware timers as well as software timers.
*
* Revision 1.5 2006/03/08 00:08:01 tvander
* Multiplexed interrupts are in io65xx.c
* Added stubbed interrupt to io65xx.c
* Clean build
*
* Revision 1.4 2006/01/10 04:04:59 gmikef
* Added PDATA support for CE Outputs.
*
* Revision 1.3 2005/12/09 19:42:10 tvander
* Calibration save and restore now work in flash, and save and restore temp_nom
* in the 6520's temp_raw value for the CE variables.
*
* Revision 1.2 2005/09/22 23:45:14 tvander
* Clean build all models and unit tests, updated copyright to be fore Teridian
*
*
* 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 /* ce.h */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -