Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
usb_hub.h File Reference

USB Hub Class device API header. More...

Go to the source code of this file.

Macros

#define USB_HCFS_C_HUB_LOCAL_POWER   0x00
 USB Hub Class Feature Selectors defined in spec.
 
#define USB_HCFS_C_HUB_OVER_CURRENT   0x01
 
#define USB_HCFS_PORT_CONNECTION   0x00
 
#define USB_HCFS_PORT_ENABLE   0x01
 
#define USB_HCFS_PORT_SUSPEND   0x02
 
#define USB_HCFS_PORT_OVER_CURRENT   0x03
 
#define USB_HCFS_PORT_RESET   0x04
 
#define USB_HCFS_PORT_POWER   0x08
 
#define USB_HCFS_PORT_LOW_SPEED   0x09
 
#define USB_HCFS_C_PORT_CONNECTION   0x10
 
#define USB_HCFS_C_PORT_ENABLE   0x11
 
#define USB_HCFS_C_PORT_SUSPEND   0x12
 
#define USB_HCFS_C_PORT_OVER_CURRENT   0x13
 
#define USB_HCFS_C_PORT_RESET   0x14
 
#define USB_HCFS_PORT_TEST   0x15
 
#define USB_HCFS_PORT_INDICATOR   0x16
 
#define USB_HCREQ_GET_STATUS   0x00
 USB Hub Class Request Codes defined in spec.
 
#define USB_HCREQ_CLEAR_FEATURE   0x01
 
#define USB_HCREQ_SET_FEATURE   0x03
 
#define USB_HCREQ_GET_DESCRIPTOR   0x06
 
#define USB_HCREQ_SET_DESCRIPTOR   0x07
 
#define USB_HCREQ_CLEAR_TT_BUFFER   0x08
 
#define USB_HCREQ_RESET_TT   0x09
 
#define USB_HCREQ_GET_TT_STATE   0x0A
 
#define USB_HCREQ_STOP_TT   0x0B
 

Detailed Description

USB Hub Class device API header.

Macro Definition Documentation

◆ USB_HCFS_C_HUB_LOCAL_POWER

#define USB_HCFS_C_HUB_LOCAL_POWER   0x00

USB Hub Class Feature Selectors defined in spec.

Table 11-17

◆ USB_HCFS_C_HUB_OVER_CURRENT

#define USB_HCFS_C_HUB_OVER_CURRENT   0x01

◆ USB_HCFS_C_PORT_CONNECTION

#define USB_HCFS_C_PORT_CONNECTION   0x10

◆ USB_HCFS_C_PORT_ENABLE

#define USB_HCFS_C_PORT_ENABLE   0x11

◆ USB_HCFS_C_PORT_OVER_CURRENT

#define USB_HCFS_C_PORT_OVER_CURRENT   0x13

◆ USB_HCFS_C_PORT_RESET

#define USB_HCFS_C_PORT_RESET   0x14

◆ USB_HCFS_C_PORT_SUSPEND

#define USB_HCFS_C_PORT_SUSPEND   0x12

◆ USB_HCFS_PORT_CONNECTION

#define USB_HCFS_PORT_CONNECTION   0x00

◆ USB_HCFS_PORT_ENABLE

#define USB_HCFS_PORT_ENABLE   0x01

◆ USB_HCFS_PORT_INDICATOR

#define USB_HCFS_PORT_INDICATOR   0x16

◆ USB_HCFS_PORT_LOW_SPEED

#define USB_HCFS_PORT_LOW_SPEED   0x09

◆ USB_HCFS_PORT_OVER_CURRENT

#define USB_HCFS_PORT_OVER_CURRENT   0x03

◆ USB_HCFS_PORT_POWER

#define USB_HCFS_PORT_POWER   0x08

◆ USB_HCFS_PORT_RESET

#define USB_HCFS_PORT_RESET   0x04

◆ USB_HCFS_PORT_SUSPEND

#define USB_HCFS_PORT_SUSPEND   0x02

◆ USB_HCFS_PORT_TEST

#define USB_HCFS_PORT_TEST   0x15

◆ USB_HCREQ_CLEAR_FEATURE

#define USB_HCREQ_CLEAR_FEATURE   0x01

◆ USB_HCREQ_CLEAR_TT_BUFFER

#define USB_HCREQ_CLEAR_TT_BUFFER   0x08

◆ USB_HCREQ_GET_DESCRIPTOR

#define USB_HCREQ_GET_DESCRIPTOR   0x06

◆ USB_HCREQ_GET_STATUS

#define USB_HCREQ_GET_STATUS   0x00

USB Hub Class Request Codes defined in spec.

Table 11-16

◆ USB_HCREQ_GET_TT_STATE

#define USB_HCREQ_GET_TT_STATE   0x0A

◆ USB_HCREQ_RESET_TT

#define USB_HCREQ_RESET_TT   0x09

◆ USB_HCREQ_SET_DESCRIPTOR

#define USB_HCREQ_SET_DESCRIPTOR   0x07

◆ USB_HCREQ_SET_FEATURE

#define USB_HCREQ_SET_FEATURE   0x03

◆ USB_HCREQ_STOP_TT

#define USB_HCREQ_STOP_TT   0x0B