beautypg.com

15 alphabetical function reference, Alphabetical function reference – Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual

Page 82

background image

71M652X Software User’s Guide

Revision 1.7

TERIDIAN Proprietary

82 of 138

© Copyright 2005-2007 TERIDIAN Semiconductor Corporation

5.15 ALPHABETICAL FUNCTION REFERENCE


Function/Routine
Name

Description

Input

Output

File Name

abs_x()

x = abs(x0); Take absolute
value of n-byte 'x0'.

uint8_tx *x, uint8_tx *x0,
n

none math.c

add()

*x += y; where 'x' & 'y' are
'n' bytes wide.

uint8_tx *x, uint8_tx *y,
n

uint8_t math.c

add_1()

*x += y; where 'x' is 'n' bytes
wide, 'y' is single byte.

uint8_tx *x, y, n

uint8_t

math.c

add8_4()

(uint64_t) x += (uint32_t) y;

uint8_tx *x, uint8_tx *y

none

math.c

add8_8 ()

(uint64_t) x += (uint64_t) y

uint8_tx *x, uint8_tx *y

none

math.c

add8_8()

adds two unsigned 8-byte
numbers

uint8_tx *x, uint8_tx *y

none

ce.c

Apply_Creep_Thresh
old()

Prevents creep.

void

void

meter.c

batmode_is_brownou
t ()

Returns true if battery mode
is brownout. False is
mission mode

void bool batmode_20.c

batmode_lcd ()

Enters LCD-only mode from
brownout mode. Exit from
LCD-only mode resembles
a reset.

void void batmode_20.c

batmode_sleep ()

Enters sleep mode from
brownout mode. Exit from
sleep mode resembles a
reset.

void void batmode_20.c

batmode_wait_minut
es ()

Sets the wake timer in
minutes.

uint16_t minutes

none

batmode_20.c

batmode_wait_secon
ds ()

Sets the wake timer in
seconds.

uint16_t seconds

none

batmode_20.c

cal_begin()

starts auto-calibration
process

none bool caphased.c

cal_restore()

Restores calibration from
EEPROM

none bool calibration.c

cal_save()

saves calibration data to
EEPROM

none none calibration.c

Calc_Voltage_Phase
()

Calculates phase angles
between voltages of
different phases.

void void vphase.c