#include <stddef.h>#include <stdint.h>#include <pwm.h>
Include dependency graph for rgb_led_drv.h:Go to the source code of this file.
Data Structures | |
| struct | _rgb_led_config_t |
| Defines the configuration of the RGB LED controller. More... | |
Typedefs | |
| typedef struct _rgb_led_config_t | rgb_led_config_t |
| Defines the configuration of the RGB LED controller. | |
Functions | |
| void | rgb_led_init (rgb_led_config_t *pRgb_led_config) |
| void | update_rgb_led (rgb_led_config_t *pRgb_led_config, uint8_t color_id, uint8_t color_value) |
SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2024 Trident IoT, LLC https://www.tridentiot.com
Platform abstraction for Z-Wave Applications Driver for a RGB LED
| typedef struct _rgb_led_config_t rgb_led_config_t |
Defines the configuration of the RGB LED controller.
| void rgb_led_init | ( | rgb_led_config_t * | pRgb_led_config | ) |
Initialize the RGB LED driver
| [in] | pRgb_led_config | The RGB LED configuration.* |
| void update_rgb_led | ( | rgb_led_config_t * | pRgb_led_config, |
| uint8_t | color_id, | ||
| uint8_t | color_value ) |
Update the duty cycle of the RGB Led
| [in] | pRgb_led_config | The RGB LED configuration. |
| [in] | color_id | The id of the color to change it's duty cycle. |
| [in] | color_value | The duty cycle of the color the value from 0 to 255 unit (pwm frequncy is 1kHz) |