CCAux 2.19.0.0
CCAux API reference
Backlight.h
Go to the documentation of this file.
1
2/*
3 * Copyright (C) 2010-2022 CrossControl AB - All rights reserved
4 *
5 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 *
7 * This source code is licensed under the proprietary CrossControl software
8 * license v 1.0.Please refer to the software license text for details or
9 * contact info@crosscontrol.com for more info.
10 *
11 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 */
13/*
14 * File description:
15 * Backlight settings
16 *
17 * Use the function GetBacklight() to get a handle to pass on to the other functions.
18 * Use the method Backlight_release(BACKLIGHTHANDLE) to return the handle.
19 *
20 * Example Usage:
21 * @include backlight_example.cpp
22 *
23 ************************************************/
24
25#ifndef CC_BACKLIGHT_H_
26#define CC_BACKLIGHT_H_
27
28#include "CCAuxErrors.h"
29#include "CCAuxTypes.h"
30#include "CCPlatform.h"
31
32#ifdef __cplusplus
33namespace CrossControl
34{
35#endif
36
37typedef void *BACKLIGHTHANDLE;
38
58EXTERN_C
59CCAUXDLL_API
61CCAUXDLL_CALLING_CONV
63
74EXTERN_C
75CCAUXDLL_API
76void CCAUXDLL_CALLING_CONV Backlight_release(BACKLIGHTHANDLE);
77
91EXTERN_C
92CCAUXDLL_API
93eErr CCAUXDLL_CALLING_CONV Backlight_getIntensity(BACKLIGHTHANDLE, uint8_t *intensity);
94
108EXTERN_C
109CCAUXDLL_API
110eErr CCAUXDLL_CALLING_CONV Backlight_setIntensity(BACKLIGHTHANDLE, uint8_t intensity);
111
126EXTERN_C
127CCAUXDLL_API
128eErr CCAUXDLL_CALLING_CONV Backlight_getStatus(BACKLIGHTHANDLE, uint8_t *status);
129
143EXTERN_C
144CCAUXDLL_API
145eErr CCAUXDLL_CALLING_CONV Backlight_getHWStatus(BACKLIGHTHANDLE, bool *status);
146
155EXTERN_C
156CCAUXDLL_API
158
166EXTERN_C
167CCAUXDLL_API
169
179EXTERN_C
180CCAUXDLL_API
182
192EXTERN_C
193CCAUXDLL_API
194eErr CCAUXDLL_CALLING_CONV Backlight_setAutomaticBLParams(BACKLIGHTHANDLE, bool bSoftTransitions);
195
206EXTERN_C
207CCAUXDLL_API
208eErr CCAUXDLL_CALLING_CONV Backlight_getAutomaticBLParams(BACKLIGHTHANDLE, bool *bSoftTransitions, float64_t *k);
209
222EXTERN_C
223CCAUXDLL_API
224eErr CCAUXDLL_CALLING_CONV Backlight_setAutomaticBLFilter(BACKLIGHTHANDLE, uint32_t averageWndSize,
225 uint32_t rejectWndSize, uint32_t rejectDeltaInLux,
227
240EXTERN_C
241CCAUXDLL_API
242eErr CCAUXDLL_CALLING_CONV Backlight_getAutomaticBLFilter(BACKLIGHTHANDLE, uint32_t *averageWndSize,
243 uint32_t *rejectWndSize, uint32_t *rejectDeltaInLux,
245
258EXTERN_C
259CCAUXDLL_API
260eErr CCAUXDLL_CALLING_CONV Backlight_getLedDimming(BACKLIGHTHANDLE, CCStatus *status);
261
274EXTERN_C
275CCAUXDLL_API
277
287EXTERN_C
288CCAUXDLL_API
290
300EXTERN_C
301CCAUXDLL_API
303
305#ifdef __cplusplus
306} /* namespace CrossControl */
307#endif
308
309#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:33
void * BACKLIGHTHANDLE
Definition: Backlight.h:37
LightSensorSamplingMode
Definition: CCAuxTypes.h:142
CCStatus
Definition: CCAuxTypes.h:153
ComponentLocation
Definition: CCAuxTypes.h:569
eErr
Definition: CCAuxTypes.h:162