26 #if !defined(BOARD_ATTINY) 28 #define M_CREG(name) uint16_t(&m_creg->name) 29 #define M_SREG(name) uint16_t(&m_sreg->name) 35 W5100::write(uint16_t addr,
const void* buf,
size_t len,
bool progmem)
37 const uint8_t* bp = (
const uint8_t*) buf;
38 uint16_t last = addr + len;
57 uint8_t* bp = (uint8_t*) buf;
58 uint16_t last = addr + len;
78 for (uint8_t i = 0; i <
SOCK_MAX; i++) {
88 uint8_t BROADCAST[4] = { 0, 0, 0, 0 };
95 timeout =
swap(timeout * 10);
99 memcpy_P(mac,
m_mac,
sizeof(mac));
uint16_t RTR
Retry Time Register.
void addr(uint8_t ip[4], uint8_t subnet[4])
static const uint16_t SOCKET_REGISTER_BASE
static const size_t BUF_MAX
void acquire(Driver *dev)
uint8_t read(uint16_t addr)
static const uint8_t RX_MEMORY_SIZE
void write(uint16_t addr, uint8_t data)
uint8_t transfer_next(uint8_t data)
uint8_t SHAR[6]
Source Hardware Address Register.
bool begin(uint8_t ip[4]=NULL, uint8_t subnet[4]=NULL, uint16_t timeout=500)
static const uint8_t TX_MEMORY_SIZE
static const uint16_t TX_MEMORY_BASE
int bind(uint8_t ip[4], uint8_t subnet[4], uint8_t gateway[4]=NULL)
static const uint8_t SOCK_MAX
void transfer_start(uint8_t data)
static const uint16_t RX_MEMORY_BASE
OutputPin m_cs
Device chip select pin.