Maxim Integrated 71M6534 Energy Meter IC Family Software User Manual
Page 90

71M653X Software User’s Guide
Function/Routine
Name
Description
Input
Output
File Name
irq_disable()
Disables interrupts.
void
void
util\irq.c
IRQ_DISABLE()
The fastest way to disable
interrupts. Requires
IRQ_DEFINES to be earlier in
the code, or that the needed
symbols be defined.
n/a n/a
util\irq.h
irq_enable()
Enables interrupts
void
void
util\irq.c
IRQ_ENABLE()
The fastest way to enable
interrupts. Requires
IRQ_DEFINES to be earlier in
the code, or that the needed
symbols be defined.
n/a n/a
util\irq.h
irq_init()
Initializes interrupt control. void
void
util\irq.c
labsx()
returns the absolute value
int32_t x
S332
Util\math.c
latan2()
returns the arcTangent
int32_t sy, int32_t
sx
U32 Util\math.c
LCD_CE_Off()
displays “CE OFF” on LCD
none
none
io\lcd.c
LCD_Command()
turns LCD on or off, clears
display
uint8_t LcdCmd
none
io\lcd.c
LCD_Config()
configures LCD parameters
uint8_t num, enum
eLCD_mode bias,
enum LCD_CLK
clock
none io\lcd.c
LCD_Data_Read()
reads from selected icon of LCD
uint8_t Icon
uint16_t
io\lcd.c
LCD_Data_Write()
writes to selected icon of LCD
uint8_t icon,
uint16_t Mask
none io\lcd.c
LCD_Hello()
displays “HELLO” on LCD
none
none
io\lcd.c
LCD_Init()
clears LCD, enables LCD
segment drivers
none none
io\lcd.c
LCD_Mode
Display a mode number.
Uint8_t mode
none
io\lcd.c
LCD_Number()
Displays a number on the LCD.
Int32_t number
uint8_t
num_digits_before_
decimal_point,
uint8_t
num_digits_after_d
ecimal_point
none io\lcd.c
lmax()
returns maximum of unsigned
long ‘a’ and ‘b’.
U32 a, U32 b
U32
Util\math.c
lmin()
returns minimum of unsigned
long ‘a’ and ‘b’.
U32 a, U32 b
U32
Util\math.c
log2()
returns binary logarithm
uint16_t k
uint8_t
Util\math.c
LRC_Calc_NVR ()
Calculates a longitudinal
redundancy check (bitwise
parity)
Bool (ok/bad)
Pointer,
length, set
Util\library.c
Lroundf()
Returns long rounded from float.
Standard C99 library routine not
provided by Keil
Long Float
Util\math.c
main_background()
executes background
processing
none none
main.c
main_edge_cnt_lcd ()
Displays either the
Uint8_t select
void
Meter\freq.c
v1.1v1.1
TERIDIAN Proprietary
90 of 116
© Copyright 2005-2008 TERIDIAN Semiconductor Corporation