Library to allo USB PTP device to be hosted by the mbed platform
Dependents: class_project_main
PIMA15740/PIMAconst.h@1:71c0e9dc153d, 2013-08-23 (annotated)
- Committer:
- jakowisp
- Date:
- Fri Aug 23 19:34:59 2013 +0000
- Revision:
- 1:71c0e9dc153d
- Parent:
- 0:98cf19bcd828
- Child:
- 3:1fcb46ab18df
Inital publication to begin documentation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jakowisp | 1:71c0e9dc153d | 1 | /* mbed USBHostPTP Library(PIMA15740 definitions) |
jakowisp | 1:71c0e9dc153d | 2 | * Copyright (c) 2013 Dwayne Dilbeck |
jakowisp | 1:71c0e9dc153d | 3 | * This software is distributed under the terms of the GNU Lesser General Public License |
jakowisp | 1:71c0e9dc153d | 4 | * |
jakowisp | 1:71c0e9dc153d | 5 | * Special thanks to the 'Circuits at Home', |
jakowisp | 1:71c0e9dc153d | 6 | * Reviewing thier code helped in understanding what needed to be done in my code for the mbed. |
jakowisp | 1:71c0e9dc153d | 7 | * Circuits At Home, LTD |
jakowisp | 1:71c0e9dc153d | 8 | * Web : http://www.circuitsathome.com |
jakowisp | 1:71c0e9dc153d | 9 | * e-mail : support@circuitsathome.com |
jakowisp | 1:71c0e9dc153d | 10 | */ |
jakowisp | 1:71c0e9dc153d | 11 | |
jakowisp | 0:98cf19bcd828 | 12 | |
jakowisp | 0:98cf19bcd828 | 13 | #ifndef __PTPCONST_H__ |
jakowisp | 0:98cf19bcd828 | 14 | #define __PTPCONST_H__ |
jakowisp | 0:98cf19bcd828 | 15 | |
jakowisp | 0:98cf19bcd828 | 16 | #include <inttypes.h> |
jakowisp | 0:98cf19bcd828 | 17 | |
jakowisp | 1:71c0e9dc153d | 18 | #define PIMA_CONTAINER_HEADER_LENGTH 0xc |
jakowisp | 0:98cf19bcd828 | 19 | |
jakowisp | 1:71c0e9dc153d | 20 | //#define PTP_USB_INT_PACKET_LEN 8 |
jakowisp | 0:98cf19bcd828 | 21 | |
jakowisp | 1:71c0e9dc153d | 22 | /* PIMA container types */ |
jakowisp | 1:71c0e9dc153d | 23 | #define PIMA_CONTAINER_UNDEFINED 0x0000 |
jakowisp | 1:71c0e9dc153d | 24 | #define PIMA_CONTAINER_COMMAND 0x0001 |
jakowisp | 1:71c0e9dc153d | 25 | #define PIMA_CONTAINER_DATA 0x0002 |
jakowisp | 1:71c0e9dc153d | 26 | #define PIMA_CONTAINER_RESPONSE 0x0003 |
jakowisp | 1:71c0e9dc153d | 27 | #define PIMA_CONTAINER_EVENT 0x0004 |
jakowisp | 0:98cf19bcd828 | 28 | |
jakowisp | 0:98cf19bcd828 | 29 | /* Vendor IDs */ |
jakowisp | 1:71c0e9dc153d | 30 | #define PIMA_VENDOR_EASTMAN_KODAK 0x00000001 |
jakowisp | 1:71c0e9dc153d | 31 | #define PIMA_VENDOR_SEIKO_EPSON 0x00000002 |
jakowisp | 1:71c0e9dc153d | 32 | #define PIMA_VENDOR_AGILENT 0x00000003 |
jakowisp | 1:71c0e9dc153d | 33 | #define PIMA_VENDOR_POLAROID 0x00000004 |
jakowisp | 1:71c0e9dc153d | 34 | #define PIMA_VENDOR_AGFA_GEVAERT 0x00000005 |
jakowisp | 1:71c0e9dc153d | 35 | #define PIMA_VENDOR_MICROSOFT 0x00000006 |
jakowisp | 1:71c0e9dc153d | 36 | #define PIMA_VENDOR_EQUINOX 0x00000007 |
jakowisp | 1:71c0e9dc153d | 37 | #define PIMA_VENDOR_VIEWQUEST 0x00000008 |
jakowisp | 1:71c0e9dc153d | 38 | #define PIMA_VENDOR_STMICROELECTRONICS 0x00000009 |
jakowisp | 1:71c0e9dc153d | 39 | #define PIMA_VENDOR_NIKON 0x0000000A |
jakowisp | 1:71c0e9dc153d | 40 | #define PIMA_VENDOR_CANON 0x0000000B |
jakowisp | 1:71c0e9dc153d | 41 | #define PIMA_VENDOR_FOTONATION 0x0000000C |
jakowisp | 1:71c0e9dc153d | 42 | #define PIMA_VENDOR_PENTAX 0x0000000D |
jakowisp | 1:71c0e9dc153d | 43 | #define PIMA_VENDOR_FUJI 0x0000000E |
jakowisp | 0:98cf19bcd828 | 44 | |
jakowisp | 0:98cf19bcd828 | 45 | /* Operation Codes */ |
jakowisp | 1:71c0e9dc153d | 46 | #define PIMA_OPERATION_CODE_Undefined 0x1000 |
jakowisp | 1:71c0e9dc153d | 47 | #define PIMA_OPERATION_CODE_GetDeviceInfo 0x1001 |
jakowisp | 1:71c0e9dc153d | 48 | #define PIMA_OPERATION_CODE_OpenSession 0x1002 |
jakowisp | 1:71c0e9dc153d | 49 | #define PIMA_OPERATION_CODE_CloseSession 0x1003 |
jakowisp | 1:71c0e9dc153d | 50 | #define PIMA_OPERATION_CODE_GetStorageIDs 0x1004 |
jakowisp | 1:71c0e9dc153d | 51 | #define PIMA_OPERATION_CODE_GetStorageInfo 0x1005 |
jakowisp | 1:71c0e9dc153d | 52 | #define PIMA_OPERATION_CODE_GetNumObjects 0x1006 |
jakowisp | 1:71c0e9dc153d | 53 | #define PIMA_OPERATION_CODE_GetObjectHandles 0x1007 |
jakowisp | 1:71c0e9dc153d | 54 | #define PIMA_OPERATION_CODE_GetObjectInfo 0x1008 |
jakowisp | 1:71c0e9dc153d | 55 | #define PIMA_OPERATION_CODE_GetObject 0x1009 |
jakowisp | 1:71c0e9dc153d | 56 | #define PIMA_OPERATION_CODE_GetThumb 0x100A |
jakowisp | 1:71c0e9dc153d | 57 | #define PIMA_OPERATION_CODE_DeleteObject 0x100B |
jakowisp | 1:71c0e9dc153d | 58 | #define PIMA_OPERATION_CODE_SendObjectInfo 0x100C |
jakowisp | 1:71c0e9dc153d | 59 | #define PIMA_OPERATION_CODE_SendObject 0x100D |
jakowisp | 1:71c0e9dc153d | 60 | #define PIMA_OPERATION_CODE_InitiateCapture 0x100E |
jakowisp | 1:71c0e9dc153d | 61 | #define PIMA_OPERATION_CODE_FormatStore 0x100F |
jakowisp | 1:71c0e9dc153d | 62 | #define PIMA_OPERATION_CODE_ResetDevice 0x1010 |
jakowisp | 1:71c0e9dc153d | 63 | #define PIMA_OPERATION_CODE_SelfTest 0x1011 |
jakowisp | 1:71c0e9dc153d | 64 | #define PIMA_OPERATION_CODE_SetObjectProtection 0x1012 |
jakowisp | 1:71c0e9dc153d | 65 | #define PIMA_OPERATION_CODE_PowerDown 0x1013 |
jakowisp | 1:71c0e9dc153d | 66 | #define PIMA_OPERATION_CODE_GetDevicePropDesc 0x1014 |
jakowisp | 1:71c0e9dc153d | 67 | #define PIMA_OPERATION_CODE_GetDevicePropValue 0x1015 |
jakowisp | 1:71c0e9dc153d | 68 | #define PIMA_OPERATION_CODE_SetDevicePropValue 0x1016 |
jakowisp | 1:71c0e9dc153d | 69 | #define PIMA_OPERATION_CODE_ResetDevicePropValue 0x1017 |
jakowisp | 1:71c0e9dc153d | 70 | #define PIMA_OPERATION_CODE_TerminateOpenCapture 0x1018 |
jakowisp | 1:71c0e9dc153d | 71 | #define PIMA_OPERATION_CODE_MoveObject 0x1019 |
jakowisp | 1:71c0e9dc153d | 72 | #define PIMA_OPERATION_CODE_CopyObject 0x101A |
jakowisp | 1:71c0e9dc153d | 73 | #define PIMA_OPERATION_CODE_GetPartialObject 0x101B |
jakowisp | 1:71c0e9dc153d | 74 | #define PIMA_OPERATION_CODE_InitiateOpenCapture 0x101C |
jakowisp | 0:98cf19bcd828 | 75 | |
jakowisp | 0:98cf19bcd828 | 76 | /* Proprietary vendor extension operations mask */ |
jakowisp | 1:71c0e9dc153d | 77 | #define PIMA_OPERATION_CODE_EXTENSION_MASK 0xF000 |
jakowisp | 1:71c0e9dc153d | 78 | #define PIMA_OPERATION_CODE_EXTENSION 0x9000 |
jakowisp | 0:98cf19bcd828 | 79 | |
jakowisp | 0:98cf19bcd828 | 80 | /* Response Codes */ |
jakowisp | 1:71c0e9dc153d | 81 | #define PIMA_RETURN_CODE_Undefined 0x2000 |
jakowisp | 1:71c0e9dc153d | 82 | #define PIMA_RETURN_CODE_OK 0x2001 |
jakowisp | 1:71c0e9dc153d | 83 | #define PIMA_RETURN_CODE_GeneralError 0x2002 |
jakowisp | 1:71c0e9dc153d | 84 | #define PIMA_RETURN_CODE_SessionNotOpen 0x2003 |
jakowisp | 1:71c0e9dc153d | 85 | #define PIMA_RETURN_CODE_InvalidTransactionID 0x2004 |
jakowisp | 1:71c0e9dc153d | 86 | #define PIMA_RETURN_CODE_OperationNotSupported 0x2005 |
jakowisp | 1:71c0e9dc153d | 87 | #define PIMA_RETURN_CODE_ParameterNotSupported 0x2006 |
jakowisp | 1:71c0e9dc153d | 88 | #define PIMA_RETURN_CODE_IncompleteTransfer 0x2007 |
jakowisp | 1:71c0e9dc153d | 89 | #define PIMA_RETURN_CODE_InvalidStorageId 0x2008 |
jakowisp | 1:71c0e9dc153d | 90 | #define PIMA_RETURN_CODE_InvalidObjectHandle 0x2009 |
jakowisp | 1:71c0e9dc153d | 91 | #define PIMA_RETURN_CODE_DevicePropertyNotSupported 0x200A |
jakowisp | 1:71c0e9dc153d | 92 | #define PIMA_RETURN_CODE_InvalidObjectFormatCode 0x200B |
jakowisp | 1:71c0e9dc153d | 93 | #define PIMA_RETURN_CODE_StoreFull 0x200C |
jakowisp | 1:71c0e9dc153d | 94 | #define PIMA_RETURN_CODE_ObjectWriteProtected 0x200D |
jakowisp | 1:71c0e9dc153d | 95 | #define PIMA_RETURN_CODE_StoreReadOnly 0x200E |
jakowisp | 1:71c0e9dc153d | 96 | #define PIMA_RETURN_CODE_AccessDenied 0x200F |
jakowisp | 1:71c0e9dc153d | 97 | #define PIMA_RETURN_CODE_NoThumbnailPresent 0x2010 |
jakowisp | 1:71c0e9dc153d | 98 | #define PIMA_RETURN_CODE_SelfTestFailed 0x2011 |
jakowisp | 1:71c0e9dc153d | 99 | #define PIMA_RETURN_CODE_PartialDeletion 0x2012 |
jakowisp | 1:71c0e9dc153d | 100 | #define PIMA_RETURN_CODE_StoreNotAvailable 0x2013 |
jakowisp | 1:71c0e9dc153d | 101 | #define PIMA_RETURN_CODE_SpecificationByFormatUnsupported 0x2014 |
jakowisp | 1:71c0e9dc153d | 102 | #define PIMA_RETURN_CODE_NoValidObjectInfo 0x2015 |
jakowisp | 1:71c0e9dc153d | 103 | #define PIMA_RETURN_CODE_InvalidCodeFormat 0x2016 |
jakowisp | 1:71c0e9dc153d | 104 | #define PIMA_RETURN_CODE_UnknownVendorCode 0x2017 |
jakowisp | 1:71c0e9dc153d | 105 | #define PIMA_RETURN_CODE_CaptureAlreadyTerminated 0x2018 |
jakowisp | 1:71c0e9dc153d | 106 | #define PIMA_RETURN_CODE_DeviceBusy 0x2019 |
jakowisp | 1:71c0e9dc153d | 107 | #define PIMA_RETURN_CODE_InvalidParentObject 0x201A |
jakowisp | 1:71c0e9dc153d | 108 | #define PIMA_RETURN_CODE_InvalidDevicePropFormat 0x201B |
jakowisp | 1:71c0e9dc153d | 109 | #define PIMA_RETURN_CODE_InvalidDevicePropValue 0x201C |
jakowisp | 1:71c0e9dc153d | 110 | #define PIMA_RETURN_CODE_InvalidParameter 0x201D |
jakowisp | 1:71c0e9dc153d | 111 | #define PIMA_RETURN_CODE_SessionAlreadyOpened 0x201E |
jakowisp | 1:71c0e9dc153d | 112 | #define PIMA_RETURN_CODE_TransactionCanceled 0x201F |
jakowisp | 1:71c0e9dc153d | 113 | #define PIMA_RETURN_CODE_SpecificationOfDestinationUnsupported 0x2020 |
jakowisp | 0:98cf19bcd828 | 114 | |
jakowisp | 0:98cf19bcd828 | 115 | /* Proprietary vendor extension response code mask */ |
jakowisp | 1:71c0e9dc153d | 116 | #define PIMA_RETURN_CODE_EXTENSION_MASK 0xF000 |
jakowisp | 1:71c0e9dc153d | 117 | #define PIMA_RETURN_CODE_EXTENSION 0xA000 |
jakowisp | 0:98cf19bcd828 | 118 | |
jakowisp | 0:98cf19bcd828 | 119 | /* PTP Event Codes */ |
jakowisp | 1:71c0e9dc153d | 120 | #define PIMA_EVENT_CODE_Undefined 0x4000 |
jakowisp | 1:71c0e9dc153d | 121 | #define PIMA_EVENT_CODE_CancelTransaction 0x4001 |
jakowisp | 1:71c0e9dc153d | 122 | #define PIMA_EVENT_CODE_ObjectAdded 0x4002 |
jakowisp | 1:71c0e9dc153d | 123 | #define PIMA_EVENT_CODE_ObjectRemoved 0x4003 |
jakowisp | 1:71c0e9dc153d | 124 | #define PIMA_EVENT_CODE_StoreAdded 0x4004 |
jakowisp | 1:71c0e9dc153d | 125 | #define PIMA_EVENT_CODE_StoreRemoved 0x4005 |
jakowisp | 1:71c0e9dc153d | 126 | #define PIMA_EVENT_CODE_DevicePropChanged 0x4006 |
jakowisp | 1:71c0e9dc153d | 127 | #define PIMA_EVENT_CODE_ObjectInfoChanged 0x4007 |
jakowisp | 1:71c0e9dc153d | 128 | #define PIMA_EVENT_CODE_DeviceInfoChanged 0x4008 |
jakowisp | 1:71c0e9dc153d | 129 | #define PIMA_EVENT_CODE_RequestObjectTransfer 0x4009 |
jakowisp | 1:71c0e9dc153d | 130 | #define PIMA_EVENT_CODE_StoreFull 0x400A |
jakowisp | 1:71c0e9dc153d | 131 | #define PIMA_EVENT_CODE_DeviceReset 0x400B |
jakowisp | 1:71c0e9dc153d | 132 | #define PIMA_EVENT_CODE_StorageInfoChanged 0x400C |
jakowisp | 1:71c0e9dc153d | 133 | #define PIMA_EVENT_CODE_CaptureComplete 0x400D |
jakowisp | 1:71c0e9dc153d | 134 | #define PIMA_EVENT_CODE_UnreportedStatus 0x400E |
jakowisp | 0:98cf19bcd828 | 135 | |
jakowisp | 0:98cf19bcd828 | 136 | #define PTP_HANDLER_SPECIAL 0xffffffff |
jakowisp | 0:98cf19bcd828 | 137 | #define PTP_HANDLER_ROOT 0x00000000 |
jakowisp | 0:98cf19bcd828 | 138 | |
jakowisp | 0:98cf19bcd828 | 139 | |
jakowisp | 1:71c0e9dc153d | 140 | /* PIMA15740 Object Format Codes */ |
jakowisp | 0:98cf19bcd828 | 141 | |
jakowisp | 0:98cf19bcd828 | 142 | /* ancillary formats */ |
jakowisp | 1:71c0e9dc153d | 143 | #define PIMA_OBJECT_FORMAT_CODE_Undefined 0x3000 |
jakowisp | 1:71c0e9dc153d | 144 | #define PIMA_OBJECT_FORMAT_CODE_Association 0x3001 |
jakowisp | 1:71c0e9dc153d | 145 | #define PIMA_OBJECT_FORMAT_CODE_Script 0x3002 |
jakowisp | 1:71c0e9dc153d | 146 | #define PIMA_OBJECT_FORMAT_CODE_Executable 0x3003 |
jakowisp | 1:71c0e9dc153d | 147 | #define PIMA_OBJECT_FORMAT_CODE_Text 0x3004 |
jakowisp | 1:71c0e9dc153d | 148 | #define PIMA_OBJECT_FORMAT_CODE_HTML 0x3005 |
jakowisp | 1:71c0e9dc153d | 149 | #define PIMA_OBJECT_FORMAT_CODE_DPOF 0x3006 |
jakowisp | 1:71c0e9dc153d | 150 | #define PIMA_OBJECT_FORMAT_CODE_AIFF 0x3007 |
jakowisp | 1:71c0e9dc153d | 151 | #define PIMA_OBJECT_FORMAT_CODE_WAV 0x3008 |
jakowisp | 1:71c0e9dc153d | 152 | #define PIMA_OBJECT_FORMAT_CODE_MP3 0x3009 |
jakowisp | 1:71c0e9dc153d | 153 | #define PIMA_OBJECT_FORMAT_CODE_AVI 0x300A |
jakowisp | 1:71c0e9dc153d | 154 | #define PIMA_OBJECT_FORMAT_CODE_MPEG 0x300B |
jakowisp | 1:71c0e9dc153d | 155 | #define PIMA_OBJECT_FORMAT_CODE_ASF 0x300C |
jakowisp | 1:71c0e9dc153d | 156 | #define PIMA_OBJECT_FORMAT_CODE_QT 0x300D /* guessing */ |
jakowisp | 0:98cf19bcd828 | 157 | |
jakowisp | 0:98cf19bcd828 | 158 | /* image formats */ |
jakowisp | 1:71c0e9dc153d | 159 | #define PIMA_OBJECT_FORMAT_CODE_EXIF_JPEG 0x3801 |
jakowisp | 1:71c0e9dc153d | 160 | #define PIMA_OBJECT_FORMAT_CODE_TIFF_EP 0x3802 |
jakowisp | 1:71c0e9dc153d | 161 | #define PIMA_OBJECT_FORMAT_CODE_FlashPix 0x3803 |
jakowisp | 1:71c0e9dc153d | 162 | #define PIMA_OBJECT_FORMAT_CODE_BMP 0x3804 |
jakowisp | 1:71c0e9dc153d | 163 | #define PIMA_OBJECT_FORMAT_CODE_CIFF 0x3805 |
jakowisp | 1:71c0e9dc153d | 164 | #define PIMA_OBJECT_FORMAT_CODE_Undefined_0x3806 0x3806 |
jakowisp | 1:71c0e9dc153d | 165 | #define PIMA_OBJECT_FORMAT_CODE_GIF 0x3807 |
jakowisp | 1:71c0e9dc153d | 166 | #define PIMA_OBJECT_FORMAT_CODE_JFIF 0x3808 |
jakowisp | 1:71c0e9dc153d | 167 | #define PIMA_OBJECT_FORMAT_CODE_PCD 0x3809 |
jakowisp | 1:71c0e9dc153d | 168 | #define PIMA_OBJECT_FORMAT_CODE_PICT 0x380A |
jakowisp | 1:71c0e9dc153d | 169 | #define PIMA_OBJECT_FORMAT_CODE_PNG 0x380B |
jakowisp | 1:71c0e9dc153d | 170 | #define PIMA_OBJECT_FORMAT_CODE_Undefined_0x380C 0x380C |
jakowisp | 1:71c0e9dc153d | 171 | #define PIMA_OBJECT_FORMAT_CODE_TIFF 0x380D |
jakowisp | 1:71c0e9dc153d | 172 | #define PIMA_OBJECT_FORMAT_CODE_TIFF_IT 0x380E |
jakowisp | 1:71c0e9dc153d | 173 | #define PIMA_OBJECT_FORMAT_CODE_JP2 0x380F |
jakowisp | 1:71c0e9dc153d | 174 | #define PIMA_OBJECT_FORMAT_CODE_JPX 0x3810 |
jakowisp | 0:98cf19bcd828 | 175 | |
jakowisp | 0:98cf19bcd828 | 176 | /* PTP Association Types */ |
jakowisp | 0:98cf19bcd828 | 177 | #define PTP_AT_Undefined 0x0000 |
jakowisp | 0:98cf19bcd828 | 178 | #define PTP_AT_GenericFolder 0x0001 |
jakowisp | 0:98cf19bcd828 | 179 | #define PTP_AT_Album 0x0002 |
jakowisp | 0:98cf19bcd828 | 180 | #define PTP_AT_TimeSequence 0x0003 |
jakowisp | 0:98cf19bcd828 | 181 | #define PTP_AT_HorizontalPanoramic 0x0004 |
jakowisp | 0:98cf19bcd828 | 182 | #define PTP_AT_VerticalPanoramic 0x0005 |
jakowisp | 0:98cf19bcd828 | 183 | #define PTP_AT_2DPanoramic 0x0006 |
jakowisp | 0:98cf19bcd828 | 184 | #define PTP_AT_AncillaryData 0x0007 |
jakowisp | 0:98cf19bcd828 | 185 | |
jakowisp | 0:98cf19bcd828 | 186 | |
jakowisp | 0:98cf19bcd828 | 187 | /* PTP Storage Types */ |
jakowisp | 0:98cf19bcd828 | 188 | #define PTP_ST_Undefined 0x0000 |
jakowisp | 0:98cf19bcd828 | 189 | #define PTP_ST_FixedROM 0x0001 |
jakowisp | 0:98cf19bcd828 | 190 | #define PTP_ST_RemovableROM 0x0002 |
jakowisp | 0:98cf19bcd828 | 191 | #define PTP_ST_FixedRAM 0x0003 |
jakowisp | 0:98cf19bcd828 | 192 | #define PTP_ST_RemovableRAM 0x0004 |
jakowisp | 0:98cf19bcd828 | 193 | |
jakowisp | 0:98cf19bcd828 | 194 | /* PTP FilesystemType Values */ |
jakowisp | 0:98cf19bcd828 | 195 | #define PTP_FST_Undefined 0x0000 |
jakowisp | 0:98cf19bcd828 | 196 | #define PTP_FST_GenericFlat 0x0001 |
jakowisp | 0:98cf19bcd828 | 197 | #define PTP_FST_GenericHierarchical 0x0002 |
jakowisp | 0:98cf19bcd828 | 198 | #define PTP_FST_DCF 0x0003 |
jakowisp | 0:98cf19bcd828 | 199 | |
jakowisp | 0:98cf19bcd828 | 200 | /* PTP StorageInfo AccessCapability Values */ |
jakowisp | 0:98cf19bcd828 | 201 | #define PTP_AC_ReadWrite 0x0000 |
jakowisp | 0:98cf19bcd828 | 202 | #define PTP_AC_ReadOnly 0x0001 |
jakowisp | 0:98cf19bcd828 | 203 | #define PTP_AC_ReadOnly_with_Object_Deletion 0x0002 |
jakowisp | 0:98cf19bcd828 | 204 | |
jakowisp | 0:98cf19bcd828 | 205 | /* DataType Codes */ |
jakowisp | 0:98cf19bcd828 | 206 | #define PTP_DTC_UNDEF 0x0000 |
jakowisp | 0:98cf19bcd828 | 207 | #define PTP_DTC_INT8 0x0001 |
jakowisp | 0:98cf19bcd828 | 208 | #define PTP_DTC_UINT8 0x0002 |
jakowisp | 0:98cf19bcd828 | 209 | #define PTP_DTC_INT16 0x0003 |
jakowisp | 0:98cf19bcd828 | 210 | #define PTP_DTC_UINT16 0x0004 |
jakowisp | 0:98cf19bcd828 | 211 | #define PTP_DTC_INT32 0x0005 |
jakowisp | 0:98cf19bcd828 | 212 | #define PTP_DTC_UINT32 0x0006 |
jakowisp | 0:98cf19bcd828 | 213 | #define PTP_DTC_INT64 0x0007 |
jakowisp | 0:98cf19bcd828 | 214 | #define PTP_DTC_UINT64 0x0008 |
jakowisp | 0:98cf19bcd828 | 215 | #define PTP_DTC_INT128 0x0009 |
jakowisp | 0:98cf19bcd828 | 216 | #define PTP_DTC_UINT128 0x000A |
jakowisp | 0:98cf19bcd828 | 217 | #define PTP_DTC_AINT8 0x4001 |
jakowisp | 0:98cf19bcd828 | 218 | #define PTP_DTC_AUINT8 0x4002 |
jakowisp | 0:98cf19bcd828 | 219 | #define PTP_DTC_AINT16 0x4003 |
jakowisp | 0:98cf19bcd828 | 220 | #define PTP_DTC_AUINT16 0x4004 |
jakowisp | 0:98cf19bcd828 | 221 | #define PTP_DTC_AINT32 0x4005 |
jakowisp | 0:98cf19bcd828 | 222 | #define PTP_DTC_AUINT32 0x4006 |
jakowisp | 0:98cf19bcd828 | 223 | #define PTP_DTC_AINT64 0x4007 |
jakowisp | 0:98cf19bcd828 | 224 | #define PTP_DTC_AUINT64 0x4008 |
jakowisp | 0:98cf19bcd828 | 225 | #define PTP_DTC_AINT128 0x4009 |
jakowisp | 0:98cf19bcd828 | 226 | #define PTP_DTC_AUINT128 0x400A |
jakowisp | 0:98cf19bcd828 | 227 | #define PTP_DTC_STR 0xFFFF |
jakowisp | 0:98cf19bcd828 | 228 | |
jakowisp | 0:98cf19bcd828 | 229 | /* Device Properties Codes */ |
jakowisp | 0:98cf19bcd828 | 230 | #define PTP_DPC_Undefined 0x5000 |
jakowisp | 0:98cf19bcd828 | 231 | #define PTP_DPC_BatteryLevel 0x5001 |
jakowisp | 0:98cf19bcd828 | 232 | #define PTP_DPC_FunctionalMode 0x5002 |
jakowisp | 0:98cf19bcd828 | 233 | #define PTP_DPC_ImageSize 0x5003 |
jakowisp | 0:98cf19bcd828 | 234 | #define PTP_DPC_CompressionSetting 0x5004 |
jakowisp | 0:98cf19bcd828 | 235 | #define PTP_DPC_WhiteBalance 0x5005 |
jakowisp | 0:98cf19bcd828 | 236 | #define PTP_DPC_RGBGain 0x5006 |
jakowisp | 0:98cf19bcd828 | 237 | #define PTP_DPC_FNumber 0x5007 |
jakowisp | 0:98cf19bcd828 | 238 | #define PTP_DPC_FocalLength 0x5008 |
jakowisp | 0:98cf19bcd828 | 239 | #define PTP_DPC_FocusDistance 0x5009 |
jakowisp | 0:98cf19bcd828 | 240 | #define PTP_DPC_FocusMode 0x500A |
jakowisp | 0:98cf19bcd828 | 241 | #define PTP_DPC_ExposureMeteringMode 0x500B |
jakowisp | 0:98cf19bcd828 | 242 | #define PTP_DPC_FlashMode 0x500C |
jakowisp | 0:98cf19bcd828 | 243 | #define PTP_DPC_ExposureTime 0x500D |
jakowisp | 0:98cf19bcd828 | 244 | #define PTP_DPC_ExposureProgramMode 0x500E |
jakowisp | 0:98cf19bcd828 | 245 | #define PTP_DPC_ExposureIndex 0x500F |
jakowisp | 0:98cf19bcd828 | 246 | #define PTP_DPC_ExposureBiasCompensation 0x5010 |
jakowisp | 0:98cf19bcd828 | 247 | #define PTP_DPC_DateTime 0x5011 |
jakowisp | 0:98cf19bcd828 | 248 | #define PTP_DPC_CaptureDelay 0x5012 |
jakowisp | 0:98cf19bcd828 | 249 | #define PTP_DPC_StillCaptureMode 0x5013 |
jakowisp | 0:98cf19bcd828 | 250 | #define PTP_DPC_Contrast 0x5014 |
jakowisp | 0:98cf19bcd828 | 251 | #define PTP_DPC_Sharpness 0x5015 |
jakowisp | 0:98cf19bcd828 | 252 | #define PTP_DPC_DigitalZoom 0x5016 |
jakowisp | 0:98cf19bcd828 | 253 | #define PTP_DPC_EffectMode 0x5017 |
jakowisp | 0:98cf19bcd828 | 254 | #define PTP_DPC_BurstNumber 0x5018 |
jakowisp | 0:98cf19bcd828 | 255 | #define PTP_DPC_BurstInterval 0x5019 |
jakowisp | 0:98cf19bcd828 | 256 | #define PTP_DPC_TimelapseNumber 0x501A |
jakowisp | 0:98cf19bcd828 | 257 | #define PTP_DPC_TimelapseInterval 0x501B |
jakowisp | 0:98cf19bcd828 | 258 | #define PTP_DPC_FocusMeteringMode 0x501C |
jakowisp | 0:98cf19bcd828 | 259 | #define PTP_DPC_UploadURL 0x501D |
jakowisp | 0:98cf19bcd828 | 260 | #define PTP_DPC_Artist 0x501E |
jakowisp | 0:98cf19bcd828 | 261 | #define PTP_DPC_CopyrightInfo 0x501F |
jakowisp | 0:98cf19bcd828 | 262 | |
jakowisp | 0:98cf19bcd828 | 263 | /* Proprietary vendor extension device property mask */ |
jakowisp | 0:98cf19bcd828 | 264 | #define PTP_DPC_EXTENSION_MASK 0xF000 |
jakowisp | 0:98cf19bcd828 | 265 | #define PTP_DPC_EXTENSION 0xD000 |
jakowisp | 0:98cf19bcd828 | 266 | |
jakowisp | 0:98cf19bcd828 | 267 | /* Device Property Form Flag */ |
jakowisp | 0:98cf19bcd828 | 268 | #define PTP_DPFF_None 0x00 |
jakowisp | 0:98cf19bcd828 | 269 | #define PTP_DPFF_Range 0x01 |
jakowisp | 0:98cf19bcd828 | 270 | #define PTP_DPFF_Enumeration 0x02 |
jakowisp | 0:98cf19bcd828 | 271 | |
jakowisp | 0:98cf19bcd828 | 272 | /* Device Property GetSet type */ |
jakowisp | 0:98cf19bcd828 | 273 | #define PTP_DPGS_Get 0x00 |
jakowisp | 0:98cf19bcd828 | 274 | #define PTP_DPGS_GetSet 0x01 |
jakowisp | 0:98cf19bcd828 | 275 | |
jakowisp | 0:98cf19bcd828 | 276 | #endif //__PTPCONST_H__ |