Rewrite from scratch a TCP/IP stack for mbed. So far the following parts are usable: Drivers: - EMAC driver (from CMSIS 2.0) Protocols: - Ethernet protocol - ARP over ethernet for IPv4 - IPv4 over Ethernet - ICMPv4 over IPv4 - UDPv4 over IPv4 APIs: - Sockets for UDPv4 The structure of this stack is designed to be very modular. Each protocol can register one or more protocol to handle its payload, and in each protocol, an API can be hooked (like Sockets for example). This is an early release.
Diff: mbedNet.h
- Revision:
- 1:f4040665bc61
- Parent:
- 0:19f5f51584de
- Child:
- 5:3cd83fcb1467
diff -r 19f5f51584de -r f4040665bc61 mbedNet.h --- a/mbedNet.h Sun Jun 12 11:23:03 2011 +0000 +++ b/mbedNet.h Sun Jun 12 19:17:11 2011 +0000 @@ -17,12 +17,6 @@ #include <stdint.h> -#ifdef __cplusplus -#define CAPI -#else -#define CAPI -#endif /* __cplusplus */ - enum Bool { False = 0, @@ -31,7 +25,7 @@ typedef enum Bool Bool_t; -#define DEBUG_ON 1 +#define DEBUG_ON 1 #define NET_DEFAULT_TTL 128 /* Default TTL */ #define NET_ENCAPSULATION_MAX_DEPTH 5 /* Maximum protocol encapsulation depth */ @@ -59,6 +53,8 @@ mbedNetResult_NotEnoughMemory, mbedNetResult_TooManyInterfaces, mbedNetResult_InvalidInterface, + mbedNetResult_InterfaceAlreadyUp, + mbedNetResult_InterfaceAlreadyDown, mbedNetResult_TooManyPeriodicFunctions, mbedNetResult_TooManyDrivers, mbedNetResult_InvalidDriver,