usb_h_rh_check_status

Root hub or port feature status check.

static bool usb_h_rh_check_status(
    struct usb_h_desc * drv,
    uint8_t port,
    uint8_t ftr
)

Check USB Spec. for hub status and feature selectors.

Parameters

drv

Type: struct usb_h_desc *

Pointer to the USB HCD driver

port

Type: uint8_t

Set to 0 to get hub status, otherwise to get port status

ftr

Type: uint8_t

Feature selector (0: connection, 2: suspend, 4: reset, 9: LS, 10: HS)

Returns

Type: bool

true if the status bit is 1