33 #define LWS_LED_MAX_INTENSITY (0xffff)
36 #define LWS_LED_FUNC_PHASE 65536
38 #define LWS_SEQ_LEDPHASE_TOTAL_ENDLESS (-1)
40 #define LWS_LED_SEQUENCER_UPDATE_INTERVAL_MS 33
84 struct lws_led_state * (*create)(
const struct lws_led_ops *led_ops);
140 #define lws_led_gpio_ops \
142 .create = lws_led_gpio_create, \
143 .destroy = lws_led_gpio_destroy, \
144 .intensity = lws_led_gpio_intensity, \
LWS_VISIBLE LWS_EXTERN struct lws_led_state * lws_led_gpio_create(const lws_led_ops_t *led_ops)
LWS_VISIBLE LWS_EXTERN void lws_led_gpio_destroy(struct lws_led_state *lcs)
const lws_led_ops_t led_ops
lws_led_state_ch_t seqs[3]
const lws_led_gpio_map_t * led_map
const lws_led_sequence_def_t * seq
uint16_t lws_led_seq_phase_t
const lws_gpio_ops_t * gpio_ops
lws_led_lookup_t intensity_correction
LWS_VISIBLE LWS_EXTERN void lws_led_gpio_intensity(const struct lws_led_ops *lo, const char *name, lws_led_intensity_t inten)
uint16_t lws_led_intensity_t
struct lws_led_ops lws_led_ops_t
struct lws_led_gpio_map lws_led_gpio_map_t
struct lws_led_gpio_controller lws_led_gpio_controller_t
lws_led_seq_phase_t ledphase_offset
struct lws_led_sequence_def_t lws_led_sequence_def_t
struct lws_led_state_ch lws_led_state_ch_t
LWS_VISIBLE LWS_EXTERN int lws_led_transition(struct lws_led_state *lcs, const char *name, const lws_led_sequence_def_t *next, const lws_led_sequence_def_t *trans)
const struct lws_pwm_ops * pwm_ops
struct lws_led_state_chs lws_led_state_chs_t
lws_led_intensity_t(* lws_led_lookup_t)(lws_led_seq_phase_t ph)
void(* destroy)(struct lws_led_state *)
void(* intensity)(const struct lws_led_ops *lo, const char *name, lws_led_intensity_t inten)