-
Notifications
You must be signed in to change notification settings - Fork 32
CT API
The sc-hsm-embedded library supports a CardTerminal Application Programming Interface CT-API layer as specified by [CT-API].
To perform basic card terminal operations the CT-BCS basic command set interface (see [CT-BCS]) has been implemented. This interface exposes the following functions which are available through the CT-API layer:
- Request ICC
- Reset Card
- Get Status
- Eject ICC
The CT-API layer utilizes libusb to issue commands to the CCID interface of the connected reader.
If more than one card reader is connected, the requested card reader is identified by the port number argument of the CT_init() call. The first reader is identified by the value of zero. The sequence of the card readers is determined by the order in which they are connected to the USB bus of the host.
The up-to-date API documentation for the CT-API layer generated by Doxygen can be found here.