quasar_rgb.h

This module configures the RGB LED and provides functions to control each color.

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_rgb_colors quasar_rgb_color_t

Quasar BSP RGB LED colors selection.

Enums

enum quasar_rgb_colors

Quasar BSP RGB LED colors selection.

Values:

enumerator QUASAR_RGB_COLOR_RED

User application RGB LED set to red.

enumerator QUASAR_RGB_COLOR_GREEN

User application RGB LED set to green.

enumerator QUASAR_RGB_COLOR_BLUE

User application RGB LED set to blue.

enumerator QUASAR_RGB_COLOR_YELLOW

User application RGB LED set to yellow.

enumerator QUASAR_RGB_COLOR_CYAN

User application RGB LED set to cyan.

enumerator QUASAR_RGB_COLOR_MAGENTA

User application RGB LED set to magenta.

enumerator QUASAR_RGB_COLOR_WHITE

User application RGB LED set to white.

Functions

void quasar_rgb_init(void)

Initialize RGB LED peripherals.

void quasar_rgb_deinit(void)

Deinitialize RGB LED peripherals.

void quasar_rgb_configure_color(quasar_rgb_color_t rgb_color)

Configures the RGB LED to display a specified color.

Note

The color can be specified just once or every time a color change is desired. By default the specified color is white.

Parameters:

rgb_color[in] The color to configure the RGB LED to.

void quasar_rgb_set(void)

Set RGB LED peripheral to the specified color.

void quasar_rgb_clear(void)

Clear RGB LED peripheral.

void quasar_rgb_toggle(void)

Toggle RGB LED peripheral.