Changes

Jump to navigation Jump to search
304 bytes added ,  18:58, 8 August 2021
no edit summary
Line 782: Line 782:     
=== SetCradleVdo ===
 
=== SetCradleVdo ===
Takes two input u32s '''Value''' and '''UserId'''. No output.
+
Takes an input u32 '''Value''' and a [[#CradleVdmCommand]]. No output.
   −
'''UserId''' is translated to the actual [[#VdmCommand]] to send.
+
[[#CradleVdmCommand]] is translated to the actual [[#VdmCommand]] to send.
    
=== GetCradleVdo ===
 
=== GetCradleVdo ===
Takes an input u32 '''UserId'''. Returns an u32 '''Value'''.
+
Takes an input [[#CradleVdmCommand]]. Returns an u32 '''Value'''.
   −
'''UserId''' is translated to the actual [[#VdmCommand]] to send.
+
[[#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 || UserId || [[#VdmCommandType|VdmCommandType]] || VdmCommandLength || Name
+
! Value || [[#CradleVdmCommand|CradleVdmCommand]] || [[#VdmCommandType|VdmCommandType]] || VdmCommandLength || Name
 
|-
 
|-
 
| 0 || - || -1 || 0 || None
 
| 0 || - || -1 || 0 || None

Navigation menu