beautypg.com

Usb_status(), Usb_status, E 48) – Maxim Integrated 73S12xxF Software User Manual

Page 48

background image

73S12xxF Software User Guide

UG_12xxF_016

48

Rev. 1.50

unsigned char NumDataRates;

// 7.

unsigned long MaxIFSD;

// Application specific.

unsigned long SynchProtocols;

// 0x00000000.

unsigned long Mechanical;

// Application specific.

unsigned long Features;

// Application specific.

unsigned long MaxCCIDMsgLen;

// Application specific.

unsigned char ClassGetResponse;

// Application specific.

unsigned char ClassEnvelope;

// Application specific.

unsigned int

LcdLayout;

// Application specific.

unsigned char PinSupport;

// Application specific.

unsigned char MaxCCIDBusySlots;

// Application specific.

struct USB_EP_t EP[ NUMBER_OF_EPS-1 ];
#ifdef DFU
struct USB_Interface_t DFU_I; //One for DFU.
struct USB_DFUFunctional_t DFUFunctional;
#endif
};

struct USB_t
{
U08x *UsbData;
U16 UsbLen;
enum USB_RC UsbStatus;
};

USB_Status()

Purpose

Gets the status of the USB interface and its endpoints.

Synopsis

Void USB_Status (

OUT char *cUSB_CONTROL_Status,

OUT char *cUSB_INTERRUPT_Status,

OUT char *cUSB_BULK_IN_Status

OUT char *cUSB_BULK_OUT_Status );

Parameters

cUSB_CONTROL_Status: Output parameter
Current state of the Control EndPoint. Possible values are:

USB_ACTIVE

0

USB_SUSPENDED

1

USB_RESUMED 2

USB_STALLED

3

USB_RESET

4

USB_TX_PENDING

5

USB_RX_PENDING

6

cUSB_INTERRUPT_Status: Output parameter
Current state of the INTERRUPT EndPoint.

cUSB_BULK_IN_Status: Output parameter
Current state of the BULK_IN EndPoint.

cUSB_BULK_OUT_Status: Output parameter
Current state of the BULK_OUT EndPoint.

Return Codes None.

USB_ACTIVE indicates that either the Interrupt and Bulk_IN EndPoints are ready for another USB transmission
(the previous one has finished ) or that the Bulk_OUT EndPoint is ready for another USB reception.