AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: uhs_ubit8_t Usbh_Api_GetDeviceType( struct usbd_usb_deviceinfo * pDev ) 2: { 3: uhs_ubit8_t devtype; 4: 5: if (( pDev == NULL ) || ( pDev->usbdev_DevDescriptor == NULL )) { 6: CORE_REPORT_ERROR( USBC_INVALID_PARAMETER ); 7: return 0x00; 8: } 9: 10: if ( pDev->usbdev_DevDescriptor->bDeviceClass == USBDI_BASECLASS_DEVICE ) { 11: 12: 13: 14: devtype = pDev->Drv_ConfDescriptor->interfaces->act_alt->intf_desc->bInterfaceClass; 15: } else { 16: devtype = pDev->usbdev_DevDescriptor->bDeviceClass; 17: } 18: 19: return devtype; 20: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.