-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfrc522_reg.h
76 lines (71 loc) · 1.92 KB
/
mfrc522_reg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef _MFRC522_REG_H
#define _MFRC522_REG_H
//Page 0 ==> Command and Status
#define Page0_Reserved_1 0x00
#define CommandReg 0x01
#define ComIEnReg 0x02
#define DivIEnReg 0x03
#define ComIrqReg 0x04
#define DivIrqReg 0x05
#define ErrorReg 0x06
#define Status1Reg 0x07
#define Status2Reg 0x08
#define FIFODataReg 0x09
#define FIFOLevelReg 0x0A
#define WaterLevelReg 0x0B
#define ControlReg 0x0C
#define BitFramingReg 0x0D
#define CollReg 0x0E
#define Page0_Reserved_2 0x0F
//Page 1 ==> Command
#define Page1_Reserved_1 0x10
#define ModeReg 0x11
#define TxModeReg 0x12
#define RxModeReg 0x13
#define TxControlReg 0x14
#define TxASKReg 0x15
#define TxSelReg 0x16
#define RxSelReg 0x17
#define RxThresholdReg 0x18
#define DemodReg 0x19
#define Page1_Reserved_2 0x1A
#define Page1_Reserved_3 0x1B
#define MfTxReg 0x1C
#define MfRxReg 0x1D
#define Page1_Reserved_4 0x1E
#define SerialSpeedReg 0x1F
//Page 2 ==> CFG
#define Page2_Reserved_1 0x20
#define CRCResultReg_1 0x21
#define CRCResultReg_2 0x22
#define Page2_Reserved_2 0x23
#define ModWidthReg 0x24
#define Page2_Reserved_3 0x25
#define RFCfgReg 0x26
#define GsNReg 0x27
#define CWGsPReg 0x28
#define ModGsPReg 0x29
#define TModeReg 0x2A
#define TPrescalerReg 0x2B
#define TReloadReg_1 0x2C
#define TReloadReg_2 0x2D
#define TCounterValReg_1 0x2E
#define TCounterValReg_2 0x2F
//Page 3 ==> TestRegister
#define Page3_Reserved_1 0x30
#define TestSel1Reg 0x31
#define TestSel2Reg 0x32
#define TestPinEnReg 0x33
#define TestPinValueReg 0x34
#define TestBusReg 0x35
#define AutoTestReg 0x36
#define VersionReg 0x37
#define AnalogTestReg 0x38
#define TestDAC1Reg 0x39
#define TestDAC2Reg 0x3A
#define TestADCReg 0x3B
#define Page3_Reserved_2 0x3C
#define Page3_Reserved_3 0x3D
#define Page3_Reserved_4 0x3E
#define Page3_Reserved_5 0x3F
#endif