embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module op

Module op 

Source
Expand description

MTP / PTP operation codes (OperationCode).

Constantsยง

BEGIN_EDIT_OBJECT
Begin editing an existing object in-place (MTP extension).
CLOSE_SESSION
Close the active MTP session.
COPY_OBJECT
Copy an object to another parent/storage.
DELETE_OBJECT
Delete an object (or association tree).
END_EDIT_OBJECT
Commit in-place edits to an object (MTP extension).
FORMAT_STORE
Format a storage volume.
GET_DEVICE_INFO
Query device capabilities, supported operations, and identification strings.
GET_DEVICE_PROP_DESC
Query a device property descriptor.
GET_DEVICE_PROP_VALUE
Query a device property value.
GET_NUM_OBJECTS
Count objects matching a storage/format/parent filter.
GET_OBJECT
Read the full binary contents of an object.
GET_OBJECT_HANDLES
Retrieve handles of objects matching a storage/format/parent filter.
GET_OBJECT_INFO
Retrieve metadata (ObjectInfo) for an object handle.
GET_OBJECT_PROPS_SUPPORTED
Query object property codes supported for a given object format.
GET_OBJECT_PROP_DESC
Query descriptor for an object property.
GET_OBJECT_PROP_LIST
Query a list of object property values.
GET_OBJECT_PROP_VALUE
Read an object property value.
GET_OBJECT_REFERENCES
Query object references.
GET_PARTIAL_OBJECT
Read a byte range from an object (offset, max_bytes).
GET_PARTIAL_OBJECT_64
Read a 64-bit byte range from a large object (MTP extension).
GET_STORAGE_IDS
Retrieve the list of active storage IDs.
GET_STORAGE_INFO
Retrieve metadata about a storage volume.
GET_THUMB
Read the thumbnail binary data of an object.
INITIATE_CAPTURE
Trigger image capture on imaging devices.
INITIATE_OPEN_CAPTURE
Start an open capture operation.
MOVE_OBJECT
Move an object to another parent/storage.
OPEN_SESSION
Open a new MTP session.
POWER_DOWN
Power down the device.
RESET_DEVICE
Reset the device.
RESET_DEVICE_PROP_VALUE
Reset a device property to its default value.
SELF_TEST
Run a device self-test.
SEND_OBJECT
Send binary data for the object previously declared by SEND_OBJECT_INFO.
SEND_OBJECT_INFO
Send metadata (ObjectInfo) before creating a new object.
SEND_PARTIAL_OBJECT
Write a 64-bit byte range into an object (MTP extension).
SET_DEVICE_PROP_VALUE
Update a device property value.
SET_OBJECT_PROP_LIST
Update a list of object property values.
SET_OBJECT_PROP_VALUE
Write an object property value.
SET_OBJECT_PROTECTION
Set write-protection on an object.
SET_OBJECT_REFERENCES
Update object references.
TERMINATE_OPEN_CAPTURE
Terminate an open capture session.
TRUNCATE_OBJECT
Truncate an object to a 64-bit length (MTP extension).