libnx  v4.8.0
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 
21 typedef enum {
22  ColorSetId_Light = 0,
23  ColorSetId_Dark = 1,
24 } ColorSetId;
25 
26 /// Console Product Models
27 typedef 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.
38 typedef 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.
59 } SetLanguage;
60 
61 /// Region codes.
62 typedef 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
72 typedef enum {
73  SetSysConnectionFlag_ConnectAutomaticallyFlag = BIT(0),
74  SetSysConnectionFlag_Unknown = BIT(1),
76 
77 /// AccessPointSecurityType
78 typedef enum {
79  SetSysAccessPointSecurityType_None = 0,
80  SetSysAccessPointSecurityType_Shared = 1,
81  SetSysAccessPointSecurityType_Wpa = 2,
82  SetSysAccessPointSecurityType_Wpa2 = 3,
84 
85 /// AccessPointSecurityStandard
86 typedef enum {
87  SetSysAccessPointSecurityStandard_None = 0,
88  SetSysAccessPointSecurityStandard_Wep = 1,
89  SetSysAccessPointSecurityStandard_Wpa = 2,
91 
92 /// AutoSettings
93 typedef enum {
94  SetSysAutoSettings_AutoIp = BIT(0),
95  SetSysAutoSettings_AutoDns = BIT(1),
97 
98 /// ProxyFlags
99 typedef enum {
100  SetSysProxyFlags_UseProxyFlag = BIT(0),
101  SetSysProxyFlags_ProxyAutoAuthenticateFlag = BIT(1),
103 
104 /// UserSelectorFlag
105 typedef enum {
106  SetSysUserSelectorFlag_SkipsIfSingleUser = BIT(0),
108 
109 /// EulaVersionClockType
110 typedef enum {
111  SetSysEulaVersionClockType_NetworkSystemClock = 0,
112  SetSysEulaVersionClockType_SteadyClock = 1,
114 
115 /// NotificationVolume
116 typedef enum {
117  SetSysNotificationVolume_Mute = 0,
118  SetSysNotificationVolume_Low = 1,
119  SetSysNotificationVolume_High = 2,
121 
122 /// FriendPresenceOverlayPermission
123 typedef enum {
124  SetSysFriendPresenceOverlayPermission_NotConfirmed = 0,
125  SetSysFriendPresenceOverlayPermission_NoDisplay = 1,
126  SetSysFriendPresenceOverlayPermission_FavoriteFriends = 2,
127  SetSysFriendPresenceOverlayPermission_Friends = 3,
129 
130 /// AudioDevice
131 typedef enum {
132  SetSysAudioDevice_Console = 0,
133  SetSysAudioDevice_Headphone = 1,
134  SetSysAudioDevice_Tv = 2,
136 
137 /// PrimaryAlbumStorage
138 typedef enum {
139  SetSysPrimaryAlbumStorage_Nand = 0,
140  SetSysPrimaryAlbumStorage_SdCard = 1,
142 
143 /// HandheldSleepPlan
144 typedef 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
154 typedef 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
164 typedef enum {
165  SetSysAudioOutputModeTarget_Unknown0 = 0,
166  SetSysAudioOutputModeTarget_Unknown1 = 1,
167  SetSysAudioOutputModeTarget_Unknown2 = 2,
168  SetSysAudioOutputModeTarget_Unknown3 = 3,
170 
171 /// AudioOutputMode
172 typedef enum {
173  SetSysAudioOutputMode_Unknown1 = 1 ///< Default value.
175 
176 /// ServiceDiscoveryControlSettings
177 typedef enum {
178  SetSysServiceDiscoveryControlSettings_IsChangeEnvironmentIdentifierDisabled = BIT(0),
180 
181 /// ErrorReportSharePermission
182 typedef enum {
183  SetSysErrorReportSharePermission_NotConfirmed = 0,
184  SetSysErrorReportSharePermission_Granted = 1,
185  SetSysErrorReportSharePermission_Denied = 2,
187 
188 /// KeyboardLayout
189 typedef 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
208 typedef enum {
209  SetChineseTraditionalInputMethod_Unknown1 = 1,
210  SetChineseTraditionalInputMethod_Unknown2 = 2,
212 
213 /// PtmCycleCountReliability
214 typedef enum {
215  PtmCycleCountReliability_Default = 0,
216  PtmCycleCountReliability_Unk = 1,
218 
219 /// PlatformRegion. Other values not listed here should be handled as "Unknown".
220 typedef enum {
221  SetSysPlatformRegion_Global = 1,
222  SetSysPlatformRegion_China = 2,
224 
225 /// TouchScreenMode, for "Touch-Screen Sensitivity".
226 typedef enum {
228  SetSysTouchScreenMode_Standard = 1, ///< Standard, the default.
230 
231 /// BlockType
232 typedef enum {
233  SetSysBlockType_Audio = 1,
234  SetSysBlockType_Video = 2,
235  SetSysBlockType_VendorSpecific = 3,
236  SetSysBlockType_Speaker = 4,
238 
239 /// ControllerType
240 typedef enum {
241  SetSysControllerType_JoyConR = 1,
242  SetSysControllerType_JoyConL = 2,
243  SetSysControllerType_ProCon = 3,
245 
246 /// BatteryLot
247 typedef struct {
248  char lot[0x18]; ///< BatteryLot string.
249 } SetBatteryLot;
250 
251 /// NetworkSettings
252 typedef 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
281 typedef struct {
282  float brightness_applied_to_backlight;
283  float ambient_light_sensor_value;
284  float unk_x8;
286 
287 /// BacklightSettings
288 typedef 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
300 typedef 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
313 typedef struct {
314  BtdrvAddress addr; ///< \ref BtdrvAddress
315  BtmBdName name; ///< BdName. Unused on 13.0.0+
316  BtmClassOfDevice class_of_device; ///< ClassOfDevice
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  union {
332  u8 reserved[0x12B]; ///< Reserved [1.0.0-12.1.0]
333 
334  struct {
335  u8 pad; ///< Padding
336  char name2[0xF9]; ///< Name
337  }; ///< [13.0.0+]
338  };
340 
341 /// Structure returned by \ref setsysGetFirmwareVersion.
342 typedef struct {
343  u8 major;
344  u8 minor;
345  u8 micro;
346  u8 padding1;
347  u8 revision_major;
348  u8 revision_minor;
349  u8 padding2;
350  u8 padding3;
351  char platform[0x20];
352  char version_hash[0x40];
353  char display_version[0x18];
354  char display_title[0x80];
356 
357 /// Structure returned by \ref setsysGetFirmwareVersionDigest.
358 typedef struct {
359  char digest[0x40];
361 
362 /// Structure returned by \ref setsysGetSerialNumber.
363 typedef struct {
364  char number[0x18];
366 
367 /// DeviceNickName
368 typedef struct {
369  char nickname[0x80];
371 
372 /// UserSelectorSettings
373 typedef struct {
374  u32 flags; ///< Bitmask with \ref SetSysUserSelectorFlag.
376 
377 /// AccountSettings
378 typedef struct {
381 
382 typedef struct {
383  u32 unk_x0; ///< 0 for Console and Tv, 2 for Headphones.
384  u8 volume; ///< From 0-15.
386 
387 /// EulaVersion
388 typedef struct {
389  u32 version;
390  s32 region_code;
391  s32 clock_type; ///< \ref SetSysEulaVersionClockType
392  u32 pad;
393  u64 network_clock_time; ///< POSIX timestamp.
394  TimeSteadyClockTimePoint steady_clock_time; ///< \ref TimeSteadyClockTimePoint
396 
397 /// NotificationTime
398 typedef struct {
399  s32 hour;
400  s32 minute;
402 
403 /// NotificationSettings
404 typedef struct {
405  u32 flags; ///< Bitmask with NotificationFlag.
406  s32 volume; ///< \ref SetSysNotificationVolume
407  SetSysNotificationTime start_time; ///< \ref SetSysNotificationTime
408  SetSysNotificationTime end_time; ///< \ref SetSysNotificationTime
410 
411 /// AccountNotificationSettings
412 typedef struct {
413  AccountUid uid; ///< \ref AccountUid
414  u32 flags; ///< Bitmask with AccountNotificationFlag.
415  s8 friend_presence_overlay_permission; ///< \ref SetSysFriendPresenceOverlayPermission
416  u8 pad[3]; ///< Padding.
418 
419 /// TvSettings
420 typedef struct {
421  u32 flags; ///< Bitmask with TvFlag.
422  s32 tv_resolution; ///< \ref SetSysTvResolution
423  s32 hdmi_content_type; ///< \ref SetSysHdmiContentType
424  s32 rgb_range; ///< \ref SetSysRgbRange
425  s32 cmu_mode; ///< \ref SetSysCmuMode
426  u32 underscan; ///< Underscan.
427  float gamma; ///< Gamma.
428  float contrast; ///< Contrast.
430 
431 typedef struct {
432  u16 pixel_clock; ///< In 10 kHz units.
433  u8 horizontal_active_pixels_lsb;
434  u8 horizontal_blanking_pixels_lsb;
435  u8 horizontal_blanking_pixels_msb : 4;
436  u8 horizontal_active_pixels_msb : 4;
437  u8 vertical_active_lines_lsb;
438  u8 vertical_blanking_lines_lsb;
439  u8 vertical_blanking_lines_msb : 4;
440  u8 vertical_active_lines_msb : 4;
441  u8 horizontal_sync_offset_pixels_lsb;
442  u8 horizontal_sync_pulse_width_pixels_lsb;
443  u8 horizontal_sync_pulse_width_lines_lsb : 4;
444  u8 horizontal_sync_offset_lines_lsb : 4;
445  u8 vertical_sync_pulse_width_lines_msb : 2;
446  u8 vertical_sync_offset_lines_msb : 2;
447  u8 horizontal_sync_pulse_width_pixels_msb : 2;
448  u8 horizontal_sync_offset_pixels_msb : 2;
449  u8 horizontal_image_size_mm_lsb;
450  u8 vertical_image_size_mm_lsb;
451  u8 vertical_image_size_mm_msb : 4;
452  u8 horizontal_image_size_mm_msb : 4;
453  u8 horizontal_border_pixels;
454  u8 vertical_border_lines;
455  u8 features_bitmap_0 : 1;
456  u8 features_bitmap_1 : 1;
457  u8 features_bitmap_2 : 1;
458  u8 features_bitmap_34 : 2;
459  u8 features_bitmap_56 : 2;
460  u8 interlaced : 1;
462 
463 typedef struct {
464  struct {
465  u8 size : 5;
466  SetSysBlockType block_type : 3;
467  struct {
468  u8 svd_index : 7;
469  u8 native_flag : 1;
470  } svd[0xC];
471  } NX_PACKED video;
472  struct {
473  u8 size : 5;
474  SetSysBlockType block_type : 3;
475  u8 channel_count : 3;
476  u8 format_code : 4;
477  u8 padding1 : 1;
478  u8 sampling_rates_bitmap;
479  u8 bitrate;
480  } NX_PACKED audio;
481  struct {
482  u8 size : 5;
483  SetSysBlockType block_type : 3;
484  u8 ieee_registration_id[3];
485  u16 source_physical_address;
486  u8 mode_bitmap;
487  u8 max_tmds_frequency;
488  u8 latency_bitmap;
489  } NX_PACKED vendor_specific;
490  u8 padding[2];
492 
493 /// Edid
494 typedef struct {
495  u8 pattern[8]; ///< Fixed pattern 00 FF FF FF FF FF FF 00.
496  u16 pnp_id; ///< Big-endian set of 3 5-bit values representing letters, 1 = A .. 26 = Z.
497  u16 product_code;
498  u32 serial_number;
499  u8 manufacture_week;
500  u8 manufacture_year;
501  u8 edid_version;
502  u8 edid_revision;
503  u8 video_input_parameters_bitmap;
504  u8 display_width;
505  u8 display_height;
506  u8 display_gamma;
507  u8 supported_features_bitmap;
508  struct {
509  u8 green_y_lsb : 2;
510  u8 green_x_lsb : 2;
511  u8 red_y_lsb : 2;
512  u8 red_x_lsb : 2;
513  u8 blue_lsb : 4;
514  u8 white_lsb : 4;
515  u8 red_x_msb;
516  u8 red_y_msb;
517  u8 green_x_msb;
518  u8 green_y_msb;
519  u8 blue_x_msb;
520  u8 blue_y_msb;
521  u8 white_x_msb;
522  u8 white_y_msb;
523  } chromaticity;
524  u8 timing_bitmap[3];
525  struct {
526  u8 x_resolution; ///< Real value is (val + 31) * 8 pixels.
527  u8 vertical_frequency : 6; ///< Real value is val + 60 Hz.
528  u8 aspect_ratio : 2; ///< 0 = 16:10, 1 = 4:3, 2 = 5:4, 3 = 16:9.
529  } timing_info[8];
530  SetSysModeLine timing_descriptor[2];
531  struct {
532  u16 display_descriptor_zero;
533  u8 padding1;
534  u8 descriptor_type;
535  u8 padding2;
536  char name[0xD];
537  } display_descriptor_name;
538  struct {
539  u16 display_descriptor_zero;
540  u8 padding1;
541  u8 descriptor_type;
542  u8 range_limit_offsets;
543  u8 vertical_field_rate_min;
544  u8 vertical_field_rate_max;
545  u8 horizontal_line_rate_min;
546  u8 horizontal_line_rate_max;
547  u8 pixel_clock_rate_max; ///< Rounded up to multiples of 10 MHz.
548  u8 extended_timing_info;
549  u8 padding[7];
550  } display_descriptor_range_limits;
551  u8 extension_count; ///< Always 1.
552  u8 checksum; ///< Sum of all 128 bytes should equal 0 mod 256.
553  ///< Extended data.
554  u8 extension_tag; ///< Always 2 = CEA EDID timing extension.
555  u8 revision;
556  u8 dtd_start;
557  u8 native_dtd_count : 4;
558  u8 native_dtd_feature_bitmap : 4;
559  SetSysDataBlock data_block;
560  SetSysModeLine extended_timing_descriptor[5];
561  u8 padding[5];
562  u8 extended_checksum; ///< Sum of 128 extended bytes should equal 0 mod 256.
563 } SetSysEdid;
564 
565 /// DataDeletionSettings
566 typedef struct {
567  u32 flags; ///< Bitmask with DataDeletionFlag.
568  s32 use_count; ///< Use count.
570 
571 /// SleepSettings
572 typedef struct {
573  u32 flags; ///< Bitmask with SleepFlag.
574  s32 handheld_sleep_plan; ///< \ref SetSysHandheldSleepPlan
575  s32 console_sleep_plan; ///< \ref SetSysConsoleSleepPlan
577 
578 /// InitialLaunchSettings
579 typedef struct {
580  u32 flags; ///< Bitmask with InitialLaunchFlag.
581  u32 pad; ///< Padding.
582  TimeSteadyClockTimePoint timestamp; ///< \ref TimeSteadyClockTimePoint timestamp.
584 
585 /// PtmFuelGaugeParameter
586 typedef struct {
587  u16 rcomp0;
588  u16 tempc0;
589  u16 fullcap;
590  u16 fullcapnom;
591  u16 lavgempty;
592  u16 qresidual00;
593  u16 qresidual10;
594  u16 qresidual20;
595  u16 qresidual30;
596  u16 cycles; ///< Normally keeps the cycles reg. Unused and contains stack garbage.
597  u32 cycles_actual; ///< Keeps track of cycles. The fuel gauge cycles reg is reset if > 2.00 cycles and added here.
599 
600 /// Actually nn::util::Color4u8Type.
601 typedef struct {
602  u8 field[4];
604 
605 /// NxControllerLegacySettings
606 typedef struct {
607  BtdrvAddress address;
608  u8 type; ///< \ref SetSysControllerType.
609  char serial[0x10];
610  SetSysColor4u8Type body_color;
611  SetSysColor4u8Type button_color;
612  u8 unk_x1F[8];
613  u8 unk_x27;
614  u8 interface_type; ///< Bitmask with \ref XcdInterfaceType.
616 
617 /// NxControllerSettings
618 typedef struct {
619  BtdrvAddress address;
620  u8 type; ///< \ref SetSysControllerType.
621  char serial[0x10];
622  SetSysColor4u8Type body_color;
623  SetSysColor4u8Type button_color;
624  u8 unk_x1F[8];
625  u8 unk_x27;
626  u8 interface_type; ///< Bitmask with \ref XcdInterfaceType.
627  u8 unk_x29[0x403]; ///< Unknown
629 
630 /// ConsoleSixAxisSensorAccelerationBias
631 typedef struct {
632  float unk_x0;
633  float unk_x4;
634  float unk_x8;
636 
637 /// ConsoleSixAxisSensorAngularVelocityBias
638 typedef struct {
639  float unk_x0;
640  float unk_x4;
641  float unk_x8;
643 
644 /// ConsoleSixAxisSensorAccelerationGain
645 typedef struct {
646  float unk_x0;
647  float unk_x4;
648  float unk_x8;
649  float unk_xC;
650  float unk_x10;
651  float unk_x14;
652  float unk_x18;
653  float unk_x1C;
654  float unk_x20;
656 
657 /// ConsoleSixAxisSensorAngularVelocityGain
658 typedef struct {
659  float unk_x0;
660  float unk_x4;
661  float unk_x8;
662  float unk_xC;
663  float unk_x10;
664  float unk_x14;
665  float unk_x18;
666  float unk_x1C;
667  float unk_x20;
669 
670 /// AllowedSslHosts
671 typedef struct {
672  u8 hosts[0x100];
674 
675 /// HostFsMountPoint
676 typedef struct {
677  char mount[0x100];
679 
680 /// BlePairingSettings
681 typedef struct {
682  BtdrvAddress address;
683  u16 unk_x6;
684  u16 unk_x8;
685  u8 unk_xA;
686  u8 unk_xB;
687  u8 unk_xC;
688  u8 unk_xD;
689  u8 unk_xE;
690  u8 unk_xF;
691  u8 padding[0x70];
693 
694 /// ConsoleSixAxisSensorAngularVelocityTimeBias
695 typedef struct {
696  float unk_x0;
697  float unk_x4;
698  float unk_x8;
700 
701 /// ConsoleSixAxisSensorAngularAcceleration
702 typedef struct {
703  float unk_x0;
704  float unk_x4;
705  float unk_x8;
706  float unk_xC;
707  float unk_x10;
708  float unk_x14;
709  float unk_x18;
710  float unk_x1C;
711  float unk_x20;
713 
714 /// RebootlessSystemUpdateVersion. This is the content of the RebootlessSystemUpdateVersion SystemData, in the "/version" file.
715 typedef struct {
716  u32 version;
717  u8 reserved[0x1c];
718  char display_version[0x20];
720 
721 /// AccountOnlineStorageSettings
722 typedef struct {
723  AccountUid uid; ///< \ref AccountUid
724  u32 unk_x10;
725  u32 unk_x14;
727 
728 /// AnalogStickUserCalibration
729 typedef struct {
730  u16 unk_x0;
731  u16 unk_x2;
732  u16 unk_x4;
733  u16 unk_x6;
734  u16 unk_x8;
735  u16 unk_xA;
736  u16 unk_xC;
737  u16 unk_xE;
739 
740 /// ThemeId
741 typedef struct {
742  u64 theme_id[0x10];
743 } SetSysThemeId;
744 
745 /// ThemeSettings
746 typedef struct {
747  u64 theme_settings;
749 
750 /// Output from \ref setsysGetHomeMenuScheme. This contains RGBA8 colors which correspond with the physical shell of the system.
751 typedef struct {
752  u32 main_color; ///< Main Color.
753  u32 back_color; ///< Back Color.
754  u32 sub_color; ///< Sub Color.
755  u32 bezel_color; ///< Bezel Color.
756  u32 extra_color; ///< Extra Color.
758 
759 /// ButtonConfigSettings
760 typedef struct {
761  u8 settings[0x5A8];
763 
764 /// ButtonConfigRegisteredSettings
765 typedef struct {
766  u8 settings[0x5C8];
768 
769 typedef struct {
770  u8 offset[0x6];
772 
773 typedef struct {
774  u8 scale[0x6];
776 
777 typedef struct {
778  u32 size;
779  u8 cert[0x70];
781 
782 typedef struct {
783  u32 size;
784  u8 cert[0x20];
786 
787 typedef struct {
788  u32 size;
789  u8 key[0x40];
790  u32 generation;
792 
793 typedef struct {
794  u32 size;
795  u8 cert[0x90];
797 
798 typedef struct {
799  u32 size;
800  u8 cert[0x14];
802 
803 typedef struct {
804  u32 size;
805  u8 key[0x50];
806  u32 generation;
808 
809 typedef struct {
810  u8 calibration[0x9];
812 
813 typedef struct {
814  u8 parameter[0x12];
816 
817 typedef struct {
818  u8 bd_addr[0x6];
820 
821 typedef struct {
822  u8 cfg[0x1E];
824 
825 typedef struct {
826  u8 offset[0x6];
828 
829 typedef struct {
830  char code[0x3]; ///< Country code.
832 
833 typedef struct {
834  u8 cert[0x180];
836 
837 typedef struct {
838  u32 size;
839  u8 key[0x50];
840  u32 generation;
842 
843 typedef struct {
844  u8 cert[0x400];
846 
847 typedef struct {
848  u32 size; ///< Size of the entire key.
849  u8 key[0x130];
850  u32 generation;
852 
853 typedef struct {
854  u8 offset[0x6];
856 
857 typedef struct {
858  u8 scale[0x6];
860 
861 typedef struct {
862  u8 addr[0x6]; ///< Mac address.
864 
865 typedef struct {
866  u8 cert[0x240];
868 
869 typedef struct {
870  u32 size; ///< Size of the entire key.
871  u8 key[0x240];
872  u32 generation;
874 
876 
877 typedef struct {
878  u8 parameter[0x5A];
880 
881 typedef struct {
882  u32 size; ///< Size of the certificate data.
883  u8 cert[0x800];
885 
886 typedef struct {
887  u32 size; ///< Size of the entire key.
888  u8 key[0x130];
889  u32 generation;
890 } SetCalSslKey;
891 
892 typedef struct {
893  u32 code; ///< Region code.
895 
896 /// Initialize set.
898 
899 /// Exit set.
900 void setExit(void);
901 
902 /// Gets the Service object for the actual set service session.
904 
905 /// Converts LanguageCode to \ref SetLanguage.
906 Result setMakeLanguage(u64 LanguageCode, SetLanguage *Language);
907 
908 /// Converts \ref SetLanguage to LanguageCode.
909 Result setMakeLanguageCode(SetLanguage Language, u64 *LanguageCode);
910 
911 /// Gets the current system LanguageCode.
912 /// Normally this should be used instead of \ref setGetLanguageCode.
913 /// LanguageCode is a string, see here: https://switchbrew.org/wiki/Settings_services#LanguageCode
915 
916 /// Gets the current LanguageCode, \ref setGetSystemLanguage should be used instead normally.
918 
919 /// Gets available LanguageCodes.
920 /// On system-version <4.0.0, max_entries is set to the output from \ref setGetAvailableLanguageCodeCount if max_entries is larger than that.
921 Result setGetAvailableLanguageCodes(s32 *total_entries, u64 *LanguageCodes, size_t max_entries);
922 
923 /// Gets total available LanguageCodes.
924 /// Output total is overridden with value 0 if the total is <0.
926 
927 /// Gets the RegionCode.
929 
930 /**
931  * @brief GetQuestFlag
932  * @note Only available on [5.0.0+].
933  * @param[out] out Output flag.
934  */
936 
937 /**
938  * @brief Gets the system's nickname.
939  * @note Only available on [10.1.0+].
940  * @param[out] nickname \ref SetSysDeviceNickName
941  */
943 
944 /// Initialize setsys.
946 
947 /// Exit setsys.
948 void setsysExit(void);
949 
950 /// Gets the Service object for the actual setsys service session.
952 
953 /**
954  * @brief SetLanguageCode
955  * @param[in] LanguageCode LanguageCode.
956  */
958 
959 /**
960  * @brief SetNetworkSettings
961  * @param[in] settings Input array of \ref SetSysNetworkSettings.
962  * @param[in] count Size of the settings array in entries.
963  */
965 
966 /**
967  * @brief GetNetworkSettings
968  * @param[out] total_out Total output entries.
969  * @param[out] versions Output array of \ref SetSysNetworkSettings.
970  * @param[in] count Size of the settings array in entries.
971  */
973 
974 /**
975  * @brief Gets the system firmware version.
976  * @param[out] out Firmware version to populate.
977  */
979 
980 /**
981  * @brief GetFirmwareVersionDigest
982  * @param[out] out \ref SetSysFirmwareVersionDigest
983  */
985 
986 /**
987  * @brief GetLockScreenFlag
988  * @param[out] out Output flag.
989  */
991 
992 /**
993  * @brief SetLockScreenFlag
994  * @param[in] flag Input flag.
995  */
997 
998 /**
999  * @brief GetBacklightSettings
1000  * @param[out] out \ref SetSysBacklightSettings
1001  */
1003 
1004 /**
1005  * @brief SetBacklightSettings
1006  * @param[in] settings \ref SetSysBacklightSettings
1007  */
1009 
1010 /**
1011  * @brief SetBluetoothDevicesSettings
1012  * @param[in] settings Input array of \ref SetSysBluetoothDevicesSettings.
1013  * @param[in] count Size of the settings array in entries.
1014  */
1016 
1017 /**
1018  * @brief GetBluetoothDevicesSettings
1019  * @param[out] total_out Total output entries.
1020  * @param[out] settings Output array of \ref SetSysBluetoothDevicesSettings.
1021  * @param[in] count Size of the settings array in entries.
1022  */
1024 
1025 /**
1026  * @brief GetExternalSteadyClockSourceId
1027  * @param[out] out \ref Uuid
1028  */
1030 
1031 /**
1032  * @brief SetExternalSteadyClockSourceId
1033  * @param[in] uuid \ref Uuid
1034  */
1036 
1037 /**
1038  * @brief GetUserSystemClockContext
1039  * @param[out] out \ref TimeSystemClockContext
1040  */
1042 
1043 /**
1044  * @brief SetUserSystemClockContext
1045  * @param[in] context \ref TimeSystemClockContext
1046  */
1048 
1049 /**
1050  * @brief GetAccountSettings
1051  * @param[out] out \ref SetSysAccountSettings
1052  */
1054 
1055 /**
1056  * @brief SetAccountSettings
1057  * @param[in] settings \ref SetSysAccountSettings
1058  */
1060 
1061 /**
1062  * @brief GetAudioVolume
1063  * @param[in] device \ref SetSysAudioDevice
1064  * @param[out] out \ref SetSysAudioVolume
1065  */
1067 
1068 /**
1069  * @brief SetAudioVolume
1070  * @param[in] device \ref SetSysAudioDevice
1071  * @param[in] volume \ref SetSysAudioVolume
1072  */
1074 
1075 /**
1076  * @brief GetEulaVersions
1077  * @param[out] total_out Total output entries.
1078  * @param[out] versions Output array of \ref SetSysEulaVersion.
1079  * @param[in] count Size of the versions array in entries.
1080  */
1081 Result setsysGetEulaVersions(s32 *total_out, SetSysEulaVersion *versions, s32 count);
1082 
1083 /**
1084  * @brief SetEulaVersions
1085  * @param[in] versions Input array of \ref SetSysEulaVersion.
1086  * @param[in] count Size of the versions array in entries.
1087  */
1089 
1090 /// Gets the current system theme.
1091 Result setsysGetColorSetId(ColorSetId *out);
1092 
1093 /// Sets the current system theme.
1095 
1096 /**
1097  * @brief GetConsoleInformationUploadFlag
1098  * @param[out] out Output flag.
1099  */
1101 
1102 /**
1103  * @brief SetConsoleInformationUploadFlag
1104  * @param[in] flag Input flag.
1105  */
1107 
1108 /**
1109  * @brief GetAutomaticApplicationDownloadFlag
1110  * @param[out] out Output flag.
1111  */
1113 
1114 /**
1115  * @brief SetAutomaticApplicationDownloadFlag
1116  * @param[in] flag Input flag.
1117  */
1119 
1120 /**
1121  * @brief GetNotificationSettings
1122  * @param[out] out \ref SetSysNotificationSettings
1123  */
1125 
1126 /**
1127  * @brief SetNotificationSettings
1128  * @param[in] settings \ref SetSysNotificationSettings
1129  */
1131 
1132 /**
1133  * @brief GetAccountNotificationSettings
1134  * @param[out] total_out Total output entries.
1135  * @param[out] settings Output array of \ref SetSysAccountNotificationSettings.
1136  * @param[in] count Size of the settings array in entries.
1137  */
1139 
1140 /**
1141  * @brief SetAccountNotificationSettings
1142  * @param[in] settings Input array of \ref SetSysAccountNotificationSettings.
1143  * @param[in] count Size of the settings array in entries.
1144  */
1146 
1147 /**
1148  * @brief GetVibrationMasterVolume
1149  * @param[out] out Output volume.
1150  */
1152 
1153 /**
1154  * @brief SetVibrationMasterVolume
1155  * @param[in] volume Input volume.
1156  */
1158 
1159 /**
1160  * @brief Gets the size of a settings item value.
1161  * @param name Name string.
1162  * @param item_key Item key string.
1163  * @param size_out Pointer to output the size to.
1164  */
1165 Result setsysGetSettingsItemValueSize(const char *name, const char *item_key, u64 *size_out);
1166 
1167 /**
1168  * @brief Gets the value of a settings item.
1169  * @param name Name string.
1170  * @param item_key Item key string.
1171  * @param value_out Pointer to output the value to.
1172  * @param value_out_size Size of the value_out buffer.
1173  * @param size_out Total size which was copied to value_out.
1174  */
1175 Result setsysGetSettingsItemValue(const char *name, const char *item_key, void *value_out, size_t value_out_size, u64 *size_out);
1176 
1177 /**
1178  * @brief GetTvSettings
1179  * @param[out] out \ref SetSysTvSettings
1180  */
1182 
1183 /**
1184  * @brief SetTvSettings
1185  * @param[in] settings \ref SetSysTvSettings
1186  */
1188 
1189 /**
1190  * @brief GetEdid
1191  * @param[out] out \ref SetSysEdid
1192  */
1194 
1195 /**
1196  * @brief SetEdid
1197  * @param[in] edid \ref SetSysEdid
1198  */
1200 
1201 /**
1202  * @brief GetAudioOutputMode
1203  * @param[in] target \ref SetSysAudioOutputModeTarget
1204  * @param[out] out \ref SetSysAudioOutputMode
1205  */
1207 
1208 /**
1209  * @brief SetAudioOutputMode
1210  * @param[in] target \ref SetSysAudioOutputModeTarget
1211  * @param[in] mode \ref SetSysAudioOutputMode
1212  */
1214 
1215 /**
1216  * @brief GetSpeakerAutoMuteFlag
1217  * @param[out] out Output flag.
1218  */
1220 
1221 /**
1222  * @brief SetSpeakerAutoMuteFlag
1223  * @param[in] flag Input flag.
1224  */
1226 
1227 /**
1228  * @brief GetQuestFlag
1229  * @param[out] out Output flag.
1230  */
1232 
1233 /**
1234  * @brief SetQuestFlag
1235  * @param[in] flag Input flag.
1236  */
1238 
1239 /**
1240  * @brief GetDataDeletionSettings
1241  * @param[out] out \ref SetSysDataDeletionSettings
1242  */
1244 
1245 /**
1246  * @brief SetDataDeletionSettings
1247  * @param[in] settings \ref SetSysDataDeletionSettings
1248  */
1250 
1251 /**
1252  * @brief GetInitialSystemAppletProgramId
1253  * @param[out] out output ProgramId.
1254  */
1256 
1257 /**
1258  * @brief GetOverlayDispProgramId
1259  * @param[out] out output ProgramId.
1260  */
1262 
1263 /**
1264  * @brief GetDeviceTimeZoneLocationName
1265  * @param[out] out \ref TimeLocationName
1266  */
1268 
1269 /**
1270  * @brief SetDeviceTimeZoneLocationName
1271  * @param[in] name \ref TimeLocationName
1272  */
1274 
1275 /**
1276  * @brief GetWirelessCertificationFileSize
1277  * @param[out] out_size Output size.
1278  */
1280 
1281 /**
1282  * @brief GetWirelessCertificationFile
1283  * @param[out] buffer Output buffer.
1284  * @param[in] size Output buffer size.
1285  * @param[out] out_size Output size.
1286  */
1287 Result setsysGetWirelessCertificationFile(void* buffer, size_t size, u64 *out_size);
1288 
1289 /**
1290  * @brief SetRegionCode
1291  * @param[in] region \ref SetRegion
1292  */
1294 
1295 /**
1296  * @brief GetNetworkSystemClockContext
1297  * @param[out] out \ref TimeSystemClockContext
1298  */
1300 
1301 /**
1302  * @brief SetNetworkSystemClockContext
1303  * @param[in] context \ref TimeSystemClockContext
1304  */
1306 
1307 /**
1308  * @brief IsUserSystemClockAutomaticCorrectionEnabled
1309  * @param[out] out Output flag.
1310  */
1312 
1313 /**
1314  * @brief SetUserSystemClockAutomaticCorrectionEnabled
1315  * @param[in] flag Input flag.
1316  */
1318 
1319 /**
1320  * @brief GetDebugModeFlag
1321  * @param[out] out Output flag.
1322  */
1324 
1325 /**
1326  * @brief GetPrimaryAlbumStorage
1327  * @param[out] out \ref GetPrimaryAlbumStorage
1328  */
1330 
1331 /**
1332  * @brief SetPrimaryAlbumStorage
1333  * @param[in] storage \ref SetSysPrimaryAlbumStorage
1334  */
1336 
1337 /**
1338  * @brief GetUsb30EnableFlag
1339  * @param[out] out Output flag.
1340  */
1342 
1343 /**
1344  * @brief SetUsb30EnableFlag
1345  * @param[in] flag Input flag.
1346  */
1348 
1349 /**
1350  * @brief Gets the \ref SetBatteryLot.
1351  * @param[out] out \ref SetBatteryLot
1352  */
1354 
1355 /**
1356  * @brief Gets the system's serial number.
1357  * @param[out] out \ref SetSysSerialNumber
1358  */
1360 
1361 /**
1362  * @brief GetNfcEnableFlag
1363  * @param[out] out Output flag.
1364  */
1366 
1367 /**
1368  * @brief SetNfcEnableFlag
1369  * @param[in] flag Input flag.
1370  */
1372 
1373 /**
1374  * @brief GetSleepSettings
1375  * @param[out] out \ref SetSysSleepSettings
1376  */
1378 
1379 /**
1380  * @brief SetSleepSettings
1381  * @param[in] settings \ref SetSysSleepSettings
1382  */
1384 
1385 /**
1386  * @brief GetWirelessLanEnableFlag
1387  * @param[out] out Output flag.
1388  */
1390 
1391 /**
1392  * @brief SetWirelessLanEnableFlag
1393  * @param[in] flag Input flag.
1394  */
1396 
1397 /**
1398  * @brief GetInitialLaunchSettings
1399  * @param[out] out \ref SetSysInitialLaunchSettings
1400  */
1402 
1403 /**
1404  * @brief SetInitialLaunchSettings
1405  * @param[in] settings \ref SetSysInitialLaunchSettings
1406  */
1408 
1409 /**
1410  * @brief Gets the system's nickname.
1411  * @note Same as \ref setGetDeviceNickname, which official sw uses instead on [10.1.0+].
1412  * @param[out] nickname \ref SetSysDeviceNickName
1413  */
1415 
1416 /**
1417  * @brief Sets the system's nickname.
1418  * @param[in] nickname \ref SetSysDeviceNickName
1419  */
1421 
1422 /**
1423  * @brief GetProductModel
1424  * @param[out] model Output SetSysProductModel.
1425  */
1427 
1428 /**
1429  * @brief GetLdnChannel
1430  * @param[out] out Output LdnChannel.
1431  */
1433 
1434 /**
1435  * @brief SetLdnChannel
1436  * @param[in] channel Input LdnChannel.
1437  */
1439 
1440 /**
1441  * @brief Gets an event that settings will signal on flag change.
1442  * @param out_event Event to bind. Output event will have autoclear=false.
1443  */
1445 
1446 /**
1447  * @brief Gets the settings flags that have changed.
1448  * @param flags_0 Pointer to populate with first 64 flags.
1449  * @param flags_1 Pointer to populate with second 64 flags.
1450  */
1452 
1453 /**
1454  * @brief GetPtmBatteryLot
1455  * @param[out] out \ref SetBatteryLot
1456  */
1458 
1459 /**
1460  * @brief SetPtmBatteryLot
1461  * @param[in] lot \ref SetBatteryLot
1462  */
1464 
1465 /**
1466  * @brief GetPtmFuelGaugeParameter
1467  * @param[out] out \ref SetSysPtmFuelGaugeParameter
1468  */
1470 
1471 /**
1472  * @brief SetPtmFuelGaugeParameter
1473  * @param[in] parameter \ref SetSysPtmFuelGaugeParameter
1474  */
1476 
1477 /**
1478  * @brief GetBluetoothEnableFlag
1479  * @param[out] out Output flag.
1480  */
1482 
1483 /**
1484  * @brief SetBluetoothEnableFlag
1485  * @param[in] flag Input flag.
1486  */
1488 
1489 /**
1490  * @brief GetMiiAuthorId
1491  * @param[out] out Output MiiAuthorId.
1492  */
1494 
1495 /**
1496  * @brief SetShutdownRtcValue
1497  * @param[in] value Input value.
1498  */
1500 
1501 /**
1502  * @brief GetShutdownRtcValue
1503  * @param[out] out Output value.
1504  */
1506 
1507 /**
1508  * @brief Gets an event that settings will signal on flag change.
1509  * @param out_event Event to bind. Output event will have autoclear=false.
1510  */
1512 
1513 /**
1514  * @brief Gets the settings flags that have changed.
1515  * @param flags_0 Pointer to populate with first 64 flags.
1516  * @param flags_1 Pointer to populate with second 64 flags.
1517  */
1519 
1520 /**
1521  * @brief GetAutoUpdateEnableFlag
1522  * @note Only available on [2.0.0+].
1523  * @param[out] out Output flag.
1524  */
1526 
1527 /**
1528  * @brief SetAutoUpdateEnableFlag
1529  * @note Only available on [2.0.0+].
1530  * @param[in] flag Input flag.
1531  */
1533 
1534 /**
1535  * @brief GetNxControllerSettings
1536  * @note On [13.0.0+] \ref setsysGetNxControllerSettingsEx should be used instead.
1537  * @param[out] total_out Total output entries.
1538  * @param[out] settings Output array of \ref SetSysNxControllerLegacySettings.
1539  * @param[in] count Size of the settings array in entries.
1540  */
1542 
1543 /**
1544  * @brief SetNxControllerSettings
1545  * @note On [13.0.0+] \ref setsysSetNxControllerSettingsEx should be used instead.
1546  * @param[in] settings Input array of \ref SetSysNxControllerLegacySettings.
1547  * @param[in] count Size of the settings array in entries.
1548  */
1550 
1551 /**
1552  * @brief GetBatteryPercentageFlag
1553  * @note Only available on [2.0.0+].
1554  * @param[out] out Output flag.
1555  */
1557 
1558 /**
1559  * @brief SetBatteryPercentageFlag
1560  * @note Only available on [2.0.0+].
1561  * @param[in] flag Input flag.
1562  */
1564 
1565 /**
1566  * @brief GetExternalRtcResetFlag
1567  * @note Only available on [2.0.0+].
1568  * @param[out] out Output flag.
1569  */
1571 
1572 /**
1573  * @brief SetExternalRtcResetFlag
1574  * @note Only available on [2.0.0+].
1575  * @param[in] flag Input flag.
1576  */
1578 
1579 /**
1580  * @brief GetUsbFullKeyEnableFlag
1581  * @note Only available on [3.0.0+].
1582  * @param[out] out Output flag.
1583  */
1585 
1586 /**
1587  * @brief SetUsbFullKeyEnableFlag
1588  * @note Only available on [3.0.0+].
1589  * @param[in] flag Input flag.
1590  */
1592 
1593 /**
1594  * @brief SetExternalSteadyClockInternalOffset
1595  * @note Only available on [3.0.0+].
1596  * @param[in] offset Input offset.
1597  */
1599 
1600 /**
1601  * @brief GetExternalSteadyClockInternalOffset
1602  * @note Only available on [3.0.0+].
1603  * @param[out] out Output offset.
1604  */
1606 
1607 /**
1608  * @brief GetBacklightSettingsEx
1609  * @note Only available on [3.0.0+].
1610  * @param[out] out \ref SetSysBacklightSettingsEx
1611  */
1613 
1614 /**
1615  * @brief SetBacklightSettingsEx
1616  * @note Only available on [3.0.0+].
1617  * @param[in] settings \ref SetSysBacklightSettingsEx
1618  */
1620 
1621 /**
1622  * @brief GetHeadphoneVolumeWarningCount
1623  * @note Only available on [3.0.0+].
1624  * @param[out] out Output count.
1625  */
1627 
1628 /**
1629  * @brief SetHeadphoneVolumeWarningCount
1630  * @note Only available on [3.0.0+].
1631  * @param[in] count Input count.
1632  */
1634 
1635 /**
1636  * @brief GetBluetoothAfhEnableFlag
1637  * @note Only available on [3.0.0+].
1638  * @param[out] out Output flag.
1639  */
1641 
1642 /**
1643  * @brief SetBluetoothAfhEnableFlag
1644  * @note Only available on [3.0.0+].
1645  * @param[in] flag Input flag.
1646  */
1648 
1649 /**
1650  * @brief GetBluetoothBoostEnableFlag
1651  * @note Only available on [3.0.0+].
1652  * @param[out] out Output flag.
1653  */
1655 
1656 /**
1657  * @brief SetBluetoothBoostEnableFlag
1658  * @note Only available on [3.0.0+].
1659  * @param[in] flag Input flag.
1660  */
1662 
1663 /**
1664  * @brief GetInRepairProcessEnableFlag
1665  * @note Only available on [3.0.0+].
1666  * @param[out] out Output flag.
1667  */
1669 
1670 /**
1671  * @brief SetInRepairProcessEnableFlag
1672  * @note Only available on [3.0.0+].
1673  * @param[in] flag Input flag.
1674  */
1676 
1677 /**
1678  * @brief GetHeadphoneVolumeUpdateFlag
1679  * @note Only available on [3.0.0+].
1680  * @param[out] out Output flag.
1681  */
1683 
1684 /**
1685  * @brief SetHeadphoneVolumeUpdateFlag
1686  * @note Only available on [3.0.0+].
1687  * @param[in] flag Input flag.
1688  */
1690 
1691 /**
1692  * @brief NeedsToUpdateHeadphoneVolume
1693  * @note Only available on [3.0.0-14.1.2].
1694  * @param[out] a0 Output arg.
1695  * @param[out] a1 Output arg.
1696  * @param[out] a2 Output arg.
1697  * @param[in] flag Input flag.
1698  */
1700 
1701 /**
1702  * @brief GetPushNotificationActivityModeOnSleep
1703  * @note Only available on [3.0.0+].
1704  * @param[out] out Output mode.
1705  */
1707 
1708 /**
1709  * @brief SetPushNotificationActivityModeOnSleep
1710  * @note Only available on [3.0.0+].
1711  * @param[in] mode Input mode.
1712  */
1714 
1715 /**
1716  * @brief GetServiceDiscoveryControlSettings
1717  * @note Only available on [4.0.0+].
1718  * @param[out] out \ref ServiceDiscoveryControlSettings
1719  */
1721 
1722 /**
1723  * @brief SetServiceDiscoveryControlSettings
1724  * @note Only available on [4.0.0+].
1725  * @param[in] settings \ref ServiceDiscoveryControlSettings
1726  */
1728 
1729 /**
1730  * @brief GetErrorReportSharePermission
1731  * @note Only available on [4.0.0+].
1732  * @param[out] out \ref SetSysErrorReportSharePermission
1733  */
1735 
1736 /**
1737  * @brief SetErrorReportSharePermission
1738  * @note Only available on [4.0.0+].
1739  * @param[in] permission \ref SetSysErrorReportSharePermission
1740  */
1742 
1743 /**
1744  * @brief GetAppletLaunchFlags
1745  * @note Only available on [4.0.0+].
1746  * @param[out] out Output AppletLaunchFlags bitmask.
1747  */
1749 
1750 /**
1751  * @brief SetAppletLaunchFlags
1752  * @note Only available on [4.0.0+].
1753  * @param[in] flags Input AppletLaunchFlags bitmask.
1754  */
1756 
1757 /**
1758  * @brief GetConsoleSixAxisSensorAccelerationBias
1759  * @note Only available on [4.0.0+].
1760  * @param[out] out \ref SetSysConsoleSixAxisSensorAccelerationBias
1761  */
1763 
1764 /**
1765  * @brief SetConsoleSixAxisSensorAccelerationBias
1766  * @note Only available on [4.0.0+].
1767  * @param[in] bias \ref SetSysConsoleSixAxisSensorAccelerationBias
1768  */
1770 
1771 /**
1772  * @brief GetConsoleSixAxisSensorAngularVelocityBias
1773  * @note Only available on [4.0.0+].
1774  * @param[out] out \ref SetSysConsoleSixAxisSensorAngularVelocityBias
1775  */
1777 
1778 /**
1779  * @brief SetConsoleSixAxisSensorAngularVelocityBias
1780  * @note Only available on [4.0.0+].
1781  * @param[in] bias \ref SetSysConsoleSixAxisSensorAngularVelocityBias
1782  */
1784 
1785 /**
1786  * @brief GetConsoleSixAxisSensorAccelerationGain
1787  * @note Only available on [4.0.0+].
1788  * @param[out] out \ref SetSysConsoleSixAxisSensorAccelerationGain
1789  */
1791 
1792 /**
1793  * @brief SetConsoleSixAxisSensorAccelerationGain
1794  * @note Only available on [4.0.0+].
1795  * @param[in] gain \ref SetSysConsoleSixAxisSensorAccelerationGain
1796  */
1798 
1799 /**
1800  * @brief GetConsoleSixAxisSensorAngularVelocityGain
1801  * @note Only available on [4.0.0+].
1802  * @param[out] out \ref SetSysConsoleSixAxisSensorAngularVelocityGain
1803  */
1805 
1806 /**
1807  * @brief SetConsoleSixAxisSensorAngularVelocityGain
1808  * @note Only available on [4.0.0+].
1809  * @param[in] gain \ref SetSysConsoleSixAxisSensorAngularVelocityGain
1810  */
1812 
1813 /**
1814  * @brief GetKeyboardLayout
1815  * @note Only available on [4.0.0+].
1816  * @param[out] out \ref SetKeyboardLayout
1817  */
1819 
1820 /**
1821  * @brief SetKeyboardLayout
1822  * @note Only available on [4.0.0+].
1823  * @param[in] layout \ref SetKeyboardLayout
1824  */
1826 
1827 /**
1828  * @brief GetWebInspectorFlag
1829  * @note Only available on [4.0.0+].
1830  * @param[out] out Output flag.
1831  */
1833 
1834 /**
1835  * @brief GetAllowedSslHosts
1836  * @note Only available on [4.0.0+].
1837  * @param[out] total_out Total output entries.
1838  * @param[out] out Output array of \ref SetSysAllowedSslHosts.
1839  * @param[in] count Size of the hosts array in entries.
1840  */
1842 
1843 /**
1844  * @brief GetHostFsMountPoint
1845  * @note Only available on [4.0.0+].
1846  * @param[out] out \ref SetSysHostFsMountPoint
1847  */
1849 
1850 /**
1851  * @brief GetRequiresRunRepairTimeReviser
1852  * @note Only available on [5.0.0+].
1853  * @param[out] out Output flag.
1854  */
1856 
1857 /**
1858  * @brief SetRequiresRunRepairTimeReviser
1859  * @note Only available on [5.0.0+].
1860  * @param[in] flag Input flag.
1861  */
1863 
1864 /**
1865  * @brief SetBlePairingSettings
1866  * @note Only available on [5.0.0+].
1867  * @param[in] settings Input array of \ref SetSysBlePairingSettings.
1868  * @param[in] count Size of the settings array in entries.
1869  */
1871 
1872 /**
1873  * @brief GetBlePairingSettings
1874  * @note Only available on [5.0.0+].
1875  * @param[out] total_out Total output entries.
1876  * @param[out] settings Output array of \ref SetSysBlePairingSettings.
1877  * @param[in] count Size of the hosts array in entries.
1878  */
1880 
1881 /**
1882  * @brief GetConsoleSixAxisSensorAngularVelocityTimeBias
1883  * @note Only available on [5.0.0+].
1884  * @param[out] out \ref SetSysConsoleSixAxisSensorAngularVelocityTimeBias
1885  */
1887 
1888 /**
1889  * @brief SetConsoleSixAxisSensorAngularVelocityTimeBias
1890  * @note Only available on [5.0.0+].
1891  * @param[in] bias \ref SetSysConsoleSixAxisSensorAngularVelocityTimeBias
1892  */
1894 
1895 /**
1896  * @brief GetConsoleSixAxisSensorAngularAcceleration
1897  * @note Only available on [5.0.0+].
1898  * @param[out] out \ref SetSysConsoleSixAxisSensorAngularAcceleration
1899  */
1901 
1902 /**
1903  * @brief SetConsoleSixAxisSensorAngularAcceleration
1904  * @note Only available on [5.0.0+].
1905  * @param[in] acceleration \ref SetSysConsoleSixAxisSensorAngularAcceleration
1906  */
1908 
1909 /**
1910  * @brief GetRebootlessSystemUpdateVersion
1911  * @note Only available on [5.0.0+].
1912  * @param[out] out \ref SetSysRebootlessSystemUpdateVersion
1913  */
1915 
1916 /**
1917  * @brief GetDeviceTimeZoneLocationUpdatedTime
1918  * @note Only available on [5.0.0+].
1919  * @param[out] out \ref TimeSteadyClockTimePoint
1920  */
1922 
1923 /**
1924  * @brief SetDeviceTimeZoneLocationUpdatedTime
1925  * @note Only available on [5.0.0+].
1926  * @param[in] time_point \ref TimeSteadyClockTimePoint
1927  */
1929 
1930 /**
1931  * @brief GetUserSystemClockAutomaticCorrectionUpdatedTime
1932  * @note Only available on [6.0.0+].
1933  * @param[out] out \ref TimeSteadyClockTimePoint
1934  */
1936 
1937 /**
1938  * @brief SetUserSystemClockAutomaticCorrectionUpdatedTime
1939  * @note Only available on [6.0.0+].
1940  * @param[in] time_point \ref TimeSteadyClockTimePoint
1941  */
1943 
1944 /**
1945  * @brief GetAccountOnlineStorageSettings
1946  * @note Only available on [6.0.0+].
1947  * @param[out] total_out Total output entries.
1948  * @param[out] settings Output array of \ref SetSysAccountOnlineStorageSettings.
1949  * @param[in] count Size of the settings array in entries.
1950  */
1952 
1953 /**
1954  * @brief SetAccountOnlineStorageSettings
1955  * @note Only available on [6.0.0+].
1956  * @param[in] settings Input array of \ref SetSysAccountOnlineStorageSettings.
1957  * @param[in] count Size of the settings array in entries.
1958  */
1960 
1961 /**
1962  * @brief GetPctlReadyFlag
1963  * @note Only available on [6.0.0+].
1964  * @param[out] out Output flag.
1965  */
1967 
1968 /**
1969  * @brief SetPctlReadyFlag
1970  * @note Only available on [6.0.0+].
1971  * @param[in] flag Input flag.
1972  */
1974 
1975 /**
1976  * @brief GetAnalogStickUserCalibrationL
1977  * @note Only available on [8.1.1+].
1978  * @param[out] out \ref SetSysAnalogStickUserCalibration
1979  */
1981 
1982 /**
1983  * @brief SetAnalogStickUserCalibrationL
1984  * @note Only available on [8.1.1+].
1985  * @param[in] calibration \ref SetSysAnalogStickUserCalibration
1986  */
1988 
1989 /**
1990  * @brief GetAnalogStickUserCalibrationR
1991  * @note Only available on [8.1.1+].
1992  * @param[out] out \ref SetSysAnalogStickUserCalibration
1993  */
1995 
1996 /**
1997  * @brief SetAnalogStickUserCalibrationR
1998  * @note Only available on [8.1.1+].
1999  * @param[in] calibration \ref SetSysAnalogStickUserCalibration
2000  */
2002 
2003 /**
2004  * @brief GetPtmBatteryVersion
2005  * @note Only available on [6.0.0+].
2006  * @param[out] out Output version.
2007  */
2009 
2010 /**
2011  * @brief SetPtmBatteryVersion
2012  * @note Only available on [6.0.0+].
2013  * @param[in] version Input version.
2014  */
2016 
2017 /**
2018  * @brief GetUsb30HostEnableFlag
2019  * @note Only available on [6.0.0+].
2020  * @param[out] out Output flag.
2021  */
2023 
2024 /**
2025  * @brief SetUsb30HostEnableFlag
2026  * @note Only available on [6.0.0+].
2027  * @param[in] flag Input flag.
2028  */
2030 
2031 /**
2032  * @brief GetUsb30DeviceEnableFlag
2033  * @note Only available on [6.0.0+].
2034  * @param[out] out Output flag.
2035  */
2037 
2038 /**
2039  * @brief SetUsb30DeviceEnableFlag
2040  * @note Only available on [6.0.0+].
2041  * @param[in] flag Input flag.
2042  */
2044 
2045 /**
2046  * @brief GetThemeId
2047  * @note Only available on [7.0.0+].
2048  * @param[in] type Input theme id type.
2049  * @param[out] out \ref SetSysThemeId
2050  */
2052 
2053 /**
2054  * @brief SetThemeId
2055  * @note Only available on [7.0.0+].
2056  * @param[in] type Input theme id type.
2057  * @param[in] theme_id \ref SetSysThemeId
2058  */
2059 Result setsysSetThemeId(s32 type, const SetSysThemeId *theme_id);
2060 
2061 /**
2062  * @brief GetChineseTraditionalInputMethod
2063  * @note Only available on [7.0.0+].
2064  * @param[out] out \ref SetChineseTraditionalInputMethod
2065  */
2067 
2068 /**
2069  * @brief SetChineseTraditionalInputMethod
2070  * @note Only available on [7.0.0+].
2071  * @param[in] method \ref SetChineseTraditionalInputMethod
2072  */
2074 
2075 /**
2076  * @brief GetPtmCycleCountReliability
2077  * @note Only available on [7.0.0+].
2078  * @param[out] out \ref SetSysPtmCycleCountReliability
2079  */
2081 
2082 /**
2083  * @brief SetPtmCycleCountReliability
2084  * @note Only available on [7.0.0+].
2085  * @param[in] reliability \ref SetSysPtmCycleCountReliability
2086  */
2088 
2089 /**
2090  * @brief Gets the \ref SetSysHomeMenuScheme.
2091  * @note Only available on [8.1.1+].
2092  * @param[out] out \ref SetSysHomeMenuScheme
2093  */
2095 
2096 /**
2097  * @brief GetThemeSettings
2098  * @note Only available on [7.0.0+].
2099  * @param[out] out \ref SetSysThemeSettings
2100  */
2102 
2103 /**
2104  * @brief SetThemeSettings
2105  * @note Only available on [7.0.0+].
2106  * @param[in] settings \ref SetSysThemeSettings
2107  */
2109 
2110 /**
2111  * @brief GetThemeKey
2112  * @note Only available on [7.0.0+].
2113  * @param[out] out \ref FsArchiveMacKey
2114  */
2116 
2117 /**
2118  * @brief SetThemeKey
2119  * @note Only available on [7.0.0+].
2120  * @param[in] key \ref FsArchiveMacKey
2121  */
2123 
2124 /**
2125  * @brief GetZoomFlag
2126  * @note Only available on [8.0.0+].
2127  * @param[out] out Output flag.
2128  */
2130 
2131 /**
2132  * @brief SetZoomFlag
2133  * @note Only available on [8.0.0+].
2134  * @param[in] flag Input flag.
2135  */
2137 
2138 /**
2139  * @brief Returns Terra platform type flag.
2140  * @note On [9.0.0+], this is a wrapper for \ref setsysGetPlatFormRegion() == 2.
2141  * @note Only available on [8.0.0+].
2142  * @param[out] out Output flag.
2143  */
2144 Result setsysGetT(bool *out);
2145 
2146 /**
2147  * @brief Sets Terra platform type flag.
2148  * @note On [9.0.0+], this is a wrapper for \ref setsysSetPlatFormRegion(1 + (IsT & 1)).
2149  * @note Only available on [8.0.0+].
2150  * @param[in] flag Input flag.
2151  */
2152 Result setsysSetT(bool flag);
2153 
2154 /**
2155  * @brief Gets the \ref SetSysPlatformRegion.
2156  * @note This is used internally by \ref appletGetSettingsPlatformRegion.
2157  * @note Only available on [9.0.0+].
2158  * @param[out] out \ref SetSysPlatformRegion
2159  */
2161 
2162 /**
2163  * @brief Sets the \ref SetSysPlatformRegion.
2164  * @note Only available on [9.0.0+].
2165  * @param[in] region \ref SetSysPlatformRegion
2166  */
2168 
2169 /**
2170  * @brief GetHomeMenuSchemeModel
2171  * @note This will throw an error when loading the "settings_debug!{...}" system-setting which is used with this fails.
2172  * @note Only available on [9.0.0+].
2173  * @param[out] out HomeMenuSchemeModel.
2174  */
2176 
2177 /**
2178  * @brief GetMemoryUsageRateFlag
2179  * @note Only available on [9.0.0+].
2180  * @param[out] out Output flag.
2181  */
2183 
2184 /**
2185  * @brief Gets the \ref SetSysTouchScreenMode.
2186  * @note Only available on [9.0.0+].
2187  * @param[out] out \ref SetSysTouchScreenMode
2188  */
2190 
2191 /**
2192  * @brief Sets the \ref SetSysTouchScreenMode.
2193  * @note Only available on [9.0.0+].
2194  * @param[in] mode \ref SetSysTouchScreenMode
2195  */
2197 
2198 /**
2199  * @brief GetButtonConfigSettingsFull
2200  * @note Only available on [10.0.0+].
2201  * @param[out] total_out Total output entries.
2202  * @param[out] settings Output array of \ref SetSysButtonConfigSettings.
2203  * @param[in] count Size of the settings array in entries.
2204  */
2206 
2207 /**
2208  * @brief SetButtonConfigSettingsFull
2209  * @note Only available on [10.0.0+].
2210  * @param[in] settings Input array of \ref SetSysButtonConfigSettings.
2211  * @param[in] count Size of the settings array in entries.
2212  */
2214 
2215 /**
2216  * @brief GetButtonConfigSettingsEmbedded
2217  * @note Only available on [10.0.0+].
2218  * @param[out] total_out Total output entries.
2219  * @param[out] settings Output array of \ref SetSysButtonConfigSettings.
2220  * @param[in] count Size of the settings array in entries.
2221  */
2223 
2224 /**
2225  * @brief SetButtonConfigSettingsEmbedded
2226  * @note Only available on [10.0.0+].
2227  * @param[in] settings Input array of \ref SetSysButtonConfigSettings.
2228  * @param[in] count Size of the settings array in entries.
2229  */
2231 
2232 /**
2233  * @brief GetButtonConfigSettingsLeft
2234  * @note Only available on [10.0.0+].
2235  * @param[out] total_out Total output entries.
2236  * @param[out] settings Output array of \ref SetSysButtonConfigSettings.
2237  * @param[in] count Size of the settings array in entries.
2238  */
2240 
2241 /**
2242  * @brief SetButtonConfigSettingsLeft
2243  * @note Only available on [10.0.0+].
2244  * @param[in] settings Input array of \ref SetSysButtonConfigSettings.
2245  * @param[in] count Size of the settings array in entries.
2246  */
2248 
2249 /**
2250  * @brief GetButtonConfigSettingsRight
2251  * @note Only available on [10.0.0+].
2252  * @param[out] total_out Total output entries.
2253  * @param[out] settings Output array of \ref SetSysButtonConfigSettings.
2254  * @param[in] count Size of the settings array in entries.
2255  */
2257 
2258 /**
2259  * @brief SetButtonConfigSettingsRight
2260  * @note Only available on [10.0.0+].
2261  * @param[in] settings Input array of \ref SetSysButtonConfigSettings.
2262  * @param[in] count Size of the settings array in entries.
2263  */
2265 
2266 /**
2267  * @brief GetButtonConfigRegisteredSettingsEmbedded
2268  * @note Only available on [10.0.0+].
2269  * @param[out] settings \ref SetSysButtonConfigRegisteredSettings
2270  */
2272 
2273 /**
2274  * @brief SetButtonConfigRegisteredSettingsEmbedded
2275  * @note Only available on [10.0.0+].
2276  * @param[in] settings \ref SetSysButtonConfigRegisteredSettings
2277  */
2279 
2280 /**
2281  * @brief GetButtonConfigRegisteredSettings
2282  * @note Only available on [10.0.0+].
2283  * @param[out] settings \ref SetSysButtonConfigRegisteredSettings
2284  */
2286 
2287 /**
2288  * @brief SetButtonConfigRegisteredSettings
2289  * @note Only available on [10.0.0+].
2290  * @param[in] settings \ref SetSysButtonConfigRegisteredSettings
2291  */
2293 
2294 /**
2295  * @brief GetFieldTestingFlag
2296  * @note Only available on [10.1.0+].
2297  * @param[out] out Output flag.
2298  */
2300 
2301 /**
2302  * @brief SetFieldTestingFlag
2303  * @note Only available on [10.1.0+].
2304  * @param[in] flag Input flag.
2305  */
2307 
2308 /**
2309  * @brief GetNxControllerSettingsEx
2310  * @param[out] total_out Total output entries.
2311  * @param[out] settings Output array of \ref SetSysNxControllerSettings.
2312  * @param[in] count Size of the settings array in entries.
2313  */
2315 
2316 /**
2317  * @brief SetNxControllerSettingsEx
2318  * @param[in] settings Input array of \ref SetSysNxControllerSettings.
2319  * @param[in] count Size of the settings array in entries.
2320  */
2322 
2323 /// Initialize setcal.
2325 
2326 /// Exit setcal.
2327 void setcalExit(void);
2328 
2329 /// Gets the Service object for the actual setcal service session.
2331 
2332 /**
2333  * @brief Gets the \ref SetCalBdAddress.
2334  * @param[out] out \ref SetCalBdAddress
2335  */
2337 
2338 /**
2339  * @brief Gets the \ref SetCalConfigurationId1.
2340  * @param[out] out \ref SetCalConfigurationId1
2341  */
2343 
2344 /**
2345  * @brief Gets the \ref SetCalAccelerometerOffset.
2346  * @param[out] out \ref SetCalAccelerometerOffset
2347  */
2349 
2350 /**
2351  * @brief Gets the \ref SetCalAccelerometerScale.
2352  * @param[out] out \ref SetCalAccelerometerScale
2353  */
2355 
2356 /**
2357  * @brief Gets the \ref SetCalGyroscopeOffset.
2358  * @param[out] out \ref SetCalGyroscopeOffset
2359  */
2361 
2362 /**
2363  * @brief Gets the \ref SetCalGyroscopeScale.
2364  * @param[out] out \ref SetCalGyroscopeScale
2365  */
2367 
2368 /**
2369  * @brief Gets the \ref SetCalMacAddress.
2370  * @param[out] out \ref SetCalMacAddress
2371  */
2373 
2374 /**
2375  * @brief GetWirelessLanCountryCodeCount
2376  * @param[out] out_count Output count
2377  */
2379 
2380 /**
2381  * @brief GetWirelessLanCountryCodes
2382  * @param[out] total_out Total output entries.
2383  * @param[out] codes Output array of \ref SetCalCountryCode.
2384  * @param[in] count Size of the versions array in entries.
2385  */
2387 
2388 /**
2389  * @brief Gets the \ref SetCalSerialNumber.
2390  * @param[out] out \ref SetCalSerialNumber
2391  */
2393 
2394 /**
2395  * @brief SetInitialSystemAppletProgramId
2396  * @param[in] program_id input ProgramId.
2397  */
2399 
2400 /**
2401  * @brief SetOverlayDispProgramId
2402  * @param[in] program_id input ProgramId.
2403  */
2405 
2406 /**
2407  * @brief Gets the \ref SetBatteryLot.
2408  * @param[out] out \ref SetBatteryLot
2409  */
2411 
2412 /**
2413  * @brief Gets the \ref SetCalEccB233DeviceCertificate.
2414  * @param[out] out \ref SetCalEccB233DeviceCertificate
2415  */
2417 
2418 /**
2419  * @brief Gets the \ref SetCalRsa2048DeviceCertificate.
2420  * @param[out] out \ref SetCalRsa2048DeviceCertificate
2421  */
2423 
2424 /**
2425  * @brief Gets the \ref SetCalSslKey.
2426  * @param[out] out \ref SetCalSslKey
2427  */
2429 
2430 /**
2431  * @brief Gets the \ref SetCalSslCertificate.
2432  * @param[out] out \ref SetCalSslCertificate
2433  */
2435 
2436 /**
2437  * @brief Gets the \ref SetCalGameCardKey.
2438  * @param[out] out \ref SetCalGameCardKey
2439  */
2441 
2442 /**
2443  * @brief Gets the \ref SetCalGameCardCertificate.
2444  * @param[out] out \ref SetCalGameCardCertificate
2445  */
2447 
2448 /**
2449  * @brief Gets the \ref SetCalEccB233DeviceKey.
2450  * @param[out] out \ref SetCalEccB233DeviceKey
2451  */
2453 
2454 /**
2455  * @brief Gets the \ref SetCalRsa2048DeviceKey.
2456  * @param[out] out \ref SetCalRsa2048DeviceKey
2457  */
2459 
2460 /**
2461  * @brief Gets the \ref SetCalSpeakerParameter.
2462  * @param[out] out \ref SetCalSpeakerParameter
2463  */
2465 
2466 /**
2467  * @brief GetLcdVendorId
2468  * @note Only available on [4.0.0+].
2469  * @param[out] out_vendor_id Output LcdVendorId.
2470  */
2472 
2473 /**
2474  * @brief Gets the \ref SetCalRsa2048DeviceCertificate.
2475  * @note Only available on [5.0.0+].
2476  * @param[out] out \ref SetCalRsa2048DeviceCertificate
2477  */
2479 
2480 /**
2481  * @brief Gets the \ref SetCalRsa2048DeviceKey.
2482  * @note Only available on [5.0.0+].
2483  * @param[out] out \ref SetCalRsa2048DeviceKey
2484  */
2486 
2487 /**
2488  * @brief Gets the \ref SetCalAmiiboKey.
2489  * @note Only available on [5.0.0+].
2490  * @param[out] out \ref SetCalAmiiboKey
2491  */
2493 
2494 /**
2495  * @brief Gets the \ref SetCalAmiiboEcqvCertificate.
2496  * @note Only available on [5.0.0+].
2497  * @param[out] out \ref SetCalAmiiboEcqvCertificate
2498  */
2500 
2501 /**
2502  * @brief Gets the \ref SetCalAmiiboEcdsaCertificate.
2503  * @note Only available on [5.0.0+].
2504  * @param[out] out \ref SetCalAmiiboEcdsaCertificate
2505  */
2507 
2508 /**
2509  * @brief Gets the \ref SetCalAmiiboEcqvBlsKey.
2510  * @note Only available on [5.0.0+].
2511  * @param[out] out \ref SetCalAmiiboEcqvBlsKey
2512  */
2514 
2515 /**
2516  * @brief Gets the \ref SetCalAmiiboEcqvBlsCertificate.
2517  * @note Only available on [5.0.0+].
2518  * @param[out] out \ref SetCalAmiiboEcqvBlsCertificate
2519  */
2521 
2522 /**
2523  * @brief Gets the \ref SetCalAmiiboEcqvBlsRootCertificate.
2524  * @note Only available on [5.0.0+].
2525  * @param[out] out \ref SetCalAmiiboEcqvBlsRootCertificate
2526  */
2528 
2529 /**
2530  * @brief GetUsbTypeCPowerSourceCircuitVersion
2531  * @note Only available on [5.0.0+].
2532  * @param[out] out_version Output UsbTypeCPowerSourceCircuitVersion.
2533  */
2535 
2536 /**
2537  * @brief GetAnalogStickModuleTypeL
2538  * @note Only available on [8.1.1+].
2539  * @param[out] out_version Output AnalogStickModuleType.
2540  */
2542 
2543 /**
2544  * @brief Gets the \ref SetCalAnalogStickModelParameter.
2545  * @note Only available on [8.1.1+].
2546  * @param[out] out \ref SetCalAnalogStickModelParameter
2547  */
2549 
2550 /**
2551  * @brief Gets the \ref SetCalAnalogStickFactoryCalibration.
2552  * @note Only available on [8.1.1+].
2553  * @param[out] out \ref SetCalAnalogStickFactoryCalibration
2554  */
2556 
2557 /**
2558  * @brief GetAnalogStickModuleTypeR
2559  * @note Only available on [8.1.1+].
2560  * @param[out] out_version Output AnalogStickModuleType.
2561  */
2563 
2564 /**
2565  * @brief Gets the \ref SetCalAnalogStickModelParameter.
2566  * @note Only available on [8.1.1+].
2567  * @param[out] out \ref SetCalAnalogStickModelParameter
2568  */
2570 
2571 /**
2572  * @brief Gets the \ref SetCalAnalogStickFactoryCalibration.
2573  * @note Only available on [8.1.1+].
2574  * @param[out] out \ref SetCalAnalogStickFactoryCalibration
2575  */
2577 
2578 /**
2579  * @brief GetConsoleSixAxisSensorModuleType
2580  * @note Only available on [8.1.1+].
2581  * @param[out] out_version Output ConsoleSixAxisSensorModuleType.
2582  */
2584 
2585 /**
2586  * @brief Gets the \ref SetCalConsoleSixAxisSensorHorizontalOffset.
2587  * @note Only available on [8.1.1+].
2588  * @param[out] out \ref SetCalConsoleSixAxisSensorHorizontalOffset
2589  */
2591 
2592 /**
2593  * @brief GetBatteryVersion
2594  * @note Only available on [6.0.0+].
2595  * @param[out] out_version Output BatteryVersion.
2596  */
2598 
2599 /**
2600  * @brief GetDeviceId
2601  * @note Only available on [10.0.0+].
2602  * @param[out] out_type Output DeviceId.
2603  */
2604 Result setcalGetDeviceId(u64 *out_device_id);
2605 
2606 /**
2607  * @brief GetConsoleSixAxisSensorMountType
2608  * @note Only available on [10.0.0+].
2609  * @param[out] out_type Output ConsoleSixAxisSensorMountType.
2610  */
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.
Service * setGetServiceSession(void)
Gets the Service object for the actual set service session.
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.
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.
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.
Service * setcalGetServiceSession(void)
Gets the Service object for the actual setcal service session.
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.
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.
Service * setsysGetServiceSession(void)
Gets the Service object for the actual setsys service session.
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:214
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:769
Definition: set.h:773
Definition: set.h:777
Definition: set.h:782
Definition: set.h:787
Definition: set.h:798
Definition: set.h:803
Definition: set.h:813
Definition: set.h:817
Definition: set.h:821
Definition: set.h:829
Definition: set.h:833
Definition: set.h:837
Definition: set.h:843
Definition: set.h:847
u32 size
Size of the entire key.
Definition: set.h:848
Definition: set.h:853
Definition: set.h:857
Definition: set.h:861
Definition: set.h:892
u32 code
Region code.
Definition: set.h:893
Definition: set.h:865
Definition: set.h:869
u32 size
Size of the entire key.
Definition: set.h:870
Definition: set.h:877
Definition: set.h:881
u32 size
Size of the certificate data.
Definition: set.h:882
Definition: set.h:886
u32 size
Size of the entire key.
Definition: set.h:887
AccountNotificationSettings.
Definition: set.h:412
AccountUid uid
AccountUid
Definition: set.h:413
u32 flags
Bitmask with AccountNotificationFlag.
Definition: set.h:414
s8 friend_presence_overlay_permission
SetSysFriendPresenceOverlayPermission
Definition: set.h:415
AccountOnlineStorageSettings.
Definition: set.h:722
AccountUid uid
AccountUid
Definition: set.h:723
AccountSettings.
Definition: set.h:378
AllowedSslHosts.
Definition: set.h:671
AnalogStickUserCalibration.
Definition: set.h:729
Definition: set.h:382
u32 unk_x0
0 for Console and Tv, 2 for Headphones.
Definition: set.h:383
u8 volume
From 0-15.
Definition: set.h:384
BacklightSettingsEx.
Definition: set.h:300
BacklightSettings.
Definition: set.h:288
BlePairingSettings.
Definition: set.h:681
BluetoothDevicesSettings.
Definition: set.h:313
u8 sub_class
SubClass.
Definition: set.h:323
BtmClassOfDevice class_of_device
ClassOfDevice.
Definition: set.h:316
BtdrvAddress addr
BtdrvAddress
Definition: set.h:314
u8 pad
Padding.
Definition: set.h:335
BtmBdName name
BdName. Unused on 13.0.0+.
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
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 device_type
DeviceType.
Definition: set.h:328
u32 trusted_services
TrustedServices.
Definition: set.h:320
ButtonConfigRegisteredSettings.
Definition: set.h:765
ButtonConfigSettings.
Definition: set.h:760
Actually nn::util::Color4u8Type.
Definition: set.h:601
ConsoleSixAxisSensorAccelerationBias.
Definition: set.h:631
ConsoleSixAxisSensorAccelerationGain.
Definition: set.h:645
ConsoleSixAxisSensorAngularAcceleration.
Definition: set.h:702
ConsoleSixAxisSensorAngularVelocityBias.
Definition: set.h:638
ConsoleSixAxisSensorAngularVelocityGain.
Definition: set.h:658
ConsoleSixAxisSensorAngularVelocityTimeBias.
Definition: set.h:695
Definition: set.h:463
DataDeletionSettings.
Definition: set.h:566
u32 flags
Bitmask with DataDeletionFlag.
Definition: set.h:567
s32 use_count
Use count.
Definition: set.h:568
DeviceNickName.
Definition: set.h:368
Edid.
Definition: set.h:494
u8 x_resolution
Real value is (val + 31) * 8 pixels.
Definition: set.h:526
u8 vertical_frequency
Real value is val + 60 Hz.
Definition: set.h:527
u8 pixel_clock_rate_max
Rounded up to multiples of 10 MHz.
Definition: set.h:547
u16 pnp_id
Big-endian set of 3 5-bit values representing letters, 1 = A .. 26 = Z.
Definition: set.h:496
u8 checksum
Sum of all 128 bytes should equal 0 mod 256.
Definition: set.h:552
u8 extension_count
Always 1.
Definition: set.h:551
u8 aspect_ratio
0 = 16:10, 1 = 4:3, 2 = 5:4, 3 = 16:9.
Definition: set.h:528
u8 extended_checksum
Sum of 128 extended bytes should equal 0 mod 256.
Definition: set.h:562
u8 extension_tag
Always 2 = CEA EDID timing extension.
Definition: set.h:554
EulaVersion.
Definition: set.h:388
s32 clock_type
SetSysEulaVersionClockType
Definition: set.h:391
u64 network_clock_time
POSIX timestamp.
Definition: set.h:393
TimeSteadyClockTimePoint steady_clock_time
TimeSteadyClockTimePoint
Definition: set.h:394
Structure returned by setsysGetFirmwareVersionDigest.
Definition: set.h:358
Structure returned by setsysGetFirmwareVersion.
Definition: set.h:342
Output from setsysGetHomeMenuScheme. This contains RGBA8 colors which correspond with the physical sh...
Definition: set.h:751
u32 back_color
Back Color.
Definition: set.h:753
u32 sub_color
Sub Color.
Definition: set.h:754
u32 extra_color
Extra Color.
Definition: set.h:756
u32 bezel_color
Bezel Color.
Definition: set.h:755
u32 main_color
Main Color.
Definition: set.h:752
HostFsMountPoint.
Definition: set.h:676
InitialLaunchSettings.
Definition: set.h:579
TimeSteadyClockTimePoint timestamp
TimeSteadyClockTimePoint timestamp.
Definition: set.h:582
u32 flags
Bitmask with InitialLaunchFlag.
Definition: set.h:580
u32 pad
Padding.
Definition: set.h:581
LcdBacklightBrightnessMapping.
Definition: set.h:281
Definition: set.h:431
u16 pixel_clock
In 10 kHz units.
Definition: set.h:432
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:404
u32 flags
Bitmask with NotificationFlag.
Definition: set.h:405
SetSysNotificationTime end_time
SetSysNotificationTime
Definition: set.h:408
SetSysNotificationTime start_time
SetSysNotificationTime
Definition: set.h:407
s32 volume
SetSysNotificationVolume
Definition: set.h:406
NotificationTime.
Definition: set.h:398
NxControllerLegacySettings.
Definition: set.h:606
u8 interface_type
Bitmask with XcdInterfaceType.
Definition: set.h:614
u8 type
SetSysControllerType.
Definition: set.h:608
NxControllerSettings.
Definition: set.h:618
u8 type
SetSysControllerType.
Definition: set.h:620
u8 interface_type
Bitmask with XcdInterfaceType.
Definition: set.h:626
PtmFuelGaugeParameter.
Definition: set.h:586
u32 cycles_actual
Keeps track of cycles. The fuel gauge cycles reg is reset if > 2.00 cycles and added here.
Definition: set.h:597
u16 cycles
Normally keeps the cycles reg. Unused and contains stack garbage.
Definition: set.h:596
RebootlessSystemUpdateVersion. This is the content of the RebootlessSystemUpdateVersion SystemData,...
Definition: set.h:715
Structure returned by setsysGetSerialNumber.
Definition: set.h:363
SleepSettings.
Definition: set.h:572
s32 handheld_sleep_plan
SetSysHandheldSleepPlan
Definition: set.h:574
u32 flags
Bitmask with SleepFlag.
Definition: set.h:573
s32 console_sleep_plan
SetSysConsoleSleepPlan
Definition: set.h:575
ThemeId.
Definition: set.h:741
ThemeSettings.
Definition: set.h:746
TvSettings.
Definition: set.h:420
s32 tv_resolution
SetSysTvResolution
Definition: set.h:422
float gamma
Gamma.
Definition: set.h:427
s32 cmu_mode
SetSysCmuMode
Definition: set.h:425
s32 hdmi_content_type
SetSysHdmiContentType
Definition: set.h:423
float contrast
Contrast.
Definition: set.h:428
u32 flags
Bitmask with TvFlag.
Definition: set.h:421
s32 rgb_range
SetSysRgbRange
Definition: set.h:424
u32 underscan
Underscan.
Definition: set.h:426
UserSelectorSettings.
Definition: set.h:373
u32 flags
Bitmask with SetSysUserSelectorFlag.
Definition: set.h:374
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