lynxis lazus has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/simtrace2/+/36859?usp=email )


Change subject: RFC: card emu config: add feature sim polarity
......................................................................

RFC: card emu config: add feature sim polarity

Change-Id: I36a8acb74ad7616205af68b1626b45ab79d7cb02
---
M firmware/libcommon/include/simtrace_prot.h
1 file changed, 15 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/59/36859/1

diff --git a/firmware/libcommon/include/simtrace_prot.h 
b/firmware/libcommon/include/simtrace_prot.h
index d1eb89b..209a5d1 100644
--- a/firmware/libcommon/include/simtrace_prot.h
+++ b/firmware/libcommon/include/simtrace_prot.h
@@ -260,6 +260,7 @@

 /* enable/disable the generation of DO_STATUS on IRQ endpoint */
 #define CEMU_FEAT_F_STATUS_IRQ 0x00000001
+#define CEMU_FEAT_F_POLARITY   0x00000002

 /* SIMTRACE_MSGT_BD_CEMU_CONFIG */
 struct cardemu_usb_msg_config {
@@ -267,6 +268,11 @@
        uint32_t features;
        /* the selected slot number (if an external mux is present) */
        uint8_t slot_mux_nr;
+       /* sim present. Bit 1 is valid bit. Bit 0 gpio value when sim present
+        * When sim is present, set sim_present gpio to high -> 0x03
+        * When sim is present, set sim_present gpio to low -> 0x02
+        */
+       uint8_t sim_polarity;
 } __attribute__ ((packed));

 /***********************************************************************

--
To view, visit https://gerrit.osmocom.org/c/simtrace2/+/36859?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: I36a8acb74ad7616205af68b1626b45ab79d7cb02
Gerrit-Change-Number: 36859
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lyn...@fe80.eu>
Gerrit-MessageType: newchange

Reply via email to