tinyusb/src/host/usbh.c
tusb_device_state_t tuh_device_get_state (uint8_t const dev_addr)
{
  TU_ASSERT( dev_addr <= CFG_TUSB_HOST_DEVICE_MAX, TUSB_DEVICE_STATE_INVALID_PARAMETER);
  return (tusb_device_state_t) _usbh_devices[dev_addr].state;
}
//--------------------------------------------------------------------+
// PUBLIC API (Parameter Verification is required)
//--------------------------------------------------------------------+

PUBLIC API (Parameter Verification is required)
PUBLIC API ( Parameter Verification is required )
tusb_device_state_t tuh_device_get_state (uint8_t const dev_addr)
{
  TU_ASSERT( dev_addr <= CFG_TUSB_HOST_DEVICE_MAX, TUSB_DEVICE_STATE_INVALID_PARAMETER);
  return (tusb_device_state_t) _usbh_devices[dev_addr].state;
}
tusb_device_state_t tuh_device_get_state ( uint8_t const dev_addr ) { TU_ASSERT ( dev_addr <= CFG_TUSB_HOST_DEVICE_MAX , TUSB_DEVICE_STATE_INVALID_PARAMETER ) ; return ( tusb_device_state_t ) _usbh_devices [ dev_addr ] . state ; }
+
PUBLIC API (Parameter Verification is required)
+
+ PUBLIC API ( Parameter Verification is required ) +