javascript - CCID slot status byte -


reading ccid specifications, wondering intrinsic structure of slot status (bstatus byte), set in header of response (inbound bulk transfer) message.

only first 2 , last 2 bits used bmiccstatus , bmcommandstatus, i'm not sure how.

given (javascript) binary notation 0bxx0000yy, true bmcommandstatus represented xx?

given (javascript) binary notation 0bxx0000yy:

  • xx .. bmcommandstatus (mask 0xc0)
  • yy .. bmiccstatus (mask 0x03)

reference here (i did check ccid rev 1.1, unable find bit order here -- i.e. msb first or lsb first).

you might find using wireshark extremely useful supports usb sniffing ccid support.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -