USB services: Difference between revisions
No edit summary |
No edit summary |
||
Line 782: | Line 782: | ||
=== SetCradleVdo === | === SetCradleVdo === | ||
Takes | Takes an input u32 '''Value''' and a [[#CradleVdmCommand]]. No output. | ||
[[#CradleVdmCommand]] is translated to the actual [[#VdmCommand]] to send. | |||
=== GetCradleVdo === | === GetCradleVdo === | ||
Takes an input | Takes an input [[#CradleVdmCommand]]. Returns an u32 '''Value'''. | ||
[[#CradleVdmCommand]] is translated to the actual [[#VdmCommand]] to send. | |||
=== ResetCradleUsbHub === | === ResetCradleUsbHub === | ||
Line 1,030: | Line 1,030: | ||
Official sw only uses the Result/size fields. | Official sw only uses the Result/size fields. | ||
= CradleVdmCommand = | |||
This is "nn::usb::pd::CradleVdmCommand". | |||
{| class="wikitable" border="1" | |||
|- | |||
! Value || Name | |||
|- | |||
| 0 || | |||
|- | |||
| 1 || | |||
|- | |||
| 2 || | |||
|- | |||
| 3 || | |||
|- | |||
| 4 || | |||
|- | |||
| 5 || | |||
|- | |||
| 6 || | |||
|- | |||
| 7 || | |||
|- | |||
| 8 || | |||
|- | |||
| 9 || | |||
|- | |||
| 10 || | |||
|} | |||
= VdmCommand = | = VdmCommand = | ||
Line 1,036: | Line 1,066: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! Value || | ! Value || [[#CradleVdmCommand|CradleVdmCommand]] || [[#VdmCommandType|VdmCommandType]] || VdmCommandLength || Name | ||
|- | |- | ||
| 0 || - || -1 || 0 || None | | 0 || - || -1 || 0 || None |