Library to allo USB PTP device to be hosted by the mbed platform
Dependents: class_project_main
PIMA15740/PIMA15740_types.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 | |
jakowisp | 0:98cf19bcd828 | 6 | #include "PIMAconst.h" |
jakowisp | 0:98cf19bcd828 | 7 | #include "PIMAArray.h" |
jakowisp | 0:98cf19bcd828 | 8 | #include "PIMAString.h" |
jakowisp | 0:98cf19bcd828 | 9 | |
jakowisp | 0:98cf19bcd828 | 10 | |
jakowisp | 0:98cf19bcd828 | 11 | typedef __packed struct { |
jakowisp | 0:98cf19bcd828 | 12 | uint32_t len; |
jakowisp | 0:98cf19bcd828 | 13 | uint16_t type; |
jakowisp | 0:98cf19bcd828 | 14 | uint16_t opcode; |
jakowisp | 0:98cf19bcd828 | 15 | uint32_t TransactionID; |
jakowisp | 0:98cf19bcd828 | 16 | uint32_t param[5]; |
jakowisp | 0:98cf19bcd828 | 17 | } PIMAContainer; |
jakowisp | 0:98cf19bcd828 | 18 | |
jakowisp | 0:98cf19bcd828 | 19 | typedef struct { |
jakowisp | 0:98cf19bcd828 | 20 | uint16_t standardVersion; |
jakowisp | 0:98cf19bcd828 | 21 | uint32_t vendorExtensionID; |
jakowisp | 0:98cf19bcd828 | 22 | uint16_t vendorExtensionVersion; |
jakowisp | 0:98cf19bcd828 | 23 | PIMAString vendorExtensionDesc; |
jakowisp | 0:98cf19bcd828 | 24 | uint16_t functionMode; |
jakowisp | 0:98cf19bcd828 | 25 | PIMAArray operationsSupported; |
jakowisp | 0:98cf19bcd828 | 26 | PIMAArray eventsSupported; |
jakowisp | 0:98cf19bcd828 | 27 | PIMAArray devicePropertiesSupported; |
jakowisp | 0:98cf19bcd828 | 28 | PIMAArray captureFormats; |
jakowisp | 0:98cf19bcd828 | 29 | PIMAArray imageFormats; |
jakowisp | 0:98cf19bcd828 | 30 | PIMAString manufacturer; |
jakowisp | 0:98cf19bcd828 | 31 | PIMAString model; |
jakowisp | 0:98cf19bcd828 | 32 | PIMAString deviceVersion; |
jakowisp | 0:98cf19bcd828 | 33 | PIMAString serialNumber; |
jakowisp | 0:98cf19bcd828 | 34 | } DeviceInfoStruct; |
jakowisp | 0:98cf19bcd828 | 35 | |
jakowisp | 0:98cf19bcd828 | 36 | typedef struct { |
jakowisp | 0:98cf19bcd828 | 37 | uint32_t storageID; //0x0 |
jakowisp | 0:98cf19bcd828 | 38 | uint16_t objectFormat; //0x4 |
jakowisp | 0:98cf19bcd828 | 39 | uint16_t protectionStatus; //0x6 |
jakowisp | 0:98cf19bcd828 | 40 | uint32_t objectCompressSize; //0x8 |
jakowisp | 0:98cf19bcd828 | 41 | uint16_t thumbFormat; //0xc |
jakowisp | 0:98cf19bcd828 | 42 | uint32_t thumbCompressedSize; //0xd |
jakowisp | 0:98cf19bcd828 | 43 | uint32_t thumbPixWidth; //0x12 |
jakowisp | 0:98cf19bcd828 | 44 | uint32_t thumbPixHeight; //0x16 |
jakowisp | 0:98cf19bcd828 | 45 | uint32_t imagePixWidth; //0x1a |
jakowisp | 0:98cf19bcd828 | 46 | uint32_t imagePixHeight; //0x1e |
jakowisp | 0:98cf19bcd828 | 47 | uint32_t imageBitDepth; //0x22 |
jakowisp | 0:98cf19bcd828 | 48 | uint32_t parentObject; //0x26 |
jakowisp | 0:98cf19bcd828 | 49 | uint16_t associationType; //0x2a |
jakowisp | 0:98cf19bcd828 | 50 | uint32_t associationDesc; //0x2c |
jakowisp | 0:98cf19bcd828 | 51 | uint32_t sequenceNumber; //0x30 |
jakowisp | 0:98cf19bcd828 | 52 | PIMAString filename; //0x34 |
jakowisp | 0:98cf19bcd828 | 53 | PIMAString captureDate; |
jakowisp | 0:98cf19bcd828 | 54 | PIMAString modificationDate; |
jakowisp | 0:98cf19bcd828 | 55 | PIMAString keywords; |
jakowisp | 0:98cf19bcd828 | 56 | } ObjectInfoStruct; |
jakowisp | 0:98cf19bcd828 | 57 |