![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Data Structures | |
struct | PIMA_Container_t |
PIMA Still Image Device Command/Response Container. More... | |
Macros | |
#define | UNICODE_STRING_LENGTH(Chars) ((Chars) << 1) |
#define | PIMA_COMMAND_SIZE(Params) ((sizeof(PIMA_Container_t) - 12) + ((Params) * sizeof(uint32_t))) |
#define | PIMA_DATA_SIZE(DataLen) ((sizeof(PIMA_Container_t) - 12) + (DataLen)) |
Enumerations | |
enum | PIMA_Container_Types_t { PIMA_CONTAINER_Undefined = 0, PIMA_CONTAINER_CommandBlock = 1, PIMA_CONTAINER_DataBlock = 2, PIMA_CONTAINER_ResponseBlock = 3, PIMA_CONTAINER_EventBlock = 4 } |
enum | SI_Descriptor_ClassSubclassProtocol_t { SI_CSCP_StillImageClass = 0x06, SI_CSCP_StillImageSubclass = 0x01, SI_CSCP_BulkOnlyProtocol = 0x01 } |
enum | PIMA_ResponseCodes_t { PIMA_RESPONSE_OK = 1, PIMA_RESPONSE_GeneralError = 2, PIMA_RESPONSE_SessionNotOpen = 3, PIMA_RESPONSE_InvalidTransaction = 4, PIMA_RESPONSE_OperationNotSupported = 5, PIMA_RESPONSE_ParameterNotSupported = 6 } |
Constants, Types and Enum definitions that are common to both Device and Host modes for the USB Still Image Class.
#define PIMA_COMMAND_SIZE | ( | Params | ) | ((sizeof(PIMA_Container_t) - 12) + ((Params) * sizeof(uint32_t))) |
Used in the DataLength field of a PIMA container, to give the total container size in bytes for a command container.
Params | Number of parameters which are to be sent in the Param field of the container. |
Definition at line 73 of file StillImageClassCommon.h.
#define PIMA_DATA_SIZE | ( | DataLen | ) | ((sizeof(PIMA_Container_t) - 12) + (DataLen)) |
Used in the DataLength field of a PIMA container, to give the total container size in bytes for a data container.
DataLen | Length in bytes of the data in the container. |
Definition at line 80 of file StillImageClassCommon.h.
#define UNICODE_STRING_LENGTH | ( | Chars | ) | ((Chars) << 1) |
Length in bytes of a given Unicode string's character length.
Chars | Total number of Unicode characters in the string. |
Definition at line 66 of file StillImageClassCommon.h.
Enum for the possible PIMA contains types.
Definition at line 84 of file StillImageClassCommon.h.
enum PIMA_ResponseCodes_t |
Enums for the possible status codes of a returned Response Block from an attached PIMA compliant Still Image device.
Definition at line 111 of file StillImageClassCommon.h.
Enum for possible Class, Subclass and Protocol values of device and interface descriptors relating to the Still Image device class.
Definition at line 97 of file StillImageClassCommon.h.