OpenWSN Firmware
Main Page
Modules
Data Structures
Files
File List
Globals
openudp.h
Go to the documentation of this file.
1
#ifndef __OPENUDP_H
2
#define __OPENUDP_H
3
11
//=========================== define ==========================================
12
13
enum
UDP_enums
{
14
UDP_ID
= 3,
15
UDP_CHECKSUM
= 2,
16
UDP_PORTS
= 0,
17
};
18
19
enum
UDP_ID_enums
{
20
UDP_ID_DEFAULT
= 0x1E,
21
};
22
23
enum
UDP_CHECKSUM_enums
{
24
UDP_CHECKSUM_INLINE
= 0,
25
UDP_CHECKSUM_ELIDED
= 1,
26
};
27
28
enum
UDP_PORTS_enums
{
29
UDP_PORTS_16b_SRC_16b_DEST_INLINE
= 0,
30
UDP_PORTS_16b_SRC_8b_DEST_INLINE
= 1,
31
UDP_PORTS_8b_SRC_16b_DEST_INLINE
= 2,
32
UDP_PORTS_4b_SRC_4b_DEST_INLINE
= 3,
33
};
34
35
//=========================== typedef =========================================
36
37
typedef
struct
{
38
uint16_t
port_src
;
39
uint16_t
port_dest
;
40
uint16_t
length
;
41
uint16_t
checksum
;
42
}
udp_ht
;
43
44
//=========================== variables =======================================
45
46
//=========================== prototypes ======================================
47
48
void
openudp_init
(
void
);
49
owerror_t
openudp_send
(
OpenQueueEntry_t
* msg);
50
void
openudp_sendDone
(
OpenQueueEntry_t
* msg,
owerror_t
error);
51
void
openudp_receive
(
OpenQueueEntry_t
* msg);
52
bool
openudp_debugPrint
(
void
);
53
59
#endif
UDP_ID
Definition:
openudp.h:14
UDP_ID_enums
UDP_ID_enums
Definition:
openudp.h:19
udp_ht::length
uint16_t length
Definition:
openudp.h:40
UDP_enums
UDP_enums
Definition:
openudp.h:13
udp_ht
Definition:
openudp.h:37
udp_ht::port_dest
uint16_t port_dest
Definition:
openudp.h:39
openudp_debugPrint
bool openudp_debugPrint()
Definition:
openudp.c:154
openudp_init
void openudp_init()
Definition:
openudp.c:24
owerror_t
uint8_t owerror_t
Definition:
openwsn.h:265
UDP_CHECKSUM
Definition:
openudp.h:15
UDP_CHECKSUM_INLINE
Definition:
openudp.h:24
openudp_sendDone
void openudp_sendDone(OpenQueueEntry_t *msg, owerror_t error)
Definition:
openudp.c:40
UDP_CHECKSUM_ELIDED
Definition:
openudp.h:25
openudp_send
owerror_t openudp_send(OpenQueueEntry_t *msg)
Definition:
openudp.c:27
UDP_PORTS
Definition:
openudp.h:16
UDP_CHECKSUM_enums
UDP_CHECKSUM_enums
Definition:
openudp.h:23
UDP_ID_DEFAULT
Definition:
openudp.h:20
UDP_PORTS_16b_SRC_16b_DEST_INLINE
Definition:
openudp.h:29
openudp_receive
void openudp_receive(OpenQueueEntry_t *msg)
Definition:
openudp.c:78
OpenQueueEntry_t
Definition:
openwsn.h:288
UDP_PORTS_16b_SRC_8b_DEST_INLINE
Definition:
openudp.h:30
udp_ht::port_src
uint16_t port_src
Definition:
openudp.h:38
UDP_PORTS_8b_SRC_16b_DEST_INLINE
Definition:
openudp.h:31
UDP_PORTS_enums
UDP_PORTS_enums
Definition:
openudp.h:28
UDP_PORTS_4b_SRC_4b_DEST_INLINE
Definition:
openudp.h:32
udp_ht::checksum
uint16_t checksum
Definition:
openudp.h:41
firmware
openos
openwsn
04-TRAN
openudp.h
Generated on Wed Sep 24 2014 04:39:18 for OpenWSN Firmware by
1.8.5