Difference between revisions of "PCV services"

From Nintendo Switch Brew
Jump to navigation Jump to search
(dumb copy/paste mistake)
(ITimeZoneService)
Line 154: Line 154:
  
 
= ITimeZoneService =
 
= ITimeZoneService =
 +
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name || Notes
 +
|-
 +
| 0 || GetDeviceLocationName || Returns an nn::time::LocationName (0x24 bytes).
 +
|-
 +
| 1 || SetDeviceLocationName || Takes an nn::time::LocationName.
 +
|-
 +
| 2 || GetTotalLocationNameCount || Returns an 0x20 byte struct (nn::time::SystemClockContext).
 +
|-
 +
| 3 || LoadLocationNameList ||
 +
|-
 +
| 4 || LoadTimeZoneRule ||
 +
|-
 +
| 5 || GetTimeZoneRuleVersion || 
 +
|-
 +
| 100 || ToCalendarTime ||
 +
|-
 +
| 101 || ToCalendarTimeWithMyRule ||
 +
|-
 +
| 200 || ToPosixTime ||
 +
|-
 +
| 201 || ToPosixTimeWithMyRule ||
 +
|-
 +
|}

Revision as of 21:42, 19 September 2017

bpc

Cmd Name
0 ShutdownConsole
1 RebootConsole
2
3
4
5 Returns an event handle.
6
7 Returns an event handle.
8
9
10

bpc:r

pcv

Cmd Name
0 SetPowerEnabled
1 SetClockEnabled
2
3
4
5
6
7 SetReset
8
9
10
11
12
13
14
15
16
17

pcv:arb

Cmd Name
0

pcv:imm

Cmd Name
0

time:u, time:a, time:s

The following is "nn::timesrv::detail::service::IStaticService"

Cmd Name Notes
0 GetStandardUserSystemClock Returns an #ISystemClock.
1 GetStandardNetworkSystemClock Returns an #ISystemClock.
2 GetStandardSteadyClock Returns an #ISteadyClock.
3 GetTimeZoneService Returns an #ITimeZoneService.
4 GetStandardLocalSystemClock Returns an #ISystemClock.
100 IsStandardUserSystemClockAutomaticCorrectionEnabled
101 SetStandardUserSystemClockAutomaticCorrectionEnabled
200 IsStandardNetworkSystemClockAccuracySufficient

ISteadyClock

Cmd Name
0 GetCurrentTimePoint
2 GetTestOffset
3 SetTestOffset
100 GetRtcValue
101 IsRtcResetDetected
102 GetSetupResultValue
200 GetInternalOffset
201 SetInternalOffset

ISystemClock

Cmd Name Notes
0 GetCurrentTime Returns an nn::time::PosixTime (time since epoch).
1 SetCurrentTime Takes an nn::time::PosixTime.
2 GetSystemClockContext Returns an 0x20 byte struct (nn::time::SystemClockContext).
3 SetSystemClockContext Takes an nn::time::SystemClockContext


ITimeZoneService

Cmd Name Notes
0 GetDeviceLocationName Returns an nn::time::LocationName (0x24 bytes).
1 SetDeviceLocationName Takes an nn::time::LocationName.
2 GetTotalLocationNameCount Returns an 0x20 byte struct (nn::time::SystemClockContext).
3 LoadLocationNameList
4 LoadTimeZoneRule
5 GetTimeZoneRuleVersion
100 ToCalendarTime
101 ToCalendarTimeWithMyRule
200 ToPosixTime
201 ToPosixTimeWithMyRule