2021-02-18 15:49:32 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2021-03-24 12:35:33 +03:00
|
|
|
/** Channel types */
|
2021-02-18 15:49:32 +03:00
|
|
|
typedef enum {
|
2021-03-10 16:23:54 +03:00
|
|
|
LP5562ChannelRed,
|
|
|
|
LP5562ChannelGreen,
|
|
|
|
LP5562ChannelBlue,
|
|
|
|
LP5562ChannelWhite,
|
2021-02-18 15:49:32 +03:00
|
|
|
} LP5562Channel;
|
|
|
|
|
2021-03-24 12:35:33 +03:00
|
|
|
/** Initialize Driver */
|
2021-02-18 15:49:32 +03:00
|
|
|
void lp5562_reset();
|
|
|
|
|
2021-03-24 12:35:33 +03:00
|
|
|
/** Configure Driver */
|
2021-02-18 15:49:32 +03:00
|
|
|
void lp5562_configure();
|
|
|
|
|
2021-03-24 12:35:33 +03:00
|
|
|
/** Enable Driver */
|
2021-02-18 15:49:32 +03:00
|
|
|
void lp5562_enable();
|
|
|
|
|
2021-03-24 12:35:33 +03:00
|
|
|
/** Set channel current */
|
2021-02-18 15:49:32 +03:00
|
|
|
void lp5562_set_channel_current(LP5562Channel channel, uint8_t value);
|
|
|
|
|
2021-03-24 12:35:33 +03:00
|
|
|
/** Set channel current */
|
2021-02-18 15:49:32 +03:00
|
|
|
void lp5562_set_channel_value(LP5562Channel channel, uint8_t value);
|