PTM services: Difference between revisions

From Nintendo Switch Brew
Jump to navigation Jump to search
Line 46: Line 46:
| 1 || [[#GetChargerType]]
| 1 || [[#GetChargerType]]
|-
|-
| 2 || EnableBatteryCharging
| 2 || [[#EnableBatteryCharging]]
|-
|-
| 3 || DisableBatteryCharging
| 3 || [[#DisableBatteryCharging]]
|-
|-
| 4 || IsBatteryChargingEnabled
| 4 || IsBatteryChargingEnabled
|-
|-
| 5 || AcquireControllerPowerSupply
| 5 || [[#AcquireControllerPowerSupply]]
|-
|-
| 6 || ReleaseControllerPowerSupply
| 6 || [[#ReleaseControllerPowerSupply]]
|-
|-
| 7 || [[#OpenSession]]
| 7 || [[#OpenSession]]
|-
|-
| 8 || EnableEnoughPowerChargeEmulation
| 8 || [[#EnableEnoughPowerChargeEmulation]]
|-
|-
| 9 || DisableEnoughPowerChargeEmulation
| 9 || [[#DisableEnoughPowerChargeEmulation]]
|-
|-
| 10 || EnableFastBatteryCharging
| 10 || [[#EnableFastBatteryCharging]]
|-
|-
| 11 || DisableFastBatteryCharging
| 11 || [[#DisableFastBatteryCharging]]
|-
|-
| 12 || GetBatteryVoltageState
| 12 || GetBatteryVoltageState
Line 85: Line 85:
== GetChargerType ==
== GetChargerType ==
No input, returns an output u32.
No input, returns an output u32.
== EnableBatteryCharging ==
No input/output.
== DisableBatteryCharging ==
No input/output.
== AcquireControllerPowerSupply ==
No input/output.
== ReleaseControllerPowerSupply ==
No input/output.


== OpenSession ==
== OpenSession ==
No input, returns an output [[#IPsmSession]].
No input, returns an output [[#IPsmSession]].
== EnableEnoughPowerChargeEmulation ==
No input/output.
== DisableEnoughPowerChargeEmulation ==
No input/output.
== EnableFastBatteryCharging ==
No input/output.
== DisableFastBatteryCharging ==
No input/output.


== IPsmSession ==
== IPsmSession ==

Revision as of 00:22, 26 October 2018

fan

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

Cmd Name
0 OpenController

IController

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

Cmd Name
0 SetRotationSpeedLevel
1 SetRotationSpeedLevelByDiff
2 GetRotationSpeedLevel
3 SetRotationRate
4 GetRotationRate
5 EnableFan
6 DisableFan
7 GetActualRotationSpeedLevel

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

GetBatteryChargePercentage

No input, returns an output u32.

GetChargerType

No input, returns an output u32.

EnableBatteryCharging

No input/output.

DisableBatteryCharging

No input/output.

AcquireControllerPowerSupply

No input/output.

ReleaseControllerPowerSupply

No input/output.

OpenSession

No input, returns an output #IPsmSession.

EnableEnoughPowerChargeEmulation

No input/output.

DisableEnoughPowerChargeEmulation

No input/output.

EnableFastBatteryCharging

No input/output.

DisableFastBatteryCharging

No input/output.

IPsmSession

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

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

BindStateChangeEvent

No input, returns an output event.

UnbindStateChangeEvent

No input/output.

SetChargerTypeChangeEventEnabled

Takes an input u8 bool, no output.

SetPowerSupplyChangeEventEnabled

Takes an input u8 bool, no output.

SetBatteryVoltageStateChangeEventEnabled

Takes an input u8 bool, no output.

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

pcm

This is "nn::pcm::IManager".

Cmd Name
0 IsSupported
1 ReadCurrentPower