/* ALS input select */ enum lm3530_als_mode {
LM3530_INPUT_AVRG = 0, /* ALS1 and ALS2 input average */
LM3530_INPUT_ALS1, /* ALS1 Input */
LM3530_INPUT_ALS2, /* ALS2 Input */
LM3530_INPUT_CEIL, /* Max of ALS1 and ALS2 */
};
/* PWM Platform Specific Data */ struct lm3530_pwm_data { void (*pwm_set_intensity) (int brightness, int max_brightness); int (*pwm_get_intensity) (int max_brightness);
};
/** * struct lm3530_platform_data * @mode: mode of operation i.e. Manual, ALS or PWM * @als_input_mode: select source of ALS input - ALS1/2 or average * @max_current: full scale LED current * @pwm_pol_hi: PWM input polarity - active high/active low * @als_avrg_time: ALS input averaging time * @brt_ramp_law: brightness mapping mode - exponential/linear * @brt_ramp_fall: rate of fall of led current * @brt_ramp_rise: rate of rise of led current * @als1_resistor_sel: internal resistance from ALS1 input to ground * @als2_resistor_sel: internal resistance from ALS2 input to ground * @als_vmin: als input voltage calibrated for max brightness in mV * @als_vmax: als input voltage calibrated for min brightness in mV * @brt_val: brightness value (0-127) * @pwm_data: PWM control functions (only valid when the mode is PWM)
*/ struct lm3530_platform_data { enum lm3530_mode mode; enum lm3530_als_mode als_input_mode;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.