Data Fields
tUSBDMSCDevice Struct Reference

The structure used by the application to define operating parameters for the mass storage device. More...

#include <usbdmsc.h>

Data Fields

uint16_t usVID
 
uint16_t usPID
 
uint8_t pucVendor [8]
 
uint8_t pucProduct [16]
 
uint8_t pucVersion [4]
 
uint16_t usMaxPowermA
 
uint8_t ucPwrAttributes
 
uint8_t ** ppStringDescriptors
 
uint32_t ulNumStringDescriptors
 
tMSCDMedia sMediaFunctions
 
tUSBCallback pfnEventCallback
 
tMSCInstancepsPrivateData
 

Detailed Description

The structure used by the application to define operating parameters for the mass storage device.

Field Documentation

tUSBCallback tUSBDMSCDevice::pfnEventCallback

This is the callback function for various events that occur during mass storage class operation.

uint8_t** tUSBDMSCDevice::ppStringDescriptors

A pointer to the string descriptor array for this device. This array must contain the following string descriptor pointers in this order. Language descriptor, Manufacturer name string (language 1), Product name string (language 1), Serial number string (language 1), MSC Interface description string (language 1), Configuration description string (language 1).

If supporting more than 1 language, the descriptor block (except for string descriptor 0) must be repeated for each language defined in the language descriptor.

tMSCInstance* tUSBDMSCDevice::psPrivateData

A pointer to the private instance data for this device. This memory must remain accessible for as long as the MSC device is in use and must not be modified by any code outside the MSC class driver.

uint8_t tUSBDMSCDevice::pucProduct[16]

16 byte vendor string.

uint8_t tUSBDMSCDevice::pucVendor[8]

8 byte vendor string.

uint8_t tUSBDMSCDevice::pucVersion[4]

4 byte vendor string

tMSCDMedia tUSBDMSCDevice::sMediaFunctions

This structure holds the access functions for the media used by this instance of the mass storage class device. All of the functions in this structure are required to be filled out with valid functions.

uint8_t tUSBDMSCDevice::ucPwrAttributes

Indicates whether the device is self or bus-powered and whether or not it supports remote wakeup. Valid values are USB_CONF_ATTR_SELF_PWR or USB_CONF_ATTR_BUS_PWR, optionally ORed with USB_CONF_ATTR_RWAKE.

uint32_t tUSBDMSCDevice::ulNumStringDescriptors

The number of descriptors provided in the ppStringDescriptors array. This must be 1 + ((5 + (num HID strings)) * (num languages)).

uint16_t tUSBDMSCDevice::usMaxPowermA

The maximum power consumption of the device, expressed in milliamps.

uint16_t tUSBDMSCDevice::usPID

The product ID that this device is to present in the device descriptor.

uint16_t tUSBDMSCDevice::usVID

The vendor ID that this device is to present in the device descriptor.


The documentation for this struct was generated from the following file:

Copyright 2016, Texas Instruments Incorporated