Public Member Functions | Public Attributes | List of all members
nfc_ros.nfc_interface.NFCInterface Class Reference

Public Member Functions

def __del__ (self)
 
def __init__ (self, path='usb', targets=['106A', B, F)
 
def read_card (self, targets=None, on_startup=lambda targets:targets, on_discover=lambda target:True, on_connect=lambda tag:False, on_release=lambda tag:False)
 

Public Attributes

 clf
 
 targets
 

Detailed Description

Definition at line 4 of file nfc_interface.py.

Constructor & Destructor Documentation

◆ __init__()

def nfc_ros.nfc_interface.NFCInterface.__init__ (   self,
  path = 'usb',
  targets = ['106A',
  B,
  F 
)
Args:
  path(str):
    path to NFC device.
    please see reference of nfc.ContactlessFrontEnd.open().
    https://nfcpy.readthedocs.io/en/latest/modules/clf.html#nfc.clf.ContactlessFrontend.open

Definition at line 8 of file nfc_interface.py.

◆ __del__()

def nfc_ros.nfc_interface.NFCInterface.__del__ (   self)

Definition at line 19 of file nfc_interface.py.

Member Function Documentation

◆ read_card()

def nfc_ros.nfc_interface.NFCInterface.read_card (   self,
  targets = None,
  on_startup = lambda targets: targets,
  on_discover = lambda target: True,
  on_connect = lambda tag: False,
  on_release = lambda tag: False 
)

Definition at line 29 of file nfc_interface.py.

Member Data Documentation

◆ clf

nfc_ros.nfc_interface.NFCInterface.clf

Definition at line 17 of file nfc_interface.py.

◆ targets

nfc_ros.nfc_interface.NFCInterface.targets

Definition at line 16 of file nfc_interface.py.


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


nfc_ros
Author(s): Koki Shinjo
autogenerated on Sat Jun 24 2023 02:40:29