CCAux 2.20.0.0
CCAux API reference
Backlight.h
Go to the documentation of this file.
1
2/*
3 * Copyright (C) 2023 CrossControl AB
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; with
8 * version 2.1 of the License.
9 */
10/*
11 * File description:
12 * Backlight settings
13 *
14 * Use the function GetBacklight() to get a handle to pass on to the other functions.
15 * Use the method Backlight_release(BACKLIGHTHANDLE) to return the handle.
16 *
17 * Example Usage:
18 * @include backlight_example.cpp
19 *
20 ************************************************/
21
22#ifndef CC_BACKLIGHT_H_
23#define CC_BACKLIGHT_H_
24
25#include "CCAuxErrors.h"
26#include "CCAuxTypes.h"
27#include "CCPlatform.h"
28
29#ifdef __cplusplus
30namespace CrossControl
31{
32#endif
33
34typedef void *BACKLIGHTHANDLE;
35
55EXTERN_C
56CCAUXDLL_API
58CCAUXDLL_CALLING_CONV
60
71EXTERN_C
72CCAUXDLL_API
73void CCAUXDLL_CALLING_CONV Backlight_release(BACKLIGHTHANDLE);
74
88EXTERN_C
89CCAUXDLL_API
90eErr CCAUXDLL_CALLING_CONV Backlight_getIntensity(BACKLIGHTHANDLE, uint8_t *intensity);
91
105EXTERN_C
106CCAUXDLL_API
107eErr CCAUXDLL_CALLING_CONV Backlight_setIntensity(BACKLIGHTHANDLE, uint8_t intensity);
108
123EXTERN_C
124CCAUXDLL_API
125eErr CCAUXDLL_CALLING_CONV Backlight_getStatus(BACKLIGHTHANDLE, uint8_t *status);
126
140EXTERN_C
141CCAUXDLL_API
142eErr CCAUXDLL_CALLING_CONV Backlight_getHWStatus(BACKLIGHTHANDLE, bool *status);
143
152EXTERN_C
153CCAUXDLL_API
155
163EXTERN_C
164CCAUXDLL_API
166
176EXTERN_C
177CCAUXDLL_API
179
189EXTERN_C
190CCAUXDLL_API
191eErr CCAUXDLL_CALLING_CONV Backlight_setAutomaticBLParams(BACKLIGHTHANDLE, bool bSoftTransitions);
192
203EXTERN_C
204CCAUXDLL_API
205eErr CCAUXDLL_CALLING_CONV Backlight_getAutomaticBLParams(BACKLIGHTHANDLE, bool *bSoftTransitions, float64_t *k);
206
219EXTERN_C
220CCAUXDLL_API
221eErr CCAUXDLL_CALLING_CONV Backlight_setAutomaticBLFilter(BACKLIGHTHANDLE, uint32_t averageWndSize,
222 uint32_t rejectWndSize, uint32_t rejectDeltaInLux,
224
237EXTERN_C
238CCAUXDLL_API
239eErr CCAUXDLL_CALLING_CONV Backlight_getAutomaticBLFilter(BACKLIGHTHANDLE, uint32_t *averageWndSize,
240 uint32_t *rejectWndSize, uint32_t *rejectDeltaInLux,
242
255EXTERN_C
256CCAUXDLL_API
257eErr CCAUXDLL_CALLING_CONV Backlight_getLedDimming(BACKLIGHTHANDLE, CCStatus *status);
258
271EXTERN_C
272CCAUXDLL_API
274
284EXTERN_C
285CCAUXDLL_API
287
297EXTERN_C
298CCAUXDLL_API
300
302#ifdef __cplusplus
303} /* namespace CrossControl */
304#endif
305
306#endif /* CC_BACKLIGHT_H_ */
unsigned int uint32_t
Definition: CCAuxTypes.h:39
unsigned char uint8_t
Definition: CCAuxTypes.h:37
double float64_t
Definition: CCAuxTypes.h:16
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_startAutomaticBL(BACKLIGHTHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_getAutomaticBLStatus(BACKLIGHTHANDLE, uint8_t *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_getIntensity(BACKLIGHTHANDLE, uint8_t *intensity)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_getStatus(BACKLIGHTHANDLE, uint8_t *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_getAutomaticBLFilter(BACKLIGHTHANDLE, uint32_t *averageWndSize, uint32_t *rejectWndSize, uint32_t *rejectDeltaInLux, LightSensorSamplingMode *mode)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_setAutomaticBLFilter(BACKLIGHTHANDLE, uint32_t averageWndSize, uint32_t rejectWndSize, uint32_t rejectDeltaInLux, LightSensorSamplingMode mode)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_setActive(BACKLIGHTHANDLE, ComponentLocation location)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_getAutomaticBLParams(BACKLIGHTHANDLE, bool *bSoftTransitions, float64_t *k)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_getHWStatus(BACKLIGHTHANDLE, bool *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_stopAutomaticBL(BACKLIGHTHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_setLedDimming(BACKLIGHTHANDLE, CCStatus status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_setAutomaticBLParams(BACKLIGHTHANDLE, bool bSoftTransitions)
EXTERN_C CCAUXDLL_API BACKLIGHTHANDLE CCAUXDLL_CALLING_CONV GetBacklight(void)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_getLedDimming(BACKLIGHTHANDLE, CCStatus *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_setIntensity(BACKLIGHTHANDLE, uint8_t intensity)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Backlight_getActive(BACKLIGHTHANDLE, ComponentLocation *location)
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV Backlight_release(BACKLIGHTHANDLE)
Definition: About.h:30
void * BACKLIGHTHANDLE
Definition: Backlight.h:34
LightSensorSamplingMode
Definition: CCAuxTypes.h:142
CCStatus
Definition: CCAuxTypes.h:153
ComponentLocation
Definition: CCAuxTypes.h:569
eErr
Definition: CCAuxTypes.h:162