Mercurial > templog
comparison network/TCPIP.h @ 107:56d09a0969b5 avr-http
Import uIP and the PPP implementation from
https://code.google.com/p/avrusbmodem/
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 07 Sep 2012 23:53:53 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
106:5c8404549cc0 | 107:56d09a0969b5 |
---|---|
1 /* | |
2 LUFA Powered Wireless 3G Modem Host | |
3 | |
4 Copyright (C) Mike Alexander, 2010. | |
5 Copyright (C) Dean Camera, 2010. | |
6 */ | |
7 | |
8 /* | |
9 Copyright 2010 Mike Alexander (mike [at] mikealex [dot] com) | |
10 Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) | |
11 | |
12 Permission to use, copy, modify, distribute, and sell this | |
13 software and its documentation for any purpose is hereby granted | |
14 without fee, provided that the above copyright notice appear in | |
15 all copies and that both that the copyright notice and this | |
16 permission notice and warranty disclaimer appear in supporting | |
17 documentation, and that the name of the author not be used in | |
18 advertising or publicity pertaining to distribution of the | |
19 software without specific, written prior permission. | |
20 | |
21 The author disclaim all warranties with regard to this | |
22 software, including all implied warranties of merchantability | |
23 and fitness. In no event shall the author be liable for any | |
24 special, indirect or consequential damages or any damages | |
25 whatsoever resulting from loss of use, data or profits, whether | |
26 in an action of contract, negligence or other tortious action, | |
27 arising out of or in connection with the use or performance of | |
28 this software. | |
29 */ | |
30 | |
31 /** \file | |
32 * | |
33 * Header file for TCPIP.c. | |
34 */ | |
35 | |
36 #ifndef _TCPIP_H_ | |
37 #define _TCPIP_H_ | |
38 | |
39 /* Includes: */ | |
40 #include <stdbool.h> | |
41 #include <uIP-Contiki/uip.h> | |
42 #include "Lib/Debug.h" | |
43 | |
44 /* External Variables: */ | |
45 extern uint8_t ConnectedState; | |
46 extern uint8_t WatchdogTicks; | |
47 extern uint16_t SystemTicks; | |
48 | |
49 /* Function Prototypes: */ | |
50 void TCPIP_TCPIPTask(void); | |
51 void TCPIP_InitializeTCPStack(void); | |
52 void TCPIP_ConnectToRemoteHost(void); | |
53 void TCPIP_GotNewPacket(void); | |
54 void TCPIP_TCPCallback(void); | |
55 | |
56 #if defined(INCLUDE_FROM_TCPIP_C) | |
57 static void TCPIP_SendGET(void); | |
58 static void TCPIP_QueueData(const char* Data, | |
59 const uint16_t Length); | |
60 static bool TCPIP_IsDataQueueFull(void); | |
61 static bool TCPIP_Connect(void); | |
62 #endif | |
63 | |
64 #endif |