BlinkenArea - GitList
Repositories
Blog
Wiki
flaneth
Code
Commits
Branches
Tags
Search
Tree:
e8658d5
Branches
Tags
master
flaneth
firmware.dartboard
ethernet.h
initial commit after making CF identify work
Stefan Schuermans
commited
e8658d5
at 2012-04-15 19:57:57
ethernet.h
Blame
History
Raw
/* flaneth - flash and ethernet - dartboard mod * version 0.1 date 2008-11-09 * Copyright (C) 2007-2008 Stefan Schuermans <stefan@schuermans.info> * Copyleft: GNU public license V2 - http://www.gnu.org/copyleft/gpl.html * 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