1: uhs_status_t Usbh_Stor_ReregisterCallback(
app_callback_info* stCallback)
2: {
3: API_REPORT_MILESTONE( USBSTOR_CHKPOINTS_API_REREGISTCB );
4:
5:
6:
if( pStorClassDriver == NULL ) {
7: API_REPORT_SUMMARY( USBSTOR_LOG_SYS_SYSTEM_ERROR );
8:
return UDI_STAT_DATA_ERROR;
9: }
10:
11:
12: pStorClassDriver->pUserAttachCallback = stCallback->attach_callback;
13: pStorClassDriver->pUserDetachCallback = stCallback->detach_callback;
14:
15:
return UDI_OK;
16: }