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) 38 const uint8_t* bp = (
const uint8_t*) buf;
45 for (
size_t i = 0; i < len; i++, bp++)
56 uint8_t* bp = (uint8_t*) buf;
64 for (
size_t i = 0; i < len; i++, bp++)
74 for (uint8_t i = 0; i <
SOCK_MAX; i++) {
84 uint8_t BROADCAST[4] = { 0, 0, 0, 0 };
91 timeout =
swap(timeout * 10);
95 memcpy_P(mac,
m_mac,
sizeof(mac));
static const uint16_t RX_MEMORY_BASE
uint8_t transfer(uint8_t data)
void addr(uint8_t ip[4], uint8_t subnet[4])
void acquire(Driver *dev)
static const uint16_t TX_MEMORY_BASE
void addr(uint8_t ip[4], uint8_t subnet[4])
static const size_t BUF_MAX
uint8_t transfer_next(uint8_t data)
int bind(uint8_t ip[4], uint8_t subnet[4], uint8_t gateway[4]=NULL)
uint8_t SHAR[6]
Source Hardware Address Register.
static const uint8_t SOCK_MAX
uint8_t read(uint16_t addr)
void transfer_start(uint8_t data)
uint16_t RTR
Retry Time Register.
static const uint16_t SOCKET_REGISTER_BASE
bool begin(uint8_t ip[4]=NULL, uint8_t subnet[4]=NULL, uint16_t timeout=500)
void write(uint16_t addr, uint8_t data)