Loading...
Searching...
No Matches
w5100_regs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef W5100_REGS_H
20#define W5100_REGS_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define CMD_READ (0x0f)
31#define CMD_WRITE (0xf0)
38#define REG_MODE (0x0000)
39#define REG_GAR0 (0x0001)
40#define REG_GAR1 (0x0002)
41#define REG_GAR2 (0x0003)
42#define REG_GAR3 (0x0004)
43#define REG_SUB0 (0x0005)
44#define REG_SUB1 (0x0006)
45#define REG_SUB2 (0x0007)
46#define REG_SUB3 (0x0008)
47#define REG_SHAR0 (0x0009)
48#define REG_SHAR1 (0x000a)
49#define REG_SHAR2 (0x000b)
50#define REG_SHAR3 (0x000c)
51#define REG_SHAR4 (0x000d)
52#define REG_SHAR5 (0x000e)
53#define REG_SIPR0 (0x000f)
54#define REG_SIPR1 (0x0010)
55#define REG_SIPR2 (0x0011)
56#define REG_SIPR3 (0x0012)
57#define REG_IR (0x0015)
58#define REG_IMR (0x0016)
59#define REG_RTR0 (0x0017)
60#define REG_RTR1 (0x0018)
61#define REG_RCR (0x0019)
62#define REG_RMSR (0x001a)
63#define REG_TMSR (0x001b)
64#define REG_PATR0 (0x001c)
65#define REG_PATR1 (0x001d)
66#define REG_PTIMER (0x0028)
67#define REG_PMAGIC (0x0029)
68#define REG_UIPR0 (0x002a)
69#define REG_UIPR1 (0x002b)
70#define REG_UIPR2 (0x002c)
71#define REG_UIPR3 (0x002d)
72#define REG_UPORT0 (0x00fe)
73#define REG_UPORT1 (0x002f)
82#define S0_MR (0x0400)
83#define S0_CR (0x0401)
84#define S0_IR (0x0402)
85#define S0_SR (0x0403)
86#define S0_DHAR0 (0x0406)
87#define S0_DHAR1 (0x0407)
88#define S0_DHAR2 (0x0408)
89#define S0_DHAR3 (0x0409)
90#define S0_DHAR4 (0x040a)
91#define S0_DHAR5 (0x040b)
92#define S0_DIPR0 (0x040c)
93#define S0_DIPR1 (0x040d)
94#define S0_DIPR2 (0x040e)
95#define S0_DIPR3 (0x040f)
96#define S0_DPORT0 (0x0410)
97#define S0_DPORT1 (0x0411)
98#define S0_MSSR0 (0x0412)
99#define S0_MSSR1 (0x0413)
100#define S0_PROTO (0x0414)
101#define S0_TOS (0x0415)
102#define S0_TTL (0x0416)
103#define S0_TX_FSR0 (0x0420)
104#define S0_TX_FSR1 (0x0421)
105#define S0_TX_RD0 (0x0422)
106#define S0_TX_RD1 (0x0423)
107#define S0_TX_WR0 (0x0424)
108#define S0_TX_WR1 (0x0425)
109#define S0_RX_RSR0 (0x0426)
110#define S0_RX_RSR1 (0x0427)
111#define S0_RX_RD0 (0x0428)
112#define S0_RX_RD1 (0x0429)
119#define MODE_RESET (0x80)
121#define RMSR_8KB_TO_S0 (0x03)
122#define TMSR_8KB_TO_S0 (0x03)
124#define IMR_S0_INT (0x01)
126#define MR_UDP (0x02)
127#define MR_MACRAW (0x04)
129#define CR_OPEN (0x01)
130#define CR_CLOSE (0x10)
131#define CR_SEND_MAC (0x21)
132#define CR_RECV (0x40)
134#define IR_SEND_OK (0x10)
135#define IR_RECV (0x04)
138#ifdef __cplusplus
139}
140#endif
141
142#endif /* W5100_REGS_H */