công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

UM0851 bảng dữ liệu(PDF) 75 Page - STMicroelectronics

tên linh kiện UM0851
Giải thích chi tiết về linh kiện  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 bảng dữ liệu(HTML) 75 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 71Page - STMicroelectronics UM0851 Datasheet HTML 72Page - STMicroelectronics UM0851 Datasheet HTML 73Page - STMicroelectronics UM0851 Datasheet HTML 74Page - STMicroelectronics UM0851 Datasheet HTML 75Page - STMicroelectronics UM0851 Datasheet HTML 76Page - STMicroelectronics UM0851 Datasheet HTML 77Page - STMicroelectronics UM0851 Datasheet HTML 78Page - STMicroelectronics UM0851 Datasheet HTML 79Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 75 / 245 page
background image
UM0851
Communication device drivers
Doc ID 16604 Rev 2
75/245
USBD control
You can use the following APIs to configure and program the USB Device.
USBD driver usage
As explained above, there can be various user defined functions over the Linux gadget
framework. Each of the functions (gadgets) exposes its own interface. For example, the USB
Ethernet function exposes a netdev interface, the USB serial gadget exposes a tty interface
and so on. This makes the usage of the USB gadgets very easy. You can use standard tools
for standard interfaces provided by these gadgets. You can find such example usage in:
●
linux/Documentation/gadget_printer.txt for usb printer device
●
linux/Documentation/gadget_serial.txt for usb serial device
SPEAr LSP provides a test gadget driver, "zero gadget", to test the USB Device controller.
This gadget does not have any user interface. It just provides two configurations, "source &
sink" and "loop back" to support several test cases which can be executed from the USB
Host side.
On USB Host corresponding to the zero gadget we have a "usbtest" driver which supports
several test cases to validate USB through ioctls. A standard application "testusb" is
void usb_ep_free_request(struct usb_ep *ep,
struct usb_request *req)
Frees the allocated request
int usb_ep_disable(struct usb_ep *ep)
Disables the endpoint ep, so that it is not usable
int usb_ep_queue(struct usb_ep *ep,
struct usb_request *req, gfp_t gfp_flags)
Submist a transfer request on this endpoint (ep)
int usb_ep_set_halt(struct usb_ep *ep)
Halts a particular endpoint (ep)
Table 23.
USB device control APIs
API
Description
int usb_gadget_frame_number(struct
usb_gadget *gadget)
Returns the current Start of Frame number
int usb_gadget_wakeup(struct usb_gadget
*gadget)
Enables the remote wakeup feature of USB
Device
int usb_gadget_set_selfpowered(struct
usb_gadget *gadget)
USB Device is self powered
int usb_gadget_clear_selfpowered(struct
usb_gadget *gadget)
USB Device is not self powered but bus powered
int usb_gadget_ioctl(struct usb_gadget *,
unsigned code, unsigned long param)
Configures USB device on configuration change.
This API is SPEAr-specific and is mandatory to
call on SET CONFIGURATION as it programs the
controller accordingly. param points to the
function descriptors.
Please refer hardware User Manual, USB_CSR
(of USBD) register for details.
Table 22.
Linux gadget endpoint APIs (continued)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com