Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual
Page 83

71M652X Software User’s Guide
Revision 1.7
TERIDIAN Proprietary
83 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
Function/Routine
Name
Description
Input
Output
File Name
calibrate()
processes measurements
during auto-calibration
none none calphased.c
ce_active()
returns CE status
none
bool
ce.c
ce_enable()
Enables or disables the CE
bool enable
none
ce.c
ce_init()
Initializes the CE
none
bool
ce.c
ce_reset()
resets the CE
none
none
ce.c
cli ()
command Line Interpreter
none
none
cli.c
cli_init()
Initializes the SLI's interface
to any serial port.
enum SERIAL_PORT
port, enum
SERIAL_SPD speed,
bool xon_xoff
bool sercli.c3
cli0_init()
Initializes the SLI's interface
to SER0
enum SERIAL_SPD
speed, bool xon_xoff
bool ser0cli.c3
cli1_init()
Initializes the SLI's interface
to SER1
enum SERIAL_SPD
speed, bool xon_xoff
bool ser1cli.c3
cmax()
returns maximum of
unsigned char 'a' and 'b'.
uint8_t a, uint8_t b
uint8_t
math.c
cmd_ce ()
processes CE commands
none
none
cmd_ce.c
cmd_ce_data_access
()
Processes context for CE
DATA
none none access.c
cmd_download()
downloads/uploads
code/data between various
sources and serial port
none none load.c
cmd_eeprom()
processes EEPROM
commands
none none cmd_misc.c
cmd_error()
assigns generic command
mode error result code
none none cli.c
cmd_lcd()
processes "D" commands
none
none
display.c
cmd_load()
implements user dialog for
data/code download/upload
none none load.c
cmd_meter()
processes "M" commands
none
none
meter.c
cmd_mpu_data_acces
s()
processes context for MPU
DATA
none none access.c
cmd_power_save()
processes power save
command
none none cmd_misc.c
cmd_rtc()
processes RTC commands
none
none
cmd_misc.c
cmd_trim()
processes trim commands
none
none
cmd_misc.c
cmin()
returns minimum of
unsigned char 'a' and 'b'.
uint8_t a, uint8_t b
uint8_t
math.c
complement_x()
x = x0 ^ 1s; takes ones-
complement of n-byte 'x0'.
uint8_tx *x, uint8_tx *x0,
n
none math.c
Compute_Phase_Angl
e()
Computes the V/I phase
angle.
void void phase_angle.c
Compute_RMS()
Computes Vrms and Irms.
void
void
rms.c