dexter has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/39424?usp=email )
Change subject: pySim/transport: add abstract get_atr method to LinkBase
......................................................................
pySim/transport: add abstract get_atr method to LinkBase
The implementations that inherit from the LinkBase class are expected to
implement a get_atr method. This method is mandatory, since it is one of
the most basic functionalities of pySim to display an ATR. The ATR is
also used to distinguish between different card models.
Related: OS#6322
Change-Id: I4fc020ca45658af78e495a5c1b985213f83cbb50
---
M pySim/transport/__init__.py
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/24/39424/1
diff --git a/pySim/transport/__init__.py b/pySim/transport/__init__.py
index 8055306..5b0ee07 100644
--- a/pySim/transport/__init__.py
+++ b/pySim/transport/__init__.py
@@ -120,6 +120,11 @@
"""
@abc.abstractmethod
+ def get_atr(self) -> Hexstr:
+ """Retrieve card ATR
+ """
+
+ @abc.abstractmethod
def disconnect(self):
"""Disconnect from card
"""
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/39424?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4fc020ca45658af78e495a5c1b985213f83cbb50
Gerrit-Change-Number: 39424
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>