USB services: Difference between revisions
Line 384: | Line 384: | ||
! Cmd || Name || Notes | ! Cmd || Name || Notes | ||
|- | |- | ||
| 0 || | | 0 || VdmUserWrite || Input { u32 value; u32 VdmUserId; }. Output {}. | ||
If Cradle or RelayBox is connected, issues given VDM with value. | |||
|- | |- | ||
| 1 || | | 1 || VdmUserRead || Input { u32 VdmUserId; }. Output { u32 value; }. | ||
If Cradle or RelayBox is connected, returns u32 response from issuing given VDM. | |||
|- | |- | ||
| 2 || | | 2 || Vdm20Init || No input/output. | ||
If Cradle or RelayBox is connected, caches result of VDM 0x20. | |||
|- | |- | ||
| 3 || | | 3 || GetFwType || No input. Returns an output u16. | ||
|- | |- | ||
| 4 || | | 4 || GetFwRevision || No input. Returns an output u16. | ||
|- | |- | ||
| 5 || | | 5 || GetManufacturerId || No input. Returns an output u16. | ||
|- | |- | ||
| 6 || | | 6 || GetDeviceId || No input. Returns an output u16. | ||
|} | |} | ||
Note: The VdmUserId given to VdmUserRead/VdmUserWrite is translated from the given (enum) value to the actual cmd to send. | |||
= usb:pm = | = usb:pm = |