CcidDriver
A driver for USB CCID (Chip Card Interface Device) smart card readers. This class handles the communication with a CCID-compliant smart card reader, allowing for sending APDUs (Application Protocol Data Units) to a smart card and receiving responses. It also provides notifications for card insertion and removal.
The driver communicates with the CCID reader over bulk and interrupt USB endpoints. It uses a listener interface to notify the application of card events.
Functions
Disconnects from the CCID reader. This method should be called when the application is finished with the device. It releases all resources and closes the connection.
Gets the current status of the card in the reader.
Sets or removes the listener for card events.
Sends a command APDU to the smart card and returns the response APDU. This is a synchronous operation and will block until the response is received.