USB services: Difference between revisions

No edit summary
Line 761: Line 761:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || [[#AccessCradleVdoWithWriteRequest]]  
| 0 || [[#SetCradleVdo]]  
|-
|-
| 1 || [[#AccessCradleVdoWithReadRequest]]
| 1 || [[#GetCradleVdo]]
|-
|-
| 2 ||  
| 2 || [[#ResetCradleUsbHub]]
|-
|-
| 3 || [2.0.0+] GetFwType
| 3 || [2.0.0+] [[#GetHostPdcFirmwareType]]
|-
|-
| 4 || [2.0.0+] GetFwRevision
| 4 || [2.0.0+] [[#GetHostPdcFirmwareRevision]]
|-
|-
| 5 || [2.0.0+] GetManufacturerId
| 5 || [2.0.0+] [[#GetHostPdcManufactureId]]
|-
|-
| 6 || [2.0.0+] GetDeviceId
| 6 || [2.0.0+] [[#GetHostPdcDeviceId]]
|-
|-
| 7 || [3.0.0+]
| 7 || [3.0.0+]
Line 780: Line 780:
|}
|}


=== AccessCradleVdoWithWriteRequest ===
=== SetCradleVdo ===
Takes two input u32s '''Value''' and '''UserId'''. No output.
Takes two input u32s '''Value''' and '''UserId'''. No output.


'''UserId''' is translated to the actual [[#VdmCommand]] to send.
'''UserId''' is translated to the actual [[#VdmCommand]] to send.


=== AccessCradleVdoWithReadRequest ===
=== GetCradleVdo ===
Takes an input u32 '''UserId'''. Returns an u32 '''Value'''.
Takes an input u32 '''UserId'''. Returns an u32 '''Value'''.


'''UserId''' is translated to the actual [[#VdmCommand]] to send.
'''UserId''' is translated to the actual [[#VdmCommand]] to send.


=== Cmd2 ===
=== ResetCradleUsbHub ===
No input/output.
No input/output.


Sends [[#VdmCommand|VdmCommands]] 32 and 30.
Sends [[#VdmCommand|VdmCommands]] 32 and 30.


=== GetFwType ===
=== GetHostPdcFirmwareType ===
No input. Returns an output u16.
No input. Returns an output u16.


=== GetFwRevision ===
=== GetHostPdcFirmwareRevision ===
No input. Returns an output u16.
No input. Returns an output u16.


=== GetManufacturerId ===
=== GetHostPdcManufactureId ===
No input. Returns an output u16.
No input. Returns an output u16.


=== GetDeviceId ===
=== GetHostPdcDeviceId ===
No input. Returns an output u16.
No input. Returns an output u16.


Line 835: Line 835:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || GetFwType
| 0 || [[#GetHostPdcFirmwareType]]
|-
|-
| 1 || GetFwRevision
| 1 || [[#GetHostPdcFirmwareRevision]]
|-
|-
| 2 || GetManufacturerId
| 2 || [[#GetHostPdcManufactureId]]
|-
|-
| 3 || GetDeviceId
| 3 || [[#GetHostPdcDeviceId]]
|}
|}