friendev EtherDune TCP/IP library
Macros | Functions | Variables
/home/jander/temp/etherdune/ENC28J60.cpp File Reference
#include <ACross.h>
#include "ENC28J60.h"
#include <stdarg.h>
#include "Checksum.h"
#include "NetworkService.h"
#include <ACSPI.h>
#include <ACLog.h>

Go to the source code of this file.

Macros

#define AC_LOGLEVEL   2
 

Functions

 ACROSS_MODULE ("ENC28J60")
 
void initSPI ()
 
static byte readOp (byte op, byte address)
 
static void writeOp (byte op, byte address, byte data)
 
static void SetBank (byte address)
 
static byte readRegByte (byte address)
 
static uint16_t readReg (byte address)
 
static void writeRegByte (byte address, byte data)
 
static void writeReg (byte address, uint16_t data)
 
uint16_t incRxPtr (uint16_t ptr, uint16_t len)
 
static void writePhy (byte address, uint16_t data)
 
static uint16_t readPhyByte (byte address)
 

Variables

static uint8_t selectPin
 
static byte Enc28j60Bank
 
static uint16_t nextPacketPtr
 
static uint16_t remainingPacketSize
 
static byte * chunkPtr
 

Macro Definition Documentation

#define AC_LOGLEVEL   2

Definition at line 27 of file ENC28J60.cpp.

Function Documentation

ACROSS_MODULE ( "ENC28J60"  )
uint16_t incRxPtr ( uint16_t  ptr,
uint16_t  len 
)
inline

Definition at line 189 of file ENC28J60.cpp.

void initSPI ( )

Definition at line 38 of file ENC28J60.cpp.

static byte readOp ( byte  op,
byte  address 
)
static

Definition at line 44 of file ENC28J60.cpp.

static uint16_t readPhyByte ( byte  address)
static

Definition at line 293 of file ENC28J60.cpp.

static uint16_t readReg ( byte  address)
static

Definition at line 84 of file ENC28J60.cpp.

static byte readRegByte ( byte  address)
static

Definition at line 78 of file ENC28J60.cpp.

static void SetBank ( byte  address)
static

Definition at line 69 of file ENC28J60.cpp.

static void writeOp ( byte  op,
byte  address,
byte  data 
)
static

Definition at line 62 of file ENC28J60.cpp.

static void writePhy ( byte  address,
uint16_t  data 
)
static

Definition at line 286 of file ENC28J60.cpp.

static void writeReg ( byte  address,
uint16_t  data 
)
static

Definition at line 96 of file ENC28J60.cpp.

static void writeRegByte ( byte  address,
byte  data 
)
static

Definition at line 90 of file ENC28J60.cpp.

Variable Documentation

byte* chunkPtr
static

Definition at line 36 of file ENC28J60.cpp.

byte Enc28j60Bank
static

Definition at line 32 of file ENC28J60.cpp.

uint16_t nextPacketPtr
static

Definition at line 33 of file ENC28J60.cpp.

uint16_t remainingPacketSize
static

Definition at line 35 of file ENC28J60.cpp.

uint8_t selectPin
static

Definition at line 31 of file ENC28J60.cpp.