+void explain(char *exp, size_t size, uint8_t* cmd, uint8_t cmdsize)
+{
+
+ switch(cmd[0])
+ {
+ case 0x0a: snprintf(exp,size,"WUP"); break;
+ case 0x0f: snprintf(exp,size,"SOF"); break;
+ case 0x0c: snprintf(exp,size,"Read config"); break;
+ case 0x81: snprintf(exp,size,"SELECT"); break;
+ case 0x88: snprintf(exp,size,"Read E-purse (CC)"); break;
+ case 0x05: snprintf(exp,size,"Reader challenge"); break;
+ case 0x00: snprintf(exp,size,"End"); break;
+ default: snprintf(exp,size,"?"); break;
+ }
+ return;
+}
+