Maxim Integrated 71M6534 Energy Meter IC Family Software User Manual

Page 92

Advertising
background image

71M653X Software User’s Guide

Function/Routine
Name

Description

Input

Output

File Name

uint8_tr *src,
uint16_t len

memcpy_xx()

copies xdata to xdata

uint8_tx *dst,
uint8_tx *src,
uint16_t len

none library.c

memset_x()

sets xdata to specified value

uint8_tx *dst,
uint8_t s, uint16_t
len

none library.c

meter_initialize()

initializes most I/O functions
thaty read line power

none none

meter.c

meter_totals ()

Display a selected quantity on
the LCD.

Uint8_t
select,uint8_t
phase

void meter.c

microseconds2tmr_reg
()

Converts to timer’s count.

Number uint16_t

tmr0.h,

tmr1.h

milliseconds()

Converts milliseconds to clock
ticks, usually for a software
timer.

Any number

uint16_t

stm.h

milliseconds2tmr_reg
()

Converts to timer’s count.

Number uint16_t

tmr0.h,

tmr1.h

min()

returns minimum of unsigned int
‘a’ and ‘b’.

uint16_t a, uint16_t
b

uint16_t options_glib.h

MPU_Clk_Select()

selects MPU clock speed

enum MPU_SPD
speed

bool IO\serial.c

MPU_Clk_Select()

Describes the clock speed of
the MPU to a serial interface.

Enum
SERIAL_PORT
port, enum
eMPU_DIV speed

bool Cli\sercli.c

MPU_Clk_Select0()

Describes the clock speed of
the MPU to the serial interface.

Enum eMPU_DIV
speed

bool Cli\ser0cli.c

MPU_Clk_Select1()

Describes the clock speed of
the MPU to the serial interface.

Enum eMPU_DIV
speed

bool Cli\ser1cli.c

multiply_1()

W = x * y

uint8_tx *w,
uint8_tx *x, y, n

uint8_t Util\math.c

multiply_4_1()

(uint32_t) w = (uint32_t) x *
(uint8_t) y

uint8_tx *w,
uint8_tx *x, y

uint8_t Util\math.c

multiply_4_4()

(uint64_t) w = (uint32_t) x *
(uint32_t) y

uint8_tx *w,
uint8_tx *x, uint8_tx
*y

none Util\math.c

multiply_8_1()

(uint64_t) w = (uint64_t) x *
(uint8_t) y

uint8_tx *w,
uint8_tx *x, y

uint8_t Util\math.c

multiply_8_4()

(uint96_t) w = (uint64_t) x *
(uint32_t) y

uint8_tx *w,
uint8_tx *x, uint8_tx
*y

none Util\math.c

normalize8()

Puts a register into normal form.
I.e., fractional part is less than
one display unit, both units and
fraction are positive or zero, and
display units is less than the
UNITS_RANGE.

Uint8_tx *r

void

Util\math.c

operating_lcd ()

Displays the number of hours of
operation.

Void void

Io\rtc_30.c

OperatingHours()

Calculates hours of operation
from the last valid mark.

None int32_t

hours

Io\rtc_30.c

v1.1v1.1

TERIDIAN Proprietary

92 of 116

© Copyright 2005-2008 TERIDIAN Semiconductor Corporation

Advertising
This manual is related to the following products: