Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
USB System Architecture (USB 2.0).pdf
Скачиваний:
173
Добавлен:
03.05.2015
Размер:
7.03 Mб
Скачать

USB System Architecture

Bus Bandwidth

Host software must also verify that the bus bandwidth required by the USB device can be satisfied. Each configuration defines the set of endpoints that must be accessible by client software. Each endpoint descriptor specifies the maximum amount of USB bandwidth it requires. If sufficient bandwidth is available for all endpoints, a communications pipe is setup by software, reserving the specified bus bandwidth for each device endpoint. After successfully allocating bandwidth to all endpoints within the device, the device can be configured.

If the bus bandwidth needed is not available, then other configurations are checked. If every configuration exceeds the bus bandwidth available, the device is not configured.

Configuration Value Is Assigned

Once a configuration is selected, host software configures the device by assigning a configuration value that corresponds to the chosen configuration. The configuration value is obtained from the selected configuration descriptor and written to the device via the “Set Configuration” request. The device can now be accessed by client software and can consume the maximum amount of current specified in its configuration.

Client Software Is Notified

When a device has successfully been configured, USB system software must locate the appropriate class driver or drivers designed to access the device. These USB class drivers must be notified that the device has been installed and must be provided information regarding the characteristics and capabilities of the device. The exact procedure that USB system software uses to identify a USB device driver and communicate with it, is operating system dependent.

346

19 USB Device

Configuration

The Previous Chapter

The previous chapter provided an overview of the configuration process. Each of the major steps involved in USB device enumeration were defined and discussed.

This Chapter

This chapter discusses configuration of USB devices that are attached to any USB port. The process is virtually the same for devices of any speed. Device descriptors and other characteristics and features that relate to configuring the device are also detailed and discussed.

The Next Chapter

Hub devices are configured like any other device attached to a USB port. Hub configuration differs in that it involves reporting whether or not other devices are attached to the downstream ports. The next chapter reviews the hub configuration process with the focus on the issues related to extending the bus through the hub’s downstream facing ports.

Overview

During system boot and initialization, all USB hubs and devices will be detected and configured. Following initialization, devices may be detached or new devices may be connected. The hub client periodically polls all USB hubs to detect device attachment or detachment. If a status change results from a new device having been attached, the configuration process is triggered.

347

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]