CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API BUTTONHANDLE CCAUXDLL_CALLING_CONV | GetButton (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | Button_release (BUTTONHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_getButtonDownStatus (BUTTONHANDLE, uint16_t *buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_getBacklightPattern (BUTTONHANDLE, uint16_t *ledActiveBitmask, uint16_t *onTime, uint16_t *offTime, uint8_t *brightness) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_setBacklightPattern (BUTTONHANDLE, uint16_t ledActiveBitmask, uint16_t onTime, uint16_t offTime, uint8_t brightness) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_getBootBacklightPattern (BUTTONHANDLE, uint16_t *ledActiveBitmask, uint16_t *onTime, uint16_t *offTime, uint8_t *brightness) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_setBootBacklightPattern (BUTTONHANDLE, uint16_t ledActiveBitmask, uint16_t onTime, uint16_t offTime, uint8_t brightness) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_getStartupButtons (BUTTONHANDLE, uint32_t *buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_setStartupButtons (BUTTONHANDLE, uint32_t buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_getWakeupButtons (BUTTONHANDLE, uint32_t *buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_setWakeupButtons (BUTTONHANDLE, uint32_t buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_getSuspendButtons (BUTTONHANDLE, uint32_t *buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_setSuspendButtons (BUTTONHANDLE, uint32_t buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_getShutdownButtons (BUTTONHANDLE, uint32_t *buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_setShutdownButtons (BUTTONHANDLE, uint32_t buttons) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_getLongPressTime (BUTTONHANDLE, uint16_t *time) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Button_setLongPressTime (BUTTONHANDLE, uint16_t time) |
Functions in the Button class
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_getBacklightPattern | ( | BUTTONHANDLE | , |
uint16_t * | ledActiveBitmask, | ||
uint16_t * | onTime, | ||
uint16_t * | offTime, | ||
uint8_t * | brightness | ||
) |
Get current button backlight brightness and blink pattern.
Supported Platform(s): Yukon, V510, V710
ledActiveBitmask | Bitmask that tells which LEDs are active. Bit 0 corresponds to button 0 LED. 0 = LED is inactive, 1 = LED is active. |
onTime | Button backlight on time in ms (0-2550). Actual resolution is 10ms. Example: setting on time = 300ms and off time = 700ms => cycle time of 1s (1Hz) and a duty cycle of 30%. |
offTime | Button backlight off time in ms (0-2550). |
brightness | Button backlight brightness (0-100%). |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_getBootBacklightPattern | ( | BUTTONHANDLE | , |
uint16_t * | ledActiveBitmask, | ||
uint16_t * | onTime, | ||
uint16_t * | offTime, | ||
uint8_t * | brightness | ||
) |
Get button backlight brightness and blink pattern and used during boot.
Supported Platform(s): Yukon, V510, V710
ledActiveBitmask | Bitmask that tells which LEDs are active. Bit 0 corresponds to button 0 LED. 0 = LED is inactive, 1 = LED is active. |
onTime | Button backlight on time in ms (0-2550). Actual resolution is 10ms. Example: setting on time = 300ms and off time = 700ms => cycle time of 1s (1Hz) and a duty cycle of 30%. |
offTime | Button backlight off time in ms (0-2550). |
brightness | Button backlight brightness (0-100%). 0% means backlight is off. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_getButtonDownStatus | ( | BUTTONHANDLE | , |
uint16_t * | buttons | ||
) |
Get current button down/up status for the buttons on the side of the display.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons are pressed. Bit 0 corresponds to button 0. 0 = button is not pressed, 1 = button is pressed. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_getLongPressTime | ( | BUTTONHANDLE | , |
uint16_t * | time | ||
) |
Get time for a button press to be considered as a long-press. This applies to button 0-15 (not to separate power button).
Supported Platform(s): Yukon, V510, V710
time | Time in ms |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_getShutdownButtons | ( | BUTTONHANDLE | , |
uint32_t * | buttons | ||
) |
Get buttons that will trigger a shut-down. Several buttons can be configured to trigger the same function.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons should trigger a shut-down. Bit 0 corresponds to button 0. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_getStartupButtons | ( | BUTTONHANDLE | , |
uint32_t * | buttons | ||
) |
Get buttons that will trigger a start-up from power-off. Several buttons can be configured to trigger the same function.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons should trigger a start-up. Bit 0 corresponds to button 0. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_getSuspendButtons | ( | BUTTONHANDLE | , |
uint32_t * | buttons | ||
) |
Get buttons that will trigger a suspend. Several buttons can be configured to trigger the same function.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons should trigger a suspend. Bit 0 corresponds to button 0. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_getWakeupButtons | ( | BUTTONHANDLE | , |
uint32_t * | buttons | ||
) |
Get buttons that will trigger a wake-up from suspend. Several buttons can be configured to trigger the same function.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons should trigger a wake-up. Bit 0 corresponds to button 0. |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::Button_release | ( | BUTTONHANDLE | ) |
Delete the button object.
Supported Platform(s): Yukon, V510, V710
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_setBacklightPattern | ( | BUTTONHANDLE | , |
uint16_t | ledActiveBitmask, | ||
uint16_t | onTime, | ||
uint16_t | offTime, | ||
uint8_t | brightness | ||
) |
Set button backlight brightness and blink pattern.
Supported Platform(s): Yukon, V510, V710
ledActiveBitmask | Bitmask that tells which LEDs should be active. Bit 0 corresponds to button 0 LED. 0 = LED is inactive, 1 = LED is active. |
onTime | Button backlight on time in ms (0-2550). Actual resolution is 10ms. Example: setting on time = 300ms and off time = 700ms => cycle time of 1s (1Hz) and a duty cycle of 30%. |
offTime | Button backlight off time in ms (0-2550). |
brightness | Button backlight brightness (0-100%). |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_setBootBacklightPattern | ( | BUTTONHANDLE | , |
uint16_t | ledActiveBitmask, | ||
uint16_t | onTime, | ||
uint16_t | offTime, | ||
uint8_t | brightness | ||
) |
Set button backlight brightness and blink pattern used during boot. Setting will be stored in eeprom and will automatically be used every boot. To change blink pattern after boot, use Button_setBacklightPattern from application or script.
Supported Platform(s): Yukon, V510, V710
ledActiveBitmask | Bitmask that tells which LEDs should be active. Bit 0 corresponds to button 0 LED. 0 = LED is inactive, 1 = LED is active. |
onTime | Button backlight on time in ms (0-2550). Actual resolution is 10ms. Example: setting on time = 300ms and off time = 700ms => cycle time of 1s (1Hz) and a duty cycle of 30%. |
offTime | Button backlight off time in ms (0-2550). |
brightness | Button backlight brightness (0-100%). 0% means backlight is off. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_setLongPressTime | ( | BUTTONHANDLE | , |
uint16_t | time | ||
) |
Set time for a button press to be considered as a long-press. This applies to button 0-15 (not to separate power button).
Supported Platform(s): Yukon, V510, V710
time | Time in ms (500-60000) |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_setShutdownButtons | ( | BUTTONHANDLE | , |
uint32_t | buttons | ||
) |
Set buttons that will trigger a shut-down. Several buttons can be configured to trigger the same function.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons should trigger a shut-down. Bit 0 corresponds to button 0. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_setStartupButtons | ( | BUTTONHANDLE | , |
uint32_t | buttons | ||
) |
Set buttons that will trigger a start-up from power-off. Several buttons can be configured to trigger the same function.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons should trigger a start-up. Bit 0 corresponds to button 0. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_setSuspendButtons | ( | BUTTONHANDLE | , |
uint32_t | buttons | ||
) |
Set buttons that will trigger a suspend. Several buttons can be configured to trigger the same function.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons should trigger a suspend. Bit 0 corresponds to button 0. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Button_setWakeupButtons | ( | BUTTONHANDLE | , |
uint32_t | buttons | ||
) |
Set buttons that will trigger a wake-up from suspend. Several buttons can be configured to trigger the same function.
Supported Platform(s): Yukon, V510, V710
buttons | Bitmask that tells which buttons should trigger a wake-up. Bit 0 corresponds to button 0. |
Example Usage:
EXTERN_C CCAUXDLL_API BUTTONHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetButton | ( | void | ) |
Factory function that creates instances of the button object.
Supported Platform(s): Yukon, V510, V710
Returns NULL if it fails to allocate memory.
Example Usage: