/* Associate a configuration with its alternative-speed counterpart Gets the current device state  */
sl_status_t sl_usbd_core_get_device_state(sl_usbd_device_state_t *p_dev_state)
/* Associate a configuration with its alternative-speed counterpart Gets the current device state  */
sl_status_t sl_usbd_core_get_device_state(sl_usbd_device_state_t *p_dev_state)
{
  sli_usbd_device_t *p_dev;
  if (p_dev_state == NULL) {
    return SL_STATUS_INVALID_PARAMETER;
  }
  p_dev = &usbd_ptr->device;
  *p_dev_state = p_dev->state;
  return SL_STATUS_OK;
}