* Makefile, Scripts: new linter * About: remove ID from IC * Firmware: remove double define for DIVC/DIVR * Scripts: check folder names too. Docker: replace syntax check with make lint. * Reformat Sources and Migrate to new file naming convention * Docker: symlink clang-format-12 to clang-format * Add coding style guide
		
			
				
	
	
		
			29 lines
		
	
	
		
			704 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			704 B
		
	
	
	
		
			C
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <stdint.h>
 | 
						|
#include <stdbool.h>
 | 
						|
#include <furi_hal_i2c.h>
 | 
						|
 | 
						|
/** Channel types */
 | 
						|
typedef enum {
 | 
						|
    LP5562ChannelRed,
 | 
						|
    LP5562ChannelGreen,
 | 
						|
    LP5562ChannelBlue,
 | 
						|
    LP5562ChannelWhite,
 | 
						|
} LP5562Channel;
 | 
						|
 | 
						|
/** Initialize Driver */
 | 
						|
void lp5562_reset(FuriHalI2cBusHandle* handle);
 | 
						|
 | 
						|
/** Configure Driver */
 | 
						|
void lp5562_configure(FuriHalI2cBusHandle* handle);
 | 
						|
 | 
						|
/** Enable Driver */
 | 
						|
void lp5562_enable(FuriHalI2cBusHandle* handle);
 | 
						|
 | 
						|
/** Set channel current */
 | 
						|
void lp5562_set_channel_current(FuriHalI2cBusHandle* handle, LP5562Channel channel, uint8_t value);
 | 
						|
 | 
						|
/** Set channel current */
 | 
						|
void lp5562_set_channel_value(FuriHalI2cBusHandle* handle, LP5562Channel channel, uint8_t value);
 |