CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API BUZZERHANDLE CCAUXDLL_CALLING_CONV | GetBuzzer (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | Buzzer_release (BUZZERHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_getFrequency (BUZZERHANDLE, uint16_t *frequency) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_getVolume (BUZZERHANDLE, uint16_t *volume) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_getScaledVolume (BUZZERHANDLE, uint8_t *volume) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_getTrigger (BUZZERHANDLE, bool *trigger) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_setFrequency (BUZZERHANDLE, uint16_t frequency) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_setVolume (BUZZERHANDLE, uint16_t volume) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_setScaledVolume (BUZZERHANDLE, uint8_t volume) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_setTrigger (BUZZERHANDLE, bool trigger) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_buzze (BUZZERHANDLE, int32_t time, bool blocking) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_setActive (BUZZERHANDLE, ComponentLocation location) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Buzzer_getActive (BUZZERHANDLE, ComponentLocation *location) |
Functions in the Buzzer class
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_buzze | ( | BUZZERHANDLE | , |
int32_t | time, | ||
bool | blocking | ||
) |
Buzzes for a specified time.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
time | Time (ms) to buzz. |
blocking | Blocking or non-blocking function. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_getActive | ( | BUZZERHANDLE | , |
ComponentLocation * | location | ||
) |
Get active Buzzer
Supported Platform(s): Yukon, V510, V710, V1000, V1200
location | Location of the active Buzzer |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_getFrequency | ( | BUZZERHANDLE | , |
uint16_t * | frequency | ||
) |
Get buzzer frequency.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
frequency | Current frequency (700-10000 Hz). |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_getScaledVolume | ( | BUZZERHANDLE | , |
uint8_t * | volume | ||
) |
Get scaled buzzer volume.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
volume | Current volume 0-100% |
Due limitation in HW, readback value may differ slightly from the value that was set.
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_getTrigger | ( | BUZZERHANDLE | , |
bool * | trigger | ||
) |
Get buzzer trigger. The Buzzer is enabled when the trigger is enabled.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
trigger | Current trigger status. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_getVolume | ( | BUZZERHANDLE | , |
uint16_t * | volume | ||
) |
Get buzzer volume.
Note: For platform compatibility, use Buzzer_getScaledVolume instead. This function may be removed in a future API version.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
volume | Current volume (0-51) (VS: 0-2000) (VI2: 0-4095) (Yukon, V510, V710, V1000, V1200: 0-100). |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::Buzzer_release | ( | BUZZERHANDLE | ) |
Delete the Buzzer 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::Buzzer_setActive | ( | BUZZERHANDLE | , |
ComponentLocation | location | ||
) |
Set active Buzzer.
Supported Platform(s): Yukon, V510, V710, V1000, V1200
location | Location of the Buzzer to set Active. Possible locations depends from platform. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_setFrequency | ( | BUZZERHANDLE | , |
uint16_t | frequency | ||
) |
Set buzzer frequency.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
frequency | Frequency to set (700-10000 Hz). |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_setScaledVolume | ( | BUZZERHANDLE | , |
uint8_t | volume | ||
) |
Set scaled buzzer volume.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
volume | Volume to set 0-100%. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_setTrigger | ( | BUZZERHANDLE | , |
bool | trigger | ||
) |
Set buzzer trigger. The Buzzer is enabled when the trigger is enabled.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
trigger | Status to set. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Buzzer_setVolume | ( | BUZZERHANDLE | , |
uint16_t | volume | ||
) |
Set buzzer volume. Note: For platform compatibility, use Buzzer_setScaledVolume instead. This function may be removed in a future API version.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
volume | Volume to set (0-51) (VS: 0-2000) (VI2: 0-4095) (V700: 0-50) (Yukon, V510, V710, V1000, V1200: 0-100) |
Example Usage:
EXTERN_C CCAUXDLL_API BUZZERHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetBuzzer | ( | void | ) |
Factory function that creates instances of the Buzzer object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage: