SAMV71 Xplained Ultra Software Package 1.5

cciddriver.c File Reference

#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

Detailed Description

Purpose

CCID driver

Usage

Explanation on the usage of the code made available through the header file.

Definition in file cciddriver.c.


Variable Documentation

USBEndpointDescriptor bulkIn

Bulk IN endpoint descriptor

Bulk-in endpoint descriptor.

Definition at line 131 of file cciddriver.c.

USBEndpointDescriptor bulkOut

Bulk OUT endpoint descriptor

Bulk-out endpoint descriptor.

Definition at line 129 of file cciddriver.c.

CCIDDescriptor ccid

CCID descriptor

Definition at line 127 of file cciddriver.c.

USBConfigurationDescriptor configuration

Configuration descriptor

Standard configuration descriptor.

Definition at line 123 of file cciddriver.c.

USBInterfaceDescriptor interface

Interface descriptor

Mass storage interface descriptor.

Definition at line 125 of file cciddriver.c.

USBEndpointDescriptor interruptIn

Interrupt OUT endpoint descriptor

Definition at line 133 of file cciddriver.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines