Library to allo USB PTP device to be hosted by the mbed platform
Dependents: class_project_main
PIMA15740/PIMA15740_types.h@0:98cf19bcd828, 2013-08-23 (annotated)
- Committer:
- jakowisp
- Date:
- Fri Aug 23 00:52:52 2013 +0000
- Revision:
- 0:98cf19bcd828
- Child:
- 1:71c0e9dc153d
Fix for a buffer overrun and refactored the Tranactoion code.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jakowisp | 0:98cf19bcd828 | 1 | #include "PIMAconst.h" |
jakowisp | 0:98cf19bcd828 | 2 | #include "PIMAArray.h" |
jakowisp | 0:98cf19bcd828 | 3 | #include "PIMAString.h" |
jakowisp | 0:98cf19bcd828 | 4 | |
jakowisp | 0:98cf19bcd828 | 5 | |
jakowisp | 0:98cf19bcd828 | 6 | typedef __packed struct { |
jakowisp | 0:98cf19bcd828 | 7 | uint32_t len; |
jakowisp | 0:98cf19bcd828 | 8 | uint16_t type; |
jakowisp | 0:98cf19bcd828 | 9 | uint16_t opcode; |
jakowisp | 0:98cf19bcd828 | 10 | uint32_t TransactionID; |
jakowisp | 0:98cf19bcd828 | 11 | uint32_t param[5]; |
jakowisp | 0:98cf19bcd828 | 12 | } PIMAContainer; |
jakowisp | 0:98cf19bcd828 | 13 | |
jakowisp | 0:98cf19bcd828 | 14 | typedef struct { |
jakowisp | 0:98cf19bcd828 | 15 | uint16_t standardVersion; |
jakowisp | 0:98cf19bcd828 | 16 | uint32_t vendorExtensionID; |
jakowisp | 0:98cf19bcd828 | 17 | uint16_t vendorExtensionVersion; |
jakowisp | 0:98cf19bcd828 | 18 | PIMAString vendorExtensionDesc; |
jakowisp | 0:98cf19bcd828 | 19 | uint16_t functionMode; |
jakowisp | 0:98cf19bcd828 | 20 | PIMAArray operationsSupported; |
jakowisp | 0:98cf19bcd828 | 21 | PIMAArray eventsSupported; |
jakowisp | 0:98cf19bcd828 | 22 | PIMAArray devicePropertiesSupported; |
jakowisp | 0:98cf19bcd828 | 23 | PIMAArray captureFormats; |
jakowisp | 0:98cf19bcd828 | 24 | PIMAArray imageFormats; |
jakowisp | 0:98cf19bcd828 | 25 | PIMAString manufacturer; |
jakowisp | 0:98cf19bcd828 | 26 | PIMAString model; |
jakowisp | 0:98cf19bcd828 | 27 | PIMAString deviceVersion; |
jakowisp | 0:98cf19bcd828 | 28 | PIMAString serialNumber; |
jakowisp | 0:98cf19bcd828 | 29 | } DeviceInfoStruct; |
jakowisp | 0:98cf19bcd828 | 30 | |
jakowisp | 0:98cf19bcd828 | 31 | typedef struct { |
jakowisp | 0:98cf19bcd828 | 32 | uint32_t storageID; //0x0 |
jakowisp | 0:98cf19bcd828 | 33 | uint16_t objectFormat; //0x4 |
jakowisp | 0:98cf19bcd828 | 34 | uint16_t protectionStatus; //0x6 |
jakowisp | 0:98cf19bcd828 | 35 | uint32_t objectCompressSize; //0x8 |
jakowisp | 0:98cf19bcd828 | 36 | uint16_t thumbFormat; //0xc |
jakowisp | 0:98cf19bcd828 | 37 | uint32_t thumbCompressedSize; //0xd |
jakowisp | 0:98cf19bcd828 | 38 | uint32_t thumbPixWidth; //0x12 |
jakowisp | 0:98cf19bcd828 | 39 | uint32_t thumbPixHeight; //0x16 |
jakowisp | 0:98cf19bcd828 | 40 | uint32_t imagePixWidth; //0x1a |
jakowisp | 0:98cf19bcd828 | 41 | uint32_t imagePixHeight; //0x1e |
jakowisp | 0:98cf19bcd828 | 42 | uint32_t imageBitDepth; //0x22 |
jakowisp | 0:98cf19bcd828 | 43 | uint32_t parentObject; //0x26 |
jakowisp | 0:98cf19bcd828 | 44 | uint16_t associationType; //0x2a |
jakowisp | 0:98cf19bcd828 | 45 | uint32_t associationDesc; //0x2c |
jakowisp | 0:98cf19bcd828 | 46 | uint32_t sequenceNumber; //0x30 |
jakowisp | 0:98cf19bcd828 | 47 | PIMAString filename; //0x34 |
jakowisp | 0:98cf19bcd828 | 48 | PIMAString captureDate; |
jakowisp | 0:98cf19bcd828 | 49 | PIMAString modificationDate; |
jakowisp | 0:98cf19bcd828 | 50 | PIMAString keywords; |
jakowisp | 0:98cf19bcd828 | 51 | } ObjectInfoStruct; |
jakowisp | 0:98cf19bcd828 | 52 |