beautypg.com

Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual

Page 93

background image

71M652X Software User’s Guide

Revision 1.7

TERIDIAN Proprietary

93 of 138

© Copyright 2005-2007 TERIDIAN Semiconductor Corporation


Function/Routine
Name

Description

Input

Output

File Name

Serial1_CTx()

Transmit a string up to a
maximum length.

uint8x_t *buffer, uint16_t
len

uint16_t length-sent

ser1cli.c

Serial1_Rx()

Receive a string of any
length.

uint8x_t *buffer, uint16_t
len

none ser1cli.c

Serial1_RxFlowOff(
)

Force an XOFF to be sent
on this port.

none none ser1cli.c

Serial1_RxFlowOn()

Force an XON to be sent on
this port.

none none ser1cli.c

Serial1_Tx()

Transmit a string of any
length.

uint8x_t *buffer, uint16_t
len

none ser1cli.c

SFR_Read()

reads from SFR

uint8_t s, S08d *pc

enum SFR_RC

sfrs.c

SFR_Write()

writes to SFR

uint8_t s, uint8_t c_set,
uint8_t c_clr

enum SFR_RC

sfrs.c

start_tx_ram()

sends RAM string out PC
UART

uint8_tx *c

none

io.c

start_tx_rslt()

sends ROM string out PC
UART

uint8_tr *c

none

io.c

stm_run()

This counts down the
software timers when called
from the main loop.

void void stm.c

stm_start()

Starts a software timer. If
restart is zero, the timer
stops, otherwise it contin-
ues indefinitely. When a
timer expires, its function is
run. Timers count down and
are deallocated if they
cease to run.

uint16_t tick_count,
uint8_t restart, void
(code *fn_ptr) (void)

volatile uint16x_t
*cnt_ptr

stm.c

stm_stop()

Uses a count pointer from
start to identify which soft-
ware timer to stop.

volatile uint16x_t
*cnt_ptr

void stm.c