Energy Meter IC Family Software Instruction Manual

71M652X Software User’s Guide
Revision 1.7 TERIDIAN Proprietary 87 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
Function/Routine
Name
Description Input Output File Name
LCD_Number()
Displays a number on the
LCD.
int32_t number uint8_t
num_digits_before_deci
mal_point, uint8_t
num_digits_after_decim
al_point
none lcd.c
lmax()
returns maximum of
unsigned long 'a' and 'b'.
U32 a, U32 b U32 math.c
lmin()
returns minimum of
unsigned long 'a' and 'b'.
U32 a, U32 b U32 math.c
log2()
returns binary logarithm uint16_t k uint8_t math.c
main_background()
executes background
processing
none none main.c
main_edge_cnt_lcd
()
Displays either the
instantaneous edge count,
or the cumulative edge
count.
uint8_t select void freq.c
main_soft_reset()
initiates soft reset none none main.c
max()
returns maximum of
unsigned int 'a' and 'b'.
uint16_t a, uint16_t b uint16_t options_glib.h
memcpy_cei ()
Copies from IDATA to the
CE memory.
int32x_t *pDst, int32i_t
*pSrc, uint8_t len
void ce.c
memcpy_cer ()
Copies from flash to the CE
memory.
int32x_t *pDst, int32r_t
*pSrc, uint8_t len
void ce.c
memcpy_cex ()
Copies from XDATA to the
CE memory.
int32x_t *pDst, int32x_t
*pSrc, uint8_t len
void ce.c
MEMCPY_MCE ()
Copies from the CE
memory to IDATA.
int32i_t *pDst, int32x_t
*pSrc, uint8_t len
void ce.c
memcpy_xce ()
Copies from the CE
memory to XDATA.
int32x_t *pDst, int32x_t
*pSrc, uint8_t len
void ce.c
memget_ce ()
Reads a word of the CE
memory
int32i_t *pDst int32_t ce.c
memset_ce ()
Sets a word of the CE
memory
int32i_t *pDst, int32_t
src
void ce.c
meter_lcd ()
Display the current quantity
on the LCD.
void void meter.c
meter_run ()
Performs meter data
processing.
void void meter.c
memcmp_rx()
compares xdata to flash
code
uint8_tr *rsrc, uint8_tx
*xsrc, uint16_t len
S08 library.c