Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
MFRC522
MFRC522
Class MFRC522
Hierarchy
MFRC522
Implements
ObnizPartsInterface
Index
Constructors
constructor
Properties
Analog
Test
Reg
Auto
Test
Reg
Bit
Framing
Reg
CRCResult
RegLSB
CRCResult
RegMSB
CWGsPReg
Coll
Reg
Com
Irq
Reg
Coml
EnReg
Command
Reg
Control
Reg
Demod
Reg
Div
Irq
Reg
Divl
EnReg
Error
Reg
FIFOData
Reg
FIFOLevel
Reg
GsNReg
Mf
RxReg
Mf
TxReg
Mod
GsPReg
Mod
Width
Reg
Mode
Reg
PCD_
CalcCRC
PCD_
Generate
RandomID
PCD_
Idle
PCD_
MFAuthent
PCD_
Mem
PCD_
NoCmd
Change
PCD_
Receive
PCD_
Soft
Reset
PCD_
Transceive
PCD_
Transmit
PICC_
AUTH_
KEYA
PICC_
AUTH_
KEYB
PICC_
CT
PICC_
DECREMENT
PICC_
HLTA
PICC_
INCREMENT
PICC_
RATS
PICC_
READ
PICC_
REQA
PICC_
RESTORE
PICC_
SEL_
CL1
PICC_
SEL_
CL2
PICC_
SEL_
CL3
PICC_
SElECTTAG
PICC_
TRANSFER
PICC_
UL_
WRITE
PICC_
WRITE
PICC_
WUPA
RFCfg
Reg
Reserved1
Ah
Reserved1
Bh
Reserved1
Eh
Rx
Gain_
18dB
Rx
Gain_
18d
B_
2
Rx
Gain_
23dB
Rx
Gain_
23d
B_
2
Rx
Gain_
33dB
Rx
Gain_
38dB
Rx
Gain_
43dB
Rx
Gain_
48dB
Rx
Gain_
avg
Rx
Gain_
max
Rx
Gain_
min
Rx
Mode
Reg
Rx
Sel
Reg
Rx
Threshold
Reg
Serial
Speed
Reg
Status1
Reg
Status2
Reg
TCounter
Val
Reg
Hi
TCounter
Val
Reg
Lo
TMode
Reg
TPrescaler
Reg
TReload
Reg
Hi
TReload
Reg
Lo
TestADCReg
Test
Bus
Reg
TestDAC1
Reg
TestDAC2
Reg
Test
Pin
EnReg
Test
Pin
Value
Reg
Test
Sel1
Reg
Test
Sel2
Reg
TxASKReg
Tx
Control
Reg
Tx
Mode
Reg
Tx
Sel
Reg
Version
Reg
Water
Level
Reg
cs
keys
obniz
params
required
Keys
rst
spi
Methods
antenna
Off
antenna
Off
Wait
antenna
On
antenna
OnWait
appendCRCto
Buffer
And
Send
ToCard
Wait
authenticate
Block
Wait
authenticate
Sector
Wait
calculateCRCWait
clear
Register
Bit
Mask
clear
Register
Bit
Mask
Wait
find
Card
Wait
get
Block
Data
Wait
get
Sector
Data
Wait
get
Uid
Wait
identify
Card
Type
Wait
identify
Software
Wait
init
init
Wait
read
Again
Wait
read
Block
Data
Wait
read
Register
read
Register
Wait
read
Register_
n
Byte
read
Register_
n
Byte
Wait
read
Sector
Data
Wait
search
Tag
Wait
set
Register
Bit
Mask
set
Register
Bit
Mask
Wait
to
Card
to
Card
Wait
wired
write
Block
Data
Wait
write
Register
info
Constructors
constructor
new MFRC522
(
)
:
MFRC522
Returns
MFRC522
Properties
Analog
Test
Reg
Analog
Test
Reg
:
any
Auto
Test
Reg
Auto
Test
Reg
:
any
Bit
Framing
Reg
Bit
Framing
Reg
:
any
CRCResult
RegLSB
CRCResult
RegLSB
:
any
CRCResult
RegMSB
CRCResult
RegMSB
:
any
CWGsPReg
CWGsPReg
:
any
Coll
Reg
Coll
Reg
:
any
Com
Irq
Reg
Com
Irq
Reg
:
any
Coml
EnReg
Coml
EnReg
:
any
Command
Reg
Command
Reg
:
any
Control
Reg
Control
Reg
:
any
Demod
Reg
Demod
Reg
:
any
Div
Irq
Reg
Div
Irq
Reg
:
any
Divl
EnReg
Divl
EnReg
:
any
Error
Reg
Error
Reg
:
any
FIFOData
Reg
FIFOData
Reg
:
any
FIFOLevel
Reg
FIFOLevel
Reg
:
any
GsNReg
GsNReg
:
any
Mf
RxReg
Mf
RxReg
:
any
Mf
TxReg
Mf
TxReg
:
any
Mod
GsPReg
Mod
GsPReg
:
any
Mod
Width
Reg
Mod
Width
Reg
:
any
Mode
Reg
Mode
Reg
:
any
PCD_
CalcCRC
PCD_
CalcCRC
:
any
PCD_
Generate
RandomID
PCD_
Generate
RandomID
:
any
PCD_
Idle
PCD_
Idle
:
any
PCD_
MFAuthent
PCD_
MFAuthent
:
any
PCD_
Mem
PCD_
Mem
:
any
PCD_
NoCmd
Change
PCD_
NoCmd
Change
:
any
PCD_
Receive
PCD_
Receive
:
any
PCD_
Soft
Reset
PCD_
Soft
Reset
:
any
PCD_
Transceive
PCD_
Transceive
:
any
PCD_
Transmit
PCD_
Transmit
:
any
PICC_
AUTH_
KEYA
PICC_
AUTH_
KEYA
:
any
PICC_
AUTH_
KEYB
PICC_
AUTH_
KEYB
:
any
PICC_
CT
PICC_
CT
:
any
PICC_
DECREMENT
PICC_
DECREMENT
:
any
PICC_
HLTA
PICC_
HLTA
:
any
PICC_
INCREMENT
PICC_
INCREMENT
:
any
PICC_
RATS
PICC_
RATS
:
any
PICC_
READ
PICC_
READ
:
any
PICC_
REQA
PICC_
REQA
:
any
PICC_
RESTORE
PICC_
RESTORE
:
any
PICC_
SEL_
CL1
PICC_
SEL_
CL1
:
any
PICC_
SEL_
CL2
PICC_
SEL_
CL2
:
any
PICC_
SEL_
CL3
PICC_
SEL_
CL3
:
any
PICC_
SElECTTAG
PICC_
SElECTTAG
:
any
PICC_
TRANSFER
PICC_
TRANSFER
:
any
PICC_
UL_
WRITE
PICC_
UL_
WRITE
:
any
PICC_
WRITE
PICC_
WRITE
:
any
PICC_
WUPA
PICC_
WUPA
:
any
RFCfg
Reg
RFCfg
Reg
:
any
Reserved1
Ah
Reserved1
Ah
:
any
Reserved1
Bh
Reserved1
Bh
:
any
Reserved1
Eh
Reserved1
Eh
:
any
Rx
Gain_
18dB
Rx
Gain_
18dB
:
any
Rx
Gain_
18d
B_
2
Rx
Gain_
18d
B_
2
:
any
Rx
Gain_
23dB
Rx
Gain_
23dB
:
any
Rx
Gain_
23d
B_
2
Rx
Gain_
23d
B_
2
:
any
Rx
Gain_
33dB
Rx
Gain_
33dB
:
any
Rx
Gain_
38dB
Rx
Gain_
38dB
:
any
Rx
Gain_
43dB
Rx
Gain_
43dB
:
any
Rx
Gain_
48dB
Rx
Gain_
48dB
:
any
Rx
Gain_
avg
Rx
Gain_
avg
:
any
Rx
Gain_
max
Rx
Gain_
max
:
any
Rx
Gain_
min
Rx
Gain_
min
:
any
Rx
Mode
Reg
Rx
Mode
Reg
:
any
Rx
Sel
Reg
Rx
Sel
Reg
:
any
Rx
Threshold
Reg
Rx
Threshold
Reg
:
any
Serial
Speed
Reg
Serial
Speed
Reg
:
any
Status1
Reg
Status1
Reg
:
any
Status2
Reg
Status2
Reg
:
any
TCounter
Val
Reg
Hi
TCounter
Val
Reg
Hi
:
any
TCounter
Val
Reg
Lo
TCounter
Val
Reg
Lo
:
any
TMode
Reg
TMode
Reg
:
any
TPrescaler
Reg
TPrescaler
Reg
:
any
TReload
Reg
Hi
TReload
Reg
Hi
:
any
TReload
Reg
Lo
TReload
Reg
Lo
:
any
TestADCReg
TestADCReg
:
any
Test
Bus
Reg
Test
Bus
Reg
:
any
TestDAC1
Reg
TestDAC1
Reg
:
any
TestDAC2
Reg
TestDAC2
Reg
:
any
Test
Pin
EnReg
Test
Pin
EnReg
:
any
Test
Pin
Value
Reg
Test
Pin
Value
Reg
:
any
Test
Sel1
Reg
Test
Sel1
Reg
:
any
Test
Sel2
Reg
Test
Sel2
Reg
:
any
TxASKReg
TxASKReg
:
any
Tx
Control
Reg
Tx
Control
Reg
:
any
Tx
Mode
Reg
Tx
Mode
Reg
:
any
Tx
Sel
Reg
Tx
Sel
Reg
:
any
Version
Reg
Version
Reg
:
any
Water
Level
Reg
Water
Level
Reg
:
any
cs
cs
:
any
keys
keys
:
string
[]
obniz
obniz
:
Obniz
params
params
:
any
required
Keys
required
Keys
:
string
[]
rst
rst
:
any
spi
spi
:
any
Methods
antenna
Off
antenna
Off
(
)
:
Promise
<
void
>
deprecated
Returns
Promise
<
void
>
antenna
Off
Wait
antenna
Off
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
antenna
On
antenna
On
(
)
:
Promise
<
void
>
deprecated
Returns
Promise
<
void
>
antenna
OnWait
antenna
OnWait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
appendCRCto
Buffer
And
Send
ToCard
Wait
appendCRCto
Buffer
And
Send
ToCard
Wait
(
buffer
:
any
)
:
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
Parameters
buffer:
any
Returns
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
authenticate
Block
Wait
authenticate
Block
Wait
(
Block
:
any
, uid
:
any
)
:
Promise
<
void
>
Parameters
Block:
any
uid:
any
Returns
Promise
<
void
>
authenticate
Sector
Wait
authenticate
Sector
Wait
(
Sector
:
any
, uid
:
any
)
:
Promise
<
void
>
Parameters
Sector:
any
uid:
any
Returns
Promise
<
void
>
calculateCRCWait
calculateCRCWait
(
data
:
any
)
:
Promise
<
number
[]
>
Parameters
data:
any
Returns
Promise
<
number
[]
>
clear
Register
Bit
Mask
clear
Register
Bit
Mask
(
reg
:
any
, mask
:
any
)
:
Promise
<
void
>
deprecated
Parameters
reg:
any
mask:
any
Returns
Promise
<
void
>
clear
Register
Bit
Mask
Wait
clear
Register
Bit
Mask
Wait
(
reg
:
any
, mask
:
any
)
:
Promise
<
void
>
Parameters
reg:
any
mask:
any
Returns
Promise
<
void
>
find
Card
Wait
find
Card
Wait
(
)
:
Promise
<
{
PICC_Type
:
string
;
uid
:
any
}
>
Returns
Promise
<
{
PICC_Type
:
string
;
uid
:
any
}
>
get
Block
Data
Wait
get
Block
Data
Wait
(
address
:
any
)
:
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
Parameters
address:
any
Returns
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
get
Sector
Data
Wait
get
Sector
Data
Wait
(
address
:
any
)
:
Promise
<
any
>
Parameters
address:
any
Returns
Promise
<
any
>
get
Uid
Wait
get
Uid
Wait
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
identify
Card
Type
Wait
identify
Card
Type
Wait
(
uid
:
any
)
:
Promise
<
any
>
Parameters
uid:
any
Returns
Promise
<
any
>
identify
Software
Wait
identify
Software
Wait
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
init
init
(
)
:
Promise
<
void
>
deprecated
Returns
Promise
<
void
>
init
Wait
init
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
read
Again
Wait
read
Again
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
read
Block
Data
Wait
read
Block
Data
Wait
(
Block
:
any
, uid
:
any
)
:
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
Parameters
Block:
any
uid:
any
Returns
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
read
Register
read
Register
(
addr
:
number
)
:
Promise
<
any
>
deprecated
Parameters
addr:
number
Returns
Promise
<
any
>
read
Register
Wait
read
Register
Wait
(
addr
:
number
)
:
Promise
<
any
>
Parameters
addr:
number
Returns
Promise
<
any
>
read
Register_
n
Byte
read
Register_
n
Byte
(
addr
:
any
, n
?:
any
)
:
Promise
<
number
[]
>
deprecated
Parameters
addr:
any
Optional
n:
any
Returns
Promise
<
number
[]
>
read
Register_
n
Byte
Wait
read
Register_
n
Byte
Wait
(
addr
:
any
, n
?:
any
)
:
Promise
<
number
[]
>
Parameters
addr:
any
Optional
n:
any
Returns
Promise
<
number
[]
>
read
Sector
Data
Wait
read
Sector
Data
Wait
(
Sector
:
any
, uid
:
any
)
:
Promise
<
any
>
Parameters
Sector:
any
uid:
any
Returns
Promise
<
any
>
search
Tag
Wait
search
Tag
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
set
Register
Bit
Mask
set
Register
Bit
Mask
(
reg
:
any
, mask
:
any
)
:
Promise
<
void
>
deprecated
Parameters
reg:
any
mask:
any
Returns
Promise
<
void
>
set
Register
Bit
Mask
Wait
set
Register
Bit
Mask
Wait
(
reg
:
any
, mask
:
any
)
:
Promise
<
void
>
Parameters
reg:
any
mask:
any
Returns
Promise
<
void
>
to
Card
to
Card
(
command
:
any
, bitsToSend
:
any
)
:
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
deprecated
Parameters
command:
any
bitsToSend:
any
Returns
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
to
Card
Wait
to
Card
Wait
(
command
:
any
, bitsToSend
:
any
)
:
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
Parameters
command:
any
bitsToSend:
any
Returns
Promise
<
{
bitSize
:
number
;
data
:
any
;
status
:
boolean
}
>
wired
wired
(
obniz
:
Obniz
)
:
void
Parameters
obniz:
Obniz
Returns
void
write
Block
Data
Wait
write
Block
Data
Wait
(
Block
:
any
, sixteenBytes
:
any
)
:
Promise
<
void
>
Parameters
Block:
any
sixteenBytes:
any
Returns
Promise
<
void
>
write
Register
write
Register
(
addr
:
number
, val
:
any
)
:
void
Parameters
addr:
number
val:
any
Returns
void
Static
info
info
(
)
:
ObnizPartsInfo
Returns
ObnizPartsInfo
Globals
MFRC522
constructor
Analog
Test
Reg
Auto
Test
Reg
Bit
Framing
Reg
CRCResult
RegLSB
CRCResult
RegMSB
CWGsPReg
Coll
Reg
Com
Irq
Reg
Coml
EnReg
Command
Reg
Control
Reg
Demod
Reg
Div
Irq
Reg
Divl
EnReg
Error
Reg
FIFOData
Reg
FIFOLevel
Reg
GsNReg
Mf
RxReg
Mf
TxReg
Mod
GsPReg
Mod
Width
Reg
Mode
Reg
PCD_
CalcCRC
PCD_
Generate
RandomID
PCD_
Idle
PCD_
MFAuthent
PCD_
Mem
PCD_
NoCmd
Change
PCD_
Receive
PCD_
Soft
Reset
PCD_
Transceive
PCD_
Transmit
PICC_
AUTH_
KEYA
PICC_
AUTH_
KEYB
PICC_
CT
PICC_
DECREMENT
PICC_
HLTA
PICC_
INCREMENT
PICC_
RATS
PICC_
READ
PICC_
REQA
PICC_
RESTORE
PICC_
SEL_
CL1
PICC_
SEL_
CL2
PICC_
SEL_
CL3
PICC_
SElECTTAG
PICC_
TRANSFER
PICC_
UL_
WRITE
PICC_
WRITE
PICC_
WUPA
RFCfg
Reg
Reserved1
Ah
Reserved1
Bh
Reserved1
Eh
Rx
Gain_
18dB
Rx
Gain_
18d
B_
2
Rx
Gain_
23dB
Rx
Gain_
23d
B_
2
Rx
Gain_
33dB
Rx
Gain_
38dB
Rx
Gain_
43dB
Rx
Gain_
48dB
Rx
Gain_
avg
Rx
Gain_
max
Rx
Gain_
min
Rx
Mode
Reg
Rx
Sel
Reg
Rx
Threshold
Reg
Serial
Speed
Reg
Status1
Reg
Status2
Reg
TCounter
Val
Reg
Hi
TCounter
Val
Reg
Lo
TMode
Reg
TPrescaler
Reg
TReload
Reg
Hi
TReload
Reg
Lo
TestADCReg
Test
Bus
Reg
TestDAC1
Reg
TestDAC2
Reg
Test
Pin
EnReg
Test
Pin
Value
Reg
Test
Sel1
Reg
Test
Sel2
Reg
TxASKReg
Tx
Control
Reg
Tx
Mode
Reg
Tx
Sel
Reg
Version
Reg
Water
Level
Reg
cs
keys
obniz
params
required
Keys
rst
spi
antenna
Off
antenna
Off
Wait
antenna
On
antenna
OnWait
appendCRCto
Buffer
And
Send
ToCard
Wait
authenticate
Block
Wait
authenticate
Sector
Wait
calculateCRCWait
clear
Register
Bit
Mask
clear
Register
Bit
Mask
Wait
find
Card
Wait
get
Block
Data
Wait
get
Sector
Data
Wait
get
Uid
Wait
identify
Card
Type
Wait
identify
Software
Wait
init
init
Wait
read
Again
Wait
read
Block
Data
Wait
read
Register
read
Register
Wait
read
Register_
n
Byte
read
Register_
n
Byte
Wait
read
Sector
Data
Wait
search
Tag
Wait
set
Register
Bit
Mask
set
Register
Bit
Mask
Wait
to
Card
to
Card
Wait
wired
write
Block
Data
Wait
write
Register
info
MFRC522
Options
ERROR
OK
Generated using
TypeDoc