Line 45: |
Line 45: |
| ! Cmd || Name | | ! Cmd || Name |
| |- | | |- |
− | | 0 || [[#GetBatteryChargePercentage]] | + | | 0 || [[#GetBatteryChargePercentage|GetBatteryChargePercentage]] |
| |- | | |- |
− | | 1 || [[#GetChargerType]] | + | | 1 || [[#GetChargerType|GetChargerType]] |
| |- | | |- |
− | | 2 || [[#EnableBatteryCharging]] | + | | 2 || [[#EnableBatteryCharging|EnableBatteryCharging]] |
| |- | | |- |
− | | 3 || [[#DisableBatteryCharging]] | + | | 3 || [[#DisableBatteryCharging|DisableBatteryCharging]] |
| |- | | |- |
− | | 4 || [[#IsBatteryChargingEnabled]] | + | | 4 || [[#IsBatteryChargingEnabled|IsBatteryChargingEnabled]] |
| |- | | |- |
− | | 5 || [[#AcquireControllerPowerSupply]] | + | | 5 || [[#AcquireControllerPowerSupply|AcquireControllerPowerSupply]] |
| |- | | |- |
− | | 6 || [[#ReleaseControllerPowerSupply]] | + | | 6 || [[#ReleaseControllerPowerSupply|ReleaseControllerPowerSupply]] |
| |- | | |- |
− | | 7 || [[#OpenSession]] | + | | 7 || [[#OpenSession_1|OpenSession]] |
| |- | | |- |
− | | 8 || [[#EnableEnoughPowerChargeEmulation]] | + | | 8 || [[#EnableEnoughPowerChargeEmulation|EnableEnoughPowerChargeEmulation]] |
| |- | | |- |
− | | 9 || [[#DisableEnoughPowerChargeEmulation]] | + | | 9 || [[#DisableEnoughPowerChargeEmulation|DisableEnoughPowerChargeEmulation]] |
| |- | | |- |
− | | 10 || [[#EnableFastBatteryCharging]] | + | | 10 || [[#EnableFastBatteryCharging|EnableFastBatteryCharging]] |
| |- | | |- |
− | | 11 || [[#DisableFastBatteryCharging]] | + | | 11 || [[#DisableFastBatteryCharging|DisableFastBatteryCharging]] |
| |- | | |- |
− | | 12 || [[#GetBatteryVoltageState]] | + | | 12 || [[#GetBatteryVoltageState|GetBatteryVoltageState]] |
| |- | | |- |
− | | 13 || [[#GetRawBatteryChargePercentage]] | + | | 13 || [[#GetRawBatteryChargePercentage|GetRawBatteryChargePercentage]] |
| |- | | |- |
− | | 14 || [[#IsEnoughPowerSupplied]] | + | | 14 || [[#IsEnoughPowerSupplied|IsEnoughPowerSupplied]] |
| |- | | |- |
− | | 15 || [[#GetBatteryAgePercentage]] | + | | 15 || [[#GetBatteryAgePercentage|GetBatteryAgePercentage]] |
| |- | | |- |
− | | 16 || [[#GetBatteryChargeInfoEvent]] | + | | 16 || [[#GetBatteryChargeInfoEvent|GetBatteryChargeInfoEvent]] |
| |- | | |- |
− | | 17 || [[#GetBatteryChargeInfoFields]] | + | | 17 || [[#GetBatteryChargeInfoFields|GetBatteryChargeInfoFields]] |
| |- | | |- |
− | | 18 || [3.0.0+] [[#GetBatteryChargeCalibratedEvent]] | + | | 18 || [3.0.0+] [[#GetBatteryChargeCalibratedEvent|GetBatteryChargeCalibratedEvent]] |
| |} | | |} |
| | | |
Line 148: |
Line 148: |
| ! Cmd || Name | | ! Cmd || Name |
| |- | | |- |
− | | 0 || [[#BindStateChangeEvent]] | + | | 0 || [[#BindStateChangeEvent|BindStateChangeEvent]] |
| |- | | |- |
− | | 1 || [[#UnbindStateChangeEvent]] | + | | 1 || [[#UnbindStateChangeEvent|UnbindStateChangeEvent]] |
| |- | | |- |
− | | 2 || [[#SetChargerTypeChangeEventEnabled]] | + | | 2 || [[#SetChargerTypeChangeEventEnabled|SetChargerTypeChangeEventEnabled]] |
| |- | | |- |
− | | 3 || [[#SetPowerSupplyChangeEventEnabled]] | + | | 3 || [[#SetPowerSupplyChangeEventEnabled|SetPowerSupplyChangeEventEnabled]] |
| |- | | |- |
− | | 4 || [[#SetBatteryVoltageStateChangeEventEnabled]] | + | | 4 || [[#SetBatteryVoltageStateChangeEventEnabled|SetBatteryVoltageStateChangeEventEnabled]] |
| |} | | |} |
| | | |
Line 173: |
Line 173: |
| === SetBatteryVoltageStateChangeEventEnabled === | | === SetBatteryVoltageStateChangeEventEnabled === |
| Takes an input bool. No output. | | Takes an input bool. No output. |
| + | |
| + | = psm:manu = |
| + | This is "nn::psm::IPsmManufactureServer". |
| + | |
| + | This service is not present in retail units. |
| + | |
| + | {| class="wikitable" border="1" |
| + | |- |
| + | ! Cmd || Name |
| + | |- |
| + | | 0 || [[#EnableVdd50StateControl|EnableVdd50StateControl]] |
| + | |- |
| + | | 1 || [[#DisableVdd50StateControl|DisableVdd50StateControl]] |
| + | |- |
| + | | 2 || [[#SetVdd50State|SetVdd50State]] |
| + | |} |
| + | |
| + | == EnableVdd50StateControl == |
| + | Unofficial name. |
| + | |
| + | No input/output. |
| + | |
| + | == DisableVdd50StateControl == |
| + | Unofficial name. |
| + | |
| + | No input/output. |
| + | |
| + | == SetVdd50State == |
| + | Unofficial name. |
| + | |
| + | Takes an input [[#Vdd50State]]. No output. |
| | | |
| = tc = | | = tc = |
Line 211: |
Line 242: |
| ! Cmd || Name | | ! Cmd || Name |
| |- | | |- |
− | | 0 || [[#GetTemperatureRange]] | + | | 0 || [[#GetTemperatureRange|GetTemperatureRange]] |
| |- | | |- |
− | | 1 || [[#GetTemperature]] | + | | 1 || [[#GetTemperature|GetTemperature]] |
| |- | | |- |
− | | 2 || [[#SetMeasurementMode]] | + | | 2 || [1.0.0-13.2.1] [[#SetMeasurementMode|SetMeasurementMode]] |
| |- | | |- |
− | | 3 || [[#GetTemperatureMilliC]] | + | | 3 || [1.0.0-13.2.1] [[#GetTemperatureMilliC|GetTemperatureMilliC]] |
| |- | | |- |
− | | 4 || [8.0.0+] ? (Takes a total of 4-bytes of input, returns an [[#IUnknown0]]) | + | | 4 || [8.0.0+] [[#OpenSession_2|OpenSession]] |
| |} | | |} |
| | | |
Line 240: |
Line 271: |
| The output is the temperature in MilliC. | | The output is the temperature in MilliC. |
| | | |
− | == IUnknown0 == | + | == OpenSession == |
− | Added with [8.0.0+].
| + | Takes a total of 4-bytes of input. Returns an [[#ISession]]. |
| + | |
| + | == ISession == |
| + | This is "nn::ts::server::ISession". |
| + | |
| + | This was added with [8.0.0+]. |
| | | |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
Line 249: |
Line 285: |
| | 0 || | | | 0 || |
| |- | | |- |
− | | 1 || | + | | 1 || [8.0.0-13.2.1] |
| |- | | |- |
| | 2 || | | | 2 || |
| |- | | |- |
− | | 3 || | + | | 3 || [8.0.0-13.2.1] |
| |- | | |- |
| | 4 || [10.0.0+] | | | 4 || [10.0.0+] |
Line 526: |
Line 562: |
| |- | | |- |
| | 3 || NotSupported | | | 3 || NotSupported |
| + | |} |
| + | |
| + | = Vdd50State = |
| + | This is "nn::psm::Vdd50State". |
| + | |
| + | {| class="wikitable" border="1" |
| + | |- |
| + | ! Value || Name |
| + | |- |
| + | | 0 || Unknown |
| + | |- |
| + | | 1 || Vdd50AOffVdd50BOff |
| + | |- |
| + | | 2 || Vdd50AOnVdd50BOff |
| + | |- |
| + | | 3 || Vdd50AOffVdd50BOn |
| |} | | |} |
| | | |
Line 575: |
Line 627: |
| | 0x2C || 0x4 || enum. Power role (0: Unknown, 1: Sink, 2: Source) | | | 0x2C || 0x4 || enum. Power role (0: Unknown, 1: Sink, 2: Source) |
| |- | | |- |
− | | 0x30 || 0x4 || enum. [[#Charger_Type]] | + | | 0x30 || 0x4 || enum. [[#Charger]] |
| |- | | |- |
| | 0x34 || 0x4 || u32. Charger voltage limit in mV | | | 0x34 || 0x4 || u32. Charger voltage limit in mV |
Line 584: |
Line 636: |
| |} | | |} |
| | | |
− | === Charger_Type === | + | === Charger === |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
| |- | | |- |