Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
rgb_led_drv.h File Reference
#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)
 

Detailed Description


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 Documentation

◆ rgb_led_config_t

Defines the configuration of the RGB LED controller.

Function Documentation

◆ rgb_led_init()

void rgb_led_init ( rgb_led_config_t * pRgb_led_config)

Initialize the RGB LED driver

Parameters
[in]pRgb_led_configThe RGB LED configuration.*

◆ update_rgb_led()

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

Parameters
[in]pRgb_led_configThe RGB LED configuration.
[in]color_idThe id of the color to change it's duty cycle.
[in]color_valueThe duty cycle of the color the value from 0 to 255 unit (pwm frequncy is 1kHz)