beautypg.com

Maxim Integrated 71M6534 Energy Meter IC Family Software User Manual

Page 88

background image

71M653X Software User’s Guide

Function/Routine
Name

Description

Input

Output

File Name

xon_xoff

cmax()

returns maximum of unsigned
char 'a' and 'b'.

uint8_t a, uint8_t b

uint8_t

Util\math.c

cmd_ce ()

processes CE commands

none

none

cmd_ce.c

cmd_ce_data_access()

Processes context for CE DATA

none

none

Cli\access.c

cmd_download()

downloads/uploads code/data
between various sources and
serial port

none none

Cli\load.c

cmd_eeprom()

processes EEPROM commands

none

none

Cli\cmd_misc.c

cmd_error()

assigns generic command mode
error result code

none none

Cli\cli.c

cmd_load()

implements user dialog for
data/code download/upload

none none

Cli\load.c

cmd_meter()

processes "M" commands

none

none

Meter\meter.c

cmd_mpu_data_access(
)

processes context for MPU
DATA

none none

Cli\access.c

cmd_power_save()

processes power save
command

none none

Cli\cmd_misc.c

cmd_rtc()

processes RTC commands

none

none

Cli\cmd_misc.c

cmd_trim()

processes trim commands

none

none

Cli\cmd_misc.c

cmin()

returns minimum of unsigned
char 'a' and 'b'.

uint8_t a, uint8_t b

uint8_t

Util\math.c

Compute_Phase_Angle(
)

Computes the V/I phase angle.

void

void

Meter\phase_angle.c

Compute_RMS()

Computes Vrms and Irms.

void

void

Meter\rms.c

CRC_Calc()

calculates standard 16-bit CRC
polynomial per ISO/IEC 3309 on
flash memory (x

16

+x

12

+x

5

+1)

uint8_tr *ptr,
uint16_t len, U01
set

bool Util\flash.c

CRC_Calc_NVR()

calculates the 16-bit CRC
polynomial per ISO/IEC 3309 on
NVRAM

uint8_tx *ptr,
uint16_t len, U01
set

bool Util\math.c

ctoh()

converts ascii hex character to
hexadecimal digit

uint8_t c

uint8_t

Cli\load.c

date_lcd ()

Displays the current date.

void

void

IO\rtc_30.c

Delta_Time ()

Figure the elapsed time
between two times.

struct RTC_t start,
struct RTC_t end

int32_t
seconds

IO\rtc_30.c

Determine_Frequency(
)

Sets the frequency. Uses sag
status and voltage thresholds to
return 0 if the voltages are off.

void void

Meter\freq.c

Determine_Peaks()

Sets status bits if voltages,
currents or temperature are
outside limits. Sag tests are in
xfer_busy_int()

void void

Meter\peak_alerts.c

divide()

*u /= *v

uint8_tx *u, uint8_tx
*v, m, n, uint8_tx
*v0

uint8_t Util\math.c

divide_ ()

*u /= *v

uint8_tx *u, uint8_tx
*v, m, n, uint8_tx
*v0

none Util\math.c

divide_1()

*x /= y

uint8_tx *x, y, n

none

Util\math.c

v1.1v1.1

TERIDIAN Proprietary

88 of 116

© Copyright 2005-2008 TERIDIAN Semiconductor Corporation

This manual is related to the following products: