mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 13:21:44 +03:00
2f14f6dac5
* API HAL I2C: add timeout support. Update I2C API usage by drivers. * F4: Add missing API HAL Vibro implementation.
23 lines
418 B
C
23 lines
418 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef enum {
|
|
LP5562ChannelRed,
|
|
LP5562ChannelGreen,
|
|
LP5562ChannelBlue,
|
|
LP5562ChannelWhite,
|
|
} LP5562Channel;
|
|
|
|
/* Initialize Driver */
|
|
void lp5562_reset();
|
|
|
|
void lp5562_configure();
|
|
|
|
void lp5562_enable();
|
|
|
|
void lp5562_set_channel_current(LP5562Channel channel, uint8_t value);
|
|
|
|
void lp5562_set_channel_value(LP5562Channel channel, uint8_t value);
|