omap3530/beagle_drivers/wb/api/src/cyasusb.c
changeset 51 254b9435d75e
parent 23 117faf51deac
equal deleted inserted replaced
48:23f868c54bc5 51:254b9435d75e
  3030                    CyAsFunctionCallback cb,
  3030                    CyAsFunctionCallback cb,
  3031                    uint32_t client)
  3031                    uint32_t client)
  3032 {
  3032 {
  3033     CyAsReturnStatus_t ret ;
  3033     CyAsReturnStatus_t ret ;
  3034     CyAsLLRequestResponse *req_p , *reply_p ;
  3034     CyAsLLRequestResponse *req_p , *reply_p ;
  3035     uint16_t data ;
       
  3036 
       
  3037     CyAsDevice *dev_p = (CyAsDevice *)handle ;
  3035     CyAsDevice *dev_p = (CyAsDevice *)handle ;
  3038 
  3036 
  3039     (void)response ;
  3037     (void)response ;
  3040 
  3038 
  3041     if (!dev_p ||(dev_p->sig != CY_AS_DEVICE_HANDLE_SIGNATURE))
  3039     if (!dev_p ||(dev_p->sig != CY_AS_DEVICE_HANDLE_SIGNATURE))
  3051     req_p = CyAsLLCreateRequest(dev_p, request, CY_RQT_USB_RQT_CONTEXT, 1) ;
  3049     req_p = CyAsLLCreateRequest(dev_p, request, CY_RQT_USB_RQT_CONTEXT, 1) ;
  3052     if (req_p == 0)
  3050     if (req_p == 0)
  3053         return CY_AS_ERROR_OUT_OF_MEMORY ;
  3051         return CY_AS_ERROR_OUT_OF_MEMORY ;
  3054 
  3052 
  3055     /* Set the endpoint */
  3053     /* Set the endpoint */
  3056     data = (uint8_t)ep ;
       
  3057     CyAsLLRequestResponse_SetWord(req_p, 0, (uint16_t)ep) ;
  3054     CyAsLLRequestResponse_SetWord(req_p, 0, (uint16_t)ep) ;
  3058 
  3055 
  3059     /* A single status word response type */
  3056     /* A single status word response type */
  3060     reply_p = CyAsLLCreateResponse(dev_p, 1) ;
  3057     reply_p = CyAsLLCreateResponse(dev_p, 1) ;
  3061     if (reply_p == 0)
  3058     if (reply_p == 0)