tinyusb/src/host/hub.c
tusb_speed_t hub_port_get_speed(void)
{
  hub_port_status_response_t * p_port_status = (hub_port_status_response_t *) hub_enum_buffer;
  return (p_port_status->status_current.high_speed_device_attached) ? TUSB_SPEED_HIGH :
         (p_port_status->status_current.low_speed_device_attached ) ? TUSB_SPEED_LOW  : TUSB_SPEED_FULL;
}
// can only get the speed RIGHT AFTER hub_port_reset_subtask call

can only get the speed RIGHT AFTER hub_port_reset_subtask call
can only get the speed RIGHT AFTER hub_port_reset_subtask call
tusb_speed_t hub_port_get_speed(void)
{
  hub_port_status_response_t * p_port_status = (hub_port_status_response_t *) hub_enum_buffer;
  return (p_port_status->status_current.high_speed_device_attached) ? TUSB_SPEED_HIGH :
         (p_port_status->status_current.low_speed_device_attached ) ? TUSB_SPEED_LOW  : TUSB_SPEED_FULL;
}
tusb_speed_t hub_port_get_speed ( void ) { hub_port_status_response_t * p_port_status = ( hub_port_status_response_t * ) hub_enum_buffer ; return ( p_port_status -> status_current . high_speed_device_attached ) ? TUSB_SPEED_HIGH : ( p_port_status -> status_current . low_speed_device_attached ) ? TUSB_SPEED_LOW : TUSB_SPEED_FULL ; }
can only get the speed RIGHT AFTER hub_port_reset_subtask call
can only get the speed RIGHT AFTER hub_port_reset_subtask call