Difference between revisions of "PTM services"

From Nintendo Switch Brew
Jump to navigation Jump to search
(Add full interface name (imported from SwIPC))
Line 31: Line 31:
 
! Cmd || Name
 
! Cmd || Name
 
|-
 
|-
| 0 ||
+
| 0 || GetBatteryChargePercentage
 
|-
 
|-
| 1 ||
+
| 1 || GetChargerType
 
|-
 
|-
| 2 ||
+
| 2 || EnableBatteryCharging
 
|-
 
|-
| 3 ||
+
| 3 || DisableBatteryCharging
 
|-
 
|-
| 4 ||
+
| 4 || IsBatteryChargingEnabled
 
|-
 
|-
| 5 ||
+
| 5 || AcquireControllerPowerSupply
 
|-
 
|-
| 6 ||
+
| 6 || ReleaseControllerPowerSupply
 
|-
 
|-
 
| 7 || OpenSession
 
| 7 || OpenSession
 
|-
 
|-
| 8 ||
+
| 8 || EnableEnoughPowerChargeEmulation
 
|-
 
|-
| 9 ||
+
| 9 || DisableEnoughPowerChargeEmulation
 
|-
 
|-
| 10 ||
+
| 10 || EnableFastBatteryCharging
 
|-
 
|-
| 11 ||
+
| 11 || DisableFastBatteryCharging
 
|-
 
|-
 
| 12 || GetBatteryVoltageState
 
| 12 || GetBatteryVoltageState
Line 59: Line 59:
 
| 13 || GetRawBatteryChargePercentage
 
| 13 || GetRawBatteryChargePercentage
 
|-
 
|-
| 14 ||
+
| 14 || IsEnoughPowerSupplied
 
|-
 
|-
| 15 ||
+
| 15 || GetBatteryAgePercentage
 
|-
 
|-
| 16 ||
+
| 16 || GetBatteryChargeInfoEvent
 
|-
 
|-
| 17 ||
+
| 17 || GetBatteryChargeInfoFields
 
|-
 
|-
 
|}
 
|}

Revision as of 20:50, 20 March 2018

fan

This is "nn::fan::detail::IManager".

Cmd Name
0
1
2
3
4
5
6
7

psm

This is "nn::psm::IPsmServer".

Cmd Name
0 GetBatteryChargePercentage
1 GetChargerType
2 EnableBatteryCharging
3 DisableBatteryCharging
4 IsBatteryChargingEnabled
5 AcquireControllerPowerSupply
6 ReleaseControllerPowerSupply
7 OpenSession
8 EnableEnoughPowerChargeEmulation
9 DisableEnoughPowerChargeEmulation
10 EnableFastBatteryCharging
11 DisableFastBatteryCharging
12 GetBatteryVoltageState
13 GetRawBatteryChargePercentage
14 IsEnoughPowerSupplied
15 GetBatteryAgePercentage
16 GetBatteryChargeInfoEvent
17 GetBatteryChargeInfoFields

IPsmSession

This is "nn::psm::IPsmSession".

Cmd Name
0 BindStateChangeEvent
1 UnbindStateChangeEvent
2 SetChargerTypeChangeEventEnabled
3 SetPowerSupplyChangeEventEnabled
4 SetBatteryVoltageStateChangeEventEnabled

tc

This is "nn::tc::IManager".

Cmd Name
0 SetOperatingMode
1 GetThermalEvent
2
3
4
5
6
7
8

ts

This is "nn::ts::server::IMeasurementServer".

Cmd Name
0
1
2
3