📄 library.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 - Library Routines.
//
// AUTHOR: MTF
//
// HISTORY: See end of file.
//**************************************************************************
// File: LIBRARY.C
//
#ifndef LIBRARY_H
#define LIBRARY_H 1
void memset_x (uint8x_t *dst, uint8_t s, uint16_t len) small reentrant;
// copy from xdata ram to xdata ram
void memcpy_xx (uint8x_t *dst, uint8x_t *src, uint16_t len) small reentrant;
// copy from read-only code space to xdata ram
void memcpy_xr (uint8x_t *dst, uint8r_t *src, uint16_t len) small reentrant;
// copy from xdata to iram ("internal" ram) to xdata ram
void memcpy_ix (uint8i_t *dst, uint8x_t *src, uint8_t len) small reentrant;
// copy from internal ram to xdata ram
void memcpy_xi (uint8x_t *dst, uint8i_t *src, uint8_t len) small reentrant;
// copy from xdata to pdata ram
void memcpy_px (uint8p_t *dst, uint8x_t *src, uint8_t len) small reentrant;
// copy from pdata ram to xdata ram
void memcpy_xp (uint8x_t *dst, uint8p_t *src, uint8_t len) small reentrant;
// compare data in external ram with data in read-only code space
// Returns a signed result to indicate sortable position
int8_t memcmp_rx (uint8r_t *rsrc, uint8x_t *xsrc, uint16_t len) small reentrant;
// compare data in external ram with data in external ram
// Returns a signed result to indicate sortable position
int8_t memcmp_xx (uint8x_t *xsrc1, uint8x_t *xsrc2, uint16_t len) small reentrant;
// compare data in internal ram with data in external ram
// Returns a signed result to indicate sortable position
int8_t memcmp_ix (uint8i_t *isrc, uint8x_t *xsrc, uint16_t len) small reentrant;
// compare data in pdata ram with data in xdata ram
// Returns a signed result to indicate sortable position
int8_t memcmp_px (uint8p_t *psrc, uint8x_t *xsrc, uint16_t len) small reentrant;
// find the length of a null-terminated string in xdata ram
uint16_t strlen_x (uint8x_t *src) small reentrant;
// find the length of a null-terminated string in read-only code space
uint16_t strlen_r (uint8r_t *src) small reentrant;
// Do LRC of buffer.
bool LRC_Calc_NVR (uint8x_t *ptr, uint16_t len, uint8_t set) small reentrant;
#endif
/***************************************************************************
* History *
* $Log: library.h,v $
* Revision 1.11 2006/09/09 01:15:26 gmikef
* *** empty log message ***
*
* Revision 1.10 2006/06/14 02:47:45 tvander
* memset_x is reentrant, originally for reentrant clear of LCD display.
*
* Revision 1.9 2006/01/10 04:12:23 gmikef
* Added PDATA support for CE Outputs.
*
* Revision 1.8 2006/01/04 04:47:56 gmikef
* Switched RMS and VA calculations to use floating point. (and Calibration).
*
* Revision 1.6 2005/09/22 23:45:26 tvander
* Clean build all models and unit tests, updated copyright to be fore Teridian
*
* Revision 1.5 2005/04/30 02:18:50 gmikef
* *** empty log message ***
*
* Revision 1.4 2005/04/28 19:12:27 tvander
* Comments only! Restored history comments.
*
* Revision 1.3 2005/04/27 23:47:09 gmikef
* Some MATH rountines now use 'idata'.
* Added MATH_FAST flag to 'options.h".
* Changed "6521B.Uv2" to max optimization.
*
* Revision 1.2 2005/04/21 02:07:16 gmikef
* *** empty log message ***
*
* Revision 1.1 2005/04/12 21:53:35 tvander
* Library and math, compiles ok, added some comments (needs more)
*
* Revision 1.1 2005/04/09 02:29:42 gmikef
* *** empty log message ***
*
* Revision 1.4 2005/04/09 01:07:50 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. *
***************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -