def sense(self, targets, **kwargs):
"""Send discovery and activation requests to find a
target. Targets is a list of target specifications (TTA, TTB,
TTF). Not all readers may support all possible target
types. The return value is an activated target with a possibly
updated specification (bitrate) or None.
Additional keyword arguments are driver specific.
.. note:: This is a direct interface to the
driver and not needed if :meth:`connect` is used.
"""
if self.dev is None:
raise IOError(errno.ENODEV, os.strerror(errno.ENODEV))
with self.lock:
return self.dev.sense(targets, **kwargs)
评论列表
文章目录