Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
led-lm3530.h File Reference

Go to the source code of this file.

Data Structures

struct  lm3530_pwm_data
 
struct  lm3530_platform_data
 

Macros

#define LM3530_FS_CURR_5mA   (0) /* Full Scale Current */
 
#define LM3530_FS_CURR_8mA   (1)
 
#define LM3530_FS_CURR_12mA   (2)
 
#define LM3530_FS_CURR_15mA   (3)
 
#define LM3530_FS_CURR_19mA   (4)
 
#define LM3530_FS_CURR_22mA   (5)
 
#define LM3530_FS_CURR_26mA   (6)
 
#define LM3530_FS_CURR_29mA   (7)
 
#define LM3530_ALS_AVRG_TIME_32ms   (0) /* ALS Averaging Time */
 
#define LM3530_ALS_AVRG_TIME_64ms   (1)
 
#define LM3530_ALS_AVRG_TIME_128ms   (2)
 
#define LM3530_ALS_AVRG_TIME_256ms   (3)
 
#define LM3530_ALS_AVRG_TIME_512ms   (4)
 
#define LM3530_ALS_AVRG_TIME_1024ms   (5)
 
#define LM3530_ALS_AVRG_TIME_2048ms   (6)
 
#define LM3530_ALS_AVRG_TIME_4096ms   (7)
 
#define LM3530_RAMP_TIME_1ms   (0) /* Brigtness Ramp Time */
 
#define LM3530_RAMP_TIME_130ms   (1) /* Max to 0 and vice versa */
 
#define LM3530_RAMP_TIME_260ms   (2)
 
#define LM3530_RAMP_TIME_520ms   (3)
 
#define LM3530_RAMP_TIME_1s   (4)
 
#define LM3530_RAMP_TIME_2s   (5)
 
#define LM3530_RAMP_TIME_4s   (6)
 
#define LM3530_RAMP_TIME_8s   (7)
 
#define LM3530_ALS_IMPD_Z   (0x00) /* ALS Impedance */
 
#define LM3530_ALS_IMPD_13_53kOhm   (0x01)
 
#define LM3530_ALS_IMPD_9_01kOhm   (0x02)
 
#define LM3530_ALS_IMPD_5_41kOhm   (0x03)
 
#define LM3530_ALS_IMPD_2_27kOhm   (0x04)
 
#define LM3530_ALS_IMPD_1_94kOhm   (0x05)
 
#define LM3530_ALS_IMPD_1_81kOhm   (0x06)
 
#define LM3530_ALS_IMPD_1_6kOhm   (0x07)
 
#define LM3530_ALS_IMPD_1_138kOhm   (0x08)
 
#define LM3530_ALS_IMPD_1_05kOhm   (0x09)
 
#define LM3530_ALS_IMPD_1_011kOhm   (0x0A)
 
#define LM3530_ALS_IMPD_941Ohm   (0x0B)
 
#define LM3530_ALS_IMPD_759Ohm   (0x0C)
 
#define LM3530_ALS_IMPD_719Ohm   (0x0D)
 
#define LM3530_ALS_IMPD_700Ohm   (0x0E)
 
#define LM3530_ALS_IMPD_667Ohm   (0x0F)
 

Enumerations

enum  lm3530_mode { LM3530_BL_MODE_MANUAL = 0, LM3530_BL_MODE_ALS, LM3530_BL_MODE_PWM }
 
enum  lm3530_als_mode { LM3530_INPUT_AVRG = 0, LM3530_INPUT_ALS1, LM3530_INPUT_ALS2, LM3530_INPUT_CEIL }
 

Macro Definition Documentation

#define LM3530_ALS_AVRG_TIME_1024ms   (5)

Definition at line 30 of file led-lm3530.h.

#define LM3530_ALS_AVRG_TIME_128ms   (2)

Definition at line 27 of file led-lm3530.h.

#define LM3530_ALS_AVRG_TIME_2048ms   (6)

Definition at line 31 of file led-lm3530.h.

#define LM3530_ALS_AVRG_TIME_256ms   (3)

Definition at line 28 of file led-lm3530.h.

#define LM3530_ALS_AVRG_TIME_32ms   (0) /* ALS Averaging Time */

Definition at line 25 of file led-lm3530.h.

#define LM3530_ALS_AVRG_TIME_4096ms   (7)

Definition at line 32 of file led-lm3530.h.

#define LM3530_ALS_AVRG_TIME_512ms   (4)

Definition at line 29 of file led-lm3530.h.

#define LM3530_ALS_AVRG_TIME_64ms   (1)

Definition at line 26 of file led-lm3530.h.

#define LM3530_ALS_IMPD_13_53kOhm   (0x01)

Definition at line 45 of file led-lm3530.h.

#define LM3530_ALS_IMPD_1_011kOhm   (0x0A)

Definition at line 54 of file led-lm3530.h.

#define LM3530_ALS_IMPD_1_05kOhm   (0x09)

Definition at line 53 of file led-lm3530.h.

#define LM3530_ALS_IMPD_1_138kOhm   (0x08)

Definition at line 52 of file led-lm3530.h.

#define LM3530_ALS_IMPD_1_6kOhm   (0x07)

Definition at line 51 of file led-lm3530.h.

#define LM3530_ALS_IMPD_1_81kOhm   (0x06)

Definition at line 50 of file led-lm3530.h.

#define LM3530_ALS_IMPD_1_94kOhm   (0x05)

Definition at line 49 of file led-lm3530.h.

#define LM3530_ALS_IMPD_2_27kOhm   (0x04)

Definition at line 48 of file led-lm3530.h.

#define LM3530_ALS_IMPD_5_41kOhm   (0x03)

Definition at line 47 of file led-lm3530.h.

#define LM3530_ALS_IMPD_667Ohm   (0x0F)

Definition at line 59 of file led-lm3530.h.

#define LM3530_ALS_IMPD_700Ohm   (0x0E)

Definition at line 58 of file led-lm3530.h.

#define LM3530_ALS_IMPD_719Ohm   (0x0D)

Definition at line 57 of file led-lm3530.h.

#define LM3530_ALS_IMPD_759Ohm   (0x0C)

Definition at line 56 of file led-lm3530.h.

#define LM3530_ALS_IMPD_941Ohm   (0x0B)

Definition at line 55 of file led-lm3530.h.

#define LM3530_ALS_IMPD_9_01kOhm   (0x02)

Definition at line 46 of file led-lm3530.h.

#define LM3530_ALS_IMPD_Z   (0x00) /* ALS Impedance */

Definition at line 44 of file led-lm3530.h.

#define LM3530_FS_CURR_12mA   (2)

Definition at line 18 of file led-lm3530.h.

#define LM3530_FS_CURR_15mA   (3)

Definition at line 19 of file led-lm3530.h.

#define LM3530_FS_CURR_19mA   (4)

Definition at line 20 of file led-lm3530.h.

#define LM3530_FS_CURR_22mA   (5)

Definition at line 21 of file led-lm3530.h.

#define LM3530_FS_CURR_26mA   (6)

Definition at line 22 of file led-lm3530.h.

#define LM3530_FS_CURR_29mA   (7)

Definition at line 23 of file led-lm3530.h.

#define LM3530_FS_CURR_5mA   (0) /* Full Scale Current */

Definition at line 16 of file led-lm3530.h.

#define LM3530_FS_CURR_8mA   (1)

Definition at line 17 of file led-lm3530.h.

#define LM3530_RAMP_TIME_130ms   (1) /* Max to 0 and vice versa */

Definition at line 35 of file led-lm3530.h.

#define LM3530_RAMP_TIME_1ms   (0) /* Brigtness Ramp Time */

Definition at line 34 of file led-lm3530.h.

#define LM3530_RAMP_TIME_1s   (4)

Definition at line 38 of file led-lm3530.h.

#define LM3530_RAMP_TIME_260ms   (2)

Definition at line 36 of file led-lm3530.h.

#define LM3530_RAMP_TIME_2s   (5)

Definition at line 39 of file led-lm3530.h.

#define LM3530_RAMP_TIME_4s   (6)

Definition at line 40 of file led-lm3530.h.

#define LM3530_RAMP_TIME_520ms   (3)

Definition at line 37 of file led-lm3530.h.

#define LM3530_RAMP_TIME_8s   (7)

Definition at line 41 of file led-lm3530.h.

Enumeration Type Documentation

Enumerator:
LM3530_INPUT_AVRG 
LM3530_INPUT_ALS1 
LM3530_INPUT_ALS2 
LM3530_INPUT_CEIL 

Definition at line 68 of file led-lm3530.h.

Enumerator:
LM3530_BL_MODE_MANUAL 
LM3530_BL_MODE_ALS 
LM3530_BL_MODE_PWM 

Definition at line 61 of file led-lm3530.h.