Maxim Integrated High-Speed Microcontroller Users Guide: Network Microcontroller Supplement User Manual

Page 202

Advertising
background image

High-Speed Microcontroller User’s

Guide: Network Microcontroller

Supplement

202

getipv6params

Descriptions:

getipv6params(
void
*parameters);

/* pointer to IPv6 parameters buffer */

The

getipv6params function returns the IPv6 address of the Ethernet interface to the parameters buffer. The parameters buffer

contain the following data following the

getipv6params function:

PARAMETER

OFFSET

LENGTH

DESCRIPTION

IP6ADDR 0

16

IP

address

IP6PREFIX

16

1

IP prefix length

getethernetstatus

Description:

int getethernetstatus(void);

The

getethernetstatus function returns the Ethernet status (link). The return value is a bit-wise OR of the following flags:

FLAG*

VALUE

DESCRIPTION

ETH_STATUS_LNK

01h

Ethernet link status

*(No other flags are currently defined.)

gettftpserver/settftpserver

Descriptions:

int gettftpserver(

struct sockaddr *addr,

/* address of TFTP server */

int *addrlen);

/* length of addr structure */

int settftpserver(
struct sockaddr *addr,

/* address of TFTP server */

int *addrlen);

/* length of addr structure */

The

gettftpserver and settftpserver functions get/set the IP address of the TFTP server. The gettftpserver function stores the

address of the TFTP server into the addr structure. The

settftpserver function sets the TFTP server address to the value sup-

plied in addr. The

settftpserver function must be used if the address of the TFTP server is not acquired by DHCP or 1-Wire.

Both functions return a success/failure code in the accumulator.

INPUT

PARAMETER#–DESCRIPTION

OUTPUT

DESCRIPTION

*addr

addrlen

Param0[0:2]–Pointer to addr

Param1[0]–Size of addr structure

ACC

Return value (= 0 for success)

INPUT

PARAMETER#–DESCRIPTION

OUTPUT

DESCRIPTION

ACC

R0

Return value (= 0 for success)

Return value (bit-wise OR of flags)

INPUT

PARAMETER#–DESCRIPTION

OUTPUT

DESCRIPTION

*parameters

Param0[0:2]–Pointer to

parameters buffer

ACC

Return value (= 0 for success)

Maxim Integrated

Advertising