亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usbseth-init.html

?? ecos 文檔
?? HTML
字號:
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- This material may be distributed only subject to the terms      -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- or later (the latest version is presently available at          -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- permission is obtained from the copyright holder.               -->
<HTML
><HEAD
><TITLE
>Initializing the USB-ethernet Package</TITLE
><meta name="MSSmartTagsPreventParsing" content="TRUE">
<META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="eCos Reference Manual"
HREF="ecos-ref.html"><LINK
REL="UP"
TITLE="eCos Support for Developing USB-ethernet Peripherals"
HREF="io-usb-slave-eth.html"><LINK
REL="PREVIOUS"
TITLE="Introduction"
HREF="usbseth-intro.html"><LINK
REL="NEXT"
TITLE="USB-ethernet Data Transfers"
HREF="usbseth-data.html"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>eCos Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="usbseth-intro.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="usbseth-data.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="USBSETH-INIT">Initializing the USB-ethernet Package</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN17406"
></A
><H2
>Name</H2
><TT
CLASS="FUNCTION"
>usbs_eth_init</TT
>&nbsp;--&nbsp;Initializing the USB-ethernet Package</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN17410"><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN17411"><P
></P
><TABLE
BORDER="5"
BGCOLOR="#E0E0F0"
WIDTH="70%"
><TR
><TD
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;cyg/io/usb/usbs_eth.h&gt;</PRE
></TD
></TR
></TABLE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void usbs_eth_init</CODE
>(usbs_eth* usbeth, usbs_control_endpoint* ep0, usbs_rx_endpoint* ep1, usbs_tx_endpoint* ep2, unsigned char* mac_address);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN17426"
></A
><H2
>Description</H2
><P
>The USB-ethernet package is not tied to any specific hardware. It
requires certain functionality: there must be USB-slave hardware
supported by a device driver; there must also be two endpoints for
bulk transfers between host and peripheral, one for each direction;
there must also be a control endpoint, although of course that is
implicit with any USB hardware.</P
><P
>However, USB-slave hardware may well provide more endpoints than the
minimum required for ethernet support. Some of those endpoints might
be used by other packages, while other endpoints might be used
directly by the application, or might not be needed for the peripheral
being built. There is also the possibility of a USB peripheral that
supports multiple configurations, with the ethernet support active in
only some of those configurations. The USB-ethernet package has no
knowledge about any of this, so it relies on higher-level code to tell
it which endpoints should be used and other information. This is the
purpose of the <TT
CLASS="FUNCTION"
>usbs_eth_init</TT
> function.</P
><P
>The first argument identifies the specific
<SPAN
CLASS="STRUCTNAME"
>usbs_eth</SPAN
> data structure that is affected. It
is expected that the vast majority of affected applications will only
provide a single USB-ethernet device to a single host, and the package
automatically provides a suitable data structure
<TT
CLASS="LITERAL"
>usbs_eth0</TT
> to support this. If multiple
<SPAN
CLASS="STRUCTNAME"
>usbs_eth</SPAN
> structures are needed for some
reason then these need to be instantiated by other code, and each one
needs to be initialised by a call to
<TT
CLASS="FUNCTION"
>usbs_eth_init()</TT
>. </P
><P
>The next three arguments identify the endpoints that should be used
for USB communications: a control endpoint, a receive endpoint for
ethernet packets coming from the host to the peripheral, and a
transmit endpoint for ethernet packets going in the other direction.
Obviously all three endpoints should be provided by the same USB
hardware. The USB-ethernet package assumes that it has sole access to
the receive and transmit endpoints, subject to the use of
<TT
CLASS="FUNCTION"
>usbs_eth_disable</TT
> and
<TT
CLASS="FUNCTION"
>usbs_eth_enable</TT
> control functions. The package
also assumes that no other code is interested in USB state changes or
class control messages: it installs handlers
<A
HREF="usbseth-control.html"
><TT
CLASS="FUNCTION"
>usbs_eth_state_change_handler</TT
></A
>
and
<A
HREF="usbseth-control.html"
><TT
CLASS="FUNCTION"
>usbs_eth_class_control_handler</TT
></A
>
in the control endpoint. If any other code does need to handle USB
state changes or class control messages then replacement handlers
should be installed after the call to
<TT
CLASS="FUNCTION"
>usbs_eth_init</TT
>, and those replacements should
invoke the USB-ethernet ones when appropriate.</P
><P
>The final argument to <TT
CLASS="FUNCTION"
>usbs_eth_init</TT
> specifies 
the MAC address (or Ethernet Station Address) that should be provided
to the host-side device driver. Since the USB-ethernet package does not
interact directly with a real ethernet device it cannot obtain the MAC
address from any hardware. Instead, it must be supplied by higher-level
code. The details depend on the <A
HREF="usbseth-intro.html#AEN17381"
>scenario</A
> in which the
USB-ethernet package is being used.</P
><P
>The call to <TT
CLASS="FUNCTION"
>usbs_eth_init</TT
> should normally happen
after the enumeration data has been provided but before the underlying
USB device driver has been started. If the USB device were to be
started first then a connection between host and peripheral could be
established immediately, and the host-side device driver would attempt
to contact the USB-ethernet package for information such as the MAC
address. </P
><TABLE
BORDER="5"
BGCOLOR="#E0E0F0"
WIDTH="70%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>int
main(int argc, char** argv)
{
    unsigned char host_MAC[6] = { 0x40, 0x5d, 0x90, 0xa9, 0xbc, 0x02 };

    usbs_sa11x0_ep0.enumeration_data    = &amp;usb_enum_data;
    &#8230;
    usbs_eth_init(&amp;usbs_eth0, &amp;usbs_sa11x0_ep0, &amp;usbs_sa11x0_ep1, &amp;usbs_sa11x0_ep2, host_MAC);
    &#8230;
    usbs_start(&amp;usbs_sa11x0_ep0);
    &#8230;
}</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="usbseth-intro.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ecos-ref.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="usbseth-data.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Introduction</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="io-usb-slave-eth.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>USB-ethernet Data Transfers</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频一区视频二区中文字幕| 色婷婷亚洲一区二区三区| 天天色天天操综合| 一区二区在线电影| 国产精品麻豆久久久| 日韩一区二区三区观看| 在线欧美日韩国产| 91久久免费观看| 91美女福利视频| 欧美系列在线观看| 欧洲国内综合视频| 色欧美日韩亚洲| 色婷婷激情综合| 欧美日韩中文字幕一区| 欧美亚洲愉拍一区二区| 欧美亚洲图片小说| 欧美自拍偷拍午夜视频| 欧美伦理视频网站| 欧美妇女性影城| 91精品国产91热久久久做人人 | 奇米色777欧美一区二区| 亚洲香蕉伊在人在线观| 伊人婷婷欧美激情| 日韩av中文字幕一区二区| 日本亚洲三级在线| 青椒成人免费视频| 一区二区三区免费| 亚洲人成人一区二区在线观看| 国产精品不卡在线| 国产精品久久久久久久久果冻传媒 | 成人丝袜视频网| 精品制服美女久久| 国产精品一区一区三区| 色综合视频在线观看| 国产风韵犹存在线视精品| 最好看的中文字幕久久| 91亚洲男人天堂| 99re在线精品| 欧美视频中文一区二区三区在线观看| 91高清视频免费看| 欧美日韩不卡一区二区| 日韩欧美国产精品一区| 国产亚洲精品bt天堂精选| 亚洲欧美激情在线| 日韩在线观看一区二区| 美女脱光内衣内裤视频久久网站 | 日本一区二区综合亚洲| 亚洲精品乱码久久久久久久久| 亚洲成人av一区二区三区| 精品一区二区在线观看| 成人av集中营| 欧美日韩国产首页| 久久―日本道色综合久久| 日韩毛片高清在线播放| 国产曰批免费观看久久久| 久久综合综合久久综合| 91麻豆精品国产| 91精品国产色综合久久ai换脸| 欧美美女bb生活片| 欧美精品一区二区三区在线| 亚洲欧洲韩国日本视频| 日韩主播视频在线| 99re66热这里只有精品3直播| 欧美日韩另类国产亚洲欧美一级| 2023国产精品视频| 亚洲人成7777| 国产一区二区伦理片| 色婷婷一区二区| 久久这里只有精品6| 一区二区三区在线观看动漫| 看片的网站亚洲| 欧美综合天天夜夜久久| 日本一区二区三区在线不卡| 亚洲一区在线看| 久久激情五月激情| 欧美日韩国产乱码电影| 国产精品亲子乱子伦xxxx裸| 日韩在线一区二区| 91性感美女视频| 亚洲国产高清aⅴ视频| 日本午夜精品视频在线观看| 97超碰欧美中文字幕| 欧美va亚洲va| 蜜臀av国产精品久久久久| 色狠狠色噜噜噜综合网| 久久久精品tv| 日本不卡一二三区黄网| 欧美三级中文字| 日韩美女视频19| 国产成人超碰人人澡人人澡| 91精品国产高清一区二区三区 | 一区二区三区欧美久久| www.久久精品| 国产欧美日韩亚州综合| 蜜桃av噜噜一区二区三区小说| 色综合 综合色| 亚洲婷婷在线视频| 国产.欧美.日韩| 精品人伦一区二区色婷婷| 香蕉乱码成人久久天堂爱免费| 成人一区二区三区在线观看| 精品国产乱码久久久久久浪潮| 天天色图综合网| 欧美影院精品一区| 亚洲精品国产一区二区精华液| 91社区在线播放| 日韩精品中文字幕一区| 日韩av电影免费观看高清完整版 | 亚洲综合丁香婷婷六月香| 99精品国产视频| 亚洲日本在线看| 色8久久精品久久久久久蜜| 亚洲人成小说网站色在线| 在线亚洲+欧美+日本专区| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲麻豆国产自偷在线| 色婷婷综合久久久久中文 | 色综合天天做天天爱| 亚洲免费电影在线| 欧美在线|欧美| 日韩中文字幕区一区有砖一区| 欧美一区二区大片| 久久99精品久久久久久动态图 | 日本不卡一二三区黄网| 天天综合天天做天天综合| 欧洲一区二区av| 亚洲男帅同性gay1069| 欧美三日本三级三级在线播放| 亚洲成av人片www| 精品国内二区三区| 成人黄动漫网站免费app| 夜夜爽夜夜爽精品视频| 91精品视频网| 国产成人免费av在线| 一区二区三区资源| 日韩欧美第一区| 大尺度一区二区| 午夜私人影院久久久久| 日韩久久久精品| 99r精品视频| 老司机午夜精品| 自拍偷拍国产亚洲| 欧美一区二区三区思思人| 成人国产电影网| 亚洲成av人**亚洲成av**| 久久青草国产手机看片福利盒子| 97久久超碰精品国产| 蜜乳av一区二区| 最近日韩中文字幕| 欧美岛国在线观看| 色综合一个色综合| 狠狠色丁香久久婷婷综合_中| 亚洲欧洲韩国日本视频| 日韩一区二区三区免费看| 成人激情动漫在线观看| 五月婷婷另类国产| 国产精品电影一区二区| 欧美一区二区三区免费观看视频| 成人黄色av电影| 久久国产精品99精品国产| 亚洲精品中文字幕乱码三区| 久久伊99综合婷婷久久伊| 91黄视频在线观看| 国产·精品毛片| 日本视频一区二区三区| 亚洲欧美一区二区三区久本道91 | 婷婷成人综合网| 最好看的中文字幕久久| 久久夜色精品国产噜噜av| 久久久久久久久蜜桃| 欧美午夜精品一区| 99久久婷婷国产综合精品电影| 老色鬼精品视频在线观看播放| 亚洲精品免费在线| 国产精品欧美精品| 精品国产伦一区二区三区免费| 欧美日韩精品久久久| 色综合天天性综合| 国产白丝网站精品污在线入口| 日韩成人午夜精品| 亚洲国产综合在线| 最新热久久免费视频| 中文字幕va一区二区三区| 欧美r级电影在线观看| 欧美美女视频在线观看| 色婷婷久久综合| 99re这里都是精品| 丁香桃色午夜亚洲一区二区三区| 裸体在线国模精品偷拍| 午夜精品久久久久久久99水蜜桃| 一区二区三区在线播放| 亚洲欧洲日韩av| 国产清纯在线一区二区www| 久久丝袜美腿综合| 26uuu国产日韩综合| 2014亚洲片线观看视频免费| 欧美大片拔萝卜| 精品免费视频.| 精品动漫一区二区三区在线观看| 91精品黄色片免费大全|