Mikroc, Eth_get_dest_ip_address, Eth_get_hdr_chksum – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 186: Eth_get_source_ip_address

Advertising
background image

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

178

MikroElektronika: Development tools - Books - Compilers

page

Prototype

void

Eth_Get_Dest_Ip_Address(void);

Description

Loads the IP address of the received IP packet for which the packet is designated.

Requires

The card (NIC) must be properly initialized. See

Eth_Init

. Also, a proper sequence of

calls must be obeyed (see the

Ip_Event

function in the supplied Ethernet example).

Example

Eth_Get_Dest_Ip_Address();

Eth_Get_Dest_Ip_Address

Prototype

void

Eth_Get_Hdr_Chksum(void);

Description

Loads and returns the header checksum of the received IP packet.

Requires

The card (NIC) must be properly initialized. See

Eth_Init

. Also, a proper sequence of

calls must be obeyed (see the

Ip_Event

function in the supplied Ethernet example).

Example

Eth_Get_Hdr_Chksum();

Eth_Get_Hdr_Chksum

Prototype

void

Eth_Get_Source_Ip_Address(void);

Description

Loads and returns the IP address of the sender of the received IP packet.

Requires

The card (NIC) must be properly initialized. See

Eth_Init

. Also, a proper sequence of

calls must be obeyed (see the

Ip_Event

function in the supplied Ethernet example).

Example

Eth_Get_Source_Ip_Address();

Eth_Get_Source_Ip_Address

Advertising
This manual is related to the following products: