29 typedef uint16_t lws_led_intensity_t;
30 typedef uint16_t lws_led_seq_phase_t;
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
45 typedef lws_led_intensity_t (*lws_led_lookup_t)(lws_led_seq_phase_t ph);
48 lws_led_lookup_t func;
49 lws_led_seq_phase_t ledphase_offset;
64 lws_led_seq_phase_t ph;
65 lws_led_seq_phase_t step;
82 lws_led_intensity_t inten);
84 struct lws_led_state * (*create)(
const struct lws_led_ops *led_ops);
85 void (*destroy)(
struct lws_led_state *);
90 _lws_plat_gpio_t gpio;
100 uint8_t active_level;
113 LWS_VISIBLE LWS_EXTERN
struct lws_led_state *
116 LWS_VISIBLE LWS_EXTERN
void
117 lws_led_gpio_destroy(
struct lws_led_state *lcs);
130 LWS_VISIBLE LWS_EXTERN
void
131 lws_led_gpio_intensity(
const struct lws_led_ops *lo,
const char *name,
132 lws_led_intensity_t inten);
134 LWS_VISIBLE LWS_EXTERN
int
135 lws_led_transition(
struct lws_led_state *lcs,
const char *name,
140 #define lws_led_gpio_ops \
142 .create = lws_led_gpio_create, \
143 .destroy = lws_led_gpio_destroy, \
144 .intensity = lws_led_gpio_intensity, \
Definition: lws-gpio.h:52
Definition: lws-led.h:103
lws_led_lookup_t intensity_correction
Definition: lws-led.h:91
const struct lws_pwm_ops * pwm_ops
Definition: lws-led.h:97
void(* intensity)(const struct lws_led_ops *lo, const char *name, lws_led_intensity_t inten)
Definition: lws-led.h:81
lws_led_intensity_t last
Definition: lws-led.h:67