mbeduino + Weatherduino Weather Stations post test

Dependencies:   mbed

Committer:
okini3939
Date:
Tue Oct 26 17:19:28 2010 +0000
Revision:
0:10bcaa7c2253

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okini3939 0:10bcaa7c2253 1 /*
okini3939 0:10bcaa7c2253 2 * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
okini3939 0:10bcaa7c2253 3 * All rights reserved.
okini3939 0:10bcaa7c2253 4 *
okini3939 0:10bcaa7c2253 5 * Redistribution and use in source and binary forms, with or without modification,
okini3939 0:10bcaa7c2253 6 * are permitted provided that the following conditions are met:
okini3939 0:10bcaa7c2253 7 *
okini3939 0:10bcaa7c2253 8 * 1. Redistributions of source code must retain the above copyright notice,
okini3939 0:10bcaa7c2253 9 * this list of conditions and the following disclaimer.
okini3939 0:10bcaa7c2253 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
okini3939 0:10bcaa7c2253 11 * this list of conditions and the following disclaimer in the documentation
okini3939 0:10bcaa7c2253 12 * and/or other materials provided with the distribution.
okini3939 0:10bcaa7c2253 13 * 3. The name of the author may not be used to endorse or promote products
okini3939 0:10bcaa7c2253 14 * derived from this software without specific prior written permission.
okini3939 0:10bcaa7c2253 15 *
okini3939 0:10bcaa7c2253 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
okini3939 0:10bcaa7c2253 17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
okini3939 0:10bcaa7c2253 18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
okini3939 0:10bcaa7c2253 19 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
okini3939 0:10bcaa7c2253 20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
okini3939 0:10bcaa7c2253 21 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
okini3939 0:10bcaa7c2253 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
okini3939 0:10bcaa7c2253 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
okini3939 0:10bcaa7c2253 24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
okini3939 0:10bcaa7c2253 25 * OF SUCH DAMAGE.
okini3939 0:10bcaa7c2253 26 *
okini3939 0:10bcaa7c2253 27 * This file is part of the lwIP TCP/IP stack.
okini3939 0:10bcaa7c2253 28 *
okini3939 0:10bcaa7c2253 29 * Author: Jani Monoses <jani@iv.ro>
okini3939 0:10bcaa7c2253 30 *
okini3939 0:10bcaa7c2253 31 */
okini3939 0:10bcaa7c2253 32
okini3939 0:10bcaa7c2253 33 #ifndef __LWIP_IP_FRAG_H__
okini3939 0:10bcaa7c2253 34 #define __LWIP_IP_FRAG_H__
okini3939 0:10bcaa7c2253 35
okini3939 0:10bcaa7c2253 36 #include "lwip/opt.h"
okini3939 0:10bcaa7c2253 37 #include "lwip/err.h"
okini3939 0:10bcaa7c2253 38 #include "lwip/pbuf.h"
okini3939 0:10bcaa7c2253 39 #include "lwip/netif.h"
okini3939 0:10bcaa7c2253 40 #include "lwip/ip_addr.h"
okini3939 0:10bcaa7c2253 41 #include "lwip/ip.h"
okini3939 0:10bcaa7c2253 42
okini3939 0:10bcaa7c2253 43 #ifdef __cplusplus
okini3939 0:10bcaa7c2253 44 extern "C" {
okini3939 0:10bcaa7c2253 45 #endif
okini3939 0:10bcaa7c2253 46
okini3939 0:10bcaa7c2253 47 #if IP_REASSEMBLY
okini3939 0:10bcaa7c2253 48 /* The IP reassembly timer interval in milliseconds. */
okini3939 0:10bcaa7c2253 49 #define IP_TMR_INTERVAL 1000
okini3939 0:10bcaa7c2253 50
okini3939 0:10bcaa7c2253 51 /* IP reassembly helper struct.
okini3939 0:10bcaa7c2253 52 * This is exported because memp needs to know the size.
okini3939 0:10bcaa7c2253 53 */
okini3939 0:10bcaa7c2253 54 struct ip_reassdata {
okini3939 0:10bcaa7c2253 55 struct ip_reassdata *next;
okini3939 0:10bcaa7c2253 56 struct pbuf *p;
okini3939 0:10bcaa7c2253 57 struct ip_hdr iphdr;
okini3939 0:10bcaa7c2253 58 u16_t datagram_len;
okini3939 0:10bcaa7c2253 59 u8_t flags;
okini3939 0:10bcaa7c2253 60 u8_t timer;
okini3939 0:10bcaa7c2253 61 };
okini3939 0:10bcaa7c2253 62
okini3939 0:10bcaa7c2253 63 void ip_reass_init(void);
okini3939 0:10bcaa7c2253 64 void ip_reass_tmr(void);
okini3939 0:10bcaa7c2253 65 struct pbuf * ip_reass(struct pbuf *p);
okini3939 0:10bcaa7c2253 66 #endif /* IP_REASSEMBLY */
okini3939 0:10bcaa7c2253 67
okini3939 0:10bcaa7c2253 68 #if IP_FRAG
okini3939 0:10bcaa7c2253 69 #if !IP_FRAG_USES_STATIC_BUF && !LWIP_NETIF_TX_SINGLE_PBUF
okini3939 0:10bcaa7c2253 70 /** A custom pbuf that holds a reference to another pbuf, which is freed
okini3939 0:10bcaa7c2253 71 * when this custom pbuf is freed. This is used to create a custom PBUF_REF
okini3939 0:10bcaa7c2253 72 * that points into the original pbuf. */
okini3939 0:10bcaa7c2253 73 struct pbuf_custom_ref {
okini3939 0:10bcaa7c2253 74 /** 'base class' */
okini3939 0:10bcaa7c2253 75 struct pbuf_custom pc;
okini3939 0:10bcaa7c2253 76 /** pointer to the original pbuf that is referenced */
okini3939 0:10bcaa7c2253 77 struct pbuf *original;
okini3939 0:10bcaa7c2253 78 };
okini3939 0:10bcaa7c2253 79 #endif /* !IP_FRAG_USES_STATIC_BUF && !LWIP_NETIF_TX_SINGLE_PBUF */
okini3939 0:10bcaa7c2253 80
okini3939 0:10bcaa7c2253 81 err_t ip_frag(struct pbuf *p, struct netif *netif, ip_addr_t *dest);
okini3939 0:10bcaa7c2253 82 #endif /* IP_FRAG */
okini3939 0:10bcaa7c2253 83
okini3939 0:10bcaa7c2253 84 #ifdef __cplusplus
okini3939 0:10bcaa7c2253 85 }
okini3939 0:10bcaa7c2253 86 #endif
okini3939 0:10bcaa7c2253 87
okini3939 0:10bcaa7c2253 88 #endif /* __LWIP_IP_FRAG_H__ */