#include <USBD_Config.h>
#include "USBLib_Trace.h"
#include "USBD.h"
#include "USBDDriver.h"
#include "USBRequests.h"
#include "cciddriver.h"
#include "cciddriverdescriptors.h"
#include "iso7816_4.h"
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | _CCIDDriverConfigurationDescriptors |
Defines | |
#define | CCIDDriverDescriptors_PRODUCTID 0x6129 |
#define | CCIDDriverDescriptors_VENDORID 0x03EB |
#define | CCIDDriverDescriptors_RELEASE 0x0100 |
#define | MIN(a, b) ((a < b) ? a : b) |
Functions | |
struct _CCIDDriverConfigurationDescriptors | __attribute__ ((packed)) |
Driver structure for an CCID device. | |
void | USBDCallbacks_RequestReceived (const USBGenericRequest *request) |
void | CCID_SmartCardRequest (void) |
void | CCIDDriver_Initialize (void) |
unsigned char | CCID_Read (void *pBuffer, unsigned int dLength, TransferCallback fCallback, void *pArgument) |
unsigned char | CCID_Write (void *pBuffer, unsigned int dLength, TransferCallback fCallback, void *pArgument) |
unsigned char | CCID_Insertion (void) |
unsigned char | CCID_Removal (void) |
unsigned char | RDRtoPCHardwareError (unsigned char bSlot, unsigned char bSeq, unsigned char bHardwareErrorCode) |
Variables | |
USBConfigurationDescriptor | configuration |
USBInterfaceDescriptor | interface |
CCIDDescriptor | ccid |
USBEndpointDescriptor | bulkOut |
USBEndpointDescriptor | bulkIn |
USBEndpointDescriptor | interruptIn |
CCIDDriver | |
const USBDDriverDescriptors | ccidDriverDescriptors |
CCID driver
Explanation on the usage of the code made available through the header file.
Definition in file cciddriver.c.
USBEndpointDescriptor bulkIn |
Bulk IN endpoint descriptor
Bulk-in endpoint descriptor.
Definition at line 132 of file cciddriver.c.
USBEndpointDescriptor bulkOut |
Bulk OUT endpoint descriptor
Bulk-out endpoint descriptor.
Definition at line 130 of file cciddriver.c.
CCIDDescriptor ccid |
CCID descriptor
Definition at line 128 of file cciddriver.c.
USBConfigurationDescriptor configuration |
Configuration descriptor
Standard configuration descriptor.
Definition at line 124 of file cciddriver.c.
USBInterfaceDescriptor interface |
Interface descriptor
Mass storage interface descriptor.
Definition at line 126 of file cciddriver.c.
USBEndpointDescriptor interruptIn |
Interrupt OUT endpoint descriptor
Definition at line 134 of file cciddriver.c.