libnx v4.9.0
Loading...
Searching...
No Matches
lbl.h
Go to the documentation of this file.
1/**
2 * @file lbl.h
3 * @brief LBL service IPC wrapper.
4 * @author SciresM, exelix
5 * @copyright libnx Authors
6 */
7#pragma once
8#include "../types.h"
9#include "../sf/service.h"
10
11typedef enum {
12 LblBacklightSwitchStatus_Disabled = 0,
13 LblBacklightSwitchStatus_Enabled = 1,
14 LblBacklightSwitchStatus_Enabling = 2,
15 LblBacklightSwitchStatus_Disabling = 3,
16} LblBacklightSwitchStatus;
17
18/// Initialize lbl.
20
21/// Exit lbl.
22void lblExit(void);
23
24/// Gets the Service object for the actual lbl service session.
26
27Result lblSaveCurrentSetting(void);
28Result lblLoadCurrentSetting(void);
29
30/**
31 * @note The brightness goes from 0 to 1.0.
32 */
34Result lblGetCurrentBrightnessSetting(float *out_value);
35
36Result lblApplyCurrentBrightnessSettingToBacklight(void);
37Result lblGetBrightnessSettingAppliedToBacklight(float *out_value);
38
39Result lblSwitchBacklightOn(u64 fade_time);
40Result lblSwitchBacklightOff(u64 fade_time);
41Result lblGetBacklightSwitchStatus(LblBacklightSwitchStatus *out_value);
42
43Result lblEnableDimming(void);
44Result lblDisableDimming(void);
45Result lblIsDimmingEnabled(bool *out_value);
46
47Result lblEnableAutoBrightnessControl(void);
48Result lblDisableAutoBrightnessControl(void);
49Result lblIsAutoBrightnessControlEnabled(bool *out_value);
50
51Result lblSetAmbientLightSensorValue(float value);
52
53/**
54 * @note Used internally by \ref appletGetAmbientLightSensorValue and \ref appletGetCurrentIlluminanceEx.
55 */
56Result lblGetAmbientLightSensorValue(bool *over_limit, float *lux);
57
58/**
59 * @note Only available on [3.0.0+].
60 * @note Used internally by \ref appletIsIlluminanceAvailable.
61 */
63
64/**
65 * @note Only available on [3.0.0+].
66 */
68
69/**
70 * @note Only available on [3.0.0+].
71 */
73
74/**
75 * @note Only available on [3.0.0+].
76 * @note Used internally by \ref appletSetVrModeEnabled.
77 */
79
80/**
81 * @note Only available on [3.0.0+].
82 * @note Used internally by \ref appletSetVrModeEnabled.
83 */
85
86/**
87 * @note Only available on [3.0.0+].
88 * @note Used internally by \ref appletIsVrModeEnabled.
89 */
90Result lblIsVrModeEnabled(bool *out_value);
Service * lblGetServiceSession(void)
Gets the Service object for the actual lbl service session.
Result lblGetAmbientLightSensorValue(bool *over_limit, float *lux)
Result lblSetCurrentBrightnessSettingForVrMode(float brightness)
void lblExit(void)
Exit lbl.
Result lblGetCurrentBrightnessSettingForVrMode(float *out_value)
Result lblDisableVrMode(void)
Result lblEnableVrMode(void)
Result lblIsAmbientLightSensorAvailable(bool *out_value)
Result lblSetCurrentBrightnessSetting(float brightness)
Result lblIsVrModeEnabled(bool *out_value)
Result lblInitialize(void)
Initialize lbl.
Service object structure.
Definition service.h:14
uint64_t u64
64-bit unsigned integer.
Definition types.h:22
u32 Result
Function error code result type.
Definition types.h:44