PTM services: Difference between revisions

Masagrator (talk | contribs)
 
(7 intermediate revisions by 3 users not shown)
Line 112: Line 112:
|-
|-
| 20 || [18.0.0+]
| 20 || [18.0.0+]
|-
| 21 || [19.0.0-19.0.1]
|-
| 22 || [19.0.0+]
|-
| 23 || [19.0.0+]
|-
| 24 || [20.0.0+]
|-
| 25 || [21.0.0+]
|-
| 26 || [21.0.0+]
|-
| 27 || [21.0.0+]
|}
|}


Line 187: Line 201:
|-
|-
| 4 || [[#SetBatteryVoltageStateChangeEventEnabled|SetBatteryVoltageStateChangeEventEnabled]]
| 4 || [[#SetBatteryVoltageStateChangeEventEnabled|SetBatteryVoltageStateChangeEventEnabled]]
|-
| 5 || [20.0.0+]
|}
|}


Line 400: Line 416:
|-
|-
| 10 || [11.0.0+] LoadAndApplySettings
| 10 || [11.0.0+] LoadAndApplySettings
|-
| 11 || [20.0.0+]
|-
| 12 || [20.0.0+]
|-
| 13 || [20.0.0+]
|}
|}


Line 587: Line 609:
= fgm, fgm:0, fgm:1, fgm:2, fgm:3, fgm:4, fgm:5, fgm:6, fgm:7, fgm:9 =
= fgm, fgm:0, fgm:1, fgm:2, fgm:3, fgm:4, fgm:5, fgm:6, fgm:7, fgm:9 =
These are "nn::fgm::sf::ISession".
These are "nn::fgm::sf::ISession".
[19.0.0+] These are "nn::fgm::ISession".


Each service represents a different priority from 0 (Highest/Thermal) to 9 (Lowest). The "fgm" service represents priority 8 (Default).
Each service represents a different priority from 0 (Highest/Thermal) to 9 (Lowest). The "fgm" service represents priority 8 (Default).
Line 604: Line 628:
== IRequest ==
== IRequest ==
This is "nn::fgm::sf::IRequest".
This is "nn::fgm::sf::IRequest".
[19.0.0+] This is "nn::fgm::IRequest".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 822: Line 848:
| 0x28 || 0x4 || BatteryAgePercentage (battery age capacity full/capacity design per cent-mille, i.e. 100% = 100000 pcm)
| 0x28 || 0x4 || BatteryAgePercentage (battery age capacity full/capacity design per cent-mille, i.e. 100% = 100000 pcm)
|-
|-
| 0x2C || 0x4 || [[#UsbPowerRole|UsbPowerRole]]
| 0x2C || 0x4 || [17.0.0+] ChargerInputVoltageLimit(?)
|-
|-
| 0x30 || 0x4 || [[#UsbChargerType|UsbChargerType]]
| [17.0.0+] 0x30 ([1.0.0-16.1.0] 0x2C) || 0x4 || [[USB_services#UsbPowerRole|UsbPowerRole]]
|-
|-
| 0x34 || 0x4 || ChargerInputVoltageLimit (charger voltage limit in mV)
| [17.0.0+] 0x34 ([1.0.0-16.1.0] 0x30) || 0x4 || [[USB_services#UsbChargerType|UsbChargerType]]
|-
|-
| 0x38 || 0x4 || ChargerInputCurrentLimit (charger current limit in mA)
| [17.0.0+] 0x38 ([1.0.0-16.1.0] 0x34) || 0x4 || ChargerInputVoltageLimit (charger voltage limit in mV)
|-
|-
| 0x3C || 0x1 || [[#FastBatteryCharging|FastBatteryCharging]]
| [17.0.0+] 0x3C ([1.0.0-16.1.0] 0x38) || 0x4 || ChargerInputCurrentLimit (charger current limit in mA)
|-
|-
| 0x3D || 0x1 || [[#ControllerPowerSupply|ControllerPowerSupply]]
| [17.0.0+] 0x40 ([1.0.0-16.1.0] 0x3C) || 0x1 || [[#FastBatteryCharging|FastBatteryCharging]]
|-
|-
| 0x3E || 0x1 || [[#OtgRequest|OtgRequest]]
| [17.0.0+] 0x41 ([1.0.0-16.1.0] 0x3D) || 0x1 || [[#ControllerPowerSupply|ControllerPowerSupply]]
|-
|-
| 0x3F || 0x1 || Reserved
| [17.0.0+] 0x42 ([1.0.0-16.1.0] 0x3E) || 0x1 || [[#OtgRequest|OtgRequest]]
|-
|-
| 0x40 || 0x14 || [17.0.0+]
| [17.0.0+] 0x43 ([1.0.0-16.1.0] 0x3F) || 0x1 || Reserved
|-
| 0x44 || 0x10 || [17.0.0+]
|}
|}


Line 871: Line 899:
|-
|-
| 1 || Enable
| 1 || Enable
|}
== UsbPowerRole ==
{| class="wikitable" border="1"
|-
! Value || Name
|-
| 0 || Unknown
|-
| 1 || Sink
|-
| 2 || Source
|}
== UsbChargerType ==
{| class="wikitable" border="1"
|-
! Value || Name
|-
| 0 || Unknown
|-
| 1 || Pd
|-
| 2 || TypeC15
|-
| 3 || TypeC30
|-
| 4 || Dcp
|-
| 5 || Cdp
|-
| 6 || Sdp
|-
| 7 || Apple500
|-
| 8 || Apple1000
|-
| 9 || Apple2000
|}
|}