Jura-Python-BT
Code for control and payment system of Jura Coffee Machine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
MFRC522.MFRC522 Class Reference

Public Member Functions

def __init__ (self, dev='/dev/spidev0.0', spd=1000000)
 
def MFRC522_Reset (self)
 
def Write_MFRC522 (self, addr, val)
 
def Read_MFRC522 (self, addr)
 
def SetBitMask (self, reg, mask)
 
def ClearBitMask (self, reg, mask)
 
def AntennaOn (self)
 
def AntennaOff (self)
 
def MFRC522_ToCard (self, command, sendData)
 
def MFRC522_Request (self, reqMode)
 
def MFRC522_Anticoll (self)
 
def CalulateCRC (self, pIndata)
 
def MFRC522_SelectTag (self, serNum)
 
def MFRC522_Auth (self, authMode, BlockAddr, Sectorkey, serNum)
 
def MFRC522_StopCrypto1 (self)
 
def MFRC522_Read (self, blockAddr)
 
def MFRC522_Write (self, blockAddr, writeData)
 
def MFRC522_DumpClassic1K (self, key, uid)
 
def MFRC522_Init (self)
 

Static Public Attributes

int NRSTPD = 11
 
int MAX_LEN = 16
 
int PCD_IDLE = 0x00
 
int PCD_AUTHENT = 0x0E
 
int PCD_RECEIVE = 0x08
 
int PCD_TRANSMIT = 0x04
 
int PCD_TRANSCEIVE = 0x0C
 
int PCD_RESETPHASE = 0x0F
 
int PCD_CALCCRC = 0x03
 
int PICC_REQIDL = 0x26
 
int PICC_REQALL = 0x52
 
int PICC_ANTICOLL = 0x93
 
int PICC_SElECTTAG = 0x93
 
int PICC_AUTHENT1A = 0x60
 
int PICC_AUTHENT1B = 0x61
 
int PICC_READ = 0x30
 
int PICC_WRITE = 0xA0
 
int PICC_DECREMENT = 0xC0
 
int PICC_INCREMENT = 0xC1
 
int PICC_RESTORE = 0xC2
 
int PICC_TRANSFER = 0xB0
 
int PICC_HALT = 0x50
 
int MI_OK = 0
 
int MI_NOTAGERR = 1
 
int MI_ERR = 2
 
int Reserved00 = 0x00
 
int CommandReg = 0x01
 
int CommIEnReg = 0x02
 
int DivlEnReg = 0x03
 
int CommIrqReg = 0x04
 
int DivIrqReg = 0x05
 
int ErrorReg = 0x06
 
int Status1Reg = 0x07
 
int Status2Reg = 0x08
 
int FIFODataReg = 0x09
 
int FIFOLevelReg = 0x0A
 
int WaterLevelReg = 0x0B
 
int ControlReg = 0x0C
 
int BitFramingReg = 0x0D
 
int CollReg = 0x0E
 
int Reserved01 = 0x0F
 
int Reserved10 = 0x10
 
int ModeReg = 0x11
 
int TxModeReg = 0x12
 
int RxModeReg = 0x13
 
int TxControlReg = 0x14
 
int TxAutoReg = 0x15
 
int TxSelReg = 0x16
 
int RxSelReg = 0x17
 
int RxThresholdReg = 0x18
 
int DemodReg = 0x19
 
int Reserved11 = 0x1A
 
int Reserved12 = 0x1B
 
int MifareReg = 0x1C
 
int Reserved13 = 0x1D
 
int Reserved14 = 0x1E
 
int SerialSpeedReg = 0x1F
 
int Reserved20 = 0x20
 
int CRCResultRegM = 0x21
 
int CRCResultRegL = 0x22
 
int Reserved21 = 0x23
 
int ModWidthReg = 0x24
 
int Reserved22 = 0x25
 
int RFCfgReg = 0x30
 
int GsNReg = 0x27
 
int CWGsPReg = 0x28
 
int ModGsPReg = 0x29
 
int TModeReg = 0x2A
 
int TPrescalerReg = 0x2B
 
int TReloadRegH = 0x2C
 
int TReloadRegL = 0x2D
 
int TCounterValueRegH = 0x2E
 
int TCounterValueRegL = 0x2F
 
int Reserved30 = 0x30
 
int TestSel1Reg = 0x31
 
int TestSel2Reg = 0x32
 
int TestPinEnReg = 0x33
 
int TestPinValueReg = 0x34
 
int TestBusReg = 0x35
 
int AutoTestReg = 0x36
 
int VersionReg = 0x37
 
int AnalogTestReg = 0x38
 
int TestDAC1Reg = 0x39
 
int TestDAC2Reg = 0x3A
 
int TestADCReg = 0x3B
 
int Reserved31 = 0x3C
 
int Reserved32 = 0x3D
 
int Reserved33 = 0x3E
 
int Reserved34 = 0x3F
 
int spidev = 0
 
list serNum = []
 

Constructor & Destructor Documentation

◆ __init__()

def MFRC522.MFRC522.__init__ (   self,
  dev = '/dev/spidev0.0',
  spd = 1000000 
)

Member Function Documentation

◆ AntennaOff()

def MFRC522.MFRC522.AntennaOff (   self)

◆ AntennaOn()

def MFRC522.MFRC522.AntennaOn (   self)

◆ CalulateCRC()

def MFRC522.MFRC522.CalulateCRC (   self,
  pIndata 
)

◆ ClearBitMask()

def MFRC522.MFRC522.ClearBitMask (   self,
  reg,
  mask 
)

◆ MFRC522_Anticoll()

def MFRC522.MFRC522.MFRC522_Anticoll (   self)

◆ MFRC522_Auth()

def MFRC522.MFRC522.MFRC522_Auth (   self,
  authMode,
  BlockAddr,
  Sectorkey,
  serNum 
)

◆ MFRC522_DumpClassic1K()

def MFRC522.MFRC522.MFRC522_DumpClassic1K (   self,
  key,
  uid 
)

◆ MFRC522_Init()

def MFRC522.MFRC522.MFRC522_Init (   self)

◆ MFRC522_Read()

def MFRC522.MFRC522.MFRC522_Read (   self,
  blockAddr 
)

◆ MFRC522_Request()

def MFRC522.MFRC522.MFRC522_Request (   self,
  reqMode 
)

◆ MFRC522_Reset()

def MFRC522.MFRC522.MFRC522_Reset (   self)

◆ MFRC522_SelectTag()

def MFRC522.MFRC522.MFRC522_SelectTag (   self,
  serNum 
)

◆ MFRC522_StopCrypto1()

def MFRC522.MFRC522.MFRC522_StopCrypto1 (   self)

◆ MFRC522_ToCard()

def MFRC522.MFRC522.MFRC522_ToCard (   self,
  command,
  sendData 
)

◆ MFRC522_Write()

def MFRC522.MFRC522.MFRC522_Write (   self,
  blockAddr,
  writeData 
)

◆ Read_MFRC522()

def MFRC522.MFRC522.Read_MFRC522 (   self,
  addr 
)

◆ SetBitMask()

def MFRC522.MFRC522.SetBitMask (   self,
  reg,
  mask 
)

◆ Write_MFRC522()

def MFRC522.MFRC522.Write_MFRC522 (   self,
  addr,
  val 
)

Member Data Documentation

◆ AnalogTestReg

int MFRC522.MFRC522.AnalogTestReg = 0x38
static

◆ AutoTestReg

int MFRC522.MFRC522.AutoTestReg = 0x36
static

◆ BitFramingReg

int MFRC522.MFRC522.BitFramingReg = 0x0D
static

◆ CollReg

int MFRC522.MFRC522.CollReg = 0x0E
static

◆ CommandReg

int MFRC522.MFRC522.CommandReg = 0x01
static

◆ CommIEnReg

int MFRC522.MFRC522.CommIEnReg = 0x02
static

◆ CommIrqReg

int MFRC522.MFRC522.CommIrqReg = 0x04
static

◆ ControlReg

int MFRC522.MFRC522.ControlReg = 0x0C
static

◆ CRCResultRegL

int MFRC522.MFRC522.CRCResultRegL = 0x22
static

◆ CRCResultRegM

int MFRC522.MFRC522.CRCResultRegM = 0x21
static

◆ CWGsPReg

int MFRC522.MFRC522.CWGsPReg = 0x28
static

◆ DemodReg

int MFRC522.MFRC522.DemodReg = 0x19
static

◆ DivIrqReg

int MFRC522.MFRC522.DivIrqReg = 0x05
static

◆ DivlEnReg

int MFRC522.MFRC522.DivlEnReg = 0x03
static

◆ ErrorReg

int MFRC522.MFRC522.ErrorReg = 0x06
static

◆ FIFODataReg

int MFRC522.MFRC522.FIFODataReg = 0x09
static

◆ FIFOLevelReg

int MFRC522.MFRC522.FIFOLevelReg = 0x0A
static

◆ GsNReg

int MFRC522.MFRC522.GsNReg = 0x27
static

◆ MAX_LEN

int MFRC522.MFRC522.MAX_LEN = 16
static

◆ MI_ERR

int MFRC522.MFRC522.MI_ERR = 2
static

◆ MI_NOTAGERR

int MFRC522.MFRC522.MI_NOTAGERR = 1
static

◆ MI_OK

int MFRC522.MFRC522.MI_OK = 0
static

◆ MifareReg

int MFRC522.MFRC522.MifareReg = 0x1C
static

◆ ModeReg

int MFRC522.MFRC522.ModeReg = 0x11
static

◆ ModGsPReg

int MFRC522.MFRC522.ModGsPReg = 0x29
static

◆ ModWidthReg

int MFRC522.MFRC522.ModWidthReg = 0x24
static

◆ NRSTPD

int MFRC522.MFRC522.NRSTPD = 11
static

◆ PCD_AUTHENT

int MFRC522.MFRC522.PCD_AUTHENT = 0x0E
static

◆ PCD_CALCCRC

int MFRC522.MFRC522.PCD_CALCCRC = 0x03
static

◆ PCD_IDLE

int MFRC522.MFRC522.PCD_IDLE = 0x00
static

◆ PCD_RECEIVE

int MFRC522.MFRC522.PCD_RECEIVE = 0x08
static

◆ PCD_RESETPHASE

int MFRC522.MFRC522.PCD_RESETPHASE = 0x0F
static

◆ PCD_TRANSCEIVE

int MFRC522.MFRC522.PCD_TRANSCEIVE = 0x0C
static

◆ PCD_TRANSMIT

int MFRC522.MFRC522.PCD_TRANSMIT = 0x04
static

◆ PICC_ANTICOLL

int MFRC522.MFRC522.PICC_ANTICOLL = 0x93
static

◆ PICC_AUTHENT1A

int MFRC522.MFRC522.PICC_AUTHENT1A = 0x60
static

◆ PICC_AUTHENT1B

int MFRC522.MFRC522.PICC_AUTHENT1B = 0x61
static

◆ PICC_DECREMENT

int MFRC522.MFRC522.PICC_DECREMENT = 0xC0
static

◆ PICC_HALT

int MFRC522.MFRC522.PICC_HALT = 0x50
static

◆ PICC_INCREMENT

int MFRC522.MFRC522.PICC_INCREMENT = 0xC1
static

◆ PICC_READ

int MFRC522.MFRC522.PICC_READ = 0x30
static

◆ PICC_REQALL

int MFRC522.MFRC522.PICC_REQALL = 0x52
static

◆ PICC_REQIDL

int MFRC522.MFRC522.PICC_REQIDL = 0x26
static

◆ PICC_RESTORE

int MFRC522.MFRC522.PICC_RESTORE = 0xC2
static

◆ PICC_SElECTTAG

int MFRC522.MFRC522.PICC_SElECTTAG = 0x93
static

◆ PICC_TRANSFER

int MFRC522.MFRC522.PICC_TRANSFER = 0xB0
static

◆ PICC_WRITE

int MFRC522.MFRC522.PICC_WRITE = 0xA0
static

◆ Reserved00

int MFRC522.MFRC522.Reserved00 = 0x00
static

◆ Reserved01

int MFRC522.MFRC522.Reserved01 = 0x0F
static

◆ Reserved10

int MFRC522.MFRC522.Reserved10 = 0x10
static

◆ Reserved11

int MFRC522.MFRC522.Reserved11 = 0x1A
static

◆ Reserved12

int MFRC522.MFRC522.Reserved12 = 0x1B
static

◆ Reserved13

int MFRC522.MFRC522.Reserved13 = 0x1D
static

◆ Reserved14

int MFRC522.MFRC522.Reserved14 = 0x1E
static

◆ Reserved20

int MFRC522.MFRC522.Reserved20 = 0x20
static

◆ Reserved21

int MFRC522.MFRC522.Reserved21 = 0x23
static

◆ Reserved22

int MFRC522.MFRC522.Reserved22 = 0x25
static

◆ Reserved30

int MFRC522.MFRC522.Reserved30 = 0x30
static

◆ Reserved31

int MFRC522.MFRC522.Reserved31 = 0x3C
static

◆ Reserved32

int MFRC522.MFRC522.Reserved32 = 0x3D
static

◆ Reserved33

int MFRC522.MFRC522.Reserved33 = 0x3E
static

◆ Reserved34

int MFRC522.MFRC522.Reserved34 = 0x3F
static

◆ RFCfgReg

int MFRC522.MFRC522.RFCfgReg = 0x30
static

◆ RxModeReg

int MFRC522.MFRC522.RxModeReg = 0x13
static

◆ RxSelReg

int MFRC522.MFRC522.RxSelReg = 0x17
static

◆ RxThresholdReg

int MFRC522.MFRC522.RxThresholdReg = 0x18
static

◆ SerialSpeedReg

int MFRC522.MFRC522.SerialSpeedReg = 0x1F
static

◆ serNum

list MFRC522.MFRC522.serNum = []
static

◆ spidev

int MFRC522.MFRC522.spidev = 0
static

◆ Status1Reg

int MFRC522.MFRC522.Status1Reg = 0x07
static

◆ Status2Reg

int MFRC522.MFRC522.Status2Reg = 0x08
static

◆ TCounterValueRegH

int MFRC522.MFRC522.TCounterValueRegH = 0x2E
static

◆ TCounterValueRegL

int MFRC522.MFRC522.TCounterValueRegL = 0x2F
static

◆ TestADCReg

int MFRC522.MFRC522.TestADCReg = 0x3B
static

◆ TestBusReg

int MFRC522.MFRC522.TestBusReg = 0x35
static

◆ TestDAC1Reg

int MFRC522.MFRC522.TestDAC1Reg = 0x39
static

◆ TestDAC2Reg

int MFRC522.MFRC522.TestDAC2Reg = 0x3A
static

◆ TestPinEnReg

int MFRC522.MFRC522.TestPinEnReg = 0x33
static

◆ TestPinValueReg

int MFRC522.MFRC522.TestPinValueReg = 0x34
static

◆ TestSel1Reg

int MFRC522.MFRC522.TestSel1Reg = 0x31
static

◆ TestSel2Reg

int MFRC522.MFRC522.TestSel2Reg = 0x32
static

◆ TModeReg

int MFRC522.MFRC522.TModeReg = 0x2A
static

◆ TPrescalerReg

int MFRC522.MFRC522.TPrescalerReg = 0x2B
static

◆ TReloadRegH

int MFRC522.MFRC522.TReloadRegH = 0x2C
static

◆ TReloadRegL

int MFRC522.MFRC522.TReloadRegL = 0x2D
static

◆ TxAutoReg

int MFRC522.MFRC522.TxAutoReg = 0x15
static

◆ TxControlReg

int MFRC522.MFRC522.TxControlReg = 0x14
static

◆ TxModeReg

int MFRC522.MFRC522.TxModeReg = 0x12
static

◆ TxSelReg

int MFRC522.MFRC522.TxSelReg = 0x16
static

◆ VersionReg

int MFRC522.MFRC522.VersionReg = 0x37
static

◆ WaterLevelReg

int MFRC522.MFRC522.WaterLevelReg = 0x0B
static

The documentation for this class was generated from the following file: