STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Modules | Macros

This file is the Header file for usbh_mtp_ptp.c. More...

Modules

 USBH_MTP_PTP_Exported_Types
 
 USBH_MTP_PTP_Exported_Macros
 
 USBH_MTP_PTP_Exported_Variables
 
 USBH_MTP_PTP_Exported_FunctionsPrototype
 
 USBH_MTP_PTP_Private_TypesDefinitions
 
 USBH_MTP_PTP_Private_Defines
 
 USBH_MTP_PTP_Private_Macros
 
 USBH_MTP_PTP_Private_Variables
 
 USBH_MTP_PTP_Private_FunctionPrototypes
 
 USBH_MTP_PTP_Private_Functions
 

Macros

#define PTP_OC_Undefined   0x1000
 
#define PTP_OC_GetDeviceInfo   0x1001
 
#define PTP_OC_OpenSession   0x1002
 
#define PTP_OC_CloseSession   0x1003
 
#define PTP_OC_GetStorageIDs   0x1004
 
#define PTP_OC_GetStorageInfo   0x1005
 
#define PTP_OC_GetNumObjects   0x1006
 
#define PTP_OC_GetObjectHandles   0x1007
 
#define PTP_OC_GetObjectInfo   0x1008
 
#define PTP_OC_GetObject   0x1009
 
#define PTP_OC_GetThumb   0x100A
 
#define PTP_OC_DeleteObject   0x100B
 
#define PTP_OC_SendObjectInfo   0x100C
 
#define PTP_OC_SendObject   0x100D
 
#define PTP_OC_InitiateCapture   0x100E
 
#define PTP_OC_FormatStore   0x100F
 
#define PTP_OC_ResetDevice   0x1010
 
#define PTP_OC_SelfTest   0x1011
 
#define PTP_OC_SetObjectProtection   0x1012
 
#define PTP_OC_PowerDown   0x1013
 
#define PTP_OC_GetDevicePropDesc   0x1014
 
#define PTP_OC_GetDevicePropValue   0x1015
 
#define PTP_OC_SetDevicePropValue   0x1016
 
#define PTP_OC_ResetDevicePropValue   0x1017
 
#define PTP_OC_TerminateOpenCapture   0x1018
 
#define PTP_OC_MoveObject   0x1019
 
#define PTP_OC_CopyObject   0x101A
 
#define PTP_OC_GetPartialObject   0x101B
 
#define PTP_OC_InitiateOpenCapture   0x101C
 
#define PTP_OC_StartEnumHandles   0x101D
 
#define PTP_OC_EnumHandles   0x101E
 
#define PTP_OC_StopEnumHandles   0x101F
 
#define PTP_OC_GetVendorExtensionMaps   0x1020
 
#define PTP_OC_GetVendorDeviceInfo   0x1021
 
#define PTP_OC_GetResizedImageObject   0x1022
 
#define PTP_OC_GetFilesystemManifest   0x1023
 
#define PTP_OC_GetStreamInfo   0x1024
 
#define PTP_OC_GetStream   0x1025
 
#define PTP_OC_GetObjectPropsSupported   0x9801
 
#define PTP_OC_GetObjectPropDesc   0x9802
 
#define PTP_OC_GetObjectPropValue   0x9803
 
#define PTP_OC_SetObjectPropValue   0x9804
 
#define PTP_OC_GetObjPropList   0x9805
 
#define PTP_OC_SetObjPropList   0x9806
 
#define PTP_OC_GetInterdependendPropdesc   0x9807
 
#define PTP_OC_SendObjectPropList   0x9808
 
#define PTP_OC_GetObjectReferences   0x9810
 
#define PTP_OC_SetObjectReferences   0x9811
 
#define PTP_OC_UpdateDeviceFirmware   0x9812
 
#define PTP_OC_Skip   0x9820
 
#define PTP_RC_Undefined   0x2000
 
#define PTP_RC_OK   0x2001
 
#define PTP_RC_GeneralError   0x2002
 
#define PTP_RC_SessionNotOpen   0x2003
 
#define PTP_RC_InvalidTransactionID   0x2004
 
#define PTP_RC_OperationNotSupported   0x2005
 
#define PTP_RC_ParameterNotSupported   0x2006
 
#define PTP_RC_IncompleteTransfer   0x2007
 
#define PTP_RC_InvalidStorageId   0x2008
 
#define PTP_RC_InvalidObjectHandle   0x2009
 
#define PTP_RC_DevicePropNotSupported   0x200A
 
#define PTP_RC_InvalidObjectFormatCode   0x200B
 
#define PTP_RC_StoreFull   0x200C
 
#define PTP_RC_ObjectWriteProtected   0x200D
 
#define PTP_RC_StoreReadOnly   0x200E
 
#define PTP_RC_AccessDenied   0x200F
 
#define PTP_RC_NoThumbnailPresent   0x2010
 
#define PTP_RC_SelfTestFailed   0x2011
 
#define PTP_RC_PartialDeletion   0x2012
 
#define PTP_RC_StoreNotAvailable   0x2013
 
#define PTP_RC_SpecificationByFormatUnsupported   0x2014
 
#define PTP_RC_NoValidObjectInfo   0x2015
 
#define PTP_RC_InvalidCodeFormat   0x2016
 
#define PTP_RC_UnknownVendorCode   0x2017
 
#define PTP_RC_CaptureAlreadyTerminated   0x2018
 
#define PTP_RC_DeviceBusy   0x2019
 
#define PTP_RC_InvalidParentObject   0x201A
 
#define PTP_RC_InvalidDevicePropFormat   0x201B
 
#define PTP_RC_InvalidDevicePropValue   0x201C
 
#define PTP_RC_InvalidParameter   0x201D
 
#define PTP_RC_SessionAlreadyOpened   0x201E
 
#define PTP_RC_TransactionCanceled   0x201F
 
#define PTP_RC_SpecificationOfDestinationUnsupported   0x2020
 
#define PTP_RC_InvalidEnumHandle   0x2021
 
#define PTP_RC_NoStreamEnabled   0x2022
 
#define PTP_RC_InvalidDataSet   0x2023
 
#define PTP_USB_CONTAINER_UNDEFINED   0x0000
 
#define PTP_USB_CONTAINER_COMMAND   0x0001
 
#define PTP_USB_CONTAINER_DATA   0x0002
 
#define PTP_USB_CONTAINER_RESPONSE   0x0003
 
#define PTP_USB_CONTAINER_EVENT   0x0004
 
#define PTPIP_INIT_COMMAND_REQUEST   1
 
#define PTPIP_INIT_COMMAND_ACK   2
 
#define PTPIP_INIT_EVENT_REQUEST   3
 
#define PTPIP_INIT_EVENT_ACK   4
 
#define PTPIP_INIT_FAIL   5
 
#define PTPIP_CMD_REQUEST   6
 
#define PTPIP_CMD_RESPONSE   7
 
#define PTPIP_EVENT   8
 
#define PTPIP_START_DATA_PACKET   9
 
#define PTPIP_DATA_PACKET   10
 
#define PTPIP_CANCEL_TRANSACTION   11
 
#define PTPIP_END_DATA_PACKET   12
 
#define PTPIP_PING   13
 
#define PTPIP_PONG   14
 
#define PTP_DP_NODATA   0x0000 /* no data phase */
 
#define PTP_DP_SENDDATA   0x0001 /* sending data */
 
#define PTP_DP_GETDATA   0x0002 /* receiving data */
 
#define PTP_DP_DATA_MASK   0x00ff /* data phase mask */
 

Detailed Description

This file is the Header file for usbh_mtp_ptp.c.

This file includes the mass storage related functions.

Macro Definition Documentation

#define PTP_DP_DATA_MASK   0x00ff /* data phase mask */

Definition at line 185 of file usbh_mtp_ptp.h.

#define PTP_DP_GETDATA   0x0002 /* receiving data */

Definition at line 184 of file usbh_mtp_ptp.h.

#define PTP_DP_NODATA   0x0000 /* no data phase */

Definition at line 182 of file usbh_mtp_ptp.h.

#define PTP_DP_SENDDATA   0x0001 /* sending data */

Definition at line 183 of file usbh_mtp_ptp.h.

#define PTP_OC_CloseSession   0x1003

Definition at line 63 of file usbh_mtp_ptp.h.

#define PTP_OC_CopyObject   0x101A

Definition at line 86 of file usbh_mtp_ptp.h.

#define PTP_OC_DeleteObject   0x100B

Definition at line 71 of file usbh_mtp_ptp.h.

#define PTP_OC_EnumHandles   0x101E

Definition at line 92 of file usbh_mtp_ptp.h.

#define PTP_OC_FormatStore   0x100F

Definition at line 75 of file usbh_mtp_ptp.h.

#define PTP_OC_GetDeviceInfo   0x1001

Definition at line 61 of file usbh_mtp_ptp.h.

#define PTP_OC_GetDevicePropDesc   0x1014

Definition at line 80 of file usbh_mtp_ptp.h.

#define PTP_OC_GetDevicePropValue   0x1015

Definition at line 81 of file usbh_mtp_ptp.h.

#define PTP_OC_GetFilesystemManifest   0x1023

Definition at line 97 of file usbh_mtp_ptp.h.

#define PTP_OC_GetInterdependendPropdesc   0x9807

Definition at line 108 of file usbh_mtp_ptp.h.

#define PTP_OC_GetNumObjects   0x1006

Definition at line 66 of file usbh_mtp_ptp.h.

#define PTP_OC_GetObject   0x1009

Definition at line 69 of file usbh_mtp_ptp.h.

#define PTP_OC_GetObjectHandles   0x1007

Definition at line 67 of file usbh_mtp_ptp.h.

#define PTP_OC_GetObjectInfo   0x1008

Definition at line 68 of file usbh_mtp_ptp.h.

#define PTP_OC_GetObjectPropDesc   0x9802

Definition at line 103 of file usbh_mtp_ptp.h.

#define PTP_OC_GetObjectPropsSupported   0x9801

Definition at line 102 of file usbh_mtp_ptp.h.

#define PTP_OC_GetObjectPropValue   0x9803

Definition at line 104 of file usbh_mtp_ptp.h.

#define PTP_OC_GetObjectReferences   0x9810

Definition at line 110 of file usbh_mtp_ptp.h.

#define PTP_OC_GetObjPropList   0x9805

Definition at line 106 of file usbh_mtp_ptp.h.

#define PTP_OC_GetPartialObject   0x101B

Definition at line 87 of file usbh_mtp_ptp.h.

#define PTP_OC_GetResizedImageObject   0x1022

Definition at line 96 of file usbh_mtp_ptp.h.

#define PTP_OC_GetStorageIDs   0x1004

Definition at line 64 of file usbh_mtp_ptp.h.

#define PTP_OC_GetStorageInfo   0x1005

Definition at line 65 of file usbh_mtp_ptp.h.

#define PTP_OC_GetStream   0x1025

Definition at line 99 of file usbh_mtp_ptp.h.

#define PTP_OC_GetStreamInfo   0x1024

Definition at line 98 of file usbh_mtp_ptp.h.

#define PTP_OC_GetThumb   0x100A

Definition at line 70 of file usbh_mtp_ptp.h.

#define PTP_OC_GetVendorDeviceInfo   0x1021

Definition at line 95 of file usbh_mtp_ptp.h.

#define PTP_OC_GetVendorExtensionMaps   0x1020

Definition at line 94 of file usbh_mtp_ptp.h.

#define PTP_OC_InitiateCapture   0x100E

Definition at line 74 of file usbh_mtp_ptp.h.

#define PTP_OC_InitiateOpenCapture   0x101C

Definition at line 88 of file usbh_mtp_ptp.h.

#define PTP_OC_MoveObject   0x1019

Definition at line 85 of file usbh_mtp_ptp.h.

#define PTP_OC_OpenSession   0x1002

Definition at line 62 of file usbh_mtp_ptp.h.

#define PTP_OC_PowerDown   0x1013

Definition at line 79 of file usbh_mtp_ptp.h.

#define PTP_OC_ResetDevice   0x1010

Definition at line 76 of file usbh_mtp_ptp.h.

#define PTP_OC_ResetDevicePropValue   0x1017

Definition at line 83 of file usbh_mtp_ptp.h.

#define PTP_OC_SelfTest   0x1011

Definition at line 77 of file usbh_mtp_ptp.h.

#define PTP_OC_SendObject   0x100D

Definition at line 73 of file usbh_mtp_ptp.h.

#define PTP_OC_SendObjectInfo   0x100C

Definition at line 72 of file usbh_mtp_ptp.h.

#define PTP_OC_SendObjectPropList   0x9808

Definition at line 109 of file usbh_mtp_ptp.h.

#define PTP_OC_SetDevicePropValue   0x1016

Definition at line 82 of file usbh_mtp_ptp.h.

#define PTP_OC_SetObjectPropValue   0x9804

Definition at line 105 of file usbh_mtp_ptp.h.

#define PTP_OC_SetObjectProtection   0x1012

Definition at line 78 of file usbh_mtp_ptp.h.

#define PTP_OC_SetObjectReferences   0x9811

Definition at line 111 of file usbh_mtp_ptp.h.

#define PTP_OC_SetObjPropList   0x9806

Definition at line 107 of file usbh_mtp_ptp.h.

#define PTP_OC_Skip   0x9820

Definition at line 113 of file usbh_mtp_ptp.h.

#define PTP_OC_StartEnumHandles   0x101D

Definition at line 91 of file usbh_mtp_ptp.h.

#define PTP_OC_StopEnumHandles   0x101F

Definition at line 93 of file usbh_mtp_ptp.h.

#define PTP_OC_TerminateOpenCapture   0x1018

Definition at line 84 of file usbh_mtp_ptp.h.

#define PTP_OC_Undefined   0x1000

Definition at line 60 of file usbh_mtp_ptp.h.

#define PTP_OC_UpdateDeviceFirmware   0x9812

Definition at line 112 of file usbh_mtp_ptp.h.

#define PTP_RC_AccessDenied   0x200F

Definition at line 134 of file usbh_mtp_ptp.h.

#define PTP_RC_CaptureAlreadyTerminated   0x2018

Definition at line 143 of file usbh_mtp_ptp.h.

#define PTP_RC_DeviceBusy   0x2019

Definition at line 144 of file usbh_mtp_ptp.h.

#define PTP_RC_DevicePropNotSupported   0x200A

Definition at line 129 of file usbh_mtp_ptp.h.

#define PTP_RC_GeneralError   0x2002

Definition at line 121 of file usbh_mtp_ptp.h.

#define PTP_RC_IncompleteTransfer   0x2007

Definition at line 126 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidCodeFormat   0x2016

Definition at line 141 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidDataSet   0x2023

Definition at line 155 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidDevicePropFormat   0x201B

Definition at line 146 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidDevicePropValue   0x201C

Definition at line 147 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidEnumHandle   0x2021

Definition at line 153 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidObjectFormatCode   0x200B

Definition at line 130 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidObjectHandle   0x2009

Definition at line 128 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidParameter   0x201D

Definition at line 148 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidParentObject   0x201A

Definition at line 145 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidStorageId   0x2008

Definition at line 127 of file usbh_mtp_ptp.h.

#define PTP_RC_InvalidTransactionID   0x2004

Definition at line 123 of file usbh_mtp_ptp.h.

#define PTP_RC_NoStreamEnabled   0x2022

Definition at line 154 of file usbh_mtp_ptp.h.

#define PTP_RC_NoThumbnailPresent   0x2010

Definition at line 135 of file usbh_mtp_ptp.h.

#define PTP_RC_NoValidObjectInfo   0x2015

Definition at line 140 of file usbh_mtp_ptp.h.

#define PTP_RC_ObjectWriteProtected   0x200D

Definition at line 132 of file usbh_mtp_ptp.h.

#define PTP_RC_OK   0x2001

Definition at line 120 of file usbh_mtp_ptp.h.

#define PTP_RC_OperationNotSupported   0x2005

Definition at line 124 of file usbh_mtp_ptp.h.

#define PTP_RC_ParameterNotSupported   0x2006

Definition at line 125 of file usbh_mtp_ptp.h.

#define PTP_RC_PartialDeletion   0x2012

Definition at line 137 of file usbh_mtp_ptp.h.

#define PTP_RC_SelfTestFailed   0x2011

Definition at line 136 of file usbh_mtp_ptp.h.

#define PTP_RC_SessionAlreadyOpened   0x201E

Definition at line 149 of file usbh_mtp_ptp.h.

#define PTP_RC_SessionNotOpen   0x2003

Definition at line 122 of file usbh_mtp_ptp.h.

#define PTP_RC_SpecificationByFormatUnsupported   0x2014

Definition at line 139 of file usbh_mtp_ptp.h.

#define PTP_RC_SpecificationOfDestinationUnsupported   0x2020

Definition at line 151 of file usbh_mtp_ptp.h.

#define PTP_RC_StoreFull   0x200C

Definition at line 131 of file usbh_mtp_ptp.h.

#define PTP_RC_StoreNotAvailable   0x2013

Definition at line 138 of file usbh_mtp_ptp.h.

#define PTP_RC_StoreReadOnly   0x200E

Definition at line 133 of file usbh_mtp_ptp.h.

#define PTP_RC_TransactionCanceled   0x201F

Definition at line 150 of file usbh_mtp_ptp.h.

#define PTP_RC_Undefined   0x2000

Definition at line 119 of file usbh_mtp_ptp.h.

#define PTP_RC_UnknownVendorCode   0x2017

Definition at line 142 of file usbh_mtp_ptp.h.

#define PTP_USB_CONTAINER_COMMAND   0x0001

Definition at line 160 of file usbh_mtp_ptp.h.

#define PTP_USB_CONTAINER_DATA   0x0002

Definition at line 161 of file usbh_mtp_ptp.h.

#define PTP_USB_CONTAINER_EVENT   0x0004

Definition at line 163 of file usbh_mtp_ptp.h.

#define PTP_USB_CONTAINER_RESPONSE   0x0003

Definition at line 162 of file usbh_mtp_ptp.h.

#define PTP_USB_CONTAINER_UNDEFINED   0x0000

Definition at line 159 of file usbh_mtp_ptp.h.

#define PTPIP_CANCEL_TRANSACTION   11

Definition at line 176 of file usbh_mtp_ptp.h.

#define PTPIP_CMD_REQUEST   6

Definition at line 171 of file usbh_mtp_ptp.h.

#define PTPIP_CMD_RESPONSE   7

Definition at line 172 of file usbh_mtp_ptp.h.

#define PTPIP_DATA_PACKET   10

Definition at line 175 of file usbh_mtp_ptp.h.

#define PTPIP_END_DATA_PACKET   12

Definition at line 177 of file usbh_mtp_ptp.h.

#define PTPIP_EVENT   8

Definition at line 173 of file usbh_mtp_ptp.h.

#define PTPIP_INIT_COMMAND_ACK   2

Definition at line 167 of file usbh_mtp_ptp.h.

#define PTPIP_INIT_COMMAND_REQUEST   1

Definition at line 166 of file usbh_mtp_ptp.h.

#define PTPIP_INIT_EVENT_ACK   4

Definition at line 169 of file usbh_mtp_ptp.h.

#define PTPIP_INIT_EVENT_REQUEST   3

Definition at line 168 of file usbh_mtp_ptp.h.

#define PTPIP_INIT_FAIL   5

Definition at line 170 of file usbh_mtp_ptp.h.

#define PTPIP_PING   13

Definition at line 178 of file usbh_mtp_ptp.h.

#define PTPIP_PONG   14

Definition at line 179 of file usbh_mtp_ptp.h.

#define PTPIP_START_DATA_PACKET   9

Definition at line 174 of file usbh_mtp_ptp.h.