friendev EtherDune TCP/IP library
Static Public Member Functions | Static Protected Member Functions | Friends | List of all members
ENC28J60 Class Reference

Encapsulates access to the ENC28J60 hardware. More...

#include <ENC28J60.h>

Inheritance diagram for ENC28J60:
NetworkService ARPService ICMP Socket ICMPPingAutoReply ICMPPinger TCPSocket UDPSocket HTTPClient HTTPServer TCPListener< SOCKET, MAX_CLIENTS > DHCP DNSClient

Static Public Member Functions

static bool isLinkUp ()
 Determines whether the network link is ready More...
 

Static Protected Member Functions

static void writeByte (byte b)
 
static void writeByte (uint16_t dst, byte b)
 
static void writeBuf (uint16_t dst, uint16_t len, const byte *data)
 
static void writeBuf (uint16_t len, const byte *data)
 
static uint16_t hardwareChecksum (uint16_t src, uint16_t len)
 
static uint16_t hardwareChecksumRxOffset (uint16_t offset, uint16_t len)
 
static void moveMem (uint16_t dest, uint16_t src, uint16_t len)
 
static void readBuf (uint16_t src, uint16_t len, byte *data)
 
static void readBuf (uint16_t len, byte *data)
 
static byte readByte (uint16_t src)
 
static void packetSend (uint16_t len)
 
static void packetSend (uint16_t len, const byte *data)
 
static void loadSample ()
 
static void loadAll ()
 
static void release ()
 
static uint8_t begin (uint8_t cspin)
 
static void loop ()
 
static void enableBroadcast ()
 

Friends

class SharedBuffer
 

Detailed Description

Encapsulates access to the ENC28J60 hardware.

Low-level class to access hardware functions

Definition at line 37 of file ENC28J60.h.

Member Function Documentation

uint8_t ENC28J60::begin ( uint8_t  cspin)
staticprotected

Definition at line 310 of file ENC28J60.cpp.

void ENC28J60::enableBroadcast ( )
staticprotected

Definition at line 281 of file ENC28J60.cpp.

static uint16_t ENC28J60::hardwareChecksum ( uint16_t  src,
uint16_t  len 
)
staticprotected
static uint16_t ENC28J60::hardwareChecksumRxOffset ( uint16_t  offset,
uint16_t  len 
)
staticprotected
bool ENC28J60::isLinkUp ( )
static

Determines whether the network link is ready

Returns

Definition at line 306 of file ENC28J60.cpp.

void ENC28J60::loadAll ( )
staticprotected

Definition at line 400 of file ENC28J60.cpp.

void ENC28J60::loadSample ( )
staticprotected

Definition at line 367 of file ENC28J60.cpp.

static void ENC28J60::loop ( )
staticprotected
void ENC28J60::moveMem ( uint16_t  dest,
uint16_t  src,
uint16_t  len 
)
staticprotected

Definition at line 198 of file ENC28J60.cpp.

void ENC28J60::packetSend ( uint16_t  len)
staticprotected

Definition at line 256 of file ENC28J60.cpp.

void ENC28J60::packetSend ( uint16_t  len,
const byte *  data 
)
staticprotected

Definition at line 275 of file ENC28J60.cpp.

void ENC28J60::readBuf ( uint16_t  src,
uint16_t  len,
byte *  data 
)
staticprotected

Definition at line 109 of file ENC28J60.cpp.

void ENC28J60::readBuf ( uint16_t  len,
byte *  data 
)
staticprotected

Definition at line 102 of file ENC28J60.cpp.

byte ENC28J60::readByte ( uint16_t  src)
staticprotected

Definition at line 139 of file ENC28J60.cpp.

void ENC28J60::release ( )
staticprotected

Definition at line 410 of file ENC28J60.cpp.

void ENC28J60::writeBuf ( uint16_t  dst,
uint16_t  len,
const byte *  data 
)
staticprotected

Definition at line 123 of file ENC28J60.cpp.

void ENC28J60::writeBuf ( uint16_t  len,
const byte *  data 
)
staticprotected

Definition at line 115 of file ENC28J60.cpp.

void ENC28J60::writeByte ( byte  b)
staticprotected

Definition at line 130 of file ENC28J60.cpp.

void ENC28J60::writeByte ( uint16_t  dst,
byte  b 
)
staticprotected

Definition at line 134 of file ENC28J60.cpp.

Friends And Related Function Documentation

friend class SharedBuffer
friend

Definition at line 39 of file ENC28J60.h.


The documentation for this class was generated from the following files: