Settings services: Difference between revisions

No edit summary
(17 intermediate revisions by 2 users not shown)
Line 29: Line 29:
|-
|-
| 11 || [10.1.0+] [[#GetDeviceNickName]]
| 11 || [10.1.0+] [[#GetDeviceNickName]]
|-
| 12 || [18.0.0+] GetKeyCodeMapByPort
|}
|}


Line 117: Line 119:
! 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 159: Line 161:
| 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 167: Line 169:
| 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 227: Line 265:


== 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.
 
== GetAmiiboKey ==
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]].


== GetDeviceId ==
== GetAmiiboEcqvBlsRootCertificate ==
Returns an u64 '''DeviceId''' by reading and converting the hexadecimal string at offset 0xC6 inside [[#EccB233DeviceCertificate]] or [[#Rsa2048DeviceCertificate]].
No input. Returns an [[#AmiiboEcqvBlsRootCertificate|AmiiboEcqvBlsRootCertificate]].


= set:sys =
== GetUsbTypeCPowerSourceCircuitVersion ==
This is "nn::settings::ISystemSettingsServer".
No input. Returns an [[Calibration#UsbTypeCPowerSourceCircuit|UsbTypeCPowerSourceCircuitVersion]].


{| class="wikitable" border="1"
== GetAnalogStickModuleTypeL ==
|-
No input. Returns an [[Calibration#AnalogStickModuleType|AnalogStickModuleType]].
! Cmd || Name
 
|-
== GetAnalogStickModelParameterL ==
| 0 || [[#SetLanguageCode]]
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 =
This is "nn::settings::ISystemSettingsServer".
 
{| class="wikitable" border="1"
|-
! Cmd || Name
|-
| 0 || [[#SetLanguageCode]]
|-
|-
| 1 || SetNetworkSettings
| 1 || SetNetworkSettings
Line 349: Line 444:
| 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 497: Line 592:
| 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 668: Line 763:
|-
|-
| 204 || [11.0.0+] SetPanelCrcMode
| 204 || [11.0.0+] SetPanelCrcMode
|-
| 205 || [13.0.0+] GetNxControllerSettingsEx
|-
| 206 || [13.0.0+] SetNxControllerSettingsEx
|-
| 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
|}
|}


Line 1,067: Line 1,182:


= 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,084: Line 1,199:
   {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
|-
| "DP" || Design prototype
|-
| "DPRD" || Design prototype for R&D
|-
|-
| 0x0 || 0x2 || X
| "HOAG" || Hoag prototype
|-
|-
| 0x2 || 0x2 || Y
| "COPPER" || Copper prototype
|-
|-
| 0x4 || 0x2 || Z
| "EDEV" || Extcon development kit for Icosa and Iowa
|}
 
= CountryCode =
This is "nn::settings::factory::CountryCode". This is a 0x3-byte struct.
 
= EccB233DeviceCertificate =
This is "nn::settings::factory::EccB233DeviceCertificate". This is a 0x180-byte struct.
 
= EccB233DeviceKey =
This is "nn::settings::factory::EccB233DeviceKey". This is a 0x30-byte struct or a 0x54-byte struct in the extended version.
 
If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
| "SDEV" || SPI development kit for Icosa and Iowa
|-
|-
| 0x0 || 0x54 || Key
| "MEDEV" || Mariko EDEV (deprecated)
|-
|-
| 0x54 || 0x4 || KeyGeneration
| "MSDEV" || Mariko SDEV (deprecated)
|}
|-
 
| "HDEV" || Development kit for Hoag
= GameCardCertificate =
|-
This is "nn::settings::factory::GameCardCertificate". This is a 0x400-byte struct.
| "ADEV" || Development kit for Aula
 
= GameCardKey =
This is "nn::settings::factory::GameCardKey". 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"
|-
|-
! Offset || Size || Description
| "MP" || Mass production (retail Icosa)
|-
|-
| 0x0 || 0x130 || Key
| "MNX" || Mariko NX (retail Iowa)
|-
|-
| 0x130 || 0x4 || KeyGeneration
| "ANX" || Aula NX (retail Aula)
|}
|}


= GyroscopeOffset =
== ProductModelType ==
This is "nn::settings::factory::GyroscopeOffset".
 
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
| "00" || Icosa
|-
| "01" || Iowa (previously Copper)
|-
|-
| 0x0 || 0x2 || X
| "02" || Hoag
|-
|-
| 0x2 || 0x2 || Y
| "03" || Calcio
|-
|-
| 0x4 || 0x2 || Z
| "04" || Aula
|}
|}


= GyroscopeScale =
= ConsoleSixAxisSensorHorizontalOffset =
This is "nn::settings::factory::GyroscopeScale".
This is "nn::settings::factory::ConsoleSixAxisSensorHorizontalOffset". Same as [[Calibration#ConsoleSixAxisSensorHorizontalOffset|ConsoleSixAxisSensorHorizontalOffset]].


{| class="wikitable" border="1"
= CountryCode =
This is "nn::settings::factory::CountryCode". This is a 0x3-byte struct.
 
= EccB233DeviceCertificate =
This is "nn::settings::factory::EccB233DeviceCertificate". This is a 0x180-byte struct.
 
= EccB233DeviceKey =
This is "nn::settings::factory::EccB233DeviceKey". This is a 0x30-byte struct or a 0x54-byte struct in the extended version.
 
If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x2 || X
| 0x0 || 0x54 || Key
|-
|-
| 0x2 || 0x2 || Y
| 0x54 || 0x4 || KeyGeneration
|-
| 0x4 || 0x2 || Z
|}
|}


= MacAddress =
= GameCardCertificate =
This is "nn::settings::factory::MacAddress". This is a 0x6-byte struct.
This is "nn::settings::factory::GameCardCertificate". This is a 0x400-byte struct.


= Rsa2048DeviceCertificate =
= GameCardKey =
This is "nn::settings::factory::Rsa2048DeviceCertificate". This is a 0x240-byte struct.
This is "nn::settings::factory::GameCardKey". This is a 0x110-byte struct or a 0x130-byte struct in the extended version.
 
= Rsa2048DeviceKey =
This is "nn::settings::factory::Rsa2048DeviceKey". This is a 0x220-byte struct or a 0x240-byte struct in the extended version.


If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
Line 1,182: Line 1,286:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x240 || Key
| 0x0 || 0x130 || Key
|-
|-
| 0x240 || 0x4 || KeyGeneration
| 0x130 || 0x4 || KeyGeneration
|}
|}


= SerialNumber =
= GyroscopeOffset =
This is "nn::settings::factory::SerialNumber". This is a 0x18-byte struct.
This is "nn::settings::factory::GyroscopeOffset".
 
= SpeakerParameter =
This is "nn::settings::factory::SpeakerParameter".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,197: Line 1,298:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x2 || Version
| 0x0 || 0x2 || X
|-
|-
| 0x2 || 0x22 || Reserved
| 0x2 || 0x2 || Y
|-
|-
| 0x24 || 0x2 || SpeakerHpf2A1
| 0x4 || 0x2 || Z
|}
 
= GyroscopeScale =
This is "nn::settings::factory::GyroscopeScale".
 
{| class="wikitable" border="1"
|-
|-
| 0x26 || 0x2 || SpeakerHpf2A2
! Offset || Size || Description
|-
|-
| 0x28 || 0x2 || SpeakerHpf2H0
| 0x0 || 0x2 || X
|-
|-
| 0x2A || 0x2 || SpeakerEqInputVolume
| 0x2 || 0x2 || Y
|-
|-
| 0x2C || 0x2 || SpeakerEqOutputVolume
| 0x4 || 0x2 || Z
|-
|}
| 0x2E || 0x2 || SpeakerEqCtrl1
 
|-
= MacAddress =
| 0x30 || 0x2 || SpeakerEqCtrl2
This is "nn::settings::factory::MacAddress". This is a 0x6-byte struct.
|-
 
| 0x32 || 0x2 || SpeakerDrcAgcCtrl2
= Rsa2048DeviceCertificate =
|-
This is "nn::settings::factory::Rsa2048DeviceCertificate". This is a 0x240-byte struct.
| 0x34 || 0x2 || SpeakerDrcAgcCtrl3
 
|-
= Rsa2048DeviceKey =
| 0x36 || 0x2 || SpeakerDrcAgcCtrl1
This is "nn::settings::factory::Rsa2048DeviceKey". This is a 0x220-byte struct or a 0x240-byte struct in the extended version.
 
If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
{| class="wikitable" border="1"
|-
|-
| 0x38 || 0x2 || SpeakerAnalogVolume
! Offset || Size || Description
|-
|-
| 0x3A || 0x2 || HeadphoneAnalogVolume
| 0x0 || 0x240 || Key
|-
|-
| 0x3C || 0x2 || SpeakerDigitalVolumeMin
| 0x240 || 0x4 || KeyGeneration
|-
| 0x3E || 0x2 || SpeakerDigitalVolumeMax
|-
| 0x40 || 0x2 || HeadphoneDigitalVolumeMin
|-
| 0x42 || 0x2 || HeadphoneDigitalVolumeMax
|-
| 0x44 || 0x2 || MicFixedGain
|-
| 0x46 || 0x2 || MicVariableVolumeMin
|-
| 0x48 || 0x2 || MicVariableVolumeMax
|-
| 0x4A || 0x10 || Reserved
|}
|}
= SerialNumber =
This is "nn::settings::factory::SerialNumber". This is a 0x18-byte struct.
= SpeakerParameter =
This is "nn::settings::factory::SpeakerParameter". This is copied from the first 0x5A bytes of [[Calibration#SpeakerCalibrationValue|SpeakerCalibrationValue]].


= SslCertificate =
= SslCertificate =
Line 1,290: Line 1,392:
|}
|}


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


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,298: Line 1,400:
! Description
! Description
|-
|-
| 0 || Japan
| 0 || 1ch
|-
|-
| 1 || Usa
| 1 || 2ch
|-
| 2 || Europe
|-
| 3 || Australia
|-
| 4 || HongKongTaiwanKorea
|-
| 5 || China
|}
 
= AudioOutputMode =
This is "nn::settings::system::AudioOutputMode".
 
{| class="wikitable" border="1"
|-
! Value
! Description
|-
| 0 || 1ch
|-
| 1 || 2ch
|-
|-
| 2 || 5_1ch
| 2 || 5_1ch
Line 1,369: Line 1,450:
|-
|-
| 0x80 || 0x80 || Data1
| 0x80 || 0x80 || Data1
|-
| 0x100 || 0x80 || [13.0.0+] Data2
|-
| 0x180 || 0x80 || [13.0.0+] Data3
|}
= RegionCode =
This is "nn::settings::system::RegionCode".
{| class="wikitable" border="1"
|-
! Value
! Description
|-
| 0 || Japan
|-
| 1 || Usa
|-
| 2 || Europe
|-
| 3 || Australia
|-
| 4 || HongKongTaiwanKorea
|-
| 5 || China
|}
|}


Line 1,532: Line 1,638:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Value
! Description
! Description
|-
|-
| 0 || 1Hour
| 0 || 1Hour
Line 1,943: Line 2,049:
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,975: Line 2,087:
| 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 2,007: Line 2,119:
| 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 =