RGB LED GATT Service#

Provides RGB LED controls in GATT characteristics. Designed for the Thunderboard smartphone app.

Functions#

void
void
sl_gatt_service_rgb_set_led(uint8_t m, uint8_t r, uint8_t g, uint8_t b)

Function Documentation#

sl_gatt_service_rgb_on_event#

void sl_gatt_service_rgb_on_event (sl_bt_msg_t * evt)
Parameters
[in]evt

Event coming from the Bluetooth stack.

Bluetooth stack event handler.


Definition at line 45 of file common/gatt_service_rgb/sl_gatt_service_rgb.h

sl_gatt_service_rgb_set_led#

void sl_gatt_service_rgb_set_led (uint8_t m, uint8_t r, uint8_t g, uint8_t b)
Parameters
[in]m

LED bitmask.

[in]r

Red intensity.

[in]g

Green intensity.

[in]b

Blue intensity.

Setter for RGB LEDs characteristic value. Note

  • To be implemented in user code.


Definition at line 55 of file common/gatt_service_rgb/sl_gatt_service_rgb.h

sl_gatt_service_rgb_get_led_mask#

uint8_t sl_gatt_service_rgb_get_led_mask (void )
Parameters
N/A

Returns a bitmask corresponding to the RGB LEDs the board has. Returns

  • RGB LED mask.

Note

  • To be implemented in user code.


Definition at line 62 of file common/gatt_service_rgb/sl_gatt_service_rgb.h