Belkin F8E211 Podręcznik Użytkownika Strona 1

Przeglądaj online lub pobierz Podręcznik Użytkownika dla Nie Belkin F8E211. Belkin F8E211 User`s guide Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 107
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
QNX
®
Momentics
®
DDK
Universal Serial Bus (USB) Devices
For QNX
®
Neutrino
®
6.3.0 or QNX
®
4
© 2007, QNX Software Systems GmbH & Co. KG.
Przeglądanie stron 0
1 2 3 4 5 6 ... 106 107

Podsumowanie treści

Strona 1 - Momentics

QNX®Momentics®DDKUniversal Serial Bus (USB) DevicesFor QNX®Neutrino®6.3.0 or QNX®4© 2007, QNX Software Systems GmbH & Co. KG.

Strona 2 - Publishing history

Building DDKs © 2007, QNX Software Systems GmbH & Co. KG.Please refer to the Managing Source Code chapter, and “QNX Source Package” inthe Common W

Strona 3 - Contents

usbd_urb_status() © 2007, QNX Software Systems GmbH & Co. KG.Return status information on a URBSynopsis:#include <sys/usbdi.h>int usbd_urb_s

Strona 4 - Contents September 10, 2007

© 2007, QNX Software Systems GmbH & Co. KG. usbd_urb_status()USBD_STATUS_BITSTUFFINGThe last packet from the endpoint contained a bit-stuffing viol

Strona 5 - Index 89

usbd_urb_status() © 2007, QNX Software Systems GmbH & Co. KG.Classification:QNX Neutrino, QNX 4SafetyCancellation point NoInterrupt handler NoSigna

Strona 6

Index!_USBDI_NFUNCS 29Aarguments, getting command-line 22assumptions ixBbulk data transfers 8, 70bus topology, getting information about 84Ccallbacks

Strona 7 - About the USB DDK

Index © 2007, QNX Software Systems GmbH & Co. KG.detaching from 8, 34extra memory, getting a pointer to 38features, controlling 43frame number and

Strona 8

© 2007, QNX Software Systems GmbH & Co. KG. IndexMmemorydata transfersallocating 19freeing 45getting physical address of 58management functions 15

Strona 9 - Assumptions

Index © 2007, QNX Software Systems GmbH & Co. KG.vendor-specific transfers 8, 78submitting 8, 54usb 11USBdescriptors, getting and setting 8, 32link

Strona 10 - # cd my_DDK

© 2007, QNX Software Systems GmbH & Co. KG. Indexusbd_status() 80usbd_string_descriptor_t 56usbd_string() 82USBD_TIME_DEFAULT 54USBD_TIME_INFINITY

Strona 11 - Building DDKs

© 2007, QNX Software Systems GmbH & Co. KG. Building DDKsprebuilt install srcddk_install_dirplatformsmouseprinterkeyboarddevuhardwareincludeclassD

Strona 12 - Typographical conventions

Typographical conventions © 2007, QNX Software Systems GmbH & Co. KG.In ksh and bash shells, All shell scripts are executed in a sub-shell by defa

Strona 13 - Technical support

© 2007, QNX Software Systems GmbH & Co. KG. Technical supportReference ExampleUser-interface components CancelWe use an arrow (→) in directions fo

Strona 15 - In this chapter. .

Chapter 1Before You BeginIn this chapter. . .System requirements 3USB devices supported 3Known limitations 3September 10, 2007 Chapter 1 • Before You

Strona 17 - Known limitations

© 2007, QNX Software Systems GmbH & Co. KG. Known limitationsSystem requirementsThis USB DDK is designed to work with both QNX Neutrino 6 and with

Strona 18 - Photon and text mode

Known limitations © 2007, QNX Software Systems GmbH & Co. KG.Photon and text modeIf you’re using Photon as well as text mode, you won’t be able to

Strona 19 - Overview

Chapter 2OverviewIn this chapter. . .The USB stack and library 7How a class driver works 8September 10, 2007 Chapter 2 • Overview 5

Strona 20

© 2000–2007, QNX Software Systems GmbH & Co. KG. All rights reserved.Published under license by:QNX Software Systems International Corporation175

Strona 22 - How a class driver works

© 2007, QNX Software Systems GmbH & Co. KG. The USB stack and libraryThe USB stack and libraryUSB (Universal Serial Bus) is a hardware and protoco

Strona 23 - USB Utilities

How a class dr iver works © 2007, QNX Software Systems GmbH & Co. KG.class of device, just as if they’d been started by the enumerator. When a dev

Strona 24

Chapter 3USB UtilitiesSeptember 10, 2007 Chapter 3 • USB Utilities 9

Strona 26

© 2007, QNX Software Systems GmbH & Co. KG.The USB Software Development Kit contains the following command-line utilities.For more information, se

Strona 28

Chapter 4USB Library ReferenceIn this chapter. . .Functions arranged by category 15usbd_abort_pipe() 18usbd_alloc() 19usbd_alloc_urb() 21usbd_args_loo

Strona 29 - I/O functions

© 2007, QNX Software Systems GmbH & Co. KG.usbd_string() 82usbd_topology(), usbd_topology_ext() 84usbd_urb_status() 8614 Chapter 4 • USB Library R

Strona 30 - Pipe-management functions

© 2007, QNX Software Systems GmbH & Co. KG. Functions arranged by categoryThis chapter includes descriptions of the USB functions in alphabetical

Strona 31

ContentsAbout the USB DDK viiWhat you’ll find in this guide ixAssumptions ixBuilding DDKs ixTypographical conventions xiiNote to Windows users xiiiTech

Strona 32 - Abort all requests on a pipe

Functions arranged by category © 2007, QNX Software Systems GmbH & Co. KG.usbd_setup_isochronous()Set up a URB for an isochronous transfer.usbd_se

Strona 33 - #include <sys/usbdi.h>

© 2007, QNX Software Systems GmbH & Co. KG. Functions arranged by categoryusbd_device_lookup()Map the device instance identifier to an opaque devic

Strona 34

usbd_abort_pipe() © 2007, QNX Software Systems GmbH & Co. KG.Abort all requests on a pipeSynopsis:#include <sys/usbdi.h>int usbd_abort_pipe(

Strona 35

© 2007, QNX Software Systems GmbH & Co. KG. usbd_alloc()Allocate a memory area to use for data transfersSynopsis:#include <sys/usbdi.h>void

Strona 36

usbd_alloc() © 2007, QNX Software Systems GmbH & Co. KG.See also:usbd_alloc_urb(), usbd_free(), usbd_free_urb(), usbd_mphys()20 Chapter 4 • USB Li

Strona 37

© 2007, QNX Software Systems GmbH & Co. KG. usbd_alloc_urb()Allocate a USB Request Block for subsequent URB-based operationsSynopsis:#include <

Strona 38

usbd_args_lookup() © 2007, QNX Software Systems GmbH & Co. KG.Look up a driver’s command-line argumentsSynopsis:#include <sys/usbdi.h>void u

Strona 39

© 2007, QNX Software Systems GmbH & Co. KG. usbd_attach()Attach to a USB deviceSynopsis:#include <sys/usbdi.h>int usbd_attach( struct usbd_c

Strona 40

usbd_attach() © 2007, QNX Software Systems GmbH & Co. KG.LoopingAnother way to attach is to loop and attach to all devices (in which case you buil

Strona 41

© 2007, QNX Software Systems GmbH & Co. KG. usbd_close_pipe()Close a pipe previously opened by usbd_open_pipe()Synopsis:#include <sys/usbdi.h&g

Strona 42

© 2007, QNX Software Systems GmbH & Co. KG.Miscellaneous and convenience functions 16usbd_abort_pipe() 18usbd_alloc() 19usbd_alloc_urb() 21usbd_ar

Strona 43

usbd_configuration_descriptor() © 2007, QNX Software Systems GmbH & Co. KG.Get the configuration descriptor for a specific configuration settingSynops

Strona 44 - Examples:

© 2007, QNX Software Systems GmbH & Co. KG. usbd_configuration_descriptor()SafetyCancellation point NoInterrupt handler NoSignal handler NoThread Y

Strona 45 - Caveats:

usbd_connect() © 2007, QNX Software Systems GmbH & Co. KG.Connect a client driver to the USB stackSynopsis:#include <sys/usbdi.h>int usbd_co

Strona 46

© 2007, QNX Software Systems GmbH & Co. KG. usbd_connect()ident A pointer to a usbd_device_ident_t structure that identifiesthe devices you’re inte

Strona 47

usbd_connect() © 2007, QNX Software Systems GmbH & Co. KG.ESRCH USB server not running.EACCESS Permission denied to USB server.EAGAIN Can’t create

Strona 48 - Detach from the USB device

© 2007, QNX Software Systems GmbH & Co. KG. usbd_connect()Caveats:The usbd_connect() function creates a thread on your behalf that’s used by the l

Strona 49

usbd_descriptor() © 2007, QNX Software Systems GmbH & Co. KG.Get or set USB descriptorsSynopsis:#include <sys/usbdi.h>int usbd_descriptor( s

Strona 50

© 2007, QNX Software Systems GmbH & Co. KG. usbd_descriptor()ENODEV Device was removed.EIO I/O error on USB device.Classification:QNX Neutrino, QNX

Strona 51

usbd_detach() © 2007, QNX Software Systems GmbH & Co. KG.Detach from the USB deviceSynopsis:#include <sys/usbdi.h>int usbd_detach( struct us

Strona 52

© 2007, QNX Software Systems GmbH & Co. KG. usbd_detach()See also:usbd_attach(), usbd_close_pipe(), usbd_connect(), usbd_disconnect(),usbd_open_pi

Strona 53

© 2007, QNX Software Systems GmbH & Co. KG.usbd_topology(), usbd_topology_ext() 84usbd_urb_status() 86Index 89September 10, 2007 Contents v

Strona 54

usbd_device_descriptor() © 2007, QNX Software Systems GmbH & Co. KG.Get the device descriptor for a specific deviceSynopsis:#include <sys/usbdi.

Strona 55

© 2007, QNX Software Systems GmbH & Co. KG. usbd_device_descriptor()Classification:QNX Neutrino, QNX 4SafetyCancellation point NoInterrupt handler

Strona 56

usbd_device_extra() © 2007, QNX Software Systems GmbH & Co. KG.Get a pointer to the memory allocated by the extra parameterSynopsis:#include <s

Strona 57

© 2007, QNX Software Systems GmbH & Co. KG. usbd_device_lookup()Map the device instance identifier to an opaque device handle (from usbd_attach())S

Strona 58

usbd_disconnect() © 2007, QNX Software Systems GmbH & Co. KG.Disconnect a client driver from the USB stackSynopsis:#include <sys/usbdi.h>int

Strona 59

© 2007, QNX Software Systems GmbH & Co. KG. usbd_endpoint_descriptor()Get the endpoint descriptor for a specific endpoint settingSynopsis:#include

Strona 60

usbd_endpoint_descriptor() © 2007, QNX Software Systems GmbH & Co. KG.Classification:QNX Neutrino, QNX 4SafetyCancellation point NoInterrupt handle

Strona 61 - _int32 *flen );

© 2007, QNX Software Systems GmbH & Co. KG. usbd_feature()Control a feature for a USB deviceSynopsis:#include <sys/usbdi.h>int usbd_feature(

Strona 62

usbd_feature() © 2007, QNX Software Systems GmbH & Co. KG.SafetyCancellation point YesInterrupt handler NoSignal handler NoThread YesSee also:usbd

Strona 63

© 2007, QNX Software Systems GmbH & Co. KG. usbd_free()Free the memory area allocated by usbd_alloc()Synopsis:#include <sys/usbdi.h>void usb

Strona 65

usbd_free_urb() © 2007, QNX Software Systems GmbH & Co. KG.Free the USB Request Block allocated by usbd_alloc_urb()Synopsis:#include <sys/usbdi

Strona 66

© 2007, QNX Software Systems GmbH & Co. KG. usbd_get_frame()Get the current frame number and frame length for a deviceSynopsis:int usbd_get_frame(

Strona 67

usbd_hcd_ext_info(), usbd_hcd_info() © 2007, QNX Software Systems GmbH & Co. KG.Get information on the USB host controller and DDK librarySynopsis

Strona 68

© 2007, QNX Software Systems GmbH & Co. KG. usbd_hcd_ext_info(), usbd_hcd_info()vusbd The version number of the USB DDK.controller The name of the

Strona 69

usbd_hub_descriptor() © 2007, QNX Software Systems GmbH & Co. KG.Get the hub descriptor for a specific (hub) deviceSynopsis:#include <sys/usbdi.

Strona 70 - *usbd_languages_descriptor(

© 2007, QNX Software Systems GmbH & Co. KG. usbd_hub_descriptor()See also:usbd_args_lookup(), usbd_configuration_descriptor(), usbd_device_lookup()

Strona 71

usbd_interface_descriptor() © 2007, QNX Software Systems GmbH & Co. KG.Get the interface descriptor for a specific interface settingSynopsis:#inclu

Strona 72

© 2007, QNX Software Systems GmbH & Co. KG. usbd_interface_descriptor()Returns:A pointer to usbd_interface_descriptor_t on success, or NULL on err

Strona 73

usbd_io() © 2007, QNX Software Systems GmbH & Co. KG.Submit a previously set up URB to the USB stackSynopsis:#include <sys/usbdi.h>int usbd_

Strona 74

© 2007, QNX Software Systems GmbH & Co. KG. usbd_io()Returns:EBADF Improper usbd_connect() call.EINVAL Improper usbd_connect() call.ENODEV Device

Strona 75

About the USB DDKSeptember 10, 2007 About the USB DDK vii

Strona 76

usbd_languages_descriptor() © 2007, QNX Software Systems GmbH & Co. KG.Get the table of supported LANGIDs for the given deviceSynopsis:#include &l

Strona 77

© 2007, QNX Software Systems GmbH & Co. KG. usbd_languages_descriptor()See also:usbd_args_lookup(), usbd_configuration_descriptor(), usbd_device_lo

Strona 78

usbd_mphys() © 2007, QNX Software Systems GmbH & Co. KG.Get the physical address of memory allocated by usbd_alloc()Synopsis:#include <sys/usbd

Strona 79 - Reset a USB device

© 2007, QNX Software Systems GmbH & Co. KG. usbd_open_pipe()Initialize the pipe described by the device or endpoint descriptorSynopsis:#include &l

Strona 80

usbd_open_pipe() © 2007, QNX Software Systems GmbH & Co. KG.See also:usbd_abort_pipe(), usbd_close_pipe(), usbd_pipe_endpoint(), usbd_reset_pipe()

Strona 81 - _uint8 cfg );

© 2007, QNX Software Systems GmbH & Co. KG. usbd_parse_descriptors()Parse device descriptors looking for a specific entrySynopsis:#include <sys/

Strona 82 - _uint8 alt );

usbd_parse_descriptors() © 2007, QNX Software Systems GmbH & Co. KG.(ROOT)|(DEVICE) - (HUB) - (LANGUAGE TABLE)|(CONFIG) - ... (CONFIG)|(INTERFAC

Strona 83

© 2007, QNX Software Systems GmbH & Co. KG. usbd_pipe_device()Retrieve the device associated with the pipeSynopsis:#include <sys/usbdi.h>str

Strona 84 - _uint32 len );

usbd_pipe_endpoint() © 2007, QNX Software Systems GmbH & Co. KG.Retrieve the endpoint number associated with the pipeSynopsis:#include <sys/usb

Strona 85

© 2007, QNX Software Systems GmbH & Co. KG. usbd_reset_device()Reset a USB deviceSynopsis:#include <sys/usbdi.h>int usbd_reset_device( struc

Strona 87 - EOK Success

usbd_reset_pipe() © 2007, QNX Software Systems GmbH & Co. KG.Clear a stall condition on an endpoint identified by the pipe handleSynopsis:#include

Strona 88

© 2007, QNX Software Systems GmbH & Co. KG. usbd_select_config()Select the configuration for a USB deviceSynopsis:#include <sys/usbdi.h>int us

Strona 89

usbd_select_interface() © 2007, QNX Software Systems GmbH & Co. KG.Select the interface for a USB deviceSynopsis:#include <sys/usbdi.h>int u

Strona 90

© 2007, QNX Software Systems GmbH & Co. KG. usbd_select_interface()See also:usbd_select_config()September 10, 2007 Chapter 4 • USB Library Referenc

Strona 91

usbd_setup_bulk() © 2007, QNX Software Systems GmbH & Co. KG.Set up a URB for a bulk data transferSynopsis:#include <sys/usbdi.h>int usbd_se

Strona 92

© 2007, QNX Software Systems GmbH & Co. KG. usbd_setup_bulk()SafetySignal handler NoThread YesCaveats:To ensure that the correct physical address

Strona 93

usbd_setup_control() © 2007, QNX Software Systems GmbH & Co. KG.Set up a URB for a control transferThis function isn’t currently implemented. To s

Strona 94 - Get specific device status

© 2007, QNX Software Systems GmbH & Co. KG. usbd_setup_control()addr The address for the start of the transfer. You must use the buffer allocatedb

Strona 95

usbd_setup_interrupt() © 2007, QNX Software Systems GmbH & Co. KG.Set up a URB for an interrupt transferSynopsis:#include <sys/usbdi.h>int u

Strona 96 - Get a string descriptor

© 2007, QNX Software Systems GmbH & Co. KG. usbd_setup_interrupt()SafetySignal handler NoThread YesSee also:usbd_setup_bulk(), usbd_setup_control(

Strona 97

© 2007, QNX Software Systems GmbH & Co. KG. AssumptionsWhat you’ll find in this guideThe USB Driver Development Kit will help you write drivers for

Strona 98

usbd_setup_isochronous() © 2007, QNX Software Systems GmbH & Co. KG.Set up a URB for an isochronous transferSynopsis:#include <sys/usbdi.h>i

Strona 99

© 2007, QNX Software Systems GmbH & Co. KG. usbd_setup_isochronous()SafetyCancellation point NoInterrupt handler NoSignal handler NoThread YesSee

Strona 100 - Description:

usbd_setup_vendor() © 2007, QNX Software Systems GmbH & Co. KG.Set up a URB for a vendor-specific transferSynopsis:#include <sys/usbdi.h>int

Strona 101 - Returns:

© 2007, QNX Software Systems GmbH & Co. KG. usbd_setup_vendor()Library:libusbdiDescription:This routine sets up a URB for a vendor-specific transfe

Strona 102 - Classification:

usbd_status() © 2007, QNX Software Systems GmbH & Co. KG.Get specific device statusSynopsis:#include <sys/usbdi.h>int usbd_status( struct usb

Strona 103 - _USBDI_NFUNCS 29

© 2007, QNX Software Systems GmbH & Co. KG. usbd_status()SafetyCancellation point NoInterrupt handler NoSignal handler NoThread YesSee also:usbd_d

Strona 104 - 90 Index September 10, 2007

usbd_string() © 2007, QNX Software Systems GmbH & Co. KG.Get a string descriptorSynopsis:#include <sys/usbdi.h>char *usbd_string( struct usb

Strona 105 - URB_ISOCH_ASAP 76

© 2007, QNX Software Systems GmbH & Co. KG. usbd_string()SafetySignal handler NoThread NoSee also:usbd_args_lookup(), usbd_configuration_descriptor

Strona 106 - 92 Index September 10, 2007

usbd_topology(), usbd_topology_ext() © 2007, QNX Software Systems GmbH & Co. KG.Get the USB bus physical topologySynopsis:#include <sys/usbdi.h

Strona 107 - USBD_VERSION 28

© 2007, QNX Software Systems GmbH & Co. KG. usbd_topology(), usbd_topology_ext()The structure contains an array of usb_port_attachment_t structure

Komentarze do niniejszej Instrukcji

Brak uwag