BOOTLOADER
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
bootloader
inc
ethernetudp.h
Go to the documentation of this file.
1
#ifndef ETHERNETUDP_H
2
#define ETHERNETUDP_H
3
4
//******
5
// ETHERNET USER DATAGRAM PROTOCOL (UDP)
6
//******
7
typedef
struct
{
8
volatile
INT16U
Source
;
9
volatile
INT16U
Destination
;
10
volatile
INT16U
Length
;
11
volatile
INT16U
Check
;
12
}
UDP_HEAD
;
13
typedef
struct
{
14
INT8U
State
;
15
INT8U
Status
;
16
INT8U
InUse
;
17
INT16U
Id
;
18
INT16U
UserId
;
19
INT16U
Source
;
20
INT16U
Destination
;
21
INT16U
Length
;
22
INT16U
Check
;
23
}
UDP_CONTROL
;
24
25
extern
UDP_CONTROL
UdpCtrl
;
26
27
extern
void
F_EthernetUdpInit
(
void
);
28
extern
INT8U
F_EthernetUdpPacketReceive
(
ETHBUFFER
*pBuffer);
29
extern
INT8U
F_EthernetUdpPacketSend
(
ETHBUFFER
*pBuffer,
INT8U
*pIpAddress,
INT16U
Source,
INT16U
Destination);
30
extern
INT8U
F_EthernetUdpBufferReserve
(
ETHBUFFER
*pBuffer);
31
extern
INT16U
F_EthernetUdpSourcePortGet
(
ETHBUFFER
*pBuffer);
32
33
#endif
Generated on Wed Jun 13 2012 00:03:09 for BOOTLOADER by
1.8.1.1