AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: uhs_status_t Usbh_Api_ResetTT(struct usbd_usb_deviceinfo *usbhub, const uhs_ubit16_t tt_port ) 2: { 3: uhs_status_t retval = UDI_OK; 4: 5: 6: if( Usbh_susres_get_state() != USBH_SUSRES_STS_IDLE ){ 7: uhs_debug_print (DBG_ERR, ("ERROR : Don't Call Current State!!")); 8: CORE_REPORT_ERROR( USBC_ILLEGAL_ERROR ); 9: return UDI_STAT_INVALID_STATE; 10: } 11: 12: if( (usbhub == NULL) || (tt_port == 0) || (tt_port > HUB_MAX_PORT_NUM) ){ 13: CORE_REPORT_ERROR( USBC_INVALID_PARAMETER ); 14: return( UDI_STAT_DATA_ERROR ); 15: } 16: else{ 17: 18: 19: 20: 21: retval = Usb_HubApi_RESET_TT( usbhub->context , tt_port ); 22: } 23: return retval; 24: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.