22 lines
341 B
C
22 lines
341 B
C
#pragma once
|
|
#ifndef __LED_DRV_IF_H__
|
|
#define __LED_DRV_IF_H__
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
struct led_color
|
|
{
|
|
uint8_t B;
|
|
uint8_t G;
|
|
uint8_t R;
|
|
};
|
|
|
|
typedef struct
|
|
{
|
|
int32_t (*init)(void);
|
|
int32_t (*set)(uint32_t idx, struct led_color color, uint8_t brightness);
|
|
} led_drv_if_t;
|
|
|
|
#endif // !__LED_DRV_IF_H__
|