CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API BACKLIGHTHANDLE CCAUXDLL_CALLING_CONV | GetBacklight (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | Backlight_release (BACKLIGHTHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_getIntensity (BACKLIGHTHANDLE, uint8_t *intensity) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_setIntensity (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_getHWStatus (BACKLIGHTHANDLE, bool *status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_startAutomaticBL (BACKLIGHTHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_stopAutomaticBL (BACKLIGHTHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_getAutomaticBLStatus (BACKLIGHTHANDLE, uint8_t *status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_setAutomaticBLParams (BACKLIGHTHANDLE, bool bSoftTransitions) |
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_setAutomaticBLFilter (BACKLIGHTHANDLE, uint32_t averageWndSize, uint32_t rejectWndSize, uint32_t rejectDeltaInLux, LightSensorSamplingMode mode) |
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_getLedDimming (BACKLIGHTHANDLE, CCStatus *status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_setLedDimming (BACKLIGHTHANDLE, CCStatus status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_setActive (BACKLIGHTHANDLE, ComponentLocation location) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Backlight_getActive (BACKLIGHTHANDLE, ComponentLocation *location) |
Functions in the Backlight class
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_getActive | ( | BACKLIGHTHANDLE | , |
ComponentLocation * | location | ||
) |
Get active backlight.
Supported Platform(s): Yukon, V510, V710, V1000, V1200
Location | Location of the active Backlight. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_getAutomaticBLFilter | ( | BACKLIGHTHANDLE | , |
uint32_t * | averageWndSize, | ||
uint32_t * | rejectWndSize, | ||
uint32_t * | rejectDeltaInLux, | ||
LightSensorSamplingMode * | mode | ||
) |
Get light sensor filter parameters for automatic backlight control.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, V700, Yukon, V510, V710, V1000, V1200, X1200
averageWndSize | The average window size in nr of samples. |
rejectWndSize | The reject window size in nr of samples. |
rejectDeltaInLux | The reject delta in lux. |
mode | The configured sampling mode. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_getAutomaticBLParams | ( | BACKLIGHTHANDLE | , |
bool * | bSoftTransitions, | ||
float64_t * | k | ||
) |
Get parameters for automatic backlight control.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, V700, Yukon, V510, V710, V1000, V1200, X1200
bSoftTransitions | Soft transitions used? |
k | K value. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_getAutomaticBLStatus | ( | BACKLIGHTHANDLE | , |
uint8_t * | status | ||
) |
Get status from automatic backlight control.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, V700, Yukon, V510, V710, V1000, V1200, X1200
status | 1=running, 0=stopped. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_getHWStatus | ( | BACKLIGHTHANDLE | , |
bool * | status | ||
) |
Get backlight hardware status.
status | Backlight controller status. true: All backlight drivers works ok, false: one or more backlight drivers are faulty. |
Supported Platform(s): XL, XM, XS, XA
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_getIntensity | ( | BACKLIGHTHANDLE | , |
uint8_t * | intensity | ||
) |
Get backlight intensity. Note that there might be hardware limitations, limiting the minimum and/or maximum value to other than (1..255).
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
intensity | The current backlight intensity (1..255). |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_getLedDimming | ( | BACKLIGHTHANDLE | , |
CCStatus * | status | ||
) |
Get the current setting for Led dimming. If enabled, the function automatically dimms the LED according to the current backlight setting; Low backlight gives less bright LED. This works with manual backlight setting and automatic backlight, but only if the led is set to pure red, green or blue color. If another color is being used, this functionality must be implemented separately.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
status | Enabled/Disabled |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_getStatus | ( | BACKLIGHTHANDLE | , |
uint8_t * | status | ||
) |
Get backlight controller status. Deprecated, use Backlight_getHWStatus instead.
Supported Platform(s): XL, XM
status | Backlight controller status. Bit 0: status controller 1. Bit 1: status controller 2. Bit 2: status controller 3. Bit 3: status controller 4. 1=normal, 0=fault. |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::Backlight_release | ( | BACKLIGHTHANDLE | ) |
Delete the backlight object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_setActive | ( | BACKLIGHTHANDLE | , |
ComponentLocation | location | ||
) |
Set active backlight.
Supported Platform(s): Yukon, V510, V710, V1000, V1200
location | Location of the Backlight to set Active. Max number depends from platform. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_setAutomaticBLFilter | ( | BACKLIGHTHANDLE | , |
uint32_t | averageWndSize, | ||
uint32_t | rejectWndSize, | ||
uint32_t | rejectDeltaInLux, | ||
LightSensorSamplingMode | mode | ||
) |
Set light sensor filter parameters for automatic backlight control.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, V700, Yukon, V510, V710, V1000, V1200, X1200
averageWndSize | The average window size in nr of samples. |
rejectWndSize | The reject window size in nr of samples. |
rejectDeltaInLux | The reject delta in lux. |
mode | The configured sampling mode. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_setAutomaticBLParams | ( | BACKLIGHTHANDLE | , |
bool | bSoftTransitions | ||
) |
Set parameters for automatic backlight control.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, V700, Yukon, V510, V710, V1000, V1200, X1200
bSoftTransitions | Use soft transitions? |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_setIntensity | ( | BACKLIGHTHANDLE | , |
uint8_t | intensity | ||
) |
Set backlight intensity. Note that there might be hardware limitations, limiting the minimum and/or maximum value to other than (1..255).
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
intensity | The backlight intensity to set (1..255). |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_setLedDimming | ( | BACKLIGHTHANDLE | , |
CCStatus | status | ||
) |
Enable/disable Led dimming. If enabled, the function automatically dimms the LED according to the current backlight setting; Low backlight gives less bright LED. This works with manual backlight setting and automatic backlight, but only if the led is set to pure red, green or blue color. If another color is being used, this functionality must be implemented separately.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
status | Enabled/Disabled |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_startAutomaticBL | ( | BACKLIGHTHANDLE | ) |
Start automatic backlight control. Note that reading the light sensor at the same time as running the automatic backlight control is not supported.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, V700, Yukon, V510, V710, V1000, V1200, X1200
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Backlight_stopAutomaticBL | ( | BACKLIGHTHANDLE | ) |
Stop automatic backlight control.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, V700, Yukon, V510, V710, V1000, V1200, X1200
EXTERN_C CCAUXDLL_API BACKLIGHTHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetBacklight | ( | void | ) |
Factory function that creates instances of the Backlight object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage: