OpenWSN Firmware
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,
16  UDP_PORTS = 0,
17 };
18 
21 };
22 
26 };
27 
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);
52 bool openudp_debugPrint(void);
53 
59 #endif
Definition: openudp.h:14
UDP_ID_enums
Definition: openudp.h:19
uint16_t length
Definition: openudp.h:40
UDP_enums
Definition: openudp.h:13
Definition: openudp.h:37
uint16_t port_dest
Definition: openudp.h:39
bool openudp_debugPrint()
Definition: openudp.c:154
void openudp_init()
Definition: openudp.c:24
uint8_t owerror_t
Definition: openwsn.h:265
Definition: openudp.h:15
Definition: openudp.h:24
void openudp_sendDone(OpenQueueEntry_t *msg, owerror_t error)
Definition: openudp.c:40
Definition: openudp.h:25
owerror_t openudp_send(OpenQueueEntry_t *msg)
Definition: openudp.c:27
Definition: openudp.h:16
UDP_CHECKSUM_enums
Definition: openudp.h:23
Definition: openudp.h:20
Definition: openudp.h:29
void openudp_receive(OpenQueueEntry_t *msg)
Definition: openudp.c:78
Definition: openwsn.h:288
Definition: openudp.h:30
uint16_t port_src
Definition: openudp.h:38
Definition: openudp.h:31
UDP_PORTS_enums
Definition: openudp.h:28
Definition: openudp.h:32
uint16_t checksum
Definition: openudp.h:41