39 #ifndef __SX150X_LED_DRV_REGS_H__
40 #define __SX150X_LED_DRV_REGS_H__
60 uint8_t off_intensity;
61 uint32_t fade_in_time_ms;
62 uint32_t fade_out_time_ms;
63 }drv_ext_light_sequence_t;
72 uint8_t off_intensity;
74 uint8_t fade_out_time;
77 #define SX150X_LED_DRIVER_SEQUENCE_ON_TIME_DEFAULT (0)
78 #define SX150X_LED_DRIVER_SEQUENCE_ON_INTENSITY_DEFAULT (0xFF)
79 #define SX150X_LED_DRIVER_SEQUENCE_OFF_TIME_DEFAULT (0)
80 #define SX150X_LED_DRIVER_SEQUENCE_OFF_INTENSITY_DEFAULT (0)
81 #define SX150X_LED_DRIVER_SEQUENCE_FADE_IN_TIME_DEFAULT (0)
82 #define SX150X_LED_DRIVER_SEQUENCE_FADE_OUT_TIME_DEFAULT (0)
84 #define SEQUENCE_DEFAULT_VAL (drv_ext_light_sequence_t) \
85 { .on_time_ms = SX150X_LED_DRIVER_SEQUENCE_ON_TIME_DEFAULT, \
86 .on_intensity = SX150X_LED_DRIVER_SEQUENCE_ON_INTENSITY_DEFAULT, \
87 .off_time_ms = SX150X_LED_DRIVER_SEQUENCE_OFF_TIME_DEFAULT, \
88 .off_intensity = SX150X_LED_DRIVER_SEQUENCE_OFF_INTENSITY_DEFAULT, \
89 .fade_in_time_ms = SX150X_LED_DRIVER_SEQUENCE_FADE_IN_TIME_DEFAULT, \
90 .fade_out_time_ms = SX150X_LED_DRIVER_SEQUENCE_FADE_OUT_TIME_DEFAULT, \
93 #define SEQUENCE_REG_DEFAULT_VAL (sx150x_led_drv_regs_vals_t) \
94 { .on_time = SX150X_LED_DRIVER_SEQUENCE_ON_TIME_DEFAULT, \
95 .on_intensity = SX150X_LED_DRIVER_SEQUENCE_ON_INTENSITY_DEFAULT, \
96 .off_time = SX150X_LED_DRIVER_SEQUENCE_OFF_TIME_DEFAULT, \
97 .off_intensity = SX150X_LED_DRIVER_SEQUENCE_OFF_INTENSITY_DEFAULT, \
98 .fade_in_time = SX150X_LED_DRIVER_SEQUENCE_FADE_IN_TIME_DEFAULT, \
99 .fade_out_time = SX150X_LED_DRIVER_SEQUENCE_FADE_OUT_TIME_DEFAULT, \