dev_cncl.c 1.97 KB
/*HEADER******************************************************************
**************************************************************************
*** 
*** Copyright (c) 2001-2002 ARC International.
*** All rights reserved                                          
***                                                              
*** This software embodies materials and concepts which are      
*** confidential to ARC International and is made
*** available solely pursuant to the terms of a written license   
*** agreement with ARC International             
***
*** $Workfile:devapi.c$
*** $Revision: 1.1 $
*** $Date: 2003/04/08 06:19:42 $
***
*** Comments:      
***   This file contains the USB device API.
***                                                               
**************************************************************************
*END*********************************************************************/

#include "os_bb.h"
#include "osint.h"

/*FUNCTION*----------------------------------------------------------------
* 
* Function Name  : _usb_device_cancel_transfer
* Returned Value : None
* Comments       :
*  Cancel Transfer is a non-blocking routine that causes a transfer to be 
*  terminated. The inputs to the Cancel Transfer identify a unique transfer by
*  the endpoint number in the range 0-15 and a direction, USB_RECV or USB_SEND. 
* 
*END*--------------------------------------------------------------------*/
uint_8 _usb_device_cancel_transfer
   (
      /* [IN] Handle to the USB device */
      _usb_device_handle   handle,
      
      /* [IN] Endpoint on which to cancel transfers */
      uint_8               endpoint_num,
      
      /* [IN] Direction of which to cancel transfers: Send/Receive */
      uint_8               direction
   )
{ /* Body */
   USB_DEV_STATE_STRUCT_PTR usb_dev_ptr;
   
   usb_dev_ptr = (USB_DEV_STATE_STRUCT_PTR)handle;

   _usb_dci_vusb11_cancel_transfer(handle, direction, endpoint_num);
      
   return USB_OK;
   
} /* Endbody */