전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

UM0851 데이터시트(PDF) 72 Page - STMicroelectronics

부품명 UM0851
상세설명  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 데이터시트(HTML) 72 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 68Page - STMicroelectronics UM0851 Datasheet HTML 69Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 72 / 245 page
background image
Communication device drivers
UM0851
72/245
Doc ID 16604 Rev 2
.ioctl = spear_ioctl,
};
/* endpoint specific operations exported by usbd driver */
static struct usb_ep_ops spear_udc_ep_ops = {
.enable = spear_ep_enable,
.disable = spear_ep_disable,
.alloc_request = spear_ep_alloc_request,
.free_request = spear_ep_free_request,
.queue = spear_ep_queue,
.dequeue = spear_ep_dequeue,
.set_halt = spear_ep_set_halt,
.fifo_status = spear_ep_fifo_status,
.fifo_flush = spear_ep_fifo_flush,
};
/* routine exported by usbd driver for gadgets to register */
int usb_gadget_register_driver(struct usb_gadget_driver *driver);
/* routine exported by usbd driver for gadgets to un-register */
int usb_gadget_unregister_driver(struct usb_gadget_driver *driver);
The composite device layer registers to the gadget framework by calling the above APIs and
exposes an interface which can be used by different functions (gadgets) to represent a
composite device.
4.4.4
Composite device interface
The composite device is designed in such way that, the driver should first register to the
composite layer. During registration, it passes some of the device related details (device,
string descriptor) to the composite layer. After that, the composite device needs to add
configuration (multiple is also possible) and then individual functions can add their
interfaces.
The following figure shows a simple gadget driver ("zero gadget") available with SPEAr LSP.
This gadget driver is build over a composite layer (although it is not a composite device) and
is mainly used for testing the USB Device controller. It provides two configurations: in the
first one, a source/sink function generating/consuming USB packets, and in the second one,
loop back feature.
We refer to this example gadget driver in the explanations given throughout this part of the
document. This driver can be found in linux/drivers/usb/gadget/zero.c.
Figure 17.
Zero gadget device
Source/Sink Config
Zero gadget device
Loop back Config
Function 1
Interface 0
Interface 0
Function 1
OUT Endpoint
OUT Endpoint
IN Endpoint
IN Endpoint



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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