BlinkenArea - GitList
Repositories
Blog
Wiki
bluebox
Code
Commits
Branches
Tags
Search
Tree:
fd252ce
Branches
Tags
master
bluebox
BlueDataDistributor
firmware
ethernet.h
initial commit of files from bluebox project
Stefan Schuermans
commited
fd252ce
at 2015-12-19 20:16:38
ethernet.h
Blame
History
Raw
/* BlueDataDistributor - data distribution module from ethernet to 32 serial ports * version 0.1.1 date 2006-10-07 * Copyright (C) 2006 Stefan Schuermans <stefan@blinkenarea.org> * a BlinkenArea project - http://www.blinkenarea.org/ */ #ifndef INC_ethernet #define INC_ethernet // header of an ethernet packet struct EthernetHeader { unsigned char Dest[6]; unsigned char Src[6]; unsigned short Type; }; // an ethernet packet struct EthernetPacket { struct EthernetHeader EthHdr; }; // process a received ethernet packet extern void EthernetRecv( unsigned char * pData, unsigned short Length ); // send an ethernet packet // pData must point to a struct EthernetPacket with EthHdr.Dest and EthHdr.Type already initialized extern void EthernetSend( unsigned char * pData, unsigned short Length ); #endif // #ifdef INC_ethernet