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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pico_eth.h Source File

pico_eth.h

00001 /*********************************************************************
00002 PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved.
00003 See LICENSE and COPYING for usage.
00004 
00005 *********************************************************************/
00006 #ifndef _INCLUDE_PICO_ETH
00007 #define _INCLUDE_PICO_ETH
00008 #include "pico_addressing.h"
00009 #include "pico_ipv4.h"
00010 #include "pico_ipv6.h"
00011 
00012 
00013 struct __attribute__((packed)) pico_eth_hdr {
00014   uint8_t   daddr[6];
00015   uint8_t   saddr[6];
00016   uint16_t  proto;
00017 };
00018 
00019 #define PICO_SIZE_ETHHDR 14
00020 
00021 #endif