Spike Prime & Robot Inventor python Library Reference
Spike Prime & Robot Inventor python Library
Public Member Functions | Public Attributes | List of all members
lib.mindsensors.EV3RFID Class Reference
Inheritance diagram for lib.mindsensors.EV3RFID:
lib.mindsensors.SPIKEi2c

Public Member Functions

def __init__ (self, port, i2c_address=0x22)
 
def clearUID (self)
 Clear UID stored in device . More...
 
def ReadBlockArray (self, BlockID)
 Read a EEPROM stored data block from RFid card and return in Array . More...
 
def ReadBlockString (self, BlockID)
 Read a EEPROM stored data block from RFid card and return in String . More...
 
def WriteBlockString (self, BlockID, dataString)
 Write a string in EEPROM data block of RFid card . More...
 
def WriteBlockArray (self, BlockID, data)
 Write a Data Array in EEPROM data block of RFid card . More...
 
def readUID (self)
 Read a UIDfrom RFid card and return. More...
 
- Public Member Functions inherited from lib.mindsensors.SPIKEi2c
def __init__ (self, port, i2c_address, bitrate=100)
 
def readByte (self, reg)
 Read the byte from reg of the i2c device. More...
 
def readArray (self, reg, len)
 read len long data array at reg of the i2c device More...
 
def writeByte (self, reg, value)
 write value at reg of the i2c device More...
 
def writeArray (self, reg, arr)
 write data array at reg of the i2c device More...
 
def readString (self, reg, length)
 Read the string of len from reg of the i2c device. More...
 
def readInteger (self, reg)
 Read the int from reg of the i2c device. More...
 
def readIntegerSigned (self, reg)
 Read the signed int from reg of the i2c device. More...
 
def readLong (self, reg)
 Read the long from reg of the i2c device. More...
 
def GetFirmwareVersion (self)
 Read the firmware version of the i2c device.
 
def GetVendorName (self)
 Read the vendor name of the i2c device.
 
def GetDeviceId (self)
 Read the i2c device id.
 

Public Attributes

 ev3rfid_address
 
 port
 
- Public Attributes inherited from lib.mindsensors.SPIKEi2c
 SCL
 
 SDA
 
 address
 
 int_clk
 

Additional Inherited Members

- Static Public Attributes inherited from lib.mindsensors.SPIKEi2c
int int_clk = -1
 

Member Function Documentation

◆ clearUID()

def lib.mindsensors.EV3RFID.clearUID (   self)

Clear UID stored in device .

◆ ReadBlockArray()

def lib.mindsensors.EV3RFID.ReadBlockArray (   self,
  BlockID 
)

Read a EEPROM stored data block from RFid card and return in Array .

Parameters
BlockIDThe block id to read.first 4 block and every 4th block can not be used

◆ ReadBlockString()

def lib.mindsensors.EV3RFID.ReadBlockString (   self,
  BlockID 
)

Read a EEPROM stored data block from RFid card and return in String .

Parameters
BlockIDThe block id to read.first 4 block and every 4th block can not be used

◆ readUID()

def lib.mindsensors.EV3RFID.readUID (   self)

Read a UIDfrom RFid card and return.

◆ WriteBlockArray()

def lib.mindsensors.EV3RFID.WriteBlockArray (   self,
  BlockID,
  data 
)

Write a Data Array in EEPROM data block of RFid card .

Parameters
BlockIDThe block id to read.first 4 block and every 4th block can not be used
dataStringThe string to store

◆ WriteBlockString()

def lib.mindsensors.EV3RFID.WriteBlockString (   self,
  BlockID,
  dataString 
)

Write a string in EEPROM data block of RFid card .

Parameters
BlockIDThe block id to read.first 4 block and every 4th block can not be used
dataStringThe string to store

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