Difference between revisions of "PCV services"

From Nintendo Switch Brew
Jump to: navigation, search
(ISystemClock)
(dumb copy/paste mistake)
Line 144: Line 144:
 
| 0 || GetCurrentTime || Returns an nn::time::PosixTime (time since epoch).
 
| 0 || GetCurrentTime || Returns an nn::time::PosixTime (time since epoch).
 
|-
 
|-
| 2 || SetCurrentTime || Takes an nn::time::PosixTime.
+
| 1 || SetCurrentTime || Takes an nn::time::PosixTime.
 
|-
 
|-
| 3 || GetSystemClockContext || Returns an 0x20 byte struct (nn::time::SystemClockContext).
+
| 2 || GetSystemClockContext || Returns an 0x20 byte struct (nn::time::SystemClockContext).
 
|-
 
|-
| 4 || SetSystemClockContext  || Takes an nn::time::SystemClockContext
+
| 3 || SetSystemClockContext  || Takes an nn::time::SystemClockContext
 
|-
 
|-
 
|}
 
|}

Revision as of 21:38, 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