CDC/ECM driver for mbed, based on USBDevice by mbed-official. Uses PicoTCP to access Ethernet USB device. License: GPLv2

Dependents:   USBEthernet_TEST

Fork of USB_Ethernet by Daniele Lacamera

Committer:
daniele
Date:
Sat Aug 03 13:16:14 2013 +0000
Revision:
2:540f6e142d59
Moved to single package

Who changed what in which revision?

UserRevisionLine numberNew contents of line
daniele 2:540f6e142d59 1 /*********************************************************************
daniele 2:540f6e142d59 2 PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved.
daniele 2:540f6e142d59 3 See LICENSE and COPYING for usage.
daniele 2:540f6e142d59 4
daniele 2:540f6e142d59 5 *********************************************************************/
daniele 2:540f6e142d59 6 #ifndef _PICO_MODULE_IPV4_H
daniele 2:540f6e142d59 7 #define _PICO_MODULE_IPV4_H
daniele 2:540f6e142d59 8
daniele 2:540f6e142d59 9 struct pico_arp_entry {
daniele 2:540f6e142d59 10 struct eth dest;
daniele 2:540f6e142d59 11 #ifdef PICO_CONFIG_IPV4
daniele 2:540f6e142d59 12 struct ipv4 addr_ipv4;
daniele 2:540f6e142d59 13 #endif
daniele 2:540f6e142d59 14 RB_ENTRY(pico_arp_entry) node;
daniele 2:540f6e142d59 15 };
daniele 2:540f6e142d59 16
daniele 2:540f6e142d59 17 /* Configured device */
daniele 2:540f6e142d59 18 struct pico_eth_link {
daniele 2:540f6e142d59 19 struct pico_device *dev;
daniele 2:540f6e142d59 20 struct eth address;
daniele 2:540f6e142d59 21 struct eth netmask;
daniele 2:540f6e142d59 22 RB_ENTRY(pico_eth_link) node;
daniele 2:540f6e142d59 23 };
daniele 2:540f6e142d59 24
daniele 2:540f6e142d59 25 #ifndef IS_MODULE_ETH
daniele 2:540f6e142d59 26 # define _mod extern
daniele 2:540f6e142d59 27 #else
daniele 2:540f6e142d59 28 # define _mod
daniele 2:540f6e142d59 29 #endif
daniele 2:540f6e142d59 30 _mod struct pico_module pico_module_eth;
daniele 2:540f6e142d59 31 #undef _mod
daniele 2:540f6e142d59 32
daniele 2:540f6e142d59 33 #endif