mikroC
making it simple...
Eth_Get_Ip_Hdr_Len
Prototype
unsigned short Eth_Get_Ip_Hdr_Len(void);
Returns
Header length of the received IP packet.
Description
Returns header length of the received IP packet. Before other data based upon the IP
protocol (TCP, UDP, ICMP) can be analyzed, the sub-protocol data must be properly
loaded from the received IP packet.
Requires
The card (NIC) must be properly initialized. See
called in a proper sequence, i.e. immediately after determining that the packet received
is the IP packet.
Example
// Receive IP Header
opt_len = Eth_Get_Ip_Hdr_Len() - 20;
Eth_Load_Ip_Packet
Prototype
void Eth_Load_Ip_Packet(void);
Description
Loads various IP packet data into PIC's Ethernet variables.
Requires
The card (NIC) must be properly initialized. See
calls must be obeyed (see the
Example
Eth_Load_Ip_Packet();
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
Eth_Init
Eth_Init
function in the supplied Ethernet example).
Ip_Event
. The function must be
. Also, a proper sequence of
177
page
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?