62 #define USB_MTP_CLASS 0x06 63 #define MTP_MAX_STORAGE_UNITS_NBR PTP_MAX_STORAGE_UNITS_NBR 147 #define MTP_StorageInfoTypedef PTP_StorageInfoTypedef 148 #define MTP_ObjectHandlesTypedef PTP_ObjectHandlesTypedef 149 #define MTP_ObjectInfoTypedef PTP_ObjectInfoTypedef 173 #define USBH_MTP_CLASS &MTP_Class 187 uint32_t objectformatcode,
188 uint32_t associationOH,
196 uint32_t objectformatcode,
197 uint32_t associationOH,
206 uint32_t objectformatcode);
232 uint32_t *nrofprops);
USBH_StatusTypeDef USBH_MTP_GetNumStorage(USBH_HandleTypeDef *phost, uint8_t *storage_num)
USBH_MTP_GetNumStorage Select the storage Unit to be used.
#define MTP_StorageInfoTypedef
Header file for usbh_core.c.
USBH_StatusTypeDef USBH_MTP_GetObjectHandles(USBH_HandleTypeDef *phost, uint32_t storage_id, uint32_t objectformatcode, uint32_t associationOH, PTP_ObjectHandlesTypedef *objecthandles)
USBH_MTP_GetStorageInfo Get the storage Unit info.
Header file for usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_MTP_DeleteObject(USBH_HandleTypeDef *phost, uint32_t handle, uint32_t objectformatcode)
USBH_MTP_DeleteObject Delete an object.
uint32_t ObjectFormatCode
uint32_t CurrentObjectHandler
uint32_t current_storage_unit
void USBH_MTP_EventsCallback(USBH_HandleTypeDef *phost, uint32_t event, uint32_t param)
The function informs that host has received an event.
USBH_StatusTypeDef USBH_MTP_GetObjectPropsSupported(USBH_HandleTypeDef *phost, uint16_t ofc, uint32_t *propnum, uint16_t *props)
USBH_MTP_GetObjectPropsSupported Gets object partially.
uint8_t USBH_MTP_IsReady(USBH_HandleTypeDef *phost)
USBH_MTP_IsReady Select the storage Unit to be used.
MTP_EventHandleTypedef events
PTP_StorageIDsTypedef storids
USBH_StatusTypeDef USBH_MTP_GetObjectPropList(USBH_HandleTypeDef *phost, uint32_t handle, MTP_PropertiesTypedef *pprops, uint32_t *nrofprops)
USBH_MTP_GetObjectPropList Gets object partially.
USBH_StatusTypeDef USBH_MTP_GetNumObjects(USBH_HandleTypeDef *phost, uint32_t storage_id, uint32_t objectformatcode, uint32_t associationOH, uint32_t *numobs)
USBH_MTP_GetStorageInfo Get the storage Unit info.
MTP_EventsStateTypeDef state
PTP_DeviceInfoTypedef devinfo
USBH_StatusTypeDef USBH_MTP_GetStorageInfo(USBH_HandleTypeDef *phost, uint8_t storage_idx, MTP_StorageInfoTypedef *info)
USBH_MTP_GetStorageInfo Get the storage Unit info.
USBH_StatusTypeDef USBH_MTP_GetObjectInfo(USBH_HandleTypeDef *phost, uint32_t handle, PTP_ObjectInfoTypedef *objectinfo)
USBH_PTP_GetObjectInfo Gets objert info.
USBH_StatusTypeDef USBH_MTP_GetObject(USBH_HandleTypeDef *phost, uint32_t handle, uint8_t *object)
USBH_MTP_GetObject Gets object.
USBH_StatusTypeDef USBH_MTP_GetDevicePropDesc(USBH_HandleTypeDef *phost, uint16_t propcode, PTP_DevicePropDescTypdef *devicepropertydesc)
USBH_MTP_GetDevicePropDesc Gets object partially.
struct _MTP_Process MTP_HandleTypeDef
uint32_t CurrentStorageId
PTP_EventContainerTypedef container
#define MTP_MAX_STORAGE_UNITS_NBR
USBH_StatusTypeDef USBH_MTP_GetObjectPropDesc(USBH_HandleTypeDef *phost, uint16_t opc, uint16_t ofc, PTP_ObjectPropDescTypeDef *opd)
USBH_MTP_GetObjectPropDesc Gets object partially.
USBH_StatusTypeDef USBH_MTP_SendObject(USBH_HandleTypeDef *phost, uint32_t handle, uint8_t *object, uint32_t size)
USBH_MTP_SendObject Send an object.
uint16_t NotificationEpSize
USBH_StatusTypeDef USBH_MTP_SelectStorage(USBH_HandleTypeDef *phost, uint8_t storage_idx)
USBH_MTP_SelectStorage Select the storage Unit to be used.
PTP_ObjectHandlesTypedef Handles
USBH_ClassTypeDef MTP_Class
USBH_StatusTypeDef USBH_MTP_GetPartialObject(USBH_HandleTypeDef *phost, uint32_t handle, uint32_t offset, uint32_t maxbytes, uint8_t *object, uint32_t *len)
USBH_MTP_GetPartialObject Gets object.