All USB Class Driver configuration struct values are now non-const, to allow for run-time modifications if required before configuring an instance.

This commit is contained in:
Dean Camera 2012-02-19 15:24:05 +00:00
parent bbe7c77b91
commit 50ff97f378
17 changed files with 19 additions and 16 deletions

View file

@ -41,6 +41,8 @@ bool AOA_Host_ValidateAccessoryDevice(USB_ClassInfo_AOA_Host_t* const AOAInterfa
const USB_Descriptor_Device_t* const DeviceDescriptor,
bool* const NeedModeSwitch)
{
(void)AOAInterfaceInfo;
if (DeviceDescriptor->Header.Type != DTYPE_Device)
return false;

View file

@ -83,7 +83,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the AOA interface's IN data pipe. */
bool DataINPipeDoubleBank; /**< Indicates if the AOA interface's IN data pipe should use double banking. */

View file

@ -77,7 +77,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the Audio interface's IN data pipe. If this interface should not
* bind to an IN endpoint, this may be set to 0 to disable audio input streaming for

View file

@ -79,7 +79,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the CDC interface's IN data pipe. */
bool DataINPipeDoubleBank; /**< Indicates if the CDC interface's IN data pipe should use double banking. */

View file

@ -81,7 +81,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the HID interface's IN data pipe. */
bool DataINPipeDoubleBank; /**< Indicates if the HID interface's IN data pipe should use double banking. */

View file

@ -77,7 +77,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the MIDI interface's streaming IN data pipe. */
bool DataINPipeDoubleBank; /**< Indicates if the MIDI interface's IN data pipe should use double banking. */

View file

@ -81,7 +81,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the Mass Storage interface's IN data pipe. */
bool DataINPipeDoubleBank; /**< Indicates if the Mass Storage interface's IN data pipe should use double banking. */

View file

@ -77,7 +77,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the Printer interface's IN data pipe. */
bool DataINPipeDoubleBank; /**< Indicates if the Printer interface's IN data pipe should use double banking. */

View file

@ -78,7 +78,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the RNDIS interface's IN data pipe. */
bool DataINPipeDoubleBank; /**< Indicates if the RNDIS interface's IN data pipe should use double banking. */

View file

@ -81,7 +81,7 @@
*/
typedef struct
{
const struct
struct
{
uint8_t DataINPipeNumber; /**< Pipe number of the Still Image interface's IN data pipe. */
bool DataINPipeDoubleBank; /**< Indicates if the Still Image interface's IN data pipe should use double banking. */