Beispiel #1
0
static uint16_t w5100_read(uint16_t _addr, uint8_t *_buf, uint16_t _len)
{
  for (int i=0; i<_len; i++) {
    _buf[i] = w5100_get( _addr );
    _addr++;
  }
  return _len;
}
Beispiel #2
0
static inline uint8_t w5100_sock_get(uint8_t _sock, uint16_t _reg)
{
  return w5100_get(CH_BASE + _sock * CH_SIZE + _reg);
}