Trial code integration web page update with analogue data and ntp support

Dependencies:   NTPClient_NetServices mbed

Committer:
pmr1
Date:
Fri Aug 06 17:57:45 2010 +0000
Revision:
0:8cc2035bebfc

        

Who changed what in which revision?

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