beautypg.com

Maxim Integrated 71M6513H Power Meter IC Family Software User Manual

Page 89

background image

71M651x Software User’s Guide

send_hex()

sends byte out SERIAL0 in HEX

U08 n

none

io.c

send_long()

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

S32 n

none

io.c

send_long_hex()

sends a [0, FFFFFFFF] value to DTE

U32 n

none

io.c

send_num()

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

S32 n, U08 size

none

io.c

send_result()

looks up result code, primes pump for
result codes

none

none

cli.c

send_rtc()

displays RTC data

none

none

cmd_misc.c

send_short()

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

S16 n

none

io.c

send_short_hex()

sends a [0, FFFF] value to DTE

U16 n

none

io.c

Serial_CRx()

gets additional bytes from the receive
buffer

enum SERIAL_PORT port,
U08x *buffer, U16 len

U16

serial.c

Serial_CTx ()

puts additional bytes into the transmit
buffer

enum SERIAL_PORT port,
U08x *buffer, U16 len

U16

serial.c

Serial_Init()

configures selected serial port

enum SERIAL_PORT port,
enum SERIAL_SPD speed,
Bbool parity_enb, Bbool
parity, Bbool two_stop_bits,
Bbool xon_xoff, Bbool
seven_bits

Bbool

serial.c

Serial_Rx ()

sets up receive buffer and starts
receiving

enum SERIAL_PORT port,
U08x *buffer, U16 len

enum
SERIAL_RC
data

serial.c

Serial_RxLen()

returns the number of bytes received

enum SERIAL_PORT port

U16

serial.c

Serial_Tx()

sets up transmission buffer and starts
transmission

enum SERIAL_PORT port,
U08x *buffer, U16 len

enum
SERIAL_RC
data

serial.c

Serial_TxLen()

returns the number of bytes left to
transmit

enum SERIAL_PORT port

U16

serial.c

Set_Event_Vector()

sets vector for specified event

enum EVENT_ID event,
(code *pEventVector)

none

events.c

SFR_Read()

reads from SFR

U08 s, S08d *pc

enum
SFR_RC

sfrs.c

SFR_Write()

writes to SFR

U08 s, U08 c_set, U08 c_clr

enum
SFR_RC

sfrs.c

shift_right()

shifts (in-place) n-byte 'x' right 's' bits.

U08x *x, s, n

none

classics.c

shift_right8_1()

right-shifts 8-byte number by 1-bit

U08x *x

none

library.c

shift_right8_2()

right-shifts 8-byte number by 2-bits

U08x *x

none

library.c

Soft_Reset()

initiates soft reset

none

none

misc.c

sqrt4_2()

returns the 16-bit square root of the
32-bit argument

U08x *z, U08x *x

none

library.c

sqrt4_4 ()

returns the 32-bit square root of the
32-bit argument. The 16 LSBs are the
fractional part of the square root.

U08x *z, S08x *x

none

library.c

sqrt8_4()

returns the square root of the
argument

U08x *z, U08x *x

none

library.c

Revision 2.4

TERIDIAN Proprietary

89 of 137

© Copyright 2005-2006 TERIDIAN Semiconductor Corporation