beautypg.com

Maxim Integrated 71M6534 Energy Meter IC Family Software User Manual

Page 94

background image

71M653X Software User’s Guide

Input

Output

File Name

Function/Routine
Name

Description

40 bits of precision. Use only to
calculate ratios.

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

seconds()

Any number

uint16_t

Util\stm.h

SelectPulses()

Selects pulse sources for 2 CE
pulse outputs, and optionally, for
two additional software pulse
outputs. The controls are in
MPU variables initialized from
the default table.

Void void

Meter\pulse_src.c

send_a_result()

sends passed result code to
UART

uint8_t c

none

Cli\cli.c

send_byte()

sends a [0, 255] byte to DTE.

S08 n

none

cli\io.c

send_char()

sends single character

uint8_t c

none

cli\io.c

send_crlf()

sends out to UART.

None

none

cli\io.c

send_digit()

sends single ASCII hex or
decimal digit out to SERIAL0

uint8_t c

none

cli\io.c

send_help()

sends text in code at specified
location to serial port

uint8_tr * code *s

none

Cli\cli.c

send_hex()

sends byte out SERIAL0 in HEX

uint8_t n

none

cli\io.c

send_long()

sends a [0, 9,999,999,999]
value to DTE.

Int32_t n

none

cli\io.c

send_long_hex()

sends a [0, FFFFFFFF] value to
DTE

U32 n

none

cli\io.c

send_num()

sends a [0, 9,999,999,999]
value to DTE

int32_t n, uint8_t
size

none cli\io.c

send_result()

looks up result code, primes
pump for result codes

none none

Cli\cli.c

send_rtc()

displays RTC data

none

none

Cli\cmd_misc.c

send_short()

sends a [0, 99,999] value to
DTE.

Int16_t n

none

cli\io.c

send_short_hex()

sends a [0, FFFF] value to DTE

uint16_t n

none

cli\io.c

ser_disable_rcv_rdy(
)

Disable the receive interrupt.

Void

void

Io\ser0.h, ser1.h

ser_disable_xmit_rdy
()

Disable the transmit interrupt.

Void

void

Io\ser0.h, ser1.h

ser_enable_rcv_rdy()

Enable the receive interrupt.

Void

void

Io\ser0.h, ser1.h

ser_enable_xmit_rdy(
)

Enable the transmit interrupt.

Void

void

Io\ser0.h, ser1.h

Ser_initialize()

configures the serial port
specified in the include file
ser0.h or ser1.h

enum baud

none

Io\ser0.h, ser1.h

ser_rcv ()

Get a byte from the serial port.

Void

uint8_t

Io\ser0.h, ser1.h

ser_rcv_err()

Returns true if the last received
byte had an error.

Void bool

Io\ser0.h,

ser1.h

ser_rcv_rdy()

Returns true if the serial port
has gotten another byte.

Void bool

Io\ser0.h,

ser1.h

ser_xmit ()

Send a byte to the serial port.

Uint8_t

void

Io\ser0.h, ser1.h

ser_xmit_err()

Returns true if the last sent byte
had an error.

Void bool

Io\ser0.h,

ser1.h

v1.1v1.1

TERIDIAN Proprietary

94 of 116

© Copyright 2005-2008 TERIDIAN Semiconductor Corporation

This manual is related to the following products: