summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorKevin Redon <kevredon@mail.tsaitgaist.info>2012-09-11 11:54:52 +0200
committerHarald Welte <laforge@gnumonks.org>2014-10-26 19:09:23 +0100
commit1707306da59a53c8ce72952fc5e41b999e36b73c (patch)
treec369fcc330137f90dac4666380c5c7f1bff48ad9 /include/osmocom
parent5985760a61591af16c2bd424881e9f15cd67e820 (diff)
sim: add comment/explaination for structure osim_apdu_cmd_hdr
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/sim/sim.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h
index 32731939..12f0074d 100644
--- a/include/osmocom/sim/sim.h
+++ b/include/osmocom/sim/sim.h
@@ -17,12 +17,13 @@ enum osim_apdu_case {
APDU_CASE_4E /* command header, command data field (extended), response data field (extended) */
};
+/* command header, as specified in ISO/IEC 7816-3:2006(E) ยง12.2 */
struct osim_apdu_cmd_hdr {
- uint8_t cla;
- uint8_t ins;
- uint8_t p1;
- uint8_t p2;
- uint8_t p3;
+ uint8_t cla; /* CLASS byte */
+ uint8_t ins; /* INSTRUCTION byte */
+ uint8_t p1; /* Parameter 1 byte */
+ uint8_t p2; /* Parameter 2 byte */
+ uint8_t p3; /* Parameter 3 byte, used for TPDU */
} __attribute__ ((packed));
#define msgb_apdu_dr(__x)