quasar_led.h
This module configures LEDs and provides functions to control each of them.
- Copyright
Copyright (C) 2026 SPARK Microsystems International Inc. All rights reserved.
- License
This source code is proprietary and subject to the SPARK Microsystems Software EULA found in this package in file EULA.txt.
- Author
SPARK FW Team.
Typedefs
-
typedef enum quasar_led_peripherals quasar_led_peripherals_t
Quasar BSP LED peripherals selection.
Enums
-
enum quasar_led_peripherals
Quasar BSP LED peripherals selection.
Values:
-
enumerator QUASAR_LED_USB
The LED_USB indicates whether the USB port is the audio source.
-
enumerator QUASAR_LED_LINEIN
The LED_LINEIN indicates that the line-in jack is enabled.
-
enumerator QUASAR_LED_HPJACK
The LED_HPJACK indicates that the headphone jack is enabled.
-
enumerator QUASAR_LED_USER_1
User application LED.
-
enumerator QUASAR_LED_USER_2
User application LED.
-
enumerator QUASAR_LED_USER_3
User application LED.
-
enumerator QUASAR_LED_USER_4
User application LED.
-
enumerator QUASAR_LED_USB
Functions
-
void quasar_led_init(void)
Initialize LED peripherals.
-
void quasar_led_deinit(void)
Deinitialize LED peripherals.
-
void quasar_led_set(quasar_led_peripherals_t quasar_led_peripheral)
Set the GPIO output related to the selected LED peripheral.
- Parameters:
quasar_led_peripheral – [in] Selected LED peripheral.
-
void quasar_led_clear(quasar_led_peripherals_t quasar_led_peripheral)
Clear the GPIO output related to the selected LED peripheral.
- Parameters:
quasar_led_peripheral – [in] Selected LED peripheral.
-
void quasar_led_toggle(quasar_led_peripherals_t quasar_led_peripheral)
Toggle the GPIO output related to the selected LED peripheral.
- Parameters:
quasar_led_peripheral – [in] Selected LED peripheral.