libnx v4.9.0
Loading...
Searching...
No Matches
set.h
Go to the documentation of this file.
1/**
2 * @file set.h
3 * @brief Settings services IPC wrapper.
4 * @author plutoo
5 * @author yellows8
6 * @author SciresM
7 * @copyright libnx Authors
8 */
9#pragma once
10#include "../types.h"
11#include "../kernel/event.h"
12#include "../services/time.h"
13#include "../services/acc.h"
14#include "../services/fs.h"
15#include "../services/btdrv_types.h"
16#include "../services/btm_types.h"
17#include "../sf/service.h"
18
19#define SET_MAX_NAME_SIZE 0x48
20
21typedef enum {
22 ColorSetId_Light = 0,
23 ColorSetId_Dark = 1,
24} ColorSetId;
25
26/// Console Product Models
27typedef enum {
28 SetSysProductModel_Invalid = 0, ///< Invalid Model
29 SetSysProductModel_Nx = 1, ///< Erista Model
30 SetSysProductModel_Copper = 2, ///< Erista "Simulation" Model
31 SetSysProductModel_Iowa = 3, ///< Mariko Model
32 SetSysProductModel_Hoag = 4, ///< Mariko Lite Model
33 SetSysProductModel_Calcio = 5, ///< Mariko "Simulation" Model
34 SetSysProductModel_Aula = 6, ///< Mariko OLED Model
36
37/// IDs for Language.
38typedef enum
39{
40 SetLanguage_JA = 0, ///< Japanese
41 SetLanguage_ENUS = 1, ///< US English ("AmericanEnglish")
42 SetLanguage_FR = 2, ///< French
43 SetLanguage_DE = 3, ///< German
44 SetLanguage_IT = 4, ///< Italian
45 SetLanguage_ES = 5, ///< Spanish
46 SetLanguage_ZHCN = 6, ///< Simplified Chinese ("Chinese")
47 SetLanguage_KO = 7, ///< Korean
48 SetLanguage_NL = 8, ///< Dutch
49 SetLanguage_PT = 9, ///< Portuguese
50 SetLanguage_RU = 10, ///< Russian
51 SetLanguage_ZHTW = 11, ///< Traditional Chinese ("Taiwanese")
52 SetLanguage_ENGB = 12, ///< GB English ("BritishEnglish")
53 SetLanguage_FRCA = 13, ///< CA French ("CanadianFrench")
54 SetLanguage_ES419 = 14, ///< "LatinAmericanSpanish"
55 SetLanguage_ZHHANS = 15, ///< [4.0.0+] ChineseSimplified
56 SetLanguage_ZHHANT = 16, ///< [4.0.0+] ChineseTraditional
57 SetLanguage_PTBR = 17, ///< [10.1.0+] "BrazilianPortuguese"
58 SetLanguage_Total, ///< Total languages supported by this enum.
60
61/// Region codes.
62typedef enum {
63 SetRegion_JPN = 0, ///< Japan
64 SetRegion_USA = 1, ///< The Americas
65 SetRegion_EUR = 2, ///< Europe
66 SetRegion_AUS = 3, ///< Australia/New Zealand
67 SetRegion_HTK = 4, ///< Hong Kong/Taiwan/Korea
68 SetRegion_CHN = 5, ///< China
69} SetRegion;
70
71/// ConnectionFlag
72typedef enum {
73 SetSysConnectionFlag_ConnectAutomaticallyFlag = BIT(0),
74 SetSysConnectionFlag_Unknown = BIT(1),
76
77/// AccessPointSecurityType
78typedef enum {
79 SetSysAccessPointSecurityType_None = 0,
80 SetSysAccessPointSecurityType_Shared = 1,
81 SetSysAccessPointSecurityType_Wpa = 2,
82 SetSysAccessPointSecurityType_Wpa2 = 3,
84
85/// AccessPointSecurityStandard
86typedef enum {
87 SetSysAccessPointSecurityStandard_None = 0,
88 SetSysAccessPointSecurityStandard_Wep = 1,
89 SetSysAccessPointSecurityStandard_Wpa = 2,
91
92/// AutoSettings
93typedef enum {
94 SetSysAutoSettings_AutoIp = BIT(0),
95 SetSysAutoSettings_AutoDns = BIT(1),
97
98/// ProxyFlags
99typedef enum {
100 SetSysProxyFlags_UseProxyFlag = BIT(0),
101 SetSysProxyFlags_ProxyAutoAuthenticateFlag = BIT(1),
103
104/// UserSelectorFlag
105typedef enum {
106 SetSysUserSelectorFlag_SkipsIfSingleUser = BIT(0),
108
109/// EulaVersionClockType
110typedef enum {
111 SetSysEulaVersionClockType_NetworkSystemClock = 0,
112 SetSysEulaVersionClockType_SteadyClock = 1,
114
115/// NotificationVolume
116typedef enum {
117 SetSysNotificationVolume_Mute = 0,
118 SetSysNotificationVolume_Low = 1,
119 SetSysNotificationVolume_High = 2,
121
122/// FriendPresenceOverlayPermission
123typedef enum {
124 SetSysFriendPresenceOverlayPermission_NotConfirmed = 0,
125 SetSysFriendPresenceOverlayPermission_NoDisplay = 1,
126 SetSysFriendPresenceOverlayPermission_FavoriteFriends = 2,
127 SetSysFriendPresenceOverlayPermission_Friends = 3,
129
130/// AudioDevice
131typedef enum {
132 SetSysAudioDevice_Console = 0,
133 SetSysAudioDevice_Headphone = 1,
134 SetSysAudioDevice_Tv = 2,
136
137/// PrimaryAlbumStorage
138typedef enum {
139 SetSysPrimaryAlbumStorage_Nand = 0,
140 SetSysPrimaryAlbumStorage_SdCard = 1,
142
143/// HandheldSleepPlan
144typedef enum {
145 SetSysHandheldSleepPlan_1Min = 0,
146 SetSysHandheldSleepPlan_3Min = 1,
147 SetSysHandheldSleepPlan_5Min = 2,
148 SetSysHandheldSleepPlan_10Min = 3,
149 SetSysHandheldSleepPlan_30Min = 4,
150 SetSysHandheldSleepPlan_Never = 5,
152
153/// ConsoleSleepPlan
154typedef enum {
155 SetSysConsoleSleepPlan_1Hour = 0,
156 SetSysConsoleSleepPlan_2Hour = 1,
157 SetSysConsoleSleepPlan_3Hour = 2,
158 SetSysConsoleSleepPlan_6Hour = 3,
159 SetSysConsoleSleepPlan_12Hour = 4,
160 SetSysConsoleSleepPlan_Never = 5,
162
163/// AudioOutputModeTarget
164typedef enum {
165 SetSysAudioOutputModeTarget_Unknown0 = 0,
166 SetSysAudioOutputModeTarget_Unknown1 = 1,
167 SetSysAudioOutputModeTarget_Unknown2 = 2,
168 SetSysAudioOutputModeTarget_Unknown3 = 3,
170
171/// AudioOutputMode
172typedef enum {
173 SetSysAudioOutputMode_Unknown1 = 1 ///< Default value.
175
176/// ServiceDiscoveryControlSettings
177typedef enum {
178 SetSysServiceDiscoveryControlSettings_IsChangeEnvironmentIdentifierDisabled = BIT(0),
180
181/// ErrorReportSharePermission
182typedef enum {
183 SetSysErrorReportSharePermission_NotConfirmed = 0,
184 SetSysErrorReportSharePermission_Granted = 1,
185 SetSysErrorReportSharePermission_Denied = 2,
187
188/// KeyboardLayout
189typedef enum {
190 SetKeyboardLayout_Japanese = 0,
191 SetKeyboardLayout_EnglishUs = 1,
192 SetKeyboardLayout_EnglishUsInternational = 2,
193 SetKeyboardLayout_EnglishUk = 3,
194 SetKeyboardLayout_French = 4,
195 SetKeyboardLayout_FrenchCa = 5,
196 SetKeyboardLayout_Spanish = 6,
197 SetKeyboardLayout_SpanishLatin = 7,
198 SetKeyboardLayout_German = 8,
199 SetKeyboardLayout_Italian = 9,
200 SetKeyboardLayout_Portuguese = 10,
201 SetKeyboardLayout_Russian = 11,
202 SetKeyboardLayout_Korean = 12,
203 SetKeyboardLayout_ChineseSimplified = 13,
204 SetKeyboardLayout_ChineseTraditional = 14,
206
207/// ChineseTraditionalInputMethod
208typedef enum {
209 SetChineseTraditionalInputMethod_Unknown1 = 1,
210 SetChineseTraditionalInputMethod_Unknown2 = 2,
212
213/// PtmCycleCountReliability
214typedef enum {
215 PtmCycleCountReliability_Default = 0,
216 PtmCycleCountReliability_Unk = 1,
218
219/// PlatformRegion. Other values not listed here should be handled as "Unknown".
220typedef enum {
221 SetSysPlatformRegion_Global = 1,
222 SetSysPlatformRegion_China = 2,
224
225/// TouchScreenMode, for "Touch-Screen Sensitivity".
226typedef enum {
228 SetSysTouchScreenMode_Standard = 1, ///< Standard, the default.
230
231/// BlockType
232typedef enum {
233 SetSysBlockType_Audio = 1,
234 SetSysBlockType_Video = 2,
235 SetSysBlockType_VendorSpecific = 3,
236 SetSysBlockType_Speaker = 4,
238
239/// ControllerType
240typedef enum {
241 SetSysControllerType_JoyConR = 1,
242 SetSysControllerType_JoyConL = 2,
243 SetSysControllerType_ProCon = 3,
245
246/// BatteryLot
247typedef struct {
248 char lot[0x18]; ///< BatteryLot string.
250
251/// NetworkSettings
252typedef struct {
253 char name[0x40];
254 Uuid uuid;
255 u32 connection_flags; ///< Bitmask with \ref SetSysConnectionFlag.
256 u32 wired_flag;
257 u32 connect_to_hidden_network; ///< Bitmask with UseStealthNetworkFlag.
258 char access_point_ssid[0x20];
259 u32 access_point_ssid_len;
260 u32 access_point_security_type; ///< Bitmask with \ref SetSysAccessPointSecurityType.
261 u32 access_point_security_standard; ///< Bitmask with \ref SetSysAccessPointSecurityStandard.
262 char access_point_passphrase[0x40];
263 u32 access_point_passphrase_len;
264 u32 auto_settings; ///< Bitmask with \ref SetSysAutoSettings.
265 u32 manual_ip_address;
266 u32 manual_subnet_mask;
267 u32 manual_gateway;
268 u32 primary_dns;
269 u32 secondary_dns;
270 u32 proxy_flags; ///< Bitmask with \ref SetSysProxyFlags.
271 char proxy_server[0x80];
272 u16 proxy_port;
273 u16 padding1;
274 char proxy_autoauth_user[0x20];
275 char proxy_autoauth_pass[0x20];
276 u16 mtu;
277 u16 padding2;
279
280/// LcdBacklightBrightnessMapping
281typedef struct {
282 float brightness_applied_to_backlight;
283 float ambient_light_sensor_value;
284 float unk_x8;
286
287/// BacklightSettings
288typedef struct {
289 u32 auto_brightness_flags;
290 float screen_brightness;
291 SetSysLcdBacklightBrightnessMapping brightness_mapping;
292 float unk_x14;
293 float unk_x18;
294 float unk_x1C;
295 float unk_x20;
296 float unk_x24;
298
299/// BacklightSettingsEx
300typedef struct {
301 u32 auto_brightness_flags;
302 float screen_brightness;
303 float current_brightness_for_vr_mode;
304 SetSysLcdBacklightBrightnessMapping brightness_mapping;
305 float unk_x18;
306 float unk_x1C;
307 float unk_x20;
308 float unk_x24;
309 float unk_x28;
311
312/// BluetoothDevicesSettings
313typedef struct {
314 BtdrvAddress addr; ///< \ref BtdrvAddress
315 BtmBdName name; ///< [1.0.0-12.1.0] BdName. On 13.0.0+ name2 is used instead.
317 u8 link_key[0x10]; ///< LinkKey
318 u8 link_key_present; ///< LinkKeyPresent
319 u16 version; ///< Version
320 u32 trusted_services; ///< TrustedServices
321 u16 vid; ///< Vid
322 u16 pid; ///< Pid
323 u8 sub_class; ///< SubClass
324 u8 attribute_mask; ///< AttributeMask
325 u16 descriptor_length; ///< DescriptorLength
326 u8 descriptor[0x80]; ///< Descriptor
327 u8 key_type; ///< KeyType
328 u8 device_type; ///< DeviceType
329 u16 brr_size; ///< BrrSize
330 u8 brr[0x9]; ///< Brr
331 u8 audio_source_volume; ///< [13.0.0+] AudioSourceVolume
332 char name2[0xF9]; ///< [13.0.0+] Name
333 u8 audio_sink_volume; ///< [15.0.0+] AudioSinkVolume
334 u32 audio_flags; ///< [14.0.0+] AudioFlags
335 u8 reserved[0x2C]; ///< Reserved
337
338/// Structure returned by \ref setsysGetFirmwareVersion.
339typedef struct {
340 u8 major;
341 u8 minor;
342 u8 micro;
343 u8 padding1;
344 u8 revision_major;
345 u8 revision_minor;
346 u8 padding2;
347 u8 padding3;
348 char platform[0x20];
349 char version_hash[0x40];
350 char display_version[0x18];
351 char display_title[0x80];
353
354/// Structure returned by \ref setsysGetFirmwareVersionDigest.
355typedef struct {
356 char digest[0x40];
358
359/// Structure returned by \ref setsysGetSerialNumber.
360typedef struct {
361 char number[0x18];
363
364/// DeviceNickName
365typedef struct {
366 char nickname[0x80];
368
369/// UserSelectorSettings
370typedef struct {
371 u32 flags; ///< Bitmask with \ref SetSysUserSelectorFlag.
373
374/// AccountSettings
375typedef struct {
378
379typedef struct {
380 u32 unk_x0; ///< 0 for Console and Tv, 2 for Headphones.
381 u8 volume; ///< From 0-15.
383
384/// EulaVersion
385typedef struct {
386 u32 version;
387 s32 region_code;
388 s32 clock_type; ///< \ref SetSysEulaVersionClockType
389 u32 pad;
390 u64 network_clock_time; ///< POSIX timestamp.
391 TimeSteadyClockTimePoint steady_clock_time; ///< \ref TimeSteadyClockTimePoint
393
394/// NotificationTime
395typedef struct {
396 s32 hour;
397 s32 minute;
399
400/// NotificationSettings
401typedef struct {
402 u32 flags; ///< Bitmask with NotificationFlag.
403 s32 volume; ///< \ref SetSysNotificationVolume
404 SetSysNotificationTime start_time; ///< \ref SetSysNotificationTime
405 SetSysNotificationTime end_time; ///< \ref SetSysNotificationTime
407
408/// AccountNotificationSettings
409typedef struct {
410 AccountUid uid; ///< \ref AccountUid
411 u32 flags; ///< Bitmask with AccountNotificationFlag.
412 s8 friend_presence_overlay_permission; ///< \ref SetSysFriendPresenceOverlayPermission
413 u8 pad[3]; ///< Padding.
415
416/// TvSettings
417typedef struct {
418 u32 flags; ///< Bitmask with TvFlag.
419 s32 tv_resolution; ///< \ref SetSysTvResolution
420 s32 hdmi_content_type; ///< \ref SetSysHdmiContentType
421 s32 rgb_range; ///< \ref SetSysRgbRange
422 s32 cmu_mode; ///< \ref SetSysCmuMode
423 u32 underscan; ///< Underscan.
424 float gamma; ///< Gamma.
425 float contrast; ///< Contrast.
427
428typedef struct {
429 u16 pixel_clock; ///< In 10 kHz units.
430 u8 horizontal_active_pixels_lsb;
431 u8 horizontal_blanking_pixels_lsb;
432 u8 horizontal_blanking_pixels_msb : 4;
433 u8 horizontal_active_pixels_msb : 4;
434 u8 vertical_active_lines_lsb;
435 u8 vertical_blanking_lines_lsb;
436 u8 vertical_blanking_lines_msb : 4;
437 u8 vertical_active_lines_msb : 4;
438 u8 horizontal_sync_offset_pixels_lsb;
439 u8 horizontal_sync_pulse_width_pixels_lsb;
440 u8 vertical_sync_pulse_width_lines_lsb : 4;
441 u8 vertical_sync_offset_lines_lsb : 4;
442 u8 vertical_sync_pulse_width_lines_msb : 2;
443 u8 vertical_sync_offset_lines_msb : 2;
444 u8 horizontal_sync_pulse_width_pixels_msb : 2;
445 u8 horizontal_sync_offset_pixels_msb : 2;
446 u8 horizontal_image_size_mm_lsb;
447 u8 vertical_image_size_mm_lsb;
448 u8 vertical_image_size_mm_msb : 4;
449 u8 horizontal_image_size_mm_msb : 4;
450 u8 horizontal_border_pixels;
451 u8 vertical_border_lines;
452 u8 features_bitmap_0 : 1;
453 u8 features_bitmap_1 : 1;
454 u8 features_bitmap_2 : 1;
455 u8 features_bitmap_34 : 2;
456 u8 features_bitmap_56 : 2;
457 u8 interlaced : 1;
459
460typedef struct {
461 struct {
462 u8 size : 5;
463 SetSysBlockType block_type : 3;
464 struct {
465 u8 svd_index : 7;
466 u8 native_flag : 1;
467 } svd[0xC];
468 } NX_PACKED video;
469 struct {
470 u8 size : 5;
471 SetSysBlockType block_type : 3;
472 u8 channel_count : 3;
473 u8 format_code : 4;
474 u8 padding1 : 1;
475 u8 sampling_rates_bitmap;
476 u8 bitrate;
477 } NX_PACKED audio;
478 struct {
479 u8 size : 5;
480 SetSysBlockType block_type : 3;
481 u8 ieee_registration_id[3];
482 u16 source_physical_address;
483 u8 mode_bitmap;
484 u8 max_tmds_frequency;
485 u8 latency_bitmap;
486 } NX_PACKED vendor_specific;
487 u8 padding[2];
489
490/// Edid
491typedef struct {
492 u8 pattern[8]; ///< Fixed pattern 00 FF FF FF FF FF FF 00.
493 u16 pnp_id; ///< Big-endian set of 3 5-bit values representing letters, 1 = A .. 26 = Z.
494 u16 product_code;
495 u32 serial_number;
496 u8 manufacture_week;
497 u8 manufacture_year; ///< Real value is val - 10.
498 u8 edid_version;
499 u8 edid_revision;
500 u8 video_input_parameters_bitmap;
501 u8 display_width;
502 u8 display_height;
503 u8 display_gamma;
504 u8 supported_features_bitmap;
505 struct {
506 u8 green_y_lsb : 2;
507 u8 green_x_lsb : 2;
508 u8 red_y_lsb : 2;
509 u8 red_x_lsb : 2;
510 u8 blue_lsb : 4;
511 u8 white_lsb : 4;
512 u8 red_x_msb;
513 u8 red_y_msb;
514 u8 green_x_msb;
515 u8 green_y_msb;
516 u8 blue_x_msb;
517 u8 blue_y_msb;
518 u8 white_x_msb;
519 u8 white_y_msb;
520 } chromaticity;
521 u8 timing_bitmap[3];
522 struct {
523 u8 x_resolution; ///< Real value is (val + 31) * 8 pixels.
524 u8 vertical_frequency : 6; ///< Real value is val + 60 Hz.
525 u8 aspect_ratio : 2; ///< 0 = 16:10, 1 = 4:3, 2 = 5:4, 3 = 16:9.
526 } timing_info[8];
527 SetSysModeLine timing_descriptor[2];
528 struct {
529 u16 display_descriptor_zero;
530 u8 padding1;
531 u8 descriptor_type;
532 u8 padding2;
533 char name[0xD];
534 } display_descriptor_name;
535 struct {
536 u16 display_descriptor_zero;
537 u8 padding1;
538 u8 descriptor_type;
539 u8 range_limit_offsets;
540 u8 vertical_field_rate_min;
541 u8 vertical_field_rate_max;
542 u8 horizontal_line_rate_min;
543 u8 horizontal_line_rate_max;
544 u8 pixel_clock_rate_max; ///< Rounded up to multiples of 10 MHz.
545 u8 extended_timing_info;
546 u8 padding[7];
547 } display_descriptor_range_limits;
548 u8 extension_count; ///< Always 1.
549 u8 checksum; ///< Sum of all 128 bytes should equal 0 mod 256.
550 ///< Extended data.
551 u8 extension_tag; ///< Always 2 = CEA EDID timing extension.
552 u8 revision;
553 u8 dtd_start;
554 u8 native_dtd_count : 4;
555 u8 native_dtd_feature_bitmap : 4;
556 SetSysDataBlock data_block;
557 SetSysModeLine extended_timing_descriptor[5];
558 u8 padding[5];
559 u8 extended_checksum; ///< Sum of 128 extended bytes should equal 0 mod 256.
560 u8 data2[0x80]; ///< [13.0.0+]
561 u8 data3[0x80]; ///< [13.0.0+]
562} SetSysEdid;
563
564/// DataDeletionSettings
565typedef struct {
566 u32 flags; ///< Bitmask with DataDeletionFlag.
567 s32 use_count; ///< Use count.
569
570/// SleepSettings
571typedef struct {
572 u32 flags; ///< Bitmask with SleepFlag.
573 s32 handheld_sleep_plan; ///< \ref SetSysHandheldSleepPlan
574 s32 console_sleep_plan; ///< \ref SetSysConsoleSleepPlan
576
577/// InitialLaunchSettings
578typedef struct {
579 u32 flags; ///< Bitmask with InitialLaunchFlag.
580 u32 pad; ///< Padding.
581 TimeSteadyClockTimePoint timestamp; ///< \ref TimeSteadyClockTimePoint timestamp.
583
584/// PtmFuelGaugeParameter
585typedef struct {
586 u16 rcomp0;
587 u16 tempc0;
588 u16 fullcap;
589 u16 fullcapnom;
590 u16 lavgempty;
591 u16 qresidual00;
592 u16 qresidual10;
593 u16 qresidual20;
594 u16 qresidual30;
595 u16 cycles; ///< Normally keeps the cycles reg. Unused and contains stack garbage.
596 u32 cycles_actual; ///< Keeps track of cycles. The fuel gauge cycles reg is reset if > 2.00 cycles and added here.
598
599/// Actually nn::util::Color4u8Type.
600typedef struct {
601 u8 field[4];
603
604/// NxControllerLegacySettings
605typedef struct {
606 BtdrvAddress address;
607 u8 type; ///< \ref SetSysControllerType.
608 char serial[0x10];
609 SetSysColor4u8Type body_color;
610 SetSysColor4u8Type button_color;
611 u8 unk_x1F[8];
612 u8 unk_x27;
613 u8 interface_type; ///< Bitmask with \ref XcdInterfaceType.
615
616/// NxControllerSettings
617typedef struct {
618 BtdrvAddress address;
619 u8 type; ///< \ref SetSysControllerType.
620 char serial[0x10];
621 SetSysColor4u8Type body_color;
622 SetSysColor4u8Type button_color;
623 u8 unk_x1F[8];
624 u8 unk_x27;
625 u8 interface_type; ///< Bitmask with \ref XcdInterfaceType.
626 u8 unk_x29[0x403]; ///< Unknown
628
629/// ConsoleSixAxisSensorAccelerationBias
630typedef struct {
631 float unk_x0;
632 float unk_x4;
633 float unk_x8;
635
636/// ConsoleSixAxisSensorAngularVelocityBias
637typedef struct {
638 float unk_x0;
639 float unk_x4;
640 float unk_x8;
642
643/// ConsoleSixAxisSensorAccelerationGain
644typedef struct {
645 float unk_x0;
646 float unk_x4;
647 float unk_x8;
648 float unk_xC;
649 float unk_x10;
650 float unk_x14;
651 float unk_x18;
652 float unk_x1C;
653 float unk_x20;
655
656/// ConsoleSixAxisSensorAngularVelocityGain
657typedef struct {
658 float unk_x0;
659 float unk_x4;
660 float unk_x8;
661 float unk_xC;
662 float unk_x10;
663 float unk_x14;
664 float unk_x18;
665 float unk_x1C;
666 float unk_x20;
668
669/// AllowedSslHosts
670typedef struct {
671 u8 hosts[0x100];
673
674/// HostFsMountPoint
675typedef struct {
676 char mount[0x100];
678
679/// BlePairingSettings
680typedef struct {
681 BtdrvAddress address;
682 u16 unk_x6;
683 u16 unk_x8;
684 u8 unk_xA;
685 u8 unk_xB;
686 u8 unk_xC;
687 u8 unk_xD;
688 u8 unk_xE;
689 u8 unk_xF;
690 u8 padding[0x70];
692
693/// ConsoleSixAxisSensorAngularVelocityTimeBias
694typedef struct {
695 float unk_x0;
696 float unk_x4;
697 float unk_x8;
699
700/// ConsoleSixAxisSensorAngularAcceleration
701typedef struct {
702 float unk_x0;
703 float unk_x4;
704 float unk_x8;
705 float unk_xC;
706 float unk_x10;
707 float unk_x14;
708 float unk_x18;
709 float unk_x1C;
710 float unk_x20;
712
713/// RebootlessSystemUpdateVersion. This is the content of the RebootlessSystemUpdateVersion SystemData, in the "/version" file.
714typedef struct {
715 u32 version;
716 u8 reserved[0x1c];
717 char display_version[0x20];
719
720/// AccountOnlineStorageSettings
721typedef struct {
722 AccountUid uid; ///< \ref AccountUid
723 u32 unk_x10;
724 u32 unk_x14;
726
727/// AnalogStickUserCalibration
728typedef struct {
729 u16 unk_x0;
730 u16 unk_x2;
731 u16 unk_x4;
732 u16 unk_x6;
733 u16 unk_x8;
734 u16 unk_xA;
735 u16 unk_xC;
736 u16 unk_xE;
738
739/// ThemeId
740typedef struct {
741 u64 theme_id[0x10];
743
744/// ThemeSettings
745typedef struct {
746 u64 theme_settings;
748
749/// Output from \ref setsysGetHomeMenuScheme. This contains RGBA8 colors which correspond with the physical shell of the system.
750typedef struct {
751 u32 main_color; ///< Main Color.
752 u32 back_color; ///< Back Color.
753 u32 sub_color; ///< Sub Color.
754 u32 bezel_color; ///< Bezel Color.
755 u32 extra_color; ///< Extra Color.
757
758/// ButtonConfigSettings
759typedef struct {
760 u8 settings[0x5A8];
762
763/// ButtonConfigRegisteredSettings
764typedef struct {
765 u8 settings[0x5C8];
767
768typedef struct {
769 u8 offset[0x6];
771
772typedef struct {
773 u8 scale[0x6];
775
776typedef struct {
777 u32 size;
778 u8 cert[0x70];
780
781typedef struct {
782 u32 size;
783 u8 cert[0x20];
785
786typedef struct {
787 u32 size;
788 u8 key[0x40];
789 u32 generation;
791
792typedef struct {
793 u32 size;
794 u8 cert[0x90];
796
797typedef struct {
798 u32 size;
799 u8 cert[0x14];
801
802typedef struct {
803 u32 size;
804 u8 key[0x50];
805 u32 generation;
807
808typedef struct {
809 u8 calibration[0x9];
811
812typedef struct {
813 u8 parameter[0x12];
815
816typedef struct {
817 u8 bd_addr[0x6];
819
820typedef struct {
821 u8 cfg[0x1E];
823
824typedef struct {
825 u8 offset[0x6];
827
828typedef struct {
829 char code[0x3]; ///< Country code.
831
832typedef struct {
833 u8 cert[0x180];
835
836typedef struct {
837 u32 size;
838 u8 key[0x50];
839 u32 generation;
841
842typedef struct {
843 u8 cert[0x400];
845
846typedef struct {
847 u32 size; ///< Size of the entire key.
848 u8 key[0x130];
849 u32 generation;
851
852typedef struct {
853 u8 offset[0x6];
855
856typedef struct {
857 u8 scale[0x6];
859
860typedef struct {
861 u8 addr[0x6]; ///< Mac address.
863
864typedef struct {
865 u8 cert[0x240];
867
868typedef struct {
869 u32 size; ///< Size of the entire key.
870 u8 key[0x240];
871 u32 generation;
873
875
876typedef struct {
877 u8 parameter[0x5A];
879
880typedef struct {
881 u32 size; ///< Size of the certificate data.
882 u8 cert[0x800];
884
885typedef struct {
886 u32 size; ///< Size of the entire key.
887 u8 key[0x130];
888 u32 generation;
890
891typedef struct {
892 u32 code; ///< Region code.
894
895/// Initialize set.
897
898/// Exit set.
899void setExit(void);
900
901/// Gets the Service object for the actual set service session.
903
904/// Converts LanguageCode to \ref SetLanguage.
905Result setMakeLanguage(u64 LanguageCode, SetLanguage *Language);
906
907/// Converts \ref SetLanguage to LanguageCode.
908Result setMakeLanguageCode(SetLanguage Language, u64 *LanguageCode);
909
910/// Gets the current system LanguageCode.
911/// Normally this should be used instead of \ref setGetLanguageCode.
912/// LanguageCode is a string, see here: https://switchbrew.org/wiki/Settings_services#LanguageCode
914
915/// Gets the current LanguageCode, \ref setGetSystemLanguage should be used instead normally.
917
918/// Gets available LanguageCodes.
919/// On system-version <4.0.0, max_entries is set to the output from \ref setGetAvailableLanguageCodeCount if max_entries is larger than that.
920Result setGetAvailableLanguageCodes(s32 *total_entries, u64 *LanguageCodes, size_t max_entries);
921
922/// Gets total available LanguageCodes.
923/// Output total is overridden with value 0 if the total is <0.
925
926/// Gets the RegionCode.
928
929/**
930 * @brief GetQuestFlag
931 * @note Only available on [5.0.0+].
932 * @param[out] out Output flag.
933 */
935
936/**
937 * @brief Gets the system's nickname.
938 * @note Only available on [10.1.0+].
939 * @param[out] nickname \ref SetSysDeviceNickName
940 */
942
943/// Initialize setsys.
945
946/// Exit setsys.
947void setsysExit(void);
948
949/// Gets the Service object for the actual setsys service session.
951
952/**
953 * @brief SetLanguageCode
954 * @param[in] LanguageCode LanguageCode.
955 */
957
958/**
959 * @brief SetNetworkSettings
960 * @param[in] settings Input array of \ref SetSysNetworkSettings.
961 * @param[in] count Size of the settings array in entries.
962 */
964
965/**
966 * @brief GetNetworkSettings
967 * @param[out] total_out Total output entries.
968 * @param[out] versions Output array of \ref SetSysNetworkSettings.
969 * @param[in] count Size of the settings array in entries.
970 */
972
973/**
974 * @brief Gets the system firmware version.
975 * @param[out] out Firmware version to populate.
976 */
978
979/**
980 * @brief GetFirmwareVersionDigest
981 * @param[out] out \ref SetSysFirmwareVersionDigest
982 */
984
985/**
986 * @brief GetLockScreenFlag
987 * @param[out] out Output flag.
988 */
990
991/**
992 * @brief SetLockScreenFlag
993 * @param[in] flag Input flag.
994 */
996
997/**
998 * @brief GetBacklightSettings
999 * @param[out] out \ref SetSysBacklightSettings
1000 */
1002
1003/**
1004 * @brief SetBacklightSettings
1005 * @param[in] settings \ref SetSysBacklightSettings
1006 */
1008
1009/**
1010 * @brief SetBluetoothDevicesSettings
1011 * @param[in] settings Input array of \ref SetSysBluetoothDevicesSettings.
1012 * @param[in] count Size of the settings array in entries.
1013 */
1015
1016/**
1017 * @brief GetBluetoothDevicesSettings
1018 * @param[out] total_out Total output entries.
1019 * @param[out] settings Output array of \ref SetSysBluetoothDevicesSettings.
1020 * @param[in] count Size of the settings array in entries.
1021 */
1023
1024/**
1025 * @brief GetExternalSteadyClockSourceId
1026 * @param[out] out \ref Uuid
1027 */
1029
1030/**
1031 * @brief SetExternalSteadyClockSourceId
1032 * @param[in] uuid \ref Uuid
1033 */
1035
1036/**
1037 * @brief GetUserSystemClockContext
1038 * @param[out] out \ref TimeSystemClockContext
1039 */
1041
1042/**
1043 * @brief SetUserSystemClockContext
1044 * @param[in] context \ref TimeSystemClockContext
1045 */
1047
1048/**
1049 * @brief GetAccountSettings
1050 * @param[out] out \ref SetSysAccountSettings
1051 */
1053
1054/**
1055 * @brief SetAccountSettings
1056 * @param[in] settings \ref SetSysAccountSettings
1057 */
1059
1060/**
1061 * @brief GetAudioVolume
1062 * @param[in] device \ref SetSysAudioDevice
1063 * @param[out] out \ref SetSysAudioVolume
1064 */
1066
1067/**
1068 * @brief SetAudioVolume
1069 * @param[in] device \ref SetSysAudioDevice
1070 * @param[in] volume \ref SetSysAudioVolume
1071 */
1073
1074/**
1075 * @brief GetEulaVersions
1076 * @param[out] total_out Total output entries.
1077 * @param[out] versions Output array of \ref SetSysEulaVersion.
1078 * @param[in] count Size of the versions array in entries.
1079 */
1081
1082/**
1083 * @brief SetEulaVersions
1084 * @param[in] versions Input array of \ref SetSysEulaVersion.
1085 * @param[in] count Size of the versions array in entries.
1086 */
1088
1089/// Gets the current system theme.
1091
1092/// Sets the current system theme.
1094
1095/**
1096 * @brief GetConsoleInformationUploadFlag
1097 * @param[out] out Output flag.
1098 */
1100
1101/**
1102 * @brief SetConsoleInformationUploadFlag
1103 * @param[in] flag Input flag.
1104 */
1106
1107/**
1108 * @brief GetAutomaticApplicationDownloadFlag
1109 * @param[out] out Output flag.
1110 */
1112
1113/**
1114 * @brief SetAutomaticApplicationDownloadFlag
1115 * @param[in] flag Input flag.
1116 */
1118
1119/**
1120 * @brief GetNotificationSettings
1121 * @param[out] out \ref SetSysNotificationSettings
1122 */
1124
1125/**
1126 * @brief SetNotificationSettings
1127 * @param[in] settings \ref SetSysNotificationSettings
1128 */
1130
1131/**
1132 * @brief GetAccountNotificationSettings
1133 * @param[out] total_out Total output entries.
1134 * @param[out] settings Output array of \ref SetSysAccountNotificationSettings.
1135 * @param[in] count Size of the settings array in entries.
1136 */
1138
1139/**
1140 * @brief SetAccountNotificationSettings
1141 * @param[in] settings Input array of \ref SetSysAccountNotificationSettings.
1142 * @param[in] count Size of the settings array in entries.
1143 */
1145
1146/**
1147 * @brief GetVibrationMasterVolume
1148 * @param[out] out Output volume.
1149 */
1151
1152/**
1153 * @brief SetVibrationMasterVolume
1154 * @param[in] volume Input volume.
1155 */
1157
1158/**
1159 * @brief Gets the size of a settings item value.
1160 * @param name Name string.
1161 * @param item_key Item key string.
1162 * @param size_out Pointer to output the size to.
1163 */
1164Result setsysGetSettingsItemValueSize(const char *name, const char *item_key, u64 *size_out);
1165
1166/**
1167 * @brief Gets the value of a settings item.
1168 * @param name Name string.
1169 * @param item_key Item key string.
1170 * @param value_out Pointer to output the value to.
1171 * @param value_out_size Size of the value_out buffer.
1172 * @param size_out Total size which was copied to value_out.
1173 */
1174Result setsysGetSettingsItemValue(const char *name, const char *item_key, void *value_out, size_t value_out_size, u64 *size_out);
1175
1176/**
1177 * @brief GetTvSettings
1178 * @param[out] out \ref SetSysTvSettings
1179 */
1181
1182/**
1183 * @brief SetTvSettings
1184 * @param[in] settings \ref SetSysTvSettings
1185 */
1187
1188/**
1189 * @brief GetEdid
1190 * @param[out] out \ref SetSysEdid
1191 */
1193
1194/**
1195 * @brief SetEdid
1196 * @param[in] edid \ref SetSysEdid
1197 */
1199
1200/**
1201 * @brief GetAudioOutputMode
1202 * @param[in] target \ref SetSysAudioOutputModeTarget
1203 * @param[out] out \ref SetSysAudioOutputMode
1204 */
1206
1207/**
1208 * @brief SetAudioOutputMode
1209 * @param[in] target \ref SetSysAudioOutputModeTarget
1210 * @param[in] mode \ref SetSysAudioOutputMode
1211 */
1213
1214/**
1215 * @brief GetSpeakerAutoMuteFlag
1216 * @param[out] out Output flag.
1217 */
1219
1220/**
1221 * @brief SetSpeakerAutoMuteFlag
1222 * @param[in] flag Input flag.
1223 */
1225
1226/**
1227 * @brief GetQuestFlag
1228 * @param[out] out Output flag.
1229 */
1231
1232/**
1233 * @brief SetQuestFlag
1234 * @param[in] flag Input flag.
1235 */
1237
1238/**
1239 * @brief GetDataDeletionSettings
1240 * @param[out] out \ref SetSysDataDeletionSettings
1241 */
1243
1244/**
1245 * @brief SetDataDeletionSettings
1246 * @param[in] settings \ref SetSysDataDeletionSettings
1247 */
1249
1250/**
1251 * @brief GetInitialSystemAppletProgramId
1252 * @param[out] out output ProgramId.
1253 */
1255
1256/**
1257 * @brief GetOverlayDispProgramId
1258 * @param[out] out output ProgramId.
1259 */
1261
1262/**
1263 * @brief GetDeviceTimeZoneLocationName
1264 * @param[out] out \ref TimeLocationName
1265 */
1267
1268/**
1269 * @brief SetDeviceTimeZoneLocationName
1270 * @param[in] name \ref TimeLocationName
1271 */
1273
1274/**
1275 * @brief GetWirelessCertificationFileSize
1276 * @param[out] out_size Output size.
1277 */
1279
1280/**
1281 * @brief GetWirelessCertificationFile
1282 * @param[out] buffer Output buffer.
1283 * @param[in] size Output buffer size.
1284 * @param[out] out_size Output size.
1285 */
1286Result setsysGetWirelessCertificationFile(void* buffer, size_t size, u64 *out_size);
1287
1288/**
1289 * @brief SetRegionCode
1290 * @param[in] region \ref SetRegion
1291 */
1293
1294/**
1295 * @brief GetNetworkSystemClockContext
1296 * @param[out] out \ref TimeSystemClockContext
1297 */
1299
1300/**
1301 * @brief SetNetworkSystemClockContext
1302 * @param[in] context \ref TimeSystemClockContext
1303 */
1305
1306/**
1307 * @brief IsUserSystemClockAutomaticCorrectionEnabled
1308 * @param[out] out Output flag.
1309 */
1311
1312/**
1313 * @brief SetUserSystemClockAutomaticCorrectionEnabled
1314 * @param[in] flag Input flag.
1315 */
1317
1318/**
1319 * @brief GetDebugModeFlag
1320 * @param[out] out Output flag.
1321 */
1323
1324/**
1325 * @brief GetPrimaryAlbumStorage
1326 * @param[out] out \ref GetPrimaryAlbumStorage
1327 */
1329
1330/**
1331 * @brief SetPrimaryAlbumStorage
1332 * @param[in] storage \ref SetSysPrimaryAlbumStorage
1333 */
1335
1336/**
1337 * @brief GetUsb30EnableFlag
1338 * @param[out] out Output flag.
1339 */
1341
1342/**
1343 * @brief SetUsb30EnableFlag
1344 * @param[in] flag Input flag.
1345 */
1347
1348/**
1349 * @brief Gets the \ref SetBatteryLot.
1350 * @param[out] out \ref SetBatteryLot
1351 */
1353
1354/**
1355 * @brief Gets the system's serial number.
1356 * @param[out] out \ref SetSysSerialNumber
1357 */
1359
1360/**
1361 * @brief GetNfcEnableFlag
1362 * @param[out] out Output flag.
1363 */
1365
1366/**
1367 * @brief SetNfcEnableFlag
1368 * @param[in] flag Input flag.
1369 */
1371
1372/**
1373 * @brief GetSleepSettings
1374 * @param[out] out \ref SetSysSleepSettings
1375 */
1377
1378/**
1379 * @brief SetSleepSettings
1380 * @param[in] settings \ref SetSysSleepSettings
1381 */
1383
1384/**
1385 * @brief GetWirelessLanEnableFlag
1386 * @param[out] out Output flag.
1387 */
1389
1390/**
1391 * @brief SetWirelessLanEnableFlag
1392 * @param[in] flag Input flag.
1393 */
1395
1396/**
1397 * @brief GetInitialLaunchSettings
1398 * @param[out] out \ref SetSysInitialLaunchSettings
1399 */
1401
1402/**
1403 * @brief SetInitialLaunchSettings
1404 * @param[in] settings \ref SetSysInitialLaunchSettings
1405 */
1407
1408/**
1409 * @brief Gets the system's nickname.
1410 * @note Same as \ref setGetDeviceNickname, which official sw uses instead on [10.1.0+].
1411 * @param[out] nickname \ref SetSysDeviceNickName
1412 */
1414
1415/**
1416 * @brief Sets the system's nickname.
1417 * @param[in] nickname \ref SetSysDeviceNickName
1418 */
1420
1421/**
1422 * @brief GetProductModel
1423 * @param[out] model Output SetSysProductModel.
1424 */
1426
1427/**
1428 * @brief GetLdnChannel
1429 * @param[out] out Output LdnChannel.
1430 */
1432
1433/**
1434 * @brief SetLdnChannel
1435 * @param[in] channel Input LdnChannel.
1436 */
1438
1439/**
1440 * @brief Gets an event that settings will signal on flag change.
1441 * @param out_event Event to bind. Output event will have autoclear=false.
1442 */
1444
1445/**
1446 * @brief Gets the settings flags that have changed.
1447 * @param flags_0 Pointer to populate with first 64 flags.
1448 * @param flags_1 Pointer to populate with second 64 flags.
1449 */
1451
1452/**
1453 * @brief GetPtmBatteryLot
1454 * @param[out] out \ref SetBatteryLot
1455 */
1457
1458/**
1459 * @brief SetPtmBatteryLot
1460 * @param[in] lot \ref SetBatteryLot
1461 */
1463
1464/**
1465 * @brief GetPtmFuelGaugeParameter
1466 * @param[out] out \ref SetSysPtmFuelGaugeParameter
1467 */
1469
1470/**
1471 * @brief SetPtmFuelGaugeParameter
1472 * @param[in] parameter \ref SetSysPtmFuelGaugeParameter
1473 */
1475
1476/**
1477 * @brief GetBluetoothEnableFlag
1478 * @param[out] out Output flag.
1479 */
1481
1482/**
1483 * @brief SetBluetoothEnableFlag
1484 * @param[in] flag Input flag.
1485 */
1487
1488/**
1489 * @brief GetMiiAuthorId
1490 * @param[out] out Output MiiAuthorId.
1491 */
1493
1494/**
1495 * @brief SetShutdownRtcValue
1496 * @param[in] value Input value.
1497 */
1499
1500/**
1501 * @brief GetShutdownRtcValue
1502 * @param[out] out Output value.
1503 */
1505
1506/**
1507 * @brief Gets an event that settings will signal on flag change.
1508 * @param out_event Event to bind. Output event will have autoclear=false.
1509 */
1511
1512/**
1513 * @brief Gets the settings flags that have changed.
1514 * @param flags_0 Pointer to populate with first 64 flags.
1515 * @param flags_1 Pointer to populate with second 64 flags.
1516 */
1518
1519/**
1520 * @brief GetAutoUpdateEnableFlag
1521 * @note Only available on [2.0.0+].
1522 * @param[out] out Output flag.
1523 */
1525
1526/**
1527 * @brief SetAutoUpdateEnableFlag
1528 * @note Only available on [2.0.0+].
1529 * @param[in] flag Input flag.
1530 */
1532
1533/**
1534 * @brief GetNxControllerSettings
1535 * @note On [13.0.0+] \ref setsysGetNxControllerSettingsEx should be used instead.
1536 * @param[out] total_out Total output entries.
1537 * @param[out] settings Output array of \ref SetSysNxControllerLegacySettings.
1538 * @param[in] count Size of the settings array in entries.
1539 */
1541
1542/**
1543 * @brief SetNxControllerSettings
1544 * @note On [13.0.0+] \ref setsysSetNxControllerSettingsEx should be used instead.
1545 * @param[in] settings Input array of \ref SetSysNxControllerLegacySettings.
1546 * @param[in] count Size of the settings array in entries.
1547 */
1549
1550/**
1551 * @brief GetBatteryPercentageFlag
1552 * @note Only available on [2.0.0+].
1553 * @param[out] out Output flag.
1554 */
1556
1557/**
1558 * @brief SetBatteryPercentageFlag
1559 * @note Only available on [2.0.0+].
1560 * @param[in] flag Input flag.
1561 */
1563
1564/**
1565 * @brief GetExternalRtcResetFlag
1566 * @note Only available on [2.0.0+].
1567 * @param[out] out Output flag.
1568 */
1570
1571/**
1572 * @brief SetExternalRtcResetFlag
1573 * @note Only available on [2.0.0+].
1574 * @param[in] flag Input flag.
1575 */
1577
1578/**
1579 * @brief GetUsbFullKeyEnableFlag
1580 * @note Only available on [3.0.0+].
1581 * @param[out] out Output flag.
1582 */
1584
1585/**
1586 * @brief SetUsbFullKeyEnableFlag
1587 * @note Only available on [3.0.0+].
1588 * @param[in] flag Input flag.
1589 */
1591
1592/**
1593 * @brief SetExternalSteadyClockInternalOffset
1594 * @note Only available on [3.0.0+].
1595 * @param[in] offset Input offset.
1596 */
1598
1599/**
1600 * @brief GetExternalSteadyClockInternalOffset
1601 * @note Only available on [3.0.0+].
1602 * @param[out] out Output offset.
1603 */
1605
1606/**
1607 * @brief GetBacklightSettingsEx
1608 * @note Only available on [3.0.0+].
1609 * @param[out] out \ref SetSysBacklightSettingsEx
1610 */
1612
1613/**
1614 * @brief SetBacklightSettingsEx
1615 * @note Only available on [3.0.0+].
1616 * @param[in] settings \ref SetSysBacklightSettingsEx
1617 */
1619
1620/**
1621 * @brief GetHeadphoneVolumeWarningCount
1622 * @note Only available on [3.0.0+].
1623 * @param[out] out Output count.
1624 */
1626
1627/**
1628 * @brief SetHeadphoneVolumeWarningCount
1629 * @note Only available on [3.0.0+].
1630 * @param[in] count Input count.
1631 */
1633
1634/**
1635 * @brief GetBluetoothAfhEnableFlag
1636 * @note Only available on [3.0.0+].
1637 * @param[out] out Output flag.
1638 */
1640
1641/**
1642 * @brief SetBluetoothAfhEnableFlag
1643 * @note Only available on [3.0.0+].
1644 * @param[in] flag Input flag.
1645 */
1647
1648/**
1649 * @brief GetBluetoothBoostEnableFlag
1650 * @note Only available on [3.0.0+].
1651 * @param[out] out Output flag.
1652 */
1654
1655/**
1656 * @brief SetBluetoothBoostEnableFlag
1657 * @note Only available on [3.0.0+].
1658 * @param[in] flag Input flag.
1659 */
1661
1662/**
1663 * @brief GetInRepairProcessEnableFlag
1664 * @note Only available on [3.0.0+].
1665 * @param[out] out Output flag.
1666 */
1668
1669/**
1670 * @brief SetInRepairProcessEnableFlag
1671 * @note Only available on [3.0.0+].
1672 * @param[in] flag Input flag.
1673 */
1675
1676/**
1677 * @brief GetHeadphoneVolumeUpdateFlag
1678 * @note Only available on [3.0.0+].
1679 * @param[out] out Output flag.
1680 */
1682
1683/**
1684 * @brief SetHeadphoneVolumeUpdateFlag
1685 * @note Only available on [3.0.0+].
1686 * @param[in] flag Input flag.
1687 */
1689
1690/**
1691 * @brief NeedsToUpdateHeadphoneVolume
1692 * @note Only available on [3.0.0-14.1.2].
1693 * @param[out] a0 Output arg.
1694 * @param[out] a1 Output arg.
1695 * @param[out] a2 Output arg.
1696 * @param[in] flag Input flag.
1697 */
1699
1700/**
1701 * @brief GetPushNotificationActivityModeOnSleep
1702 * @note Only available on [3.0.0+].
1703 * @param[out] out Output mode.
1704 */
1706
1707/**
1708 * @brief SetPushNotificationActivityModeOnSleep
1709 * @note Only available on [3.0.0+].
1710 * @param[in] mode Input mode.
1711 */
1713
1714/**
1715 * @brief GetServiceDiscoveryControlSettings
1716 * @note Only available on [4.0.0+].
1717 * @param[out] out \ref ServiceDiscoveryControlSettings
1718 */
1720
1721/**
1722 * @brief SetServiceDiscoveryControlSettings
1723 * @note Only available on [4.0.0+].
1724 * @param[in] settings \ref ServiceDiscoveryControlSettings
1725 */
1727
1728/**
1729 * @brief GetErrorReportSharePermission
1730 * @note Only available on [4.0.0+].
1731 * @param[out] out \ref SetSysErrorReportSharePermission
1732 */
1734
1735/**
1736 * @brief SetErrorReportSharePermission
1737 * @note Only available on [4.0.0+].
1738 * @param[in] permission \ref SetSysErrorReportSharePermission
1739 */
1741
1742/**
1743 * @brief GetAppletLaunchFlags
1744 * @note Only available on [4.0.0+].
1745 * @param[out] out Output AppletLaunchFlags bitmask.
1746 */
1748
1749/**
1750 * @brief SetAppletLaunchFlags
1751 * @note Only available on [4.0.0+].
1752 * @param[in] flags Input AppletLaunchFlags bitmask.
1753 */
1755
1756/**
1757 * @brief GetConsoleSixAxisSensorAccelerationBias
1758 * @note Only available on [4.0.0+].
1759 * @param[out] out \ref SetSysConsoleSixAxisSensorAccelerationBias
1760 */
1762
1763/**
1764 * @brief SetConsoleSixAxisSensorAccelerationBias
1765 * @note Only available on [4.0.0+].
1766 * @param[in] bias \ref SetSysConsoleSixAxisSensorAccelerationBias
1767 */
1769
1770/**
1771 * @brief GetConsoleSixAxisSensorAngularVelocityBias
1772 * @note Only available on [4.0.0+].
1773 * @param[out] out \ref SetSysConsoleSixAxisSensorAngularVelocityBias
1774 */
1776
1777/**
1778 * @brief SetConsoleSixAxisSensorAngularVelocityBias
1779 * @note Only available on [4.0.0+].
1780 * @param[in] bias \ref SetSysConsoleSixAxisSensorAngularVelocityBias
1781 */
1783
1784/**
1785 * @brief GetConsoleSixAxisSensorAccelerationGain
1786 * @note Only available on [4.0.0+].
1787 * @param[out] out \ref SetSysConsoleSixAxisSensorAccelerationGain
1788 */
1790
1791/**
1792 * @brief SetConsoleSixAxisSensorAccelerationGain
1793 * @note Only available on [4.0.0+].
1794 * @param[in] gain \ref SetSysConsoleSixAxisSensorAccelerationGain
1795 */
1797
1798/**
1799 * @brief GetConsoleSixAxisSensorAngularVelocityGain
1800 * @note Only available on [4.0.0+].
1801 * @param[out] out \ref SetSysConsoleSixAxisSensorAngularVelocityGain
1802 */
1804
1805/**
1806 * @brief SetConsoleSixAxisSensorAngularVelocityGain
1807 * @note Only available on [4.0.0+].
1808 * @param[in] gain \ref SetSysConsoleSixAxisSensorAngularVelocityGain
1809 */
1811
1812/**
1813 * @brief GetKeyboardLayout
1814 * @note Only available on [4.0.0+].
1815 * @param[out] out \ref SetKeyboardLayout
1816 */
1818
1819/**
1820 * @brief SetKeyboardLayout
1821 * @note Only available on [4.0.0+].
1822 * @param[in] layout \ref SetKeyboardLayout
1823 */
1825
1826/**
1827 * @brief GetWebInspectorFlag
1828 * @note Only available on [4.0.0+].
1829 * @param[out] out Output flag.
1830 */
1832
1833/**
1834 * @brief GetAllowedSslHosts
1835 * @note Only available on [4.0.0+].
1836 * @param[out] total_out Total output entries.
1837 * @param[out] out Output array of \ref SetSysAllowedSslHosts.
1838 * @param[in] count Size of the hosts array in entries.
1839 */
1841
1842/**
1843 * @brief GetHostFsMountPoint
1844 * @note Only available on [4.0.0+].
1845 * @param[out] out \ref SetSysHostFsMountPoint
1846 */
1848
1849/**
1850 * @brief GetRequiresRunRepairTimeReviser
1851 * @note Only available on [5.0.0+].
1852 * @param[out] out Output flag.
1853 */
1855
1856/**
1857 * @brief SetRequiresRunRepairTimeReviser
1858 * @note Only available on [5.0.0+].
1859 * @param[in] flag Input flag.
1860 */
1862
1863/**
1864 * @brief SetBlePairingSettings
1865 * @note Only available on [5.0.0+].
1866 * @param[in] settings Input array of \ref SetSysBlePairingSettings.
1867 * @param[in] count Size of the settings array in entries.
1868 */
1870
1871/**
1872 * @brief GetBlePairingSettings
1873 * @note Only available on [5.0.0+].
1874 * @param[out] total_out Total output entries.
1875 * @param[out] settings Output array of \ref SetSysBlePairingSettings.
1876 * @param[in] count Size of the hosts array in entries.
1877 */
1879
1880/**
1881 * @brief GetConsoleSixAxisSensorAngularVelocityTimeBias
1882 * @note Only available on [5.0.0+].
1883 * @param[out] out \ref SetSysConsoleSixAxisSensorAngularVelocityTimeBias
1884 */
1886
1887/**
1888 * @brief SetConsoleSixAxisSensorAngularVelocityTimeBias
1889 * @note Only available on [5.0.0+].
1890 * @param[in] bias \ref SetSysConsoleSixAxisSensorAngularVelocityTimeBias
1891 */
1893
1894/**
1895 * @brief GetConsoleSixAxisSensorAngularAcceleration
1896 * @note Only available on [5.0.0+].
1897 * @param[out] out \ref SetSysConsoleSixAxisSensorAngularAcceleration
1898 */
1900
1901/**
1902 * @brief SetConsoleSixAxisSensorAngularAcceleration
1903 * @note Only available on [5.0.0+].
1904 * @param[in] acceleration \ref SetSysConsoleSixAxisSensorAngularAcceleration
1905 */
1907
1908/**
1909 * @brief GetRebootlessSystemUpdateVersion
1910 * @note Only available on [5.0.0+].
1911 * @param[out] out \ref SetSysRebootlessSystemUpdateVersion
1912 */
1914
1915/**
1916 * @brief GetDeviceTimeZoneLocationUpdatedTime
1917 * @note Only available on [5.0.0+].
1918 * @param[out] out \ref TimeSteadyClockTimePoint
1919 */
1921
1922/**
1923 * @brief SetDeviceTimeZoneLocationUpdatedTime
1924 * @note Only available on [5.0.0+].
1925 * @param[in] time_point \ref TimeSteadyClockTimePoint
1926 */
1928
1929/**
1930 * @brief GetUserSystemClockAutomaticCorrectionUpdatedTime
1931 * @note Only available on [6.0.0+].
1932 * @param[out] out \ref TimeSteadyClockTimePoint
1933 */
1935
1936/**
1937 * @brief SetUserSystemClockAutomaticCorrectionUpdatedTime
1938 * @note Only available on [6.0.0+].
1939 * @param[in] time_point \ref TimeSteadyClockTimePoint
1940 */
1942
1943/**
1944 * @brief GetAccountOnlineStorageSettings
1945 * @note Only available on [6.0.0+].
1946 * @param[out] total_out Total output entries.
1947 * @param[out] settings Output array of \ref SetSysAccountOnlineStorageSettings.
1948 * @param[in] count Size of the settings array in entries.
1949 */
1951
1952/**
1953 * @brief SetAccountOnlineStorageSettings
1954 * @note Only available on [6.0.0+].
1955 * @param[in] settings Input array of \ref SetSysAccountOnlineStorageSettings.
1956 * @param[in] count Size of the settings array in entries.
1957 */
1959
1960/**
1961 * @brief GetPctlReadyFlag
1962 * @note Only available on [6.0.0+].
1963 * @param[out] out Output flag.
1964 */
1966
1967/**
1968 * @brief SetPctlReadyFlag
1969 * @note Only available on [6.0.0+].
1970 * @param[in] flag Input flag.
1971 */
1973
1974/**
1975 * @brief GetAnalogStickUserCalibrationL
1976 * @note Only available on [8.1.1+].
1977 * @param[out] out \ref SetSysAnalogStickUserCalibration
1978 */
1980
1981/**
1982 * @brief SetAnalogStickUserCalibrationL
1983 * @note Only available on [8.1.1+].
1984 * @param[in] calibration \ref SetSysAnalogStickUserCalibration
1985 */
1987
1988/**
1989 * @brief GetAnalogStickUserCalibrationR
1990 * @note Only available on [8.1.1+].
1991 * @param[out] out \ref SetSysAnalogStickUserCalibration
1992 */
1994
1995/**
1996 * @brief SetAnalogStickUserCalibrationR
1997 * @note Only available on [8.1.1+].
1998 * @param[in] calibration \ref SetSysAnalogStickUserCalibration
1999 */
2001
2002/**
2003 * @brief GetPtmBatteryVersion
2004 * @note Only available on [6.0.0+].
2005 * @param[out] out Output version.
2006 */
2008
2009/**
2010 * @brief SetPtmBatteryVersion
2011 * @note Only available on [6.0.0+].
2012 * @param[in] version Input version.
2013 */
2015
2016/**
2017 * @brief GetUsb30HostEnableFlag
2018 * @note Only available on [6.0.0+].
2019 * @param[out] out Output flag.
2020 */
2022
2023/**
2024 * @brief SetUsb30HostEnableFlag
2025 * @note Only available on [6.0.0+].
2026 * @param[in] flag Input flag.
2027 */
2029
2030/**
2031 * @brief GetUsb30DeviceEnableFlag
2032 * @note Only available on [6.0.0+].
2033 * @param[out] out Output flag.
2034 */
2036
2037/**
2038 * @brief SetUsb30DeviceEnableFlag
2039 * @note Only available on [6.0.0+].
2040 * @param[in] flag Input flag.
2041 */
2043
2044/**
2045 * @brief GetThemeId
2046 * @note Only available on [7.0.0+].
2047 * @param[in] type Input theme id type.
2048 * @param[out] out \ref SetSysThemeId
2049 */
2051
2052/**
2053 * @brief SetThemeId
2054 * @note Only available on [7.0.0+].
2055 * @param[in] type Input theme id type.
2056 * @param[in] theme_id \ref SetSysThemeId
2057 */
2059
2060/**
2061 * @brief GetChineseTraditionalInputMethod
2062 * @note Only available on [7.0.0+].
2063 * @param[out] out \ref SetChineseTraditionalInputMethod
2064 */
2066
2067/**
2068 * @brief SetChineseTraditionalInputMethod
2069 * @note Only available on [7.0.0+].
2070 * @param[in] method \ref SetChineseTraditionalInputMethod
2071 */
2073
2074/**
2075 * @brief GetPtmCycleCountReliability
2076 * @note Only available on [7.0.0+].
2077 * @param[out] out \ref SetSysPtmCycleCountReliability
2078 */
2080
2081/**
2082 * @brief SetPtmCycleCountReliability
2083 * @note Only available on [7.0.0+].
2084 * @param[in] reliability \ref SetSysPtmCycleCountReliability
2085 */
2087
2088/**
2089 * @brief Gets the \ref SetSysHomeMenuScheme.
2090 * @note Only available on [8.1.1+].
2091 * @param[out] out \ref SetSysHomeMenuScheme
2092 */
2094
2095/**
2096 * @brief GetThemeSettings
2097 * @note Only available on [7.0.0+].
2098 * @param[out] out \ref SetSysThemeSettings
2099 */
2101
2102/**
2103 * @brief SetThemeSettings
2104 * @note Only available on [7.0.0+].
2105 * @param[in] settings \ref SetSysThemeSettings
2106 */
2108
2109/**
2110 * @brief GetThemeKey
2111 * @note Only available on [7.0.0+].
2112 * @param[out] out \ref FsArchiveMacKey
2113 */
2115
2116/**
2117 * @brief SetThemeKey
2118 * @note Only available on [7.0.0+].
2119 * @param[in] key \ref FsArchiveMacKey
2120 */
2122
2123/**
2124 * @brief GetZoomFlag
2125 * @note Only available on [8.0.0+].
2126 * @param[out] out Output flag.
2127 */
2129
2130/**
2131 * @brief SetZoomFlag
2132 * @note Only available on [8.0.0+].
2133 * @param[in] flag Input flag.
2134 */
2136
2137/**
2138 * @brief Returns Terra platform type flag.
2139 * @note On [9.0.0+], this is a wrapper for \ref setsysGetPlatFormRegion() == 2.
2140 * @note Only available on [8.0.0+].
2141 * @param[out] out Output flag.
2142 */
2144
2145/**
2146 * @brief Sets Terra platform type flag.
2147 * @note On [9.0.0+], this is a wrapper for \ref setsysSetPlatFormRegion(1 + (IsT & 1)).
2148 * @note Only available on [8.0.0+].
2149 * @param[in] flag Input flag.
2150 */
2152
2153/**
2154 * @brief Gets the \ref SetSysPlatformRegion.
2155 * @note This is used internally by \ref appletGetSettingsPlatformRegion.
2156 * @note Only available on [9.0.0+].
2157 * @param[out] out \ref SetSysPlatformRegion
2158 */
2160
2161/**
2162 * @brief Sets the \ref SetSysPlatformRegion.
2163 * @note Only available on [9.0.0+].
2164 * @param[in] region \ref SetSysPlatformRegion
2165 */
2167
2168/**
2169 * @brief GetHomeMenuSchemeModel
2170 * @note This will throw an error when loading the "settings_debug!{...}" system-setting which is used with this fails.
2171 * @note Only available on [9.0.0+].
2172 * @param[out] out HomeMenuSchemeModel.
2173 */
2175
2176/**
2177 * @brief GetMemoryUsageRateFlag
2178 * @note Only available on [9.0.0+].
2179 * @param[out] out Output flag.
2180 */
2182
2183/**
2184 * @brief Gets the \ref SetSysTouchScreenMode.
2185 * @note Only available on [9.0.0+].
2186 * @param[out] out \ref SetSysTouchScreenMode
2187 */
2189
2190/**
2191 * @brief Sets the \ref SetSysTouchScreenMode.
2192 * @note Only available on [9.0.0+].
2193 * @param[in] mode \ref SetSysTouchScreenMode
2194 */
2196
2197/**
2198 * @brief GetButtonConfigSettingsFull
2199 * @note Only available on [10.0.0+].
2200 * @param[out] total_out Total output entries.
2201 * @param[out] settings Output array of \ref SetSysButtonConfigSettings.
2202 * @param[in] count Size of the settings array in entries.
2203 */
2205
2206/**
2207 * @brief SetButtonConfigSettingsFull
2208 * @note Only available on [10.0.0+].
2209 * @param[in] settings Input array of \ref SetSysButtonConfigSettings.
2210 * @param[in] count Size of the settings array in entries.
2211 */
2213
2214/**
2215 * @brief GetButtonConfigSettingsEmbedded
2216 * @note Only available on [10.0.0+].
2217 * @param[out] total_out Total output entries.
2218 * @param[out] settings Output array of \ref SetSysButtonConfigSettings.
2219 * @param[in] count Size of the settings array in entries.
2220 */
2222
2223/**
2224 * @brief SetButtonConfigSettingsEmbedded
2225 * @note Only available on [10.0.0+].
2226 * @param[in] settings Input array of \ref SetSysButtonConfigSettings.
2227 * @param[in] count Size of the settings array in entries.
2228 */
2230
2231/**
2232 * @brief GetButtonConfigSettingsLeft
2233 * @note Only available on [10.0.0+].
2234 * @param[out] total_out Total output entries.
2235 * @param[out] settings Output array of \ref SetSysButtonConfigSettings.
2236 * @param[in] count Size of the settings array in entries.
2237 */
2239
2240/**
2241 * @brief SetButtonConfigSettingsLeft
2242 * @note Only available on [10.0.0+].
2243 * @param[in] settings Input array of \ref SetSysButtonConfigSettings.
2244 * @param[in] count Size of the settings array in entries.
2245 */
2247
2248/**
2249 * @brief GetButtonConfigSettingsRight
2250 * @note Only available on [10.0.0+].
2251 * @param[out] total_out Total output entries.
2252 * @param[out] settings Output array of \ref SetSysButtonConfigSettings.
2253 * @param[in] count Size of the settings array in entries.
2254 */
2256
2257/**
2258 * @brief SetButtonConfigSettingsRight
2259 * @note Only available on [10.0.0+].
2260 * @param[in] settings Input array of \ref SetSysButtonConfigSettings.
2261 * @param[in] count Size of the settings array in entries.
2262 */
2264
2265/**
2266 * @brief GetButtonConfigRegisteredSettingsEmbedded
2267 * @note Only available on [10.0.0+].
2268 * @param[out] settings \ref SetSysButtonConfigRegisteredSettings
2269 */
2271
2272/**
2273 * @brief SetButtonConfigRegisteredSettingsEmbedded
2274 * @note Only available on [10.0.0+].
2275 * @param[in] settings \ref SetSysButtonConfigRegisteredSettings
2276 */
2278
2279/**
2280 * @brief GetButtonConfigRegisteredSettings
2281 * @note Only available on [10.0.0+].
2282 * @param[out] settings \ref SetSysButtonConfigRegisteredSettings
2283 */
2285
2286/**
2287 * @brief SetButtonConfigRegisteredSettings
2288 * @note Only available on [10.0.0+].
2289 * @param[in] settings \ref SetSysButtonConfigRegisteredSettings
2290 */
2292
2293/**
2294 * @brief GetFieldTestingFlag
2295 * @note Only available on [10.1.0+].
2296 * @param[out] out Output flag.
2297 */
2299
2300/**
2301 * @brief SetFieldTestingFlag
2302 * @note Only available on [10.1.0+].
2303 * @param[in] flag Input flag.
2304 */
2306
2307/**
2308 * @brief GetNxControllerSettingsEx
2309 * @param[out] total_out Total output entries.
2310 * @param[out] settings Output array of \ref SetSysNxControllerSettings.
2311 * @param[in] count Size of the settings array in entries.
2312 */
2314
2315/**
2316 * @brief SetNxControllerSettingsEx
2317 * @param[in] settings Input array of \ref SetSysNxControllerSettings.
2318 * @param[in] count Size of the settings array in entries.
2319 */
2321
2322/// Initialize setcal.
2324
2325/// Exit setcal.
2326void setcalExit(void);
2327
2328/// Gets the Service object for the actual setcal service session.
2330
2331/**
2332 * @brief Gets the \ref SetCalBdAddress.
2333 * @param[out] out \ref SetCalBdAddress
2334 */
2336
2337/**
2338 * @brief Gets the \ref SetCalConfigurationId1.
2339 * @param[out] out \ref SetCalConfigurationId1
2340 */
2342
2343/**
2344 * @brief Gets the \ref SetCalAccelerometerOffset.
2345 * @param[out] out \ref SetCalAccelerometerOffset
2346 */
2348
2349/**
2350 * @brief Gets the \ref SetCalAccelerometerScale.
2351 * @param[out] out \ref SetCalAccelerometerScale
2352 */
2354
2355/**
2356 * @brief Gets the \ref SetCalGyroscopeOffset.
2357 * @param[out] out \ref SetCalGyroscopeOffset
2358 */
2360
2361/**
2362 * @brief Gets the \ref SetCalGyroscopeScale.
2363 * @param[out] out \ref SetCalGyroscopeScale
2364 */
2366
2367/**
2368 * @brief Gets the \ref SetCalMacAddress.
2369 * @param[out] out \ref SetCalMacAddress
2370 */
2372
2373/**
2374 * @brief GetWirelessLanCountryCodeCount
2375 * @param[out] out_count Output count
2376 */
2378
2379/**
2380 * @brief GetWirelessLanCountryCodes
2381 * @param[out] total_out Total output entries.
2382 * @param[out] codes Output array of \ref SetCalCountryCode.
2383 * @param[in] count Size of the versions array in entries.
2384 */
2386
2387/**
2388 * @brief Gets the \ref SetCalSerialNumber.
2389 * @param[out] out \ref SetCalSerialNumber
2390 */
2392
2393/**
2394 * @brief SetInitialSystemAppletProgramId
2395 * @param[in] program_id input ProgramId.
2396 */
2398
2399/**
2400 * @brief SetOverlayDispProgramId
2401 * @param[in] program_id input ProgramId.
2402 */
2404
2405/**
2406 * @brief Gets the \ref SetBatteryLot.
2407 * @param[out] out \ref SetBatteryLot
2408 */
2410
2411/**
2412 * @brief Gets the \ref SetCalEccB233DeviceCertificate.
2413 * @param[out] out \ref SetCalEccB233DeviceCertificate
2414 */
2416
2417/**
2418 * @brief Gets the \ref SetCalRsa2048DeviceCertificate.
2419 * @param[out] out \ref SetCalRsa2048DeviceCertificate
2420 */
2422
2423/**
2424 * @brief Gets the \ref SetCalSslKey.
2425 * @param[out] out \ref SetCalSslKey
2426 */
2428
2429/**
2430 * @brief Gets the \ref SetCalSslCertificate.
2431 * @param[out] out \ref SetCalSslCertificate
2432 */
2434
2435/**
2436 * @brief Gets the \ref SetCalGameCardKey.
2437 * @param[out] out \ref SetCalGameCardKey
2438 */
2440
2441/**
2442 * @brief Gets the \ref SetCalGameCardCertificate.
2443 * @param[out] out \ref SetCalGameCardCertificate
2444 */
2446
2447/**
2448 * @brief Gets the \ref SetCalEccB233DeviceKey.
2449 * @param[out] out \ref SetCalEccB233DeviceKey
2450 */
2452
2453/**
2454 * @brief Gets the \ref SetCalRsa2048DeviceKey.
2455 * @param[out] out \ref SetCalRsa2048DeviceKey
2456 */
2458
2459/**
2460 * @brief Gets the \ref SetCalSpeakerParameter.
2461 * @param[out] out \ref SetCalSpeakerParameter
2462 */
2464
2465/**
2466 * @brief GetLcdVendorId
2467 * @note Only available on [4.0.0+].
2468 * @param[out] out_vendor_id Output LcdVendorId.
2469 */
2471
2472/**
2473 * @brief Gets the \ref SetCalRsa2048DeviceCertificate.
2474 * @note Only available on [5.0.0+].
2475 * @param[out] out \ref SetCalRsa2048DeviceCertificate
2476 */
2478
2479/**
2480 * @brief Gets the \ref SetCalRsa2048DeviceKey.
2481 * @note Only available on [5.0.0+].
2482 * @param[out] out \ref SetCalRsa2048DeviceKey
2483 */
2485
2486/**
2487 * @brief Gets the \ref SetCalAmiiboKey.
2488 * @note Only available on [5.0.0+].
2489 * @param[out] out \ref SetCalAmiiboKey
2490 */
2492
2493/**
2494 * @brief Gets the \ref SetCalAmiiboEcqvCertificate.
2495 * @note Only available on [5.0.0+].
2496 * @param[out] out \ref SetCalAmiiboEcqvCertificate
2497 */
2499
2500/**
2501 * @brief Gets the \ref SetCalAmiiboEcdsaCertificate.
2502 * @note Only available on [5.0.0+].
2503 * @param[out] out \ref SetCalAmiiboEcdsaCertificate
2504 */
2506
2507/**
2508 * @brief Gets the \ref SetCalAmiiboEcqvBlsKey.
2509 * @note Only available on [5.0.0+].
2510 * @param[out] out \ref SetCalAmiiboEcqvBlsKey
2511 */
2513
2514/**
2515 * @brief Gets the \ref SetCalAmiiboEcqvBlsCertificate.
2516 * @note Only available on [5.0.0+].
2517 * @param[out] out \ref SetCalAmiiboEcqvBlsCertificate
2518 */
2520
2521/**
2522 * @brief Gets the \ref SetCalAmiiboEcqvBlsRootCertificate.
2523 * @note Only available on [5.0.0+].
2524 * @param[out] out \ref SetCalAmiiboEcqvBlsRootCertificate
2525 */
2527
2528/**
2529 * @brief GetUsbTypeCPowerSourceCircuitVersion
2530 * @note Only available on [5.0.0+].
2531 * @param[out] out_version Output UsbTypeCPowerSourceCircuitVersion.
2532 */
2534
2535/**
2536 * @brief GetAnalogStickModuleTypeL
2537 * @note Only available on [8.1.1+].
2538 * @param[out] out_version Output AnalogStickModuleType.
2539 */
2541
2542/**
2543 * @brief Gets the \ref SetCalAnalogStickModelParameter.
2544 * @note Only available on [8.1.1+].
2545 * @param[out] out \ref SetCalAnalogStickModelParameter
2546 */
2548
2549/**
2550 * @brief Gets the \ref SetCalAnalogStickFactoryCalibration.
2551 * @note Only available on [8.1.1+].
2552 * @param[out] out \ref SetCalAnalogStickFactoryCalibration
2553 */
2555
2556/**
2557 * @brief GetAnalogStickModuleTypeR
2558 * @note Only available on [8.1.1+].
2559 * @param[out] out_version Output AnalogStickModuleType.
2560 */
2562
2563/**
2564 * @brief Gets the \ref SetCalAnalogStickModelParameter.
2565 * @note Only available on [8.1.1+].
2566 * @param[out] out \ref SetCalAnalogStickModelParameter
2567 */
2569
2570/**
2571 * @brief Gets the \ref SetCalAnalogStickFactoryCalibration.
2572 * @note Only available on [8.1.1+].
2573 * @param[out] out \ref SetCalAnalogStickFactoryCalibration
2574 */
2576
2577/**
2578 * @brief GetConsoleSixAxisSensorModuleType
2579 * @note Only available on [8.1.1+].
2580 * @param[out] out_version Output ConsoleSixAxisSensorModuleType.
2581 */
2583
2584/**
2585 * @brief Gets the \ref SetCalConsoleSixAxisSensorHorizontalOffset.
2586 * @note Only available on [8.1.1+].
2587 * @param[out] out \ref SetCalConsoleSixAxisSensorHorizontalOffset
2588 */
2590
2591/**
2592 * @brief GetBatteryVersion
2593 * @note Only available on [6.0.0+].
2594 * @param[out] out_version Output BatteryVersion.
2595 */
2597
2598/**
2599 * @brief GetDeviceId
2600 * @note Only available on [10.0.0+].
2601 * @param[out] out_type Output DeviceId.
2602 */
2604
2605/**
2606 * @brief GetConsoleSixAxisSensorMountType
2607 * @note Only available on [10.0.0+].
2608 * @param[out] out_type Output ConsoleSixAxisSensorMountType.
2609 */
Result setsysSetButtonConfigRegisteredSettings(const SetSysButtonConfigRegisteredSettings *settings, s32 count)
SetButtonConfigRegisteredSettings.
Result setsysGetButtonConfigRegisteredSettings(s32 *total_out, SetSysButtonConfigRegisteredSettings *settings, s32 count)
GetButtonConfigRegisteredSettings.
Result setsysGetSleepSettings(SetSysSleepSettings *out)
GetSleepSettings.
Result setcalGetEciDeviceCertificate(SetCalEccB233DeviceCertificate *out)
Gets the SetCalEccB233DeviceCertificate.
Result setsysGetVibrationMasterVolume(float *out)
GetVibrationMasterVolume.
Result setsysSetBluetoothDevicesSettings(const SetSysBluetoothDevicesSettings *settings, s32 count)
SetBluetoothDevicesSettings.
Result setcalGetConfigurationId1(SetCalConfigurationId1 *out)
Gets the SetCalConfigurationId1.
Result setsysGetAnalogStickUserCalibrationR(SetSysAnalogStickUserCalibration *out)
GetAnalogStickUserCalibrationR.
Result setcalGetConsoleSixAxisSensorModuleType(u8 *out_type)
GetConsoleSixAxisSensorModuleType.
Result setcalGetWirelessLanMacAddress(SetCalMacAddress *out)
Gets the SetCalMacAddress.
Result setGetAvailableLanguageCodes(s32 *total_entries, u64 *LanguageCodes, size_t max_entries)
Gets available LanguageCodes.
Result setcalGetBatteryVersion(u8 *out_version)
GetBatteryVersion.
Result setsysSetAnalogStickUserCalibrationL(const SetSysAnalogStickUserCalibration *calibration)
SetAnalogStickUserCalibrationL.
Result setGetSystemLanguage(u64 *LanguageCode)
Gets the current system LanguageCode.
Result setsysSetUsb30HostEnableFlag(bool flag)
SetUsb30HostEnableFlag.
Result setsysSetAutomaticApplicationDownloadFlag(bool flag)
SetAutomaticApplicationDownloadFlag.
Result setsysGetWirelessLanEnableFlag(bool *out)
GetWirelessLanEnableFlag.
Result setsysSetButtonConfigSettingsLeft(const SetSysButtonConfigSettings *settings, s32 count)
SetButtonConfigSettingsLeft.
Result setsysNeedsToUpdateHeadphoneVolume(u8 *a0, u8 *a1, u8 *a2, bool flag)
NeedsToUpdateHeadphoneVolume.
Result setsysGetRequiresRunRepairTimeReviser(bool *out)
GetRequiresRunRepairTimeReviser.
Result setsysSetConsoleSixAxisSensorAngularAcceleration(const SetSysConsoleSixAxisSensorAngularAcceleration *acceleration)
SetConsoleSixAxisSensorAngularAcceleration.
Result setsysSetNxControllerSettingsEx(const SetSysNxControllerSettings *settings, s32 count)
SetNxControllerSettingsEx.
Result setcalGetLcdVendorId(u32 *out_vendor_id)
GetLcdVendorId.
Result setcalGetEciDeviceKey2(SetCalRsa2048DeviceKey *out)
Gets the SetCalRsa2048DeviceKey.
Result setMakeLanguage(u64 LanguageCode, SetLanguage *Language)
Converts LanguageCode to SetLanguage.
Result setsysGetUsb30DeviceEnableFlag(bool *out)
GetUsb30DeviceEnableFlag.
SetKeyboardLayout
KeyboardLayout.
Definition set.h:189
Result setsysSetNetworkSettings(const SetSysNetworkSettings *settings, s32 count)
SetNetworkSettings.
Result setsysGetMiiAuthorId(Uuid *out)
GetMiiAuthorId.
Result setsysGetInitialSystemAppletProgramId(u64 *out)
GetInitialSystemAppletProgramId.
Result setsysGetTvSettings(SetSysTvSettings *out)
GetTvSettings.
Result setcalGetAccelerometerScale(SetCalAccelerometerScale *out)
Gets the SetCalAccelerometerScale.
SetRegion
Region codes.
Definition set.h:62
@ SetRegion_JPN
Japan.
Definition set.h:63
@ SetRegion_AUS
Australia/New Zealand.
Definition set.h:66
@ SetRegion_EUR
Europe.
Definition set.h:65
@ SetRegion_HTK
Hong Kong/Taiwan/Korea.
Definition set.h:67
@ SetRegion_CHN
China.
Definition set.h:68
@ SetRegion_USA
The Americas.
Definition set.h:64
Result setcalGetAnalogStickModuleTypeL(u8 *out_type)
GetAnalogStickModuleTypeL.
Result setcalGetGameCardKey(SetCalGameCardKey *out)
Gets the SetCalGameCardKey.
SetSysConsoleSleepPlan
ConsoleSleepPlan.
Definition set.h:154
Result setcalSetInitialSystemAppletProgramId(u64 program_id)
SetInitialSystemAppletProgramId.
Result setcalGetAnalogStickFactoryCalibrationR(SetCalAnalogStickFactoryCalibration *out)
Gets the SetCalAnalogStickFactoryCalibration.
Result setsysSetBacklightSettings(const SetSysBacklightSettings *settings)
SetBacklightSettings.
Result setsysGetExternalSteadyClockInternalOffset(u64 *out)
GetExternalSteadyClockInternalOffset.
Result setsysGetHostFsMountPoint(SetSysHostFsMountPoint *out)
GetHostFsMountPoint.
SetSysNotificationVolume
NotificationVolume.
Definition set.h:116
Result setsysSetBacklightSettingsEx(const SetSysBacklightSettingsEx *settings)
SetBacklightSettingsEx.
Result setsysGetShutdownRtcValue(u64 *out)
GetShutdownRtcValue.
Result setcalGetAmiiboEcdsaCertificate(SetCalAmiiboEcdsaCertificate *out)
Gets the SetCalAmiiboEcdsaCertificate.
Result setcalGetAmiiboEcqvBlsCertificate(SetCalAmiiboEcqvBlsCertificate *out)
Gets the SetCalAmiiboEcqvBlsCertificate.
Result setsysGetDebugModeFlag(bool *out)
GetDebugModeFlag.
Result setcalGetAnalogStickModuleTypeR(u8 *out_type)
GetAnalogStickModuleTypeR.
Result setcalSetOverlayDispProgramId(u64 program_id)
SetOverlayDispProgramId.
Result setsysSetErrorReportSharePermission(SetSysErrorReportSharePermission permission)
SetErrorReportSharePermission.
SetSysPtmCycleCountReliability
PtmCycleCountReliability.
Definition set.h:214
Result setsysGetAccountNotificationSettings(s32 *total_out, SetSysAccountNotificationSettings *settings, s32 count)
GetAccountNotificationSettings.
Result setsysSetButtonConfigSettingsRight(const SetSysButtonConfigSettings *settings, s32 count)
SetButtonConfigSettingsRight.
Result setsysSetDataDeletionSettings(const SetSysDataDeletionSettings *settings)
SetDataDeletionSettings.
Result setsysGetUserSystemClockAutomaticCorrectionUpdatedTime(TimeSteadyClockTimePoint *out)
GetUserSystemClockAutomaticCorrectionUpdatedTime.
Result setsysIsUserSystemClockAutomaticCorrectionEnabled(bool *out)
IsUserSystemClockAutomaticCorrectionEnabled.
Result setcalGetGameCardCertificate(SetCalGameCardCertificate *out)
Gets the SetCalGameCardCertificate.
Service * setsysGetServiceSession(void)
Gets the Service object for the actual setsys service session.
Result setsysGetAutoUpdateEnableFlag(bool *out)
GetAutoUpdateEnableFlag.
Result setsysGetAnalogStickUserCalibrationL(SetSysAnalogStickUserCalibration *out)
GetAnalogStickUserCalibrationL.
void setExit(void)
Exit set.
SetSysPlatformRegion
PlatformRegion. Other values not listed here should be handled as "Unknown".
Definition set.h:220
Result setcalGetAnalogStickModelParameterL(SetCalAnalogStickModelParameter *out)
Gets the SetCalAnalogStickModelParameter.
Result setcalGetAmiiboEcqvBlsKey(SetCalAmiiboEcqvBlsKey *out)
Gets the SetCalAmiiboEcqvBlsKey.
SetSysUserSelectorFlag
UserSelectorFlag.
Definition set.h:105
Result setsysGetZoomFlag(bool *out)
GetZoomFlag.
Service * setGetServiceSession(void)
Gets the Service object for the actual set service session.
Result setsysSetExternalSteadyClockSourceId(const Uuid *uuid)
SetExternalSteadyClockSourceId.
Result setsysSetUsb30EnableFlag(bool flag)
SetUsb30EnableFlag.
Result setsysGetButtonConfigSettingsRight(s32 *total_out, SetSysButtonConfigSettings *settings, s32 count)
GetButtonConfigSettingsRight.
Result setsysSetPtmBatteryLot(const SetBatteryLot *lot)
SetPtmBatteryLot.
Result setsysSetPrimaryAlbumStorage(SetSysPrimaryAlbumStorage storage)
SetPrimaryAlbumStorage.
Result setsysSetBluetoothBoostEnableFlag(bool flag)
SetBluetoothBoostEnableFlag.
Result setsysSetRegionCode(SetRegion region)
SetRegionCode.
Result setsysSetShutdownRtcValue(u64 value)
SetShutdownRtcValue.
Result setsysSetT(bool flag)
Sets Terra platform type flag.
SetSysBlockType
BlockType.
Definition set.h:232
Result setsysGetDataDeletionSettings(SetSysDataDeletionSettings *out)
GetDataDeletionSettings.
Result setsysSetThemeId(s32 type, const SetSysThemeId *theme_id)
SetThemeId.
Result setsysGetExternalRtcResetFlag(bool *out)
GetExternalRtcResetFlag.
SetSysAudioOutputMode
AudioOutputMode.
Definition set.h:172
@ SetSysAudioOutputMode_Unknown1
Default value.
Definition set.h:173
Result setsysSetUsb30DeviceEnableFlag(bool flag)
SetUsb30DeviceEnableFlag.
Result setsysGetBluetoothDevicesSettings(s32 *total_out, SetSysBluetoothDevicesSettings *settings, s32 count)
GetBluetoothDevicesSettings.
Result setsysGetSpeakerAutoMuteFlag(bool *out)
GetSpeakerAutoMuteFlag.
Result setsysSetBatteryPercentageFlag(bool flag)
SetBatteryPercentageFlag.
Result setsysSetConsoleSixAxisSensorAngularVelocityBias(const SetSysConsoleSixAxisSensorAngularVelocityBias *bias)
SetConsoleSixAxisSensorAngularVelocityBias.
Result setcalGetAnalogStickFactoryCalibrationL(SetCalAnalogStickFactoryCalibration *out)
Gets the SetCalAnalogStickFactoryCalibration.
SetChineseTraditionalInputMethod
ChineseTraditionalInputMethod.
Definition set.h:208
Result setsysGetTelemetryDirtyFlags(u64 *flags_0, u64 *flags_1)
Gets the settings flags that have changed.
Result setsysGetBluetoothBoostEnableFlag(bool *out)
GetBluetoothBoostEnableFlag.
Result setcalGetSslKey(SetCalSslKey *out)
Gets the SetCalSslKey.
Result setsysGetNetworkSystemClockContext(TimeSystemClockContext *out)
GetNetworkSystemClockContext.
Result setsysGetQuestFlag(bool *out)
GetQuestFlag.
Result setsysGetExternalSteadyClockSourceId(Uuid *out)
GetExternalSteadyClockSourceId.
SetSysControllerType
ControllerType.
Definition set.h:240
Result setsysSetInitialLaunchSettings(const SetSysInitialLaunchSettings *settings)
SetInitialLaunchSettings.
Result setsysGetNxControllerSettingsEx(s32 *total_out, SetSysNxControllerSettings *settings, s32 count)
GetNxControllerSettingsEx.
Result setsysSetPctlReadyFlag(bool flag)
SetPctlReadyFlag.
Result setsysSetNxControllerSettings(const SetSysNxControllerLegacySettings *settings, s32 count)
SetNxControllerSettings.
SetSysProxyFlags
ProxyFlags.
Definition set.h:99
Result setsysSetBluetoothEnableFlag(bool flag)
SetBluetoothEnableFlag.
Result setsysSetExternalSteadyClockInternalOffset(u64 offset)
SetExternalSteadyClockInternalOffset.
Result setsysGetUserSystemClockContext(TimeSystemClockContext *out)
GetUserSystemClockContext.
Result setsysGetAllowedSslHosts(s32 *total_out, SetSysAllowedSslHosts *out, s32 count)
GetAllowedSslHosts.
Result setcalGetBdAddress(SetCalBdAddress *out)
Gets the SetCalBdAddress.
Result setsysGetWebInspectorFlag(bool *out)
GetWebInspectorFlag.
Result setcalGetAccelerometerOffset(SetCalAccelerometerOffset *out)
Gets the SetCalAccelerometerOffset.
Result setsysGetThemeKey(FsArchiveMacKey *out)
GetThemeKey.
Result setsysSetTouchScreenMode(SetSysTouchScreenMode mode)
Sets the SetSysTouchScreenMode.
Result setsysGetBluetoothEnableFlag(bool *out)
GetBluetoothEnableFlag.
Result setsysGetSerialNumber(SetSysSerialNumber *out)
Gets the system's serial number.
Result setsysSetBlePairingSettings(const SetSysBlePairingSettings *settings, s32 count)
SetBlePairingSettings.
Result setsysSetSleepSettings(const SetSysSleepSettings *settings)
SetSleepSettings.
Result setsysGetPushNotificationActivityModeOnSleep(u32 *out)
GetPushNotificationActivityModeOnSleep.
Result setsysGetAudioOutputMode(SetSysAudioOutputModeTarget target, SetSysAudioOutputMode *out)
GetAudioOutputMode.
Result setsysGetPtmCycleCountReliability(SetSysPtmCycleCountReliability *out)
GetPtmCycleCountReliability.
Result setcalGetEciDeviceCertificate2(SetCalRsa2048DeviceCertificate *out)
Gets the SetCalRsa2048DeviceCertificate.
Result setcalGetGyroscopeScale(SetCalGyroscopeScale *out)
Gets the SetCalGyroscopeScale.
Result setsysSetAnalogStickUserCalibrationR(const SetSysAnalogStickUserCalibration *calibration)
SetAnalogStickUserCalibrationR.
SetSysFriendPresenceOverlayPermission
FriendPresenceOverlayPermission.
Definition set.h:123
Result setsysGetLockScreenFlag(bool *out)
GetLockScreenFlag.
Result setcalGetSpeakerParameter(SetCalSpeakerParameter *out)
Gets the SetCalSpeakerParameter.
Result setcalGetSslCertificate(SetCalSslCertificate *out)
Gets the SetCalSslCertificate.
Result setcalGetWirelessLanCountryCodeCount(s32 *out_count)
GetWirelessLanCountryCodeCount.
Result setsysSetAutoUpdateEnableFlag(bool flag)
SetAutoUpdateEnableFlag.
Result setsysSetZoomFlag(bool flag)
SetZoomFlag.
Result setsysGetHeadphoneVolumeUpdateFlag(bool *out)
GetHeadphoneVolumeUpdateFlag.
Result setsysSetNetworkSystemClockContext(const TimeSystemClockContext *context)
SetNetworkSystemClockContext.
Result setsysSetButtonConfigSettingsFull(const SetSysButtonConfigSettings *settings, s32 count)
SetButtonConfigSettingsFull.
Result setsysAcquireFatalDirtyFlagEventHandle(Event *out_event)
Gets an event that settings will signal on flag change.
Result setsysGetInRepairProcessEnableFlag(bool *out)
GetInRepairProcessEnableFlag.
Result setsysGetConsoleSixAxisSensorAngularAcceleration(SetSysConsoleSixAxisSensorAngularAcceleration *out)
GetConsoleSixAxisSensorAngularAcceleration.
Result setcalGetUsbTypeCPowerSourceCircuitVersion(u8 *out_version)
GetUsbTypeCPowerSourceCircuitVersion.
Result setsysSetKeyboardLayout(SetKeyboardLayout layout)
SetKeyboardLayout.
Result setcalInitialize(void)
Initialize setcal.
Result setcalGetAmiiboKey(SetCalAmiiboKey *out)
Gets the SetCalAmiiboKey.
Result setsysGetConsoleSixAxisSensorAngularVelocityGain(SetSysConsoleSixAxisSensorAngularVelocityGain *out)
GetConsoleSixAxisSensorAngularVelocityGain.
SetSysProductModel
Console Product Models.
Definition set.h:27
@ SetSysProductModel_Copper
Erista "Simulation" Model.
Definition set.h:30
@ SetSysProductModel_Iowa
Mariko Model.
Definition set.h:31
@ SetSysProductModel_Hoag
Mariko Lite Model.
Definition set.h:32
@ SetSysProductModel_Calcio
Mariko "Simulation" Model.
Definition set.h:33
@ SetSysProductModel_Aula
Mariko OLED Model.
Definition set.h:34
@ SetSysProductModel_Nx
Erista Model.
Definition set.h:29
@ SetSysProductModel_Invalid
Invalid Model.
Definition set.h:28
Result setsysSetPtmFuelGaugeParameter(const SetSysPtmFuelGaugeParameter *parameter)
SetPtmFuelGaugeParameter.
Result setsysSetQuestFlag(bool flag)
SetQuestFlag.
Result setsysGetBacklightSettingsEx(SetSysBacklightSettingsEx *out)
GetBacklightSettingsEx.
Result setsysGetBatteryPercentageFlag(bool *out)
GetBatteryPercentageFlag.
SetSysAudioOutputModeTarget
AudioOutputModeTarget.
Definition set.h:164
Result setcalGetDeviceId(u64 *out_device_id)
GetDeviceId.
Result setsysSetHeadphoneVolumeUpdateFlag(bool flag)
SetHeadphoneVolumeUpdateFlag.
Result setsysSetChineseTraditionalInputMethod(SetChineseTraditionalInputMethod method)
SetChineseTraditionalInputMethod.
Result setsysSetLanguageCode(u64 LanguageCode)
SetLanguageCode.
Result setsysSetUserSystemClockAutomaticCorrectionEnabled(bool flag)
SetUserSystemClockAutomaticCorrectionEnabled.
Result setcalGetConsoleSixAxisSensorMountType(u8 *out_type)
GetConsoleSixAxisSensorMountType.
Result setsysSetPlatformRegion(SetSysPlatformRegion region)
Sets the SetSysPlatformRegion.
Result setcalGetAmiiboEcqvBlsRootCertificate(SetCalAmiiboEcqvBlsRootCertificate *out)
Gets the SetCalAmiiboEcqvBlsRootCertificate.
Result setsysGetNetworkSettings(s32 *total_out, SetSysNetworkSettings *settings, s32 count)
GetNetworkSettings.
Result setsysGetEdid(SetSysEdid *out)
GetEdid.
Result setcalGetWirelessLanCountryCodes(s32 *total_out, SetCalCountryCode *codes, s32 count)
GetWirelessLanCountryCodes.
Result setsysGetConsoleSixAxisSensorAngularVelocityBias(SetSysConsoleSixAxisSensorAngularVelocityBias *out)
GetConsoleSixAxisSensorAngularVelocityBias.
Result setsysGetOverlayDispProgramId(u64 *out)
GetOverlayDispProgramId.
Result setsysGetButtonConfigSettingsFull(s32 *total_out, SetSysButtonConfigSettings *settings, s32 count)
GetButtonConfigSettingsFull.
Result setsysGetDeviceTimeZoneLocationUpdatedTime(TimeSteadyClockTimePoint *out)
GetDeviceTimeZoneLocationUpdatedTime.
Result setsysGetHomeMenuSchemeModel(u32 *out)
GetHomeMenuSchemeModel.
Result setsysGetButtonConfigRegisteredSettingsEmbedded(SetSysButtonConfigRegisteredSettings *settings)
GetButtonConfigRegisteredSettingsEmbedded.
Result setsysSetLdnChannel(s32 channel)
SetLdnChannel.
Result setsysSetFieldTestingFlag(bool flag)
SetFieldTestingFlag.
SetSysTouchScreenMode
TouchScreenMode, for "Touch-Screen Sensitivity".
Definition set.h:226
@ SetSysTouchScreenMode_Stylus
Stylus.
Definition set.h:227
@ SetSysTouchScreenMode_Standard
Standard, the default.
Definition set.h:228
SetSysServiceDiscoveryControlSettings
ServiceDiscoveryControlSettings.
Definition set.h:177
Result setsysGetFieldTestingFlag(bool *out)
GetFieldTestingFlag.
Result setsysGetProductModel(SetSysProductModel *model)
GetProductModel.
Result setsysGetErrorReportSharePermission(SetSysErrorReportSharePermission *out)
GetErrorReportSharePermission.
SetSysConnectionFlag
ConnectionFlag.
Definition set.h:72
Result setsysSetTvSettings(const SetSysTvSettings *settings)
SetTvSettings.
Result setsysGetPtmFuelGaugeParameter(SetSysPtmFuelGaugeParameter *out)
GetPtmFuelGaugeParameter.
Result setsysSetConsoleInformationUploadFlag(bool flag)
SetConsoleInformationUploadFlag.
SetSysErrorReportSharePermission
ErrorReportSharePermission.
Definition set.h:182
Result setsysGetRebootlessSystemUpdateVersion(SetSysRebootlessSystemUpdateVersion *out)
GetRebootlessSystemUpdateVersion.
Result setsysGetPrimaryAlbumStorage(SetSysPrimaryAlbumStorage *out)
GetPrimaryAlbumStorage.
SetSysAccessPointSecurityStandard
AccessPointSecurityStandard.
Definition set.h:86
Result setsysGetAutomaticApplicationDownloadFlag(bool *out)
GetAutomaticApplicationDownloadFlag.
Result setsysGetUsbFullKeyEnableFlag(bool *out)
GetUsbFullKeyEnableFlag.
Result setsysGetPctlReadyFlag(bool *out)
GetPctlReadyFlag.
SetSysPrimaryAlbumStorage
PrimaryAlbumStorage.
Definition set.h:138
Result setsysSetPtmBatteryVersion(u8 version)
SetPtmBatteryVersion.
Result setsysSetColorSetId(ColorSetId id)
Sets the current system theme.
Result setsysGetAudioVolume(SetSysAudioDevice device, SetSysAudioVolume *out)
GetAudioVolume.
Result setGetQuestFlag(bool *out)
GetQuestFlag.
Result setsysGetAccountSettings(SetSysAccountSettings *out)
GetAccountSettings.
Result setsysGetUsb30HostEnableFlag(bool *out)
GetUsb30HostEnableFlag.
Result setsysSetAudioOutputMode(SetSysAudioOutputModeTarget target, SetSysAudioOutputMode mode)
SetAudioOutputMode.
Result setsysSetHeadphoneVolumeWarningCount(u32 count)
SetHeadphoneVolumeWarningCount.
Result setsysSetButtonConfigSettingsEmbedded(const SetSysButtonConfigSettings *settings, s32 count)
SetButtonConfigSettingsEmbedded.
Result setsysGetServiceDiscoveryControlSettings(SetSysServiceDiscoveryControlSettings *out)
GetServiceDiscoveryControlSettings.
Result setsysSetUsbFullKeyEnableFlag(bool flag)
SetUsbFullKeyEnableFlag.
Result setsysGetBatteryLot(SetBatteryLot *out)
Gets the SetBatteryLot.
Result setsysGetPtmBatteryVersion(u8 *out)
GetPtmBatteryVersion.
void setsysExit(void)
Exit setsys.
Result setsysSetEulaVersions(const SetSysEulaVersion *versions, s32 count)
SetEulaVersions.
Result setsysSetThemeKey(const FsArchiveMacKey *key)
SetThemeKey.
Result setsysGetSettingsItemValue(const char *name, const char *item_key, void *value_out, size_t value_out_size, u64 *size_out)
Gets the value of a settings item.
Result setcalGetEticketDeviceCertificate(SetCalRsa2048DeviceCertificate *out)
Gets the SetCalRsa2048DeviceCertificate.
Result setsysGetThemeId(s32 type, SetSysThemeId *out)
GetThemeId.
Result setsysGetThemeSettings(SetSysThemeSettings *out)
GetThemeSettings.
Result setsysGetConsoleSixAxisSensorAccelerationGain(SetSysConsoleSixAxisSensorAccelerationGain *out)
GetConsoleSixAxisSensorAccelerationGain.
Result setsysGetSettingsItemValueSize(const char *name, const char *item_key, u64 *size_out)
Gets the size of a settings item value.
Result setGetDeviceNickname(SetSysDeviceNickName *nickname)
Gets the system's nickname.
Result setsysGetAccountOnlineStorageSettings(s32 *total_out, SetSysAccountOnlineStorageSettings *settings, s32 count)
GetAccountOnlineStorageSettings.
Result setsysGetWirelessCertificationFile(void *buffer, size_t size, u64 *out_size)
GetWirelessCertificationFile.
Result setsysSetInRepairProcessEnableFlag(bool flag)
SetInRepairProcessEnableFlag.
SetSysEulaVersionClockType
EulaVersionClockType.
Definition set.h:110
Result setsysGetEulaVersions(s32 *total_out, SetSysEulaVersion *versions, s32 count)
GetEulaVersions.
Result setsysSetDeviceTimeZoneLocationUpdatedTime(const TimeSteadyClockTimePoint *time_point)
SetDeviceTimeZoneLocationUpdatedTime.
Result setsysSetPushNotificationActivityModeOnSleep(u32 mode)
SetPushNotificationActivityModeOnSleep.
SetSysAutoSettings
AutoSettings.
Definition set.h:93
Result setsysSetBluetoothAfhEnableFlag(bool flag)
SetBluetoothAfhEnableFlag.
Result setsysGetChineseTraditionalInputMethod(SetChineseTraditionalInputMethod *out)
GetChineseTraditionalInputMethod.
Result setsysGetAppletLaunchFlags(u32 *out)
GetAppletLaunchFlags.
Result setsysGetDeviceNickname(SetSysDeviceNickName *nickname)
Gets the system's nickname.
Result setsysSetAppletLaunchFlags(u32 flags)
SetAppletLaunchFlags.
Result setsysGetNfcEnableFlag(bool *out)
GetNfcEnableFlag.
Service * setcalGetServiceSession(void)
Gets the Service object for the actual setcal service session.
Result setsysSetAudioVolume(SetSysAudioDevice device, const SetSysAudioVolume *volume)
SetAudioVolume.
Result setsysGetHeadphoneVolumeWarningCount(u32 *out)
GetHeadphoneVolumeWarningCount.
Result setsysGetButtonConfigSettingsLeft(s32 *total_out, SetSysButtonConfigSettings *settings, s32 count)
GetButtonConfigSettingsLeft.
Result setsysSetWirelessLanEnableFlag(bool flag)
SetWirelessLanEnableFlag.
Result setsysSetAccountOnlineStorageSettings(const SetSysAccountOnlineStorageSettings *settings, s32 count)
SetAccountOnlineStorageSettings.
Result setsysGetMemoryUsageRateFlag(bool *out)
GetMemoryUsageRateFlag.
Result setsysSetNotificationSettings(const SetSysNotificationSettings *settings)
SetNotificationSettings.
Result setsysGetNotificationSettings(SetSysNotificationSettings *out)
GetNotificationSettings.
Result setGetAvailableLanguageCodeCount(s32 *total)
Gets total available LanguageCodes.
Result setInitialize(void)
Initialize set.
Result setcalGetEciDeviceKey(SetCalEccB233DeviceKey *out)
Gets the SetCalEccB233DeviceKey.
Result setsysGetHomeMenuScheme(SetSysHomeMenuScheme *out)
Gets the SetSysHomeMenuScheme.
Result setsysGetBacklightSettings(SetSysBacklightSettings *out)
GetBacklightSettings.
Result setsysGetFirmwareVersionDigest(SetSysFirmwareVersionDigest *out)
GetFirmwareVersionDigest.
Result setsysGetWirelessCertificationFileSize(u64 *out_size)
GetWirelessCertificationFileSize.
Result setsysGetPtmBatteryLot(SetBatteryLot *out)
GetPtmBatteryLot.
Result setsysGetBluetoothAfhEnableFlag(bool *out)
GetBluetoothAfhEnableFlag.
Result setGetLanguageCode(u64 *LanguageCode)
Gets the current LanguageCode, setGetSystemLanguage should be used instead normally.
void setcalExit(void)
Exit setcal.
Result setMakeLanguageCode(SetLanguage Language, u64 *LanguageCode)
Converts SetLanguage to LanguageCode.
Result setsysGetT(bool *out)
Returns Terra platform type flag.
Result setsysGetBlePairingSettings(s32 *total_out, SetSysBlePairingSettings *settings, s32 count)
GetBlePairingSettings.
Result setsysSetSpeakerAutoMuteFlag(bool flag)
SetSpeakerAutoMuteFlag.
Result setsysSetUserSystemClockAutomaticCorrectionUpdatedTime(const TimeSteadyClockTimePoint *time_point)
SetUserSystemClockAutomaticCorrectionUpdatedTime.
Result setsysSetEdid(const SetSysEdid *edid)
SetEdid.
Result setsysSetConsoleSixAxisSensorAccelerationGain(const SetSysConsoleSixAxisSensorAccelerationGain *gain)
SetConsoleSixAxisSensorAccelerationGain.
Result setsysSetVibrationMasterVolume(float volume)
SetVibrationMasterVolume.
Result setsysSetUserSystemClockContext(const TimeSystemClockContext *context)
SetUserSystemClockContext.
Result setsysSetServiceDiscoveryControlSettings(SetSysServiceDiscoveryControlSettings settings)
SetServiceDiscoveryControlSettings.
Result setsysSetAccountSettings(SetSysAccountSettings settings)
SetAccountSettings.
Result setsysGetConsoleInformationUploadFlag(bool *out)
GetConsoleInformationUploadFlag.
Result setsysSetLockScreenFlag(bool flag)
SetLockScreenFlag.
Result setsysSetNfcEnableFlag(bool flag)
SetNfcEnableFlag.
Result setsysSetDeviceTimeZoneLocationName(const TimeLocationName *name)
SetDeviceTimeZoneLocationName.
Result setsysSetThemeSettings(const SetSysThemeSettings *settings)
SetThemeSettings.
SetSysAccessPointSecurityType
AccessPointSecurityType.
Definition set.h:78
Result setGetRegionCode(SetRegion *out)
Gets the RegionCode.
Result setsysSetButtonConfigRegisteredSettingsEmbedded(const SetSysButtonConfigRegisteredSettings *settings)
SetButtonConfigRegisteredSettingsEmbedded.
Result setsysGetFirmwareVersion(SetSysFirmwareVersion *out)
Gets the system firmware version.
Result setsysGetLdnChannel(s32 *out)
GetLdnChannel.
Result setsysGetConsoleSixAxisSensorAccelerationBias(SetSysConsoleSixAxisSensorAccelerationBias *out)
GetConsoleSixAxisSensorAccelerationBias.
Result setcalGetBatteryLot(SetBatteryLot *out)
Gets the SetBatteryLot.
Result setsysGetNxControllerSettings(s32 *total_out, SetSysNxControllerLegacySettings *settings, s32 count)
GetNxControllerSettings.
Result setsysSetAccountNotificationSettings(const SetSysAccountNotificationSettings *settings, s32 count)
SetAccountNotificationSettings.
Result setsysSetPtmCycleCountReliability(SetSysPtmCycleCountReliability reliability)
SetPtmCycleCountReliability.
Result setsysGetUsb30EnableFlag(bool *out)
GetUsb30EnableFlag.
Result setsysGetInitialLaunchSettings(SetSysInitialLaunchSettings *out)
GetInitialLaunchSettings.
Result setcalGetAmiiboEcqvCertificate(SetCalAmiiboEcqvCertificate *out)
Gets the SetCalAmiiboEcqvCertificate.
Result setsysGetFatalDirtyFlags(u64 *flags_0, u64 *flags_1)
Gets the settings flags that have changed.
Result setcalGetConsoleSixAxisSensorHorizontalOffset(SetCalConsoleSixAxisSensorHorizontalOffset *out)
Gets the SetCalConsoleSixAxisSensorHorizontalOffset.
Result setsysGetButtonConfigSettingsEmbedded(s32 *total_out, SetSysButtonConfigSettings *settings, s32 count)
GetButtonConfigSettingsEmbedded.
Result setsysSetDeviceNickname(const SetSysDeviceNickName *nickname)
Sets the system's nickname.
Result setcalGetAnalogStickModelParameterR(SetCalAnalogStickModelParameter *out)
Gets the SetCalAnalogStickModelParameter.
Result setsysInitialize(void)
Initialize setsys.
Result setsysSetRequiresRunRepairTimeReviser(bool flag)
SetRequiresRunRepairTimeReviser.
Result setsysSetConsoleSixAxisSensorAngularVelocityGain(const SetSysConsoleSixAxisSensorAngularVelocityGain *gain)
SetConsoleSixAxisSensorAngularVelocityGain.
Result setsysGetPlatformRegion(SetSysPlatformRegion *out)
Gets the SetSysPlatformRegion.
SetSysHandheldSleepPlan
HandheldSleepPlan.
Definition set.h:144
Result setsysGetDeviceTimeZoneLocationName(TimeLocationName *out)
GetDeviceTimeZoneLocationName.
Result setsysGetKeyboardLayout(SetKeyboardLayout *out)
GetKeyboardLayout.
Result setsysSetConsoleSixAxisSensorAngularVelocityTimeBias(const SetSysConsoleSixAxisSensorAngularVelocityTimeBias *bias)
SetConsoleSixAxisSensorAngularVelocityTimeBias.
Result setsysSetConsoleSixAxisSensorAccelerationBias(const SetSysConsoleSixAxisSensorAccelerationBias *bias)
SetConsoleSixAxisSensorAccelerationBias.
Result setsysGetColorSetId(ColorSetId *out)
Gets the current system theme.
Result setsysSetExternalRtcResetFlag(bool flag)
SetExternalRtcResetFlag.
Result setsysAcquireTelemetryDirtyFlagEventHandle(Event *out_event)
Gets an event that settings will signal on flag change.
Result setcalGetSerialNumber(SetCalSerialNumber *out)
Gets the SetCalSerialNumber.
SetLanguage
IDs for Language.
Definition set.h:39
@ SetLanguage_IT
Italian.
Definition set.h:44
@ SetLanguage_KO
Korean.
Definition set.h:47
@ SetLanguage_JA
Japanese.
Definition set.h:40
@ SetLanguage_ES419
"LatinAmericanSpanish"
Definition set.h:54
@ SetLanguage_PT
Portuguese.
Definition set.h:49
@ SetLanguage_ZHHANT
[4.0.0+] ChineseTraditional
Definition set.h:56
@ SetLanguage_ZHHANS
[4.0.0+] ChineseSimplified
Definition set.h:55
@ SetLanguage_FR
French.
Definition set.h:42
@ SetLanguage_Total
Total languages supported by this enum.
Definition set.h:58
@ SetLanguage_ZHTW
Traditional Chinese ("Taiwanese")
Definition set.h:51
@ SetLanguage_ZHCN
Simplified Chinese ("Chinese")
Definition set.h:46
@ SetLanguage_ES
Spanish.
Definition set.h:45
@ SetLanguage_PTBR
[10.1.0+] "BrazilianPortuguese"
Definition set.h:57
@ SetLanguage_FRCA
CA French ("CanadianFrench")
Definition set.h:53
@ SetLanguage_ENUS
US English ("AmericanEnglish")
Definition set.h:41
@ SetLanguage_DE
German.
Definition set.h:43
@ SetLanguage_NL
Dutch.
Definition set.h:48
@ SetLanguage_RU
Russian.
Definition set.h:50
@ SetLanguage_ENGB
GB English ("BritishEnglish")
Definition set.h:52
Result setsysGetConsoleSixAxisSensorAngularVelocityTimeBias(SetSysConsoleSixAxisSensorAngularVelocityTimeBias *out)
GetConsoleSixAxisSensorAngularVelocityTimeBias.
Result setcalGetGyroscopeOffset(SetCalGyroscopeOffset *out)
Gets the SetCalGyroscopeOffset.
SetSysAudioDevice
AudioDevice.
Definition set.h:131
Result setcalGetEticketDeviceKey(SetCalRsa2048DeviceKey *out)
Gets the SetCalRsa2048DeviceKey.
Result setsysGetTouchScreenMode(SetSysTouchScreenMode *out)
Gets the SetSysTouchScreenMode.
Account UserId.
Definition acc.h:25
Address.
Definition btdrv_types.h:245
BdName.
Definition btm_types.h:67
ClassOfDevice.
Definition btm_types.h:72
Kernel-mode event structure.
Definition event.h:13
This is nn::fssystem::ArchiveMacKey. Used by setsysGetThemeKey and setsysSetThemeKey....
Definition fs.h:146
Service object structure.
Definition service.h:14
BatteryLot.
Definition set.h:247
Definition set.h:768
Definition set.h:772
Definition set.h:776
Definition set.h:781
Definition set.h:786
Definition set.h:797
Definition set.h:802
Definition set.h:816
Definition set.h:820
Definition set.h:828
Definition set.h:832
Definition set.h:836
Definition set.h:842
Definition set.h:846
u32 size
Size of the entire key.
Definition set.h:847
Definition set.h:852
Definition set.h:856
Definition set.h:860
Definition set.h:891
u32 code
Region code.
Definition set.h:892
Definition set.h:864
Definition set.h:868
u32 size
Size of the entire key.
Definition set.h:869
Definition set.h:876
Definition set.h:880
u32 size
Size of the certificate data.
Definition set.h:881
Definition set.h:885
u32 size
Size of the entire key.
Definition set.h:886
AccountNotificationSettings.
Definition set.h:409
AccountUid uid
AccountUid
Definition set.h:410
u32 flags
Bitmask with AccountNotificationFlag.
Definition set.h:411
s8 friend_presence_overlay_permission
SetSysFriendPresenceOverlayPermission
Definition set.h:412
AccountOnlineStorageSettings.
Definition set.h:721
AccountUid uid
AccountUid
Definition set.h:722
AccountSettings.
Definition set.h:375
AllowedSslHosts.
Definition set.h:670
AnalogStickUserCalibration.
Definition set.h:728
Definition set.h:379
u32 unk_x0
0 for Console and Tv, 2 for Headphones.
Definition set.h:380
u8 volume
From 0-15.
Definition set.h:381
BacklightSettingsEx.
Definition set.h:300
BacklightSettings.
Definition set.h:288
BlePairingSettings.
Definition set.h:680
BluetoothDevicesSettings.
Definition set.h:313
u8 audio_source_volume
[13.0.0+] AudioSourceVolume
Definition set.h:331
u8 sub_class
SubClass.
Definition set.h:323
BtmClassOfDevice class_of_device
ClassOfDevice.
Definition set.h:316
BtdrvAddress addr
BtdrvAddress
Definition set.h:314
BtmBdName name
[1.0.0-12.1.0] BdName. On 13.0.0+ name2 is used instead.
Definition set.h:315
u8 attribute_mask
AttributeMask.
Definition set.h:324
u16 version
Version.
Definition set.h:319
u16 descriptor_length
DescriptorLength.
Definition set.h:325
u32 audio_flags
[14.0.0+] AudioFlags
Definition set.h:334
u16 vid
Vid.
Definition set.h:321
u8 link_key_present
LinkKeyPresent.
Definition set.h:318
u8 key_type
KeyType.
Definition set.h:327
u16 pid
Pid.
Definition set.h:322
u16 brr_size
BrrSize.
Definition set.h:329
u8 audio_sink_volume
[15.0.0+] AudioSinkVolume
Definition set.h:333
u8 device_type
DeviceType.
Definition set.h:328
u32 trusted_services
TrustedServices.
Definition set.h:320
ButtonConfigRegisteredSettings.
Definition set.h:764
ButtonConfigSettings.
Definition set.h:759
Actually nn::util::Color4u8Type.
Definition set.h:600
ConsoleSixAxisSensorAccelerationBias.
Definition set.h:630
ConsoleSixAxisSensorAccelerationGain.
Definition set.h:644
ConsoleSixAxisSensorAngularAcceleration.
Definition set.h:701
ConsoleSixAxisSensorAngularVelocityBias.
Definition set.h:637
ConsoleSixAxisSensorAngularVelocityGain.
Definition set.h:657
ConsoleSixAxisSensorAngularVelocityTimeBias.
Definition set.h:694
Definition set.h:460
DataDeletionSettings.
Definition set.h:565
u32 flags
Bitmask with DataDeletionFlag.
Definition set.h:566
s32 use_count
Use count.
Definition set.h:567
DeviceNickName.
Definition set.h:365
Edid.
Definition set.h:491
u8 x_resolution
Real value is (val + 31) * 8 pixels.
Definition set.h:523
u8 vertical_frequency
Real value is val + 60 Hz.
Definition set.h:524
u8 pixel_clock_rate_max
Rounded up to multiples of 10 MHz.
Definition set.h:544
u16 pnp_id
Big-endian set of 3 5-bit values representing letters, 1 = A .. 26 = Z.
Definition set.h:493
u8 checksum
Sum of all 128 bytes should equal 0 mod 256.
Definition set.h:549
u8 extension_count
Always 1.
Definition set.h:548
u8 manufacture_year
Real value is val - 10.
Definition set.h:497
u8 aspect_ratio
0 = 16:10, 1 = 4:3, 2 = 5:4, 3 = 16:9.
Definition set.h:525
u8 extended_checksum
Sum of 128 extended bytes should equal 0 mod 256.
Definition set.h:559
u8 extension_tag
Always 2 = CEA EDID timing extension.
Definition set.h:551
EulaVersion.
Definition set.h:385
s32 clock_type
SetSysEulaVersionClockType
Definition set.h:388
u64 network_clock_time
POSIX timestamp.
Definition set.h:390
TimeSteadyClockTimePoint steady_clock_time
TimeSteadyClockTimePoint
Definition set.h:391
Structure returned by setsysGetFirmwareVersionDigest.
Definition set.h:355
Structure returned by setsysGetFirmwareVersion.
Definition set.h:339
Output from setsysGetHomeMenuScheme. This contains RGBA8 colors which correspond with the physical sh...
Definition set.h:750
u32 back_color
Back Color.
Definition set.h:752
u32 sub_color
Sub Color.
Definition set.h:753
u32 extra_color
Extra Color.
Definition set.h:755
u32 bezel_color
Bezel Color.
Definition set.h:754
u32 main_color
Main Color.
Definition set.h:751
HostFsMountPoint.
Definition set.h:675
InitialLaunchSettings.
Definition set.h:578
TimeSteadyClockTimePoint timestamp
TimeSteadyClockTimePoint timestamp.
Definition set.h:581
u32 flags
Bitmask with InitialLaunchFlag.
Definition set.h:579
u32 pad
Padding.
Definition set.h:580
LcdBacklightBrightnessMapping.
Definition set.h:281
Definition set.h:428
u16 pixel_clock
In 10 kHz units.
Definition set.h:429
NetworkSettings.
Definition set.h:252
u32 auto_settings
Bitmask with SetSysAutoSettings.
Definition set.h:264
u32 access_point_security_type
Bitmask with SetSysAccessPointSecurityType.
Definition set.h:260
u32 connection_flags
Bitmask with SetSysConnectionFlag.
Definition set.h:255
u32 proxy_flags
Bitmask with SetSysProxyFlags.
Definition set.h:270
u32 connect_to_hidden_network
Bitmask with UseStealthNetworkFlag.
Definition set.h:257
u32 access_point_security_standard
Bitmask with SetSysAccessPointSecurityStandard.
Definition set.h:261
NotificationSettings.
Definition set.h:401
u32 flags
Bitmask with NotificationFlag.
Definition set.h:402
SetSysNotificationTime end_time
SetSysNotificationTime
Definition set.h:405
SetSysNotificationTime start_time
SetSysNotificationTime
Definition set.h:404
s32 volume
SetSysNotificationVolume
Definition set.h:403
NotificationTime.
Definition set.h:395
NxControllerLegacySettings.
Definition set.h:605
u8 interface_type
Bitmask with XcdInterfaceType.
Definition set.h:613
u8 type
SetSysControllerType.
Definition set.h:607
NxControllerSettings.
Definition set.h:617
u8 type
SetSysControllerType.
Definition set.h:619
u8 interface_type
Bitmask with XcdInterfaceType.
Definition set.h:625
PtmFuelGaugeParameter.
Definition set.h:585
u32 cycles_actual
Keeps track of cycles. The fuel gauge cycles reg is reset if > 2.00 cycles and added here.
Definition set.h:596
u16 cycles
Normally keeps the cycles reg. Unused and contains stack garbage.
Definition set.h:595
RebootlessSystemUpdateVersion. This is the content of the RebootlessSystemUpdateVersion SystemData,...
Definition set.h:714
Structure returned by setsysGetSerialNumber.
Definition set.h:360
SleepSettings.
Definition set.h:571
s32 handheld_sleep_plan
SetSysHandheldSleepPlan
Definition set.h:573
u32 flags
Bitmask with SleepFlag.
Definition set.h:572
s32 console_sleep_plan
SetSysConsoleSleepPlan
Definition set.h:574
ThemeId.
Definition set.h:740
ThemeSettings.
Definition set.h:745
TvSettings.
Definition set.h:417
s32 tv_resolution
SetSysTvResolution
Definition set.h:419
float gamma
Gamma.
Definition set.h:424
s32 cmu_mode
SetSysCmuMode
Definition set.h:422
s32 hdmi_content_type
SetSysHdmiContentType
Definition set.h:420
float contrast
Contrast.
Definition set.h:425
u32 flags
Bitmask with TvFlag.
Definition set.h:418
s32 rgb_range
SetSysRgbRange
Definition set.h:421
u32 underscan
Underscan.
Definition set.h:423
UserSelectorSettings.
Definition set.h:370
u32 flags
Bitmask with SetSysUserSelectorFlag.
Definition set.h:371
Definition time.h:51
Definition time.h:55
Definition time.h:65
Definition types.h:48
#define BIT(n)
Creates a bitmask from a bit number.
Definition types.h:54
uint64_t u64
64-bit unsigned integer.
Definition types.h:22
uint8_t u8
8-bit unsigned integer.
Definition types.h:19
int8_t s8
8-bit signed integer.
Definition types.h:25
#define NX_PACKED
Packs a struct so that it won't include padding bytes.
Definition types.h:63
uint16_t u16
16-bit unsigned integer.
Definition types.h:20
u32 Result
Function error code result type.
Definition types.h:44
int32_t s32
32-bit signed integer.
Definition types.h:27
uint32_t u32
32-bit unsigned integer.
Definition types.h:21