Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lp50xx.h File Reference

Go to the source code of this file.

Macros

#define LP50XX_COLORS_PER_LED   3
 
#define LP5009_MAX_LEDS   3
 
#define LP5012_MAX_LEDS   4
 
#define LP5018_MAX_LEDS   6
 
#define LP5024_MAX_LEDS   8
 
#define LP5030_MAX_LEDS   10
 
#define LP5036_MAX_LEDS   12
 
#define LP50XX_BANK_CHAN_BASE   0
 
#define LP50XX_BANK_BRIGHT_CHAN   LP50XX_BANK_CHAN_BASE
 
#define LP50XX_BANK_COL1_CHAN(led)   (LP50XX_BANK_CHAN_BASE + 1)
 
#define LP50XX_BANK_COL2_CHAN(led)   (LP50XX_BANK_CHAN_BASE + 2)
 
#define LP50XX_BANK_COL3_CHAN(led)   (LP50XX_BANK_CHAN_BASE + 3)
 
#define LP50XX_LED_BRIGHT_CHAN_BASE   4
 
#define LP50XX_LED_BRIGHT_CHAN(led)   (LP50XX_LED_BRIGHT_CHAN_BASE + led)
 
#define LP5012_LED_COL_CHAN_BASE   8
 
#define LP5012_LED_COL1_CHAN(led)    (LP5012_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED)
 
#define LP5012_LED_COL2_CHAN(led)    (LP5012_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 1)
 
#define LP5012_LED_COL3_CHAN(led)    (LP5012_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 2)
 
#define LP5024_LED_COL_CHAN_BASE   12
 
#define LP5024_LED_COL1_CHAN(led)    (LP5024_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED)
 
#define LP5024_LED_COL2_CHAN(led)    (LP5024_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 1)
 
#define LP5024_LED_COL3_CHAN(led)    (LP5024_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 2)
 
#define LP5036_LED_COL_CHAN_BASE   16
 
#define LP5036_LED_COL1_CHAN(led)    (LP5036_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED)
 
#define LP5036_LED_COL2_CHAN(led)    (LP5036_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 1)
 
#define LP5036_LED_COL3_CHAN(led)    (LP5036_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 2)
 

Macro Definition Documentation

◆ LP5009_MAX_LEDS

#define LP5009_MAX_LEDS   3

◆ LP5012_LED_COL1_CHAN

#define LP5012_LED_COL1_CHAN (   led)     (LP5012_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED)

◆ LP5012_LED_COL2_CHAN

#define LP5012_LED_COL2_CHAN (   led)     (LP5012_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 1)

◆ LP5012_LED_COL3_CHAN

#define LP5012_LED_COL3_CHAN (   led)     (LP5012_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 2)

◆ LP5012_LED_COL_CHAN_BASE

#define LP5012_LED_COL_CHAN_BASE   8

◆ LP5012_MAX_LEDS

#define LP5012_MAX_LEDS   4

◆ LP5018_MAX_LEDS

#define LP5018_MAX_LEDS   6

◆ LP5024_LED_COL1_CHAN

#define LP5024_LED_COL1_CHAN (   led)     (LP5024_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED)

◆ LP5024_LED_COL2_CHAN

#define LP5024_LED_COL2_CHAN (   led)     (LP5024_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 1)

◆ LP5024_LED_COL3_CHAN

#define LP5024_LED_COL3_CHAN (   led)     (LP5024_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 2)

◆ LP5024_LED_COL_CHAN_BASE

#define LP5024_LED_COL_CHAN_BASE   12

◆ LP5024_MAX_LEDS

#define LP5024_MAX_LEDS   8

◆ LP5030_MAX_LEDS

#define LP5030_MAX_LEDS   10

◆ LP5036_LED_COL1_CHAN

#define LP5036_LED_COL1_CHAN (   led)     (LP5036_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED)

◆ LP5036_LED_COL2_CHAN

#define LP5036_LED_COL2_CHAN (   led)     (LP5036_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 1)

◆ LP5036_LED_COL3_CHAN

#define LP5036_LED_COL3_CHAN (   led)     (LP5036_LED_COL_CHAN_BASE + led * LP50XX_COLORS_PER_LED + 2)

◆ LP5036_LED_COL_CHAN_BASE

#define LP5036_LED_COL_CHAN_BASE   16

◆ LP5036_MAX_LEDS

#define LP5036_MAX_LEDS   12

◆ LP50XX_BANK_BRIGHT_CHAN

#define LP50XX_BANK_BRIGHT_CHAN   LP50XX_BANK_CHAN_BASE

◆ LP50XX_BANK_CHAN_BASE

#define LP50XX_BANK_CHAN_BASE   0

◆ LP50XX_BANK_COL1_CHAN

#define LP50XX_BANK_COL1_CHAN (   led)    (LP50XX_BANK_CHAN_BASE + 1)

◆ LP50XX_BANK_COL2_CHAN

#define LP50XX_BANK_COL2_CHAN (   led)    (LP50XX_BANK_CHAN_BASE + 2)

◆ LP50XX_BANK_COL3_CHAN

#define LP50XX_BANK_COL3_CHAN (   led)    (LP50XX_BANK_CHAN_BASE + 3)

◆ LP50XX_COLORS_PER_LED

#define LP50XX_COLORS_PER_LED   3

◆ LP50XX_LED_BRIGHT_CHAN

#define LP50XX_LED_BRIGHT_CHAN (   led)    (LP50XX_LED_BRIGHT_CHAN_BASE + led)

◆ LP50XX_LED_BRIGHT_CHAN_BASE

#define LP50XX_LED_BRIGHT_CHAN_BASE   4