+int CmdIso11784demodBI(const char *Cmd){
+ //ASK/Biphase demod,
+ uint8_t BitStream[MAX_GRAPH_TRACE_LEN]={0};
+ size_t size = getFromGraphBuf(BitStream);
+ if (size==0) return 0;
+
+ //get binary from Biphase wave
+ int idx = ISO11784demodBI(BitStream, &size);
+ setDemodBuf(BitStream,128,idx);
+
+ size = removeParity(BitStream, idx+8, 4, 1, 88);
+ // if (size != 66){
+ // if (g_debugMode==1) PrintAndLog("DEBUG: Error - at parity check-tag size does not match AWID format");
+ // return 0;
+ // }
+ return 1;
+}
+
+