usbps: xusbps_ch9.c File Reference

| usbps Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
xusbps_ch9.c File Reference

## Overview

This file contains the implementation of the chapter 9 code for the example.

      MODIFICATION HISTORY:

      Ver   Who  Date     Changes

      1.00a jz  10/10/10 First release
      1.04a nm  02/05/13 Fixed CR# 696550.
                          Added template code for Vendor request.
      1.04a nm  03/04/13 Fixed CR# 704022. Implemented TEST_MODE Feature.
      1.06a kpc 11/11/13 Always use global memory for dma operations
      2.1   kpc 4/29/14  Align dma buffers to cache line boundary
      2.4    vak 4/01/19  Fixed IAR data_alignment warnings
    *

## Functions
int | XUsbPs_Ch9HandleSetupPacket (XUsbPs *InstancePtr, XUsbPs_SetupData *SetupData)
| This function handles a Setup Data packet from the host. More...

## Function Documentation

int XUsbPs_Ch9HandleSetupPacket | ( | XUsbPs * | InstancePtr,
|  | XUsbPs_SetupData * | SetupData
| ) |  |

This function handles a Setup Data packet from the host.

Parameters

  InstancePtr | is a pointer to XUsbPs instance of the controller.
  SetupData | is the structure containing the setup request.

Returns
  - XST_SUCCESS if the function is successful.
  - XST_FAILURE if an Error occurred.

Note
  None.

References XUsbPs_SetupData::bmRequestType, XUsbPs_SetupData::bRequest, XUsbPs_ClassReq(), XUSBPS_EP_DIRECTION_IN, XUSBPS_EP_DIRECTION_OUT, XUsbPs_EpStall, and XUSBPS_REQ_TYPE_MASK.