Settings services: Difference between revisions

No edit summary
No edit summary
 
(24 intermediate revisions by 2 users not shown)
Line 4: Line 4:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Cmd || Name || Notes
! Cmd || Name
|-
| 0 || [[#GetLanguageCode]]
|-
|-
| 0 || GetLanguageCode || No input, returns an output [[#LanguageCode]]. This is the current system language.
| 1 || [[#GetAvailableLanguageCodes]]
|-
|-
| 1 || GetAvailableLanguageCodes || Takes a type-0xA buffer containing the [[#LanguageCode]] output array, returns an output s32.
| 2 || [4.0.0+] [[#MakeLanguageCode]]
|-
|-
| 2 || [4.0.0+] MakeLanguageCode || Takes an input [[#Language]], returns an output [[#LanguageCode]].
| 3 || [[#GetAvailableLanguageCodeCount]]
|-
|-
| 3 || GetAvailableLanguageCodeCount || No input, returns an output s32.
| 4 || [[#GetRegionCode]]
|-
|-
| 4 || GetRegionCode || No input, returns a [[#RegionCode_2|RegionCode]].
| 5 || [4.0.0+] [[#GetAvailableLanguageCodes2]]
|-
|-
| 5 || [4.0.0+] GetAvailableLanguageCodes2 || Takes a type-0x6 buffer containing the [[#LanguageCode]] output array, returns an output s32.
| 6 || [4.0.0+] [[#GetAvailableLanguageCodeCount2]]
|-
|-
| 6 || [4.0.0+] GetAvailableLanguageCodeCount2 || No input, returns an output s32.
| 7 || [4.0.0+] [[#GetKeyCodeMap]]
|-
|-
| 7 || [4.0.0+] [[#GetKeyCodeMap]] ||
| 8 || [5.0.0+] [[#GetQuestFlag]]
|-
|-
| 8 || [5.0.0+] GetQuestFlag || Identical to "set:sys" [[#set:sys|GetQuestFlag]].
| 9 || [6.0.0+] [[#GetKeyCodeMap2]]
|-
|-
| 9 || [6.0.0+] GetKeyCodeMap2 ||
| 10 || [9.0.0+] [[#GetFirmwareVersionForDebug]]
|-
|-
| 10 || [9.0.0+] [[#GetFirmwareVersionForDebug]] ||
| 11 || [10.1.0+] [[#GetDeviceNickName]]
|-
|-
| 11 || [10.1.0+] [[#GetDeviceNickName]] ||
| 12 || [18.0.0+] GetKeyCodeMapByPort
|}
|}


Line 36: Line 38:
* During one-time init, GetAvailableLanguageCodes is used to initialize the LanguageCodes array cache, with max_entries=0xF (buffer size in u64s). [4.0.0+] GetAvailableLanguageCodes2 is now used with max_entries 0x40.
* During one-time init, GetAvailableLanguageCodes is used to initialize the LanguageCodes array cache, with max_entries=0xF (buffer size in u64s). [4.0.0+] GetAvailableLanguageCodes2 is now used with max_entries 0x40.
* [4.0.0+] When the input [[#Language]] is larger than the cached total_entries from the above command output, or [[#Language]] is negative, command MakeLanguageCode is used instead of the array.
* [4.0.0+] When the input [[#Language]] is larger than the cached total_entries from the above command output, or [[#Language]] is negative, command MakeLanguageCode is used instead of the array.
== GetLanguageCode ==
No input, returns an output [[#LanguageCode]]. This is the current system language.
== GetAvailableLanguageCodes ==
Takes a type-0xA buffer containing the [[#LanguageCode]] output array, returns an output s32.
== MakeLanguageCode ==
Takes an input [[#Language]], returns an output [[#LanguageCode]].
== GetAvailableLanguageCodeCount ==
No input, returns an output s32.
== GetRegionCode ==
No input, returns a [[#RegionCode_2|RegionCode]].
== GetAvailableLanguageCodes2 ==
Takes a type-0x6 buffer containing the [[#LanguageCode]] output array, returns an output s32.
== GetAvailableLanguageCodeCount2 ==
No input, returns an output s32.


== GetKeyCodeMap ==
== GetKeyCodeMap ==
Line 73: Line 96:
|-
|-
| 23 || [9.0.0+] SetMemoryUsageRateFlag
| 23 || [9.0.0+] SetMemoryUsageRateFlag
|-
| 24 || [20.0.0+] CommitSettings
|}
|}


Line 96: Line 121:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || GetBluetoothBdAddress
| 0 || [[#GetBluetoothBdAddress]]
|-
|-
| 1 || [[#GetConfigurationId1]]
| 1 || [[#GetConfigurationId1]]
|-
|-
| 2 || GetAccelerometerOffset
| 2 || [[#GetAccelerometerOffset]]
|-
|-
| 3 || GetAccelerometerScale
| 3 || [[#GetAccelerometerScale]]
|-
|-
| 4 || GetGyroscopeOffset
| 4 || [[#GetGyroscopeOffset]]
|-
|-
| 5 || GetGyroscopeScale
| 5 || [[#GetGyroscopeScale]]
|-
|-
| 6 || GetWirelessLanMacAddress
| 6 || [[#GetWirelessLanMacAddress]]
|-
|-
| 7 || GetWirelessLanCountryCodeCount
| 7 || [[#GetWirelessLanCountryCodeCount]]
|-
|-
| 8 || GetWirelessLanCountryCodes
| 8 || [[#GetWirelessLanCountryCodes]]
|-
|-
| 9 || GetSerialNumber
| 9 || [[#GetSerialNumber]]
|-
|-
| 10 || SetInitialSystemAppletProgramId
| 10 || [[#SetInitialSystemAppletProgramId]]
|-
|-
| 11 || SetOverlayDispProgramId
| 11 || [[#SetOverlayDispProgramId]]
|-
|-
| 12 || GetBatteryLot
| 12 || [[#GetBatteryLot]]
|-
|-
| 14 || [[#GetEciDeviceCertificate]]
| 14 || [[#GetEciDeviceCertificate]]
Line 138: Line 163:
| 21 || [[#GetEticketDeviceKey]]
| 21 || [[#GetEticketDeviceKey]]
|-
|-
| 22 || GetSpeakerParameter
| 22 || [[#GetSpeakerParameter]]
|-
|-
| 23 || [4.0.0+] GetLcdVendorId
| 23 || [4.0.0+] [[#GetLcdVendorId]]
|-
|-
| 24 || [5.0.0+] [[#GetEciDeviceCertificate2]]
| 24 || [5.0.0+] [[#GetEciDeviceCertificate2]]
Line 146: Line 171:
| 25 || [5.0.0+] [[#GetEciDeviceKey2]]
| 25 || [5.0.0+] [[#GetEciDeviceKey2]]
|-
|-
| 26 || [5.0.0+] GetAmiiboKey
| 26 || [5.0.0+] [[#GetAmiiboKey]]
|-
|-
| 27 || [5.0.0+] GetAmiiboEcqvCertificate
| 27 || [5.0.0+] [[#GetAmiiboEcqvCertificate]]
|-
|-
| 28 || [5.0.0+] GetAmiiboEcdsaCertificate
| 28 || [5.0.0+] [[#GetAmiiboEcdsaCertificate]]
|-
|-
| 29 || [5.0.0+] GetAmiiboEcqvBlsKey
| 29 || [5.0.0+] [[#GetAmiiboEcqvBlsKey]]
|-
|-
| 30 || [5.0.0+] GetAmiiboEcqvBlsCertificate
| 30 || [5.0.0+] [[#GetAmiiboEcqvBlsCertificate]]
|-
|-
| 31 || [5.0.0+] GetAmiiboEcqvBlsRootCertificate
| 31 || [5.0.0+] [[#GetAmiiboEcqvBlsRootCertificate]]
|-
|-
| 32 || [5.0.0+] GetUsbTypeCPowerSourceCircuitVersion
| 32 || [5.0.0+] [[#GetUsbTypeCPowerSourceCircuitVersion]]
|-
|-
| 33 || [8.1.1+] GetAnalogStickModuleTypeL
| 33 || [8.1.1+] [[#GetAnalogStickModuleTypeL]]
|-
|-
| 34 || [8.1.1+] GetAnalogStickModelParameterL
| 34 || [8.1.1+] [[#GetAnalogStickModelParameterL]]
|-
|-
| 35 || [8.1.1+] GetAnalogStickFactoryCalibrationL
| 35 || [8.1.1+] [[#GetAnalogStickFactoryCalibrationL]]
|-
|-
| 36 || [8.1.1+] GetAnalogStickModuleTypeR
| 36 || [8.1.1+] [[#GetAnalogStickModuleTypeR]]
|-
|-
| 37 || [8.1.1+] GetAnalogStickModelParameterR
| 37 || [8.1.1+] [[#GetAnalogStickModelParameterR]]
|-
|-
| 38 || [8.1.1+] GetAnalogStickFactoryCalibrationR
| 38 || [8.1.1+] [[#GetAnalogStickFactoryCalibrationR]]
|-
|-
| 39 || [8.1.1+] GetConsoleSixAxisSensorModuleType
| 39 || [8.1.1+] [[#GetConsoleSixAxisSensorModuleType]]
|-
|-
| 40 || [8.1.1+] GetConsoleSixAxisSensorHorizontalOffset
| 40 || [8.1.1+] [[#GetConsoleSixAxisSensorHorizontalOffset]]
|-
|-
| 41 || [6.0.0+] GetBatteryVersion
| 41 || [6.0.0+] [[#GetBatteryVersion]]
|-
|-
| 42 || [10.0.0+] [[#GetDeviceId]]
| 42 || [10.0.0+] [[#GetDeviceId]]
|-
|-
| 43 || [10.0.0+] GetConsoleSixAxisSensorMountType
| 43 || [10.0.0+] [[#GetConsoleSixAxisSensorMountType]]
|}
|}


Used for accessing data calibrated at the factory.
Used for accessing data [[Calibration|calibrated]] at the factory.
 
== GetBluetoothBdAddress ==
No input. Returns a [[#BdAddress|BdAddress]].


== GetConfigurationId1 ==
== GetConfigurationId1 ==
Returns the [[#ConfigurationId1]].
No input. Returns a [[#ConfigurationId1|ConfigurationId1]].
 
== GetAccelerometerOffset ==
No input. Returns a [[#AccelerometerOffset|AccelerometerOffset]].
 
== GetAccelerometerScale ==
No input. Returns a [[#AccelerometerScale|AccelerometerScale]].
 
== GetGyroscopeOffset ==
No input. Returns a [[#GyroscopeOffset|GyroscopeOffset]].
 
== GetGyroscopeScale ==
No input. Returns a [[#GyroscopeScale|GyroscopeScale]].
 
== GetWirelessLanMacAddress ==
No input. Returns a [[#MacAddress|MacAddress]].
 
== GetWirelessLanCountryCodeCount ==
No input. Returns a s32 '''OutCount'''.
 
== GetWirelessLanCountryCodes ==
Takes a type-0x16 output buffer containing an array of [[#CountryCode|CountryCode]]. Returns a s32 '''OutCount'''.
 
== GetSerialNumber ==
No input. Returns a [[#SerialNumber|SerialNumber]].
 
== SetInitialSystemAppletProgramId ==
Takes an input [[NCM_services#ProgramId|ProgramId]]. No output.
 
== SetOverlayDispProgramId ==
Takes an input [[NCM_services#ProgramId|ProgramId]]. No output.
 
== GetBatteryLot ==
No input. Returns a [[#BatteryLot|BatteryLot]].


== GetEciDeviceCertificate ==
== GetEciDeviceCertificate ==
Takes a type-0x16 output buffer containing a [[#EccB233DeviceCertificate]].
Takes a type-0x16 output buffer containing a [[#EccB233DeviceCertificate|EccB233DeviceCertificate]]. No output.


Returns the device certificate (ECC signed). This is identical to 3DS DeviceCert/CTCert besides the strings. NIM loads the DeviceId from this.
Returns the device certificate (ECC signed). This is identical to 3DS DeviceCert/CTCert besides the strings. NIM loads the DeviceId from this.


== GetEticketDeviceCertificate ==
== GetEticketDeviceCertificate ==
Takes a type-0x16 output buffer containing a [[#Rsa2048DeviceCertificate]].
Takes a type-0x16 output buffer containing a [[#Rsa2048DeviceCertificate|Rsa2048DeviceCertificate]]. No output.


Returns the ETicket certificate (RSA signed).
Returns the ETicket certificate (RSA signed).


== GetSslKey ==
== GetSslKey ==
Takes a type-0x16 output buffer containing a [[#SslKey]].
Takes a type-0x16 output buffer containing a [[#SslKey|SslKey]]. No output.


Returns the extended SSL key (0x130 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal SSL key (0x110 bytes).
Returns the extended SSL key (0x130 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal SSL key (0x110 bytes).
Line 206: Line 267:


== GetSslCertificate ==
== GetSslCertificate ==
Takes a type-0x16 output buffer containing a [[#SslCertificate]].
Takes a type-0x16 output buffer containing a [[#SslCertificate|SslCertificate]]. No output.


Used by SSL-sysmodule, see [[SSL_services|here]].
Used by SSL-sysmodule, see [[SSL_services|here]].


== GetGameCardKey ==
== GetGameCardKey ==
Takes a type-0x16 output buffer containing a [[#GameCardKey]].
Takes a type-0x16 output buffer containing a [[#GameCardKey|GameCardKey]]. No output.


Returns the extended GameCard key (0x130 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal GameCard key (0x110 bytes).
Returns the extended GameCard key (0x130 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal GameCard key (0x110 bytes).


== GetGameCardCertificate ==
== GetGameCardCertificate ==
Takes a type-0x16 output buffer containing a [[#GameCardCertificate]].
Takes a type-0x16 output buffer containing a [[#GameCardCertificate|GameCardCertificate]]. No output.


== GetEciDeviceKey ==
== GetEciDeviceKey ==
No input, returns an [[#EccB233DeviceKey]].
No input. Returns an [[#EccB233DeviceKey|EccB233DeviceKey]].


Returns the extended device ECC-B233 key (0x50 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal device ECC-B233 key (0x30 bytes).
Returns the extended device ECC-B233 key (0x50 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal device ECC-B233 key (0x30 bytes).


== GetEticketDeviceKey ==
== GetEticketDeviceKey ==
Takes a type-0x16 output buffer containing a [[#Rsa2048DeviceKey]].
Takes a type-0x16 output buffer containing a [[#Rsa2048DeviceKey|Rsa2048DeviceKey]]. No output.


Returns the extended ETicket RSA-2048 key (0x240 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal ETicket RSA-2048 key (0x220 bytes).
Returns the extended ETicket RSA-2048 key (0x240 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal ETicket RSA-2048 key (0x220 bytes).
== GetSpeakerParameter ==
No input. Returns a [[#SpeakerParameter|SpeakerParameter]].
== GetLcdVendorId ==
No input. Returns a [[Calibration#LcdVendorId|LcdVendorId]].


== GetEciDeviceCertificate2 ==
== GetEciDeviceCertificate2 ==
Same as [[#GetEciDeviceCertificate]], but [[#Rsa2048DeviceCertificate|returns]] a RSA-2048 variant of the device certificate.
Same as [[#GetEciDeviceCertificate]], but returns a [[#Rsa2048DeviceCertificate|RSA-2048]] variant of the device certificate.


== GetEciDeviceKey2 ==
== GetEciDeviceKey2 ==
Same as [[#GetEciDeviceKey]], but [[#Rsa2048DeviceKey|returns]] a RSA-2048 variant of the device key.
Same as [[#GetEciDeviceKey]], but returns a [[#Rsa2048DeviceKey|RSA-2048]] variant of the device key.


== GetDeviceId ==
== GetAmiiboKey ==
Returns an u64 '''DeviceId''' by reading and converting the hexadecimal string at offset 0xC6 inside [[#EccB233DeviceCertificate]] or [[#Rsa2048DeviceCertificate]].
No input. Returns an [[#AmiiboKey|AmiiboKey]].
 
== GetAmiiboEcqvCertificate ==
No input. Returns an [[#AmiiboEcqvCertificate|AmiiboEcqvCertificate]].
 
== GetAmiiboEcdsaCertificate ==
No input. Returns an [[#AmiiboEcdsaCertificate|AmiiboEcdsaCertificate]].
 
== GetAmiiboEcqvBlsKey ==
No input. Returns an [[#AmiiboEcqvBlsKey|AmiiboEcqvBlsKey]].
 
== GetAmiiboEcqvBlsCertificate ==
No input. Returns an [[#AmiiboEcqvBlsCertificate|AmiiboEcqvBlsCertificate]].
 
== GetAmiiboEcqvBlsRootCertificate ==
No input. Returns an [[#AmiiboEcqvBlsRootCertificate|AmiiboEcqvBlsRootCertificate]].
 
== GetUsbTypeCPowerSourceCircuitVersion ==
No input. Returns an [[Calibration#UsbTypeCPowerSourceCircuit|UsbTypeCPowerSourceCircuitVersion]].
 
== GetAnalogStickModuleTypeL ==
No input. Returns an [[Calibration#AnalogStickModuleType|AnalogStickModuleType]].
 
== GetAnalogStickModelParameterL ==
No input. Returns an [[#AnalogStickModelParameter|AnalogStickModelParameter]].
 
== GetAnalogStickFactoryCalibrationL ==
No input. Returns an [[#AnalogStickFactoryCalibration|AnalogStickFactoryCalibration]].
 
== GetAnalogStickModuleTypeR ==
No input. Returns an [[Calibration#AnalogStickModuleType|AnalogStickModuleType]].
 
== GetAnalogStickModelParameterR ==
No input. Returns an [[#AnalogStickModelParameter|AnalogStickModelParameter]].
 
== GetAnalogStickFactoryCalibrationR ==
No input. Returns an [[#AnalogStickFactoryCalibration|AnalogStickFactoryCalibration]].
 
== GetConsoleSixAxisSensorModuleType ==
No input. Returns a [[Calibration#ConsoleSixAxisSensorModuleType|ConsoleSixAxisSensorModuleType]].
 
== GetConsoleSixAxisSensorHorizontalOffset ==
No input. Returns a [[#ConsoleSixAxisSensorHorizontalOffset|ConsoleSixAxisSensorHorizontalOffset]].
 
== GetBatteryVersion ==
No input. Returns a [[Calibration#BatteryVersion|BatteryVersion]].
 
== GetDeviceId ==
No input. Returns an u64 '''DeviceId''' by reading and converting the hexadecimal string at offset 0xC6 inside [[#EccB233DeviceCertificate]] or [[#Rsa2048DeviceCertificate]].
 
== GetConsoleSixAxisSensorMountType ==
No input. Returns a [[Calibration#ConsoleSixAxisSensorMountType|ConsoleSixAxisSensorMountType]].


= set:sys =
= set:sys =
Line 328: Line 446:
| 44 || SetAudioOutputMode
| 44 || SetAudioOutputMode
|-
|-
| 45 || IsForceMuteOnHeadphoneRemoved
| 45 || GetSpeakerAutoMuteFlag ([1.0.0-12.1.0] IsForceMuteOnHeadphoneRemoved)
|-
|-
| 46 || SetForceMuteOnHeadphoneRemoved
| 46 || SetSpeakerAutoMuteFlag ([1.0.0-12.1.0] SetForceMuteOnHeadphoneRemoved)
|-
|-
| 47 || [[#GetQuestFlag]]
| 47 || [[#GetQuestFlag]]
Line 476: Line 594:
| 118 || [3.0.0+] SetHeadphoneVolumeUpdateFlag
| 118 || [3.0.0+] SetHeadphoneVolumeUpdateFlag
|-
|-
| 119 || [3.0.0+] NeedsToUpdateHeadphoneVolume
| 119 || [3.0.0-14.1.2] NeedsToUpdateHeadphoneVolume
|-
|-
| 120 || [3.0.0+] GetPushNotificationActivityModeOnSleep
| 120 || [3.0.0+] GetPushNotificationActivityModeOnSleep
Line 647: Line 765:
|-
|-
| 204 || [11.0.0+] SetPanelCrcMode
| 204 || [11.0.0+] SetPanelCrcMode
|}
|-
 
| 205 || [13.0.0+] GetNxControllerSettingsEx
Official user-processes gets a new service session handle each time a set:sys cmd is used, with the session being closed afterwards.
|-
 
| 206 || [13.0.0+] SetNxControllerSettingsEx
== SetLanguageCode ==
|-
Takes an input [[#LanguageCode]], no output.
| 207 || [14.0.0+] GetHearingProtectionSafeguardFlag
|-
| 208 || [14.0.0+] SetHearingProtectionSafeguardFlag
|-
| 209 || [14.0.0+] GetHearingProtectionSafeguardRemainingTime
|-
| 210 || [14.0.0+] SetHearingProtectionSafeguardRemainingTime
|-
| 221 || [17.0.0+] GetForceMonauralOutputFlag
|-
| 222 || [17.0.0+] SetForceMonauralOutputFlag
|-
| 251 || [18.0.0+] GetAccountIdentificationSettings
|-
| 252 || [18.0.0+] SetAccountIdentificationSettings
|-
| 263 || [20.0.0+] AcquireVphymDirtyFlagEventHandle
|-
| 264 || [20.0.0+] GetVphymDirtyFlags
|-
| 282 || [20.0.0+] ConvertToProductModel
|-
| 283 || [20.0.0+] ConvertToProductModelName
|-
| 289 || [20.0.0+] GetDefaultAccountIdentificationFlagSet
|-
| 300 || [20.0.0+] AcquirePushNotificationDirtyFlagEventHandle
|-
| 301 || [20.0.0+] GetPushNotificationDirtyFlags
|-
| 306 || [20.0.0+] GetPinCodeReregistrationGuideAccounts
|-
| 307 || [20.0.0+] SetPinCodeReregistrationGuideAccounts
|}
 
Official user-processes gets a new service session handle each time a set:sys cmd is used, with the session being closed afterwards.
 
== SetLanguageCode ==
Takes an input [[#LanguageCode]], no output.


== GetFirmwareVersion ==
== GetFirmwareVersion ==
Line 776: Line 932:


== GetAllowedSslHosts ==
== GetAllowedSslHosts ==
Takes a type-0x6 output buffer, returns an output s32 entry count. This buffer contains an array of 0x100-byte "nn::settings::system::AllowedSslHost" entries.
Takes a type-0x6 output buffer. Returns an output s32 entry count.


== GetRebootlessSystemUpdateVersion ==
== GetRebootlessSystemUpdateVersion ==
Line 808: Line 964:


== GetHomeMenuScheme ==
== GetHomeMenuScheme ==
No input, returns an output 0x14-byte struct "nn::settings::system::HomeMenuScheme".
No input. Returns an output [[#HomeMenuScheme]].
 
This struct contains 5 RGBA8 u32s for colors: '''Main''', '''Back''', '''Sub''', '''Bezel''' and '''Extra'''.


The colors are loaded from [[Calibration]], with the set of fields to use selected by ColorVariation. When ColorVariation is invalid (must be 1-4), the following fixed color values are returned: 0xFF323232, 0xFF323232, 0xFFFFFFFF, 0xFFFFFFFF, 0xFF000000.
The colors are loaded from [[Calibration]], with the set of fields to use selected by [[Calibration#ColorVariation|ColorVariation]].


== GetT ==
== GetT ==
Line 831: Line 985:


== GetHomeMenuSchemeModel ==
== GetHomeMenuSchemeModel ==
No input, returns an output u32.
No input. Returns an output u32.


Loads the 0xB-byte setting <"settings_debug", "home_menu_scheme_model">, throwing an error if loading this fails. Depending on the content of the setting, the output u32 is either determined by the value of this setting, or loaded from [[Calibration]].
Loads the 0xB-byte setting <"settings_debug", "home_menu_scheme_model">, throwing an error if loading this fails. Depending on the content of the setting, the output u32 is either determined by the value of this setting, or loaded from [[Calibration#ColorModel|ColorModel]].


== GetMemoryUsageRateFlag ==
== GetMemoryUsageRateFlag ==
Line 1,046: Line 1,200:


= AnalogStickFactoryCalibration =
= AnalogStickFactoryCalibration =
This is "nn::settings::factory::AnalogStickFactoryCalibration". This is a 0x9-byte struct.
This is "nn::settings::factory::AnalogStickFactoryCalibration". Same as [[Calibration#AnalogStickFactoryCalibration|AnalogStickFactoryCalibration]].


= AnalogStickModelParameter =
= AnalogStickModelParameter =
This is "nn::settings::factory::AnalogStickModelParameter". This is a 0x12-byte struct.
This is "nn::settings::factory::AnalogStickModelParameter". Same as [[Calibration#AnalogStickModelParameter|AnalogStickModelParameter]].


= BatteryLot =
= BatteryLot =
This is "nn::settings::factory::BatteryLot" or "nn::settings::BatteryLot". This is a 0x18-byte struct.
This is "nn::settings::BatteryLot". This is a 0x18-byte struct.


= BdAddress =
= BdAddress =
Line 1,063: Line 1,217:
   {EventType}_{ProductModelType}_{MajorVersion}_{MinorVersion}_{MicroVersion}
   {EventType}_{ProductModelType}_{MajorVersion}_{MinorVersion}_{MicroVersion}


Where:
== EventType ==
  {EventType}: "FP", "EP", "MP", "MNX", "EDEV", "SDEV", "HDEV", "HOAG", "COPPER", "CALCIO".
  {ProductModelType}: 2 digit number.
  {MajorVersion}: 2 digit number.
  {MinorVersion}: 2 digit number.
  {MicroVersion}: 2 digit number.
 
= ConsoleSixAxisSensorHorizontalOffset =
This is "nn::settings::factory::ConsoleSixAxisSensorHorizontalOffset".
 
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
| "FP" || Functional prototype
|-
| "EP" || Engineering prototype
|-
|-
| 0x0 || 0x2 || X
| "DP" || Design prototype
|-
|-
| 0x2 || 0x2 || Y
| "DPRD" || Design prototype for R&D
|-
|-
| 0x4 || 0x2 || Z
| "HOAG" || Hoag prototype
|-
| "COPPER" || Copper prototype
|-
| "EDEV" || Extcon development kit for Icosa and Iowa
|-
| "SDEV" || SPI development kit for Icosa and Iowa
|-
| "MEDEV" || Mariko EDEV (deprecated)
|-
| "MSDEV" || Mariko SDEV (deprecated)
|-
| "HDEV" || Development kit for Hoag
|-
| "ADEV" || Development kit for Aula
|-
| "MP" || Mass production (retail Icosa)
|-
| "MNX" || Mariko NX (retail Iowa)
|-
| "HNX" || Hoag NX (retail Hoag)
|-
| "ANX" || Aula NX (retail Aula)
|}
 
== ProductModelType ==
{| class="wikitable" border="1"
|-
! Value
! Description
|-
| "00" || Icosa
|-
| "01" || Iowa (previously Copper)
|-
| "02" || Hoag
|-
| "03" || Calcio
|-
| "04" || Aula
|}
|}
= ConsoleSixAxisSensorHorizontalOffset =
This is "nn::settings::factory::ConsoleSixAxisSensorHorizontalOffset". Same as [[Calibration#ConsoleSixAxisSensorHorizontalOffset|ConsoleSixAxisSensorHorizontalOffset]].


= CountryCode =
= CountryCode =
Line 1,170: Line 1,362:


= SpeakerParameter =
= SpeakerParameter =
This is "nn::settings::factory::SpeakerParameter".
This is "nn::settings::factory::SpeakerParameter". This is copied from the first 0x5A bytes of [[Calibration#SpeakerCalibrationValue|SpeakerCalibrationValue]].
 
= SslCertificate =
This is "nn::settings::factory::SslCertificate". This is a 0x804-byte struct.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,176: Line 1,371:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x2 || Version
| 0x0 || 0x4 || Size
|-
|-
| 0x2 || 0x22 || Reserved
| 0x4 || Variable || Data
|-
|}
| 0x24 || 0x2 || SpeakerHpf2A1
 
= SslKey =
This is "nn::settings::factory::SslKey". This is a 0x110-byte struct or a 0x130-byte struct in the extended version.
 
If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
{| class="wikitable" border="1"
|-
|-
| 0x26 || 0x2 || SpeakerHpf2A2
! Offset || Size || Description
|-
|-
| 0x28 || 0x2 || SpeakerHpf2H0
| 0x0 || 0x130 || Key
|-
|-
| 0x2A || 0x2 || SpeakerEqInputVolume
| 0x130 || 0x4 || KeyGeneration
|}
 
= RegionCode =
This is "nn::settings::factory::RegionCode".
 
{| class="wikitable" border="1"
|-
|-
| 0x2C || 0x2 || SpeakerEqOutputVolume
! Value
! Description
|-
|-
| 0x2E || 0x2 || SpeakerEqCtrl1
| 0 || Japan
|-
|-
| 0x30 || 0x2 || SpeakerEqCtrl2
| 1 || Usa
|-
|-
| 0x32 || 0x2 || SpeakerDrcAgcCtrl2
| 2 || Europe
|-
|-
| 0x34 || 0x2 || SpeakerDrcAgcCtrl3
| 3 || Australia
|-
|-
| 0x36 || 0x2 || SpeakerDrcAgcCtrl1
| 4 || China
|-
|-
| 0x38 || 0x2 || SpeakerAnalogVolume
| 5 || Korea
|-
|-
| 0x3A || 0x2 || HeadphoneAnalogVolume
| 6 || Taiwan
|-
|}
| 0x3C || 0x2 || SpeakerDigitalVolumeMin
 
|-
= AudioOutputMode =
| 0x3E || 0x2 || SpeakerDigitalVolumeMax
This is "nn::settings::system::AudioOutputMode".
|-
 
| 0x40 || 0x2 || HeadphoneDigitalVolumeMin
{| class="wikitable" border="1"
|-
|-
| 0x42 || 0x2 || HeadphoneDigitalVolumeMax
! Value
! Description
|-
|-
| 0x44 || 0x2 || MicFixedGain
| 0 || 1ch
|-
|-
| 0x46 || 0x2 || MicVariableVolumeMin
| 1 || 2ch
|-
|-
| 0x48 || 0x2 || MicVariableVolumeMax
| 2 || 5_1ch
|-
|-
| 0x4A || 0x10 || Reserved
| 3 || 7_1ch
|}
|}


= SslCertificate =
= AudioOutputModeTarget =
This is "nn::settings::factory::SslCertificate". This is a 0x804-byte struct.
This is "nn::settings::system::AudioOutputModeTarget".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
| 0 || Hdmi
|-
|-
| 0x0 || 0x4 || Size
| 1 || Speaker
|-
|-
| 0x4 || Variable || Data
| 2 || Headphone
|}
|}


= SslKey =
= AudioVolumeTarget =
This is "nn::settings::factory::SslKey". This is a 0x110-byte struct or a 0x130-byte struct in the extended version.
This is "nn::settings::system::AudioVolumeTarget".


If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
|-
| 0x0 || 0x130 || Key
| 0 || Speaker
|-
|-
| 0x130 || 0x4 || KeyGeneration
| 1 || Headphone
|}
|}


= RegionCode =
= DeviceNickName =
This is "nn::settings::factory::RegionCode".
This is "nn::settings::system::DeviceNickName". This is a 0x80-byte struct.
 
= Edid =
This is "nn::settings::system::Edid".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Offset || Size || Description
! Description
|-
|-
| 0 || Japan
| 0x0 || 0x80 || Data0
|-
|-
| 1 || Usa
| 0x80 || 0x80 || Data1
|-
| 2 || Europe
|-
|-
| 3 || Australia
| 0x100 || 0x80 || [13.0.0+] Data2
|-
|-
| 4 || China
| 0x180 || 0x80 || [13.0.0+] Data3
|-
| 5 || Korea
|-
| 6 || Taiwan
|}
|}


Line 1,290: Line 1,497:
|}
|}


= AudioOutputMode =
= UserSelectorFlag =
This is "nn::settings::system::AudioOutputMode".
This is "nn::settings::system::UserSelectorFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
! Bits
! Value
! Description
! Description
|-
|-
| 0 || 1ch
| 0 || SkipsIfSingleUser
|-
|-
| 1 || 2ch
| 31 || Unknown
|-
| 2 || 5_1ch
|-
| 3 || 7_1ch
|}
|}


= AudioOutputModeTarget =
= UserSelectorSettings =
This is "nn::settings::system::AudioOutputModeTarget".
This is "nn::settings::system::UserSelectorSettings".
 
This contains an u32 bitmask for [[#UserSelectorFlag]].
 
= AccountSettings =
This is "nn::settings::system::AccountSettings".
 
This contains [[#UserSelectorSettings]].
 
= ClockSourceId =
This is "nn::settings::system::ClockSourceId".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,315: Line 1,527:
! Description
! Description
|-
|-
| 0 || Hdmi
| 0 || NetworkSystemClock
|-
|-
| 1 || Speaker
| 1 || SteadyClock
|-
| 2 || Headphone
|}
|}


= AudioVolumeTarget =
= NotificationVolume =
This is "nn::settings::system::AudioVolumeTarget".
This is "nn::settings::system::NotificationVolume".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,330: Line 1,540:
! Description
! Description
|-
|-
| 0 || Speaker
| 0 || Mute
|-
| 1 || Low
|-
|-
| 1 || Headphone
| 2 || High
|}
|}


= DeviceNickName =
= FriendPresenceOverlayPermission =
This is "nn::settings::system::DeviceNickName". This is a 0x80-byte struct.
This is "nn::settings::system::FriendPresenceOverlayPermission".
 
= Edid =
This is "nn::settings::system::Edid".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
| 0 || NotConfirmed
|-
| 1 || NoDisplay
|-
|-
| 0x0 || 0x80 || Data0
| 2 || FavoriteFriends
|-
|-
| 0x80 || 0x80 || Data1
| 3 || Friends
|}
|}


= UserSelectorFlag =
= TvResolution =
This is "nn::settings::system::UserSelectorFlag".
This is "nn::settings::system::TvResolution".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Bits
|-
! Value
! Description
! Description
|-
|-
| 0 || SkipsIfSingleUser
| 0 || Auto
|-
| 1 || 1080p
|-
| 2 || 720p
|-
|-
| 31 || Unknown
| 3 || 480p
|}
|}


= UserSelectorSettings =
= HdmiContentType =
This is "nn::settings::system::UserSelectorSettings".
This is "nn::settings::system::HdmiContentType".
 
This contains an u32 bitmask for [[#UserSelectorFlag]].
 
= AccountSettings =
This is "nn::settings::system::AccountSettings".
 
This contains [[#UserSelectorSettings]].
 
= ClockSourceId =
This is "nn::settings::system::ClockSourceId".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,380: Line 1,589:
! Description
! Description
|-
|-
| 0 || NetworkSystemClock
| 0 || None
|-
| 1 || Graphics
|-
| 2 || Cinema
|-
| 3 || Photo
|-
|-
| 1 || SteadyClock
| 4 || Game
|}
|}


= NotificationVolume =
= RgbRange =
This is "nn::settings::system::NotificationVolume".
This is "nn::settings::system::RgbRange".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,393: Line 1,608:
! Description
! Description
|-
|-
| 0 || Mute
| 0 || Auto
|-
|-
| 1 || Low
| 1 || Full
|-
|-
| 2 || High
| 2 || Limited
|}
|}


= FriendPresenceOverlayPermission =
= CmuMode =
This is "nn::settings::system::FriendPresenceOverlayPermission".
This is "nn::settings::system::CmuMode".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,408: Line 1,623:
! Description
! Description
|-
|-
| 0 || NotConfirmed
| 0 || None
|-
|-
| 1 || NoDisplay
| 1 || ColorInvert
|-
|-
| 2 || FavoriteFriends
| 2 || HighContrast
|-
|-
| 3 || Friends
| 3 || GrayScale
|}
|}


= TvResolution =
= HandheldSleepPlan =
This is "nn::settings::system::TvResolution".
This is "nn::settings::system::HandheldSleepPlan".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,425: Line 1,640:
! Description
! Description
|-
|-
| 0 || Auto
| 0 || 1Min
|-
| 1 || 3Min
|-
| 2 || 5Min
|-
|-
| 1 || 1080p
| 3 || 10Min
|-
|-
| 2 || 720p
| 4 || 30Min
|-
|-
| 3 || 480p
| 5 || Never
|}
|}


= HdmiContentType =
= ConsoleSleepPlan =
This is "nn::settings::system::HdmiContentType".
This is "nn::settings::system::ConsoleSleepPlan".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,442: Line 1,661:
! Description
! Description
|-
|-
| 0 || None
| 0 || 1Hour
|-
|-
| 1 || Graphics
| 1 || 2Hour
|-
|-
| 2 || Cinema
| 2 || 3Hour
|-
|-
| 3 || Photo
| 3 || 6Hour
|-
|-
| 4 || Game
| 4 || 12Hour
|-
| 5 || Never
|}
|}


= RgbRange =
= EulaVersion =
This is "nn::settings::system::RgbRange".
This is "nn::settings::system::EulaVersion".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Offset || Size || Description
! Description
|-
| 0x0 || 0x4 || Version
|-
| 0x4 || 0x4 || [[#RegionCode_2|RegionCode]]
|-
| 0x8 || 0x4 || [[#SteadyClockSourceId|ClockType]]
|-
|-
| 0 || Auto
| 0xC || 0x4 || Reserved
|-
|-
| 1 || Full
| 0x10 || 0x8 || [[Glue_services#PosixTime|NetworkSystemClock]]
|-
|-
| 2 || Limited
| 0x18 || 0x18 || [[Glue_services#SteadyClockTimePoint|SteadyClock]]
|}
|}


= CmuMode =
= FirmwareVersion =
This is "nn::settings::system::CmuMode".
This is "nn::settings::system::FirmwareVersion".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Offset || Size || Description
! Description
|-
|-
| 0 || None
| 0x0 || 0x1 || Major
|-
| 0x1 || 0x1 || Minor
|-
| 0x2 || 0x1 || Micro
|-
| 0x3 || 0x1 || Reserved
|-
| 0x4 || 0x4 || ReleaseNumber
|-
| 0x8 || 0x20 || Platform
|-
|-
| 1 || ColorInvert
| 0x28 || 0x40 || Revision
|-
|-
| 2 || HighContrast
| 0x68 || 0x18 || DisplayVersion
|-
|-
| 3 || GrayScale
| 0x80 || 0x80 || DisplayName
|}
|}


= HandheldSleepPlan =
= PtmFuelGaugeParameter =
This is "nn::settings::system::HandheldSleepPlan".
This is "nn::settings::system::PtmFuelGaugeParameter".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Offset || Size || Description
! Description
|-
|-
| 0 || 1Min
| 0x0 || 0x2 || Rcomp0
|-
|-
| 1 || 3Min
| 0x2 || 0x2 || TempCo
|-
|-
| 2 || 5Min
| 0x4 || 0x2 || FullCap
|-
|-
| 3 || 10Min
| 0x6 || 0x2 || FullCapNom
|-
|-
| 4 || 30Min
| 0x8 || 0x2 || IavgEmpty
|-
|-
| 5 || Never
| 0xA || 0x2 || QrTable00
|}
 
= ConsoleSleepPlan =
This is "nn::settings::system::ConsoleSleepPlan".
 
{| class="wikitable" border="1"
|-
|-
!  Value
| 0xC || 0x2 || QrTable10
!  Description
|-
|-
| 0 || 1Hour
| 0xE || 0x2 || QrTable20
|-
|-
| 1 || 2Hour
| 0x10 || 0x2 || QrTable30
|-
|-
| 2 || 3Hour
| 0x12 || 0x2 || Reserved
|-
|-
| 3 || 6Hour
| 0x14 || 0x4 || Cycles
|-
| 4 || 12Hour
|-
| 5 || Never
|}
|}


= EulaVersion =
= SecuritySettings =
This is "nn::settings::system::EulaVersion".
This is "nn::settings::system::SecuritySettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,534: Line 1,757:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || Version
| 0x0 || 0x4 || AuthenticationMode
|-
|-
| 0x4 || 0x4 || [[#RegionCode_2|RegionCode]]
| 0x4 || 0x4 || EncryptionMode
|-
|-
| 0x8 || 0x4 || [[#SteadyClockSourceId|ClockType]]
| 0x8 || 0x40 || KeyMaterial
|-
|-
| 0xC || 0x4 || Reserved
| 0x48 || 0x4 || KeyMaterialLength
|-
| 0x10 || 0x8 || [[Glue_services#PosixTime|NetworkSystemClock]]
|-
| 0x18 || 0x18 || [[Glue_services#SteadyClockTimePoint|SteadyClock]]
|}
|}


= FirmwareVersion =
= NotificationTime =
This is "nn::settings::system::FirmwareVersion".
This is "nn::settings::system::NotificationTime".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,554: Line 1,773:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x1 || Major
| 0x0 || 0x4 || Hour
|-
|-
| 0x1 || 0x1 || Minor
| 0x4 || 0x4 || Minute
|}
 
= NotificationFlag =
This is "nn::settings::system::NotificationFlag".
 
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
| 0x2 || 0x1 || Micro
| 0 || RingtoneFlag
|-
|-
| 0x3 || 0x1 || Reserved
| 1 || DownloadCompletionFlag
|-
|-
| 0x4 || 0x4 || ReleaseNumber
| 8 || EnablesNews
|-
|-
| 0x8 || 0x20 || Platform
| 9 || IncomingLampFlag
|-
| 0x28 || 0x40 || Revision
|-
| 0x68 || 0x18 || DisplayVersion
|-
| 0x80 || 0x80 || DisplayName
|}
|}


= PtmFuelGaugeParameter =
= NotificationSettings =
This is "nn::settings::system::PtmFuelGaugeParameter".
This is "nn::settings::system::NotificationSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,580: Line 1,801:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x2 || Rcomp0
| 0x0 || 0x4 || [[#NotificationFlag|Flags]]
|-
|-
| 0x2 || 0x2 || TempCo
| 0x4 || 0x4 || [[#NotificationVolume|Volume]]
|-
|-
| 0x4 || 0x2 || FullCap
| 0x8 || 0x8 || [[#NotificationTime|HeadTime]]
|-
|-
| 0x6 || 0x2 || FullCapNom
| 0x10 || 0x8 || [[#NotificationTime|TailTime]]
|-
|}
| 0x8 || 0x2 || IavgEmpty
 
|-
= AccountNotificationFlag =
| 0xA || 0x2 || QrTable00
This is "nn::settings::system::AccountNotificationFlag".
 
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
| 0xC || 0x2 || QrTable10
| 0 || FriendOnlineFlag
|-
|-
| 0xE || 0x2 || QrTable20
| 1 || FriendRequestFlag
|-
|-
| 0x10 || 0x2 || QrTable30
| 8 || CoralInvitationFlag
|-
| 0x12 || 0x2 || Reserved
|-
| 0x14 || 0x4 || Cycles
|}
|}


= SecuritySettings =
= AccountNotificationSettings =
This is "nn::settings::system::SecuritySettings".
This is "nn::settings::system::AccountNotificationSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,610: Line 1,831:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || AuthenticationMode
| 0x0 || 0x10 || [[Account_services#Uid|Uid]]
|-
| 0x10 || 0x4 || [[#AccountNotificationFlag|Flags]]
|-
|-
| 0x4 || 0x4 || EncryptionMode
| 0x14 || 0x1 || [[#FriendPresenceOverlayPermission|FriendPresenceOverlayPermission]]
|-
|-
| 0x8 || 0x40 || KeyMaterial
| 0x15 || 0x1 || [[#FriendPresenceOverlayPermission|FriendInvitationOverlayPermission]]
|-
|-
| 0x48 || 0x4 || KeyMaterialLength
| 0x16 || 0x2 || Reserved
|}
|}


= NotificationTime =
= TvFlag =
This is "nn::settings::system::NotificationTime".
This is "nn::settings::system::TvFlag".
 
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x4 || Hour
|-
| 0x4 || 0x4 || Minute
|}
 
= NotificationFlag =
This is "nn::settings::system::NotificationFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,638: Line 1,849:
! Description
! Description
|-
|-
| 0 || RingtoneFlag
| 0 || Allows4k
|-
|-
| 1 || DownloadCompletionFlag
| 1 || Allows3d
|-
|-
| 8 || EnablesNews
| 2 || AllowsCec
|-
|-
| 9 || IncomingLampFlag
| 3 || PreventsScreenBurnIn
|}
|}


= NotificationSettings =
= TvSettings =
This is "nn::settings::system::NotificationSettings".
This is "nn::settings::system::TvSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,654: Line 1,865:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || [[#NotificationFlag|Flags]]
| 0x0 || 0x4 || [[#TvFlag|Flags]]
|-
|-
| 0x4 || 0x4 || [[#NotificationVolume|Volume]]
| 0x4 || 0x4 || [[#TvResolution|TvResolution]]
|-
| 0x8 || 0x4 || [[#HdmiContentType|HdmiContentType]]
|-
| 0xC || 0x4 || [[#RgbRange|RgbRange]]
|-
| 0x10 || 0x4 || [[#CmuMode|CmuMode]]
|-
| 0x14 || 0x4 || TvUnderscan
|-
|-
| 0x8 || 0x8 || [[#NotificationTime|HeadTime]]
| 0x18 || 0x4 || TvGamma
|-
|-
| 0x10 || 0x8 || [[#NotificationTime|TailTime]]
| 0x1C || 0x4 || ContrastRatio
|}
|}


= AccountNotificationFlag =
= DataDeletionFlag =
This is "nn::settings::system::AccountNotificationFlag".
This is "nn::settings::system::DataDeletionFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,670: Line 1,889:
! Description
! Description
|-
|-
| 0 || FriendOnlineFlag
| 0 || AutomaticDeletionFlag
|-
| 1 || FriendRequestFlag
|-
| 8 || CoralInvitationFlag
|}
|}


= AccountNotificationSettings =
= DataDeletionSettings =
This is "nn::settings::system::AccountNotificationSettings".
This is "nn::settings::system::DataDeletionSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,684: Line 1,899:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x10 || [[Account_services#Uid|Uid]]
| 0x0 || 0x4 || [[#DataDeletionFlag|Flags]]
|-
|-
| 0x10 || 0x4 || [[#AccountNotificationFlag|Flags]]
| 0x4 || 0x4 || UseCount
|-
| 0x14 || 0x1 || [[#FriendPresenceOverlayPermission|FriendPresenceOverlayPermission]]
|-
| 0x15 || 0x1 || [[#FriendPresenceOverlayPermission|FriendInvitationOverlayPermission]]
|-
| 0x16 || 0x2 || Reserved
|}
|}


= TvFlag =
= SleepFlag =
This is "nn::settings::system::TvFlag".
This is "nn::settings::system::SleepFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,702: Line 1,911:
! Description
! Description
|-
|-
| 0 || Allows4k
| 0 || SleepsWhilePlayingMedia
|-
|-
| 1 || Allows3d
| 1 || WakesAtPowerStateChange
|-
| 2 || AllowsCec
|-
| 3 || PreventsScreenBurnIn
|}
|}


= TvSettings =
= SleepSettings =
This is "nn::settings::system::TvSettings".
This is "nn::settings::system::SleepSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,718: Line 1,923:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || [[#TvFlag|Flags]]
| 0x0 || 0x4 || [[#SleepFlag|Flags]]
|-
|-
| 0x4 || 0x4 || [[#TvResolution|TvResolution]]
| 0x4 || 0x4 || [[#HandheldSleepPlan|HandheldSleepPlan]]
|-
|-
| 0x8 || 0x4 || [[#HdmiContentType|HdmiContentType]]
| 0x8 || 0x4 || [[#ConsoleSleepPlan|ConsoleSleepPlan]]
|-
|}
| 0xC || 0x4 || [[#RgbRange|RgbRange]]
|-
| 0x10 || 0x4 || [[#CmuMode|CmuMode]]
|-
| 0x14 || 0x4 || TvUnderscan
|-
| 0x18 || 0x4 || TvGamma
|-
| 0x1C || 0x4 || ContrastRatio
|}


= DataDeletionFlag =
= InitialLaunchFlag =
This is "nn::settings::system::DataDeletionFlag".
This is "nn::settings::system::InitialLaunchFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,742: Line 1,937:
! Description
! Description
|-
|-
| 0 || AutomaticDeletionFlag
| 0 || InitialLaunchCompletionFlag
|-
| 8 || InitialLaunchUserAdditionFlag
|-
| 16 || InitialLaunchTimestampFlag
|}
|}


= DataDeletionSettings =
= InitialLaunchSettings =
This is "nn::settings::system::DataDeletionSettings".
This is "nn::settings::system::InitialLaunchSettings". This struct is 8-byte aligned.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,752: Line 1,951:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || [[#DataDeletionFlag|Flags]]
| 0x0 || 0x4 || [[#InitialLaunchFlag|Flags]]
|-
| 0x4 || 0x4 || Reserved
|-
|-
| 0x4 || 0x4 || UseCount
| 0x8 || 0x18 || [[Glue_services#SteadyClockTimePoint|TimeStamp]]
|}
|}


= SleepFlag =
= RebootlessSystemUpdateVersion =
This is "nn::settings::system::SleepFlag".
This is "nn::settings::system::RebootlessSystemUpdateVersion". This struct is 4-byte aligned.


{| class="wikitable" border="1"
This is the content of the RebootlessSystemUpdateVersion SystemData, in the "/version" file.
! Bits
! Description
|-
| 0 || SleepsWhilePlayingMedia
|-
| 1 || WakesAtPowerStateChange
|}
 
= SleepSettings =
This is "nn::settings::system::SleepSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,776: Line 1,967:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || [[#SleepFlag|Flags]]
| 0x0 || 0x4 || Version
|-
|-
| 0x4 || 0x4 || [[#HandheldSleepPlan|HandheldSleepPlan]]
| 0x4 || 0x1C || Reserved
|-
|-
| 0x8 || 0x4 || [[#ConsoleSleepPlan|ConsoleSleepPlan]]
| 0x20 || 0x20 || DisplayVersion
|}
|}


= InitialLaunchFlag =
= PrimaryAlbumStorage =
This is "nn::settings::system::InitialLaunchFlag".
This is "nn::settings::system::PrimaryAlbumStorage".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Bits
|-
! Value
! Description
! Description
|-
|-
| 0 || InitialLaunchCompletionFlag
| 0 || Nand
|-
|-
| 8 || InitialLaunchUserAdditionFlag
| 1 || SdCard
|-
| 16 || InitialLaunchTimestampFlag
|}
|}


= InitialLaunchSettings =
= ErrorReportSharePermission =
This is "nn::settings::system::InitialLaunchSettings". This struct is 8-byte aligned.
This is "nn::settings::system::ErrorReportSharePermission".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
|-
| 0x0 || 0x4 || [[#InitialLaunchFlag|Flags]]
| 0 || NotConfirmed
|-
|-
| 0x4 || 0x4 || Reserved
| 1 || Granted
|-
|-
| 0x8 || 0x18 || [[Glue_services#SteadyClockTimePoint|TimeStamp]]
| 2 || Denied
|}
|}


= RebootlessSystemUpdateVersion =
= ServiceDiscoveryControlSettings =
This is "nn::settings::system::RebootlessSystemUpdateVersion". This struct is 4-byte aligned.
This is "nn::settings::system::ServiceDiscoveryControlSettings".
 
This is the content of the RebootlessSystemUpdateVersion SystemData, in the "/version" file.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
! Offset || Size || Description
| 0
|-
| IsChangeEnvironmentIdentifierDisabled
| 0x0 || 0x4 || Version
|-
| 0x4 || 0x1C || Reserved
|-
| 0x20 || 0x20 || DisplayVersion
|}
|}


= PrimaryAlbumStorage =
= AppletLaunchFlag =
This is "nn::settings::system::PrimaryAlbumStorage".
This is "nn::settings::system::AppletLaunchFlag". This is an u32 bitmask.
 
= KeyboardLayout =
This is "nn::settings::KeyboardLayout".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,835: Line 2,024:
! Description
! Description
|-
|-
| 0 || Nand
| 1 || EnglishUs
|-
|-
| 1 || SdCard
| 2 || EnglishUsInternational
|}
 
= ErrorReportSharePermission =
This is "nn::settings::system::ErrorReportSharePermission".
 
{| class="wikitable" border="1"
|-
|-
! Value
| 3 || EnglishUk
! Description
|-
|-
| 0 || NotConfirmed
| 4 || French
|-
|-
| 1 || Granted
| 5 || FrenchCa
|-
| 2 || Denied
|}
 
= ServiceDiscoveryControlSettings =
This is "nn::settings::system::ServiceDiscoveryControlSettings".
 
{| class="wikitable" border="1"
! Bits
! Description
|-
| 0
| IsChangeEnvironmentIdentifierDisabled
|}
 
= AppletLaunchFlag =
This is "nn::settings::system::AppletLaunchFlag". This is an u32 bitmask.
 
= KeyboardLayout =
This is "nn::settings::KeyboardLayout".
 
{| class="wikitable" border="1"
|-
! Value
! Description
|-
| 1 || EnglishUs
|-
| 2 || EnglishUsInternational
|-
| 3 || EnglishUk
|-
| 4 || French
|-
| 5 || FrenchCa
|-
|-
| 6 || Spanish
| 6 || Spanish
Line 1,917: Line 2,064:
|-
|-
| 2 ||  
| 2 ||  
|}
= HomeMenuScheme =
This is "nn::settings::system::HomeMenuScheme".
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x4 || MainColor
|-
| 0x4 || 0x4 || BackColor
|-
| 0x8 || 0x4 || SubColor
|-
| 0xC || 0x4 || Reserved
|-
| 0x10 || 0x4 || BezelColor
|}
|}


Line 1,922: Line 2,087:
This is "nn::settings::system::TouchScreenMode".
This is "nn::settings::system::TouchScreenMode".


This is an u8. This controls "Touch-Screen Sensitivity", values:
{| class="wikitable" border="1"
* 0: Stylus.
|-
* 1: Standard, the default.
! Value
! Description
|-
| 0 || Stylus
|-
| 1 || Standard
|}


= ButtonConfigSettings =
= ButtonConfigSettings =
Line 1,954: Line 2,125:
| 0x0 || 0x6 || [[BTM_services#BdAddress|BdAddr]]
| 0x0 || 0x6 || [[BTM_services#BdAddress|BdAddr]]
|-
|-
| 0x6 || 0x20 || [[BTM_services#BdName|DeviceName]]
| 0x6 || 0x20 || [13.0.0+] Reserved ([1.0.0-12.1.0] [[BTM_services#BdName|DeviceName]])
|-
|-
| 0x26 || 0x3 || [[BTM_services#ClassOfDevice|ClassOfDevice]]
| 0x26 || 0x3 || [[BTM_services#ClassOfDevice|ClassOfDevice]]
Line 1,986: Line 2,157:
| 0xCC || 0x9 || Brr
| 0xCC || 0x9 || Brr
|-
|-
| 0xD5 || 0x12B || Reserved
| 0xD5 || 0x1 || [13.0.0+] AudioSourceVolume
|-
| 0xD6 || 0xF9 || [13.0.0+] DeviceName
|-
| 0x1CF || 0x1 || [15.0.0+] AudioSinkVolume
|-
| 0x1D0 || 0x4 || [14.0.0+] AudioFlags
|-
| 0x1D4 || 0x2C || Reserved
|}
|}
= NxControllerLegacySettings =
This is "nn::settings::system::NxControllerLegacySettings" ([1.0.0-12.1.0] "nn::settings::system::NxControllerSettings"). This is a 0x29-byte struct.
= NxControllerSettings =
This is "nn::settings::system::NxControllerSettings". This is a 0x42C-byte struct. This was added with [13.0.0+].


= System Configuration =
= System Configuration =