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) 74 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) 74 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 70Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 74 / 245 page
background image
Communication device drivers
UM0851
74/245
Doc ID 16604 Rev 2
ss->function.disable = sourcesink_disable;
ss->function.suspend = sourcesink_suspend;
ss->function.resume = sourcesink_resume;
status = usb_add_function(c, &ss->function);
if (status)
kfree(ss);
return status;
}
Initializing USB descriptors
There are some fields in standard USB descriptors that require inputs from the composite
layer for initialization. In almost all descriptors some of these fields are indexed to string
tables and to an interface number for the interface descriptors. For this there are some
helper routines which are described below.
static int zero_bind(struct usb_composite_dev *cdev)
{
/* get next available string index */
id = usb_string_id(cdev);
if (id < 0)
return id;
strings_dev[STRING_MANUFACTURER_IDX].id = id;
device_desc.iManufacturer = id;
...
}
static int sourcesink_bind(struct usb_configuration *c, struct usb_function *f)
{
...
/* allocate interface ID(s) */
id = usb_interface_id(c, f);
if (id < 0)
return id;
source_sink_intf.bInterfaceNumber = id;
...
}
Data and control transfer
After completing the registering process, the gadget driver can handle setup requests
through setup callbacks. In this way, you can configure other required endpoints and initiate
a transfer (of control or data) through Linux gadget framework APIs. You can obtain more
details on these APIs through references.The following table summarizes these APIs and
their purpose.
Table 22.
Linux gadget endpoint APIs
API
Description
struct usb_ep *usb_ep_autoconfig(struct
usb_gadget *, struct usb_endpoint descriptor *)
Allocates a suitable free endpoint described by
struct usb_endpoint_descriptor
int usb_ep_enable(struct usb_ep *ep, const struct
usb_endpoint_descriptor *desc)
Enables the endpoint ep, in order to be used for
data transfer. The endpoint ep is described in
struct usb_endpoint_descriptor
struct usb_request *usb_ep_alloc_request(struct
usb_ep *ep, gfp_t gfp_flags)
Allocates a request for USB transfer



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