libwebsockets
Lightweight C library for HTML5 websockets
lws-pwm.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lws_pwm_map
 
struct  lws_pwm_ops
 

Macros

#define lws_pwm_plat_ops
 

Typedefs

typedef struct lws_pwm_map lws_pwm_map_t
 
typedef struct lws_pwm_ops lws_pwm_ops_t
 

Functions

LWS_VISIBLE LWS_EXTERN int lws_pwm_plat_init (const struct lws_pwm_ops *lo)
 
LWS_VISIBLE LWS_EXTERN void lws_pwm_plat_intensity (const struct lws_pwm_ops *lo, _lws_plat_gpio_t gpio, lws_led_intensity_t inten)
 
LWS_VISIBLE LWS_EXTERN lws_led_intensity_t lws_led_func_linear (lws_led_seq_phase_t n)
 
LWS_VISIBLE LWS_EXTERN lws_led_intensity_t lws_led_func_sine (lws_led_seq_phase_t n)
 

Variables

const lws_led_sequence_def_t lws_pwmseq_sine_endless_slow
 
const lws_led_sequence_def_t lws_pwmseq_sine_endless_fast
 
const lws_led_sequence_def_t lws_pwmseq_linear_wipe
 
const lws_led_sequence_def_t lws_pwmseq_sine_up
 
const lws_led_sequence_def_t lws_pwmseq_sine_down
 
const lws_led_sequence_def_t lws_pwmseq_static_on
 
const lws_led_sequence_def_t lws_pwmseq_static_half
 
const lws_led_sequence_def_t lws_pwmseq_static_off
 

Data Structure Documentation

◆ lws_pwm_map

struct lws_pwm_map

Definition at line 25 of file lws-pwm.h.

+ Collaboration diagram for lws_pwm_map:
Data Fields
_lws_plat_gpio_t gpio
uint8_t index
uint8_t active_level

Macro Definition Documentation

◆ lws_pwm_plat_ops

#define lws_pwm_plat_ops
Value:
.init = lws_pwm_plat_init, \
LWS_VISIBLE LWS_EXTERN int lws_pwm_plat_init(const struct lws_pwm_ops *lo)
LWS_VISIBLE LWS_EXTERN void lws_pwm_plat_intensity(const struct lws_pwm_ops *lo, _lws_plat_gpio_t gpio, lws_led_intensity_t inten)

Definition at line 46 of file lws-pwm.h.

Typedef Documentation

◆ lws_pwm_map_t

typedef struct lws_pwm_map lws_pwm_map_t

◆ lws_pwm_ops_t

typedef struct lws_pwm_ops lws_pwm_ops_t

Function Documentation

◆ lws_pwm_plat_init()

LWS_VISIBLE LWS_EXTERN int lws_pwm_plat_init ( const struct lws_pwm_ops lo)

◆ lws_pwm_plat_intensity()

LWS_VISIBLE LWS_EXTERN void lws_pwm_plat_intensity ( const struct lws_pwm_ops lo,
_lws_plat_gpio_t  gpio,
lws_led_intensity_t  inten 
)

◆ lws_led_func_linear()

◆ lws_led_func_sine()

Variable Documentation

◆ lws_pwmseq_sine_endless_slow

const lws_led_sequence_def_t lws_pwmseq_sine_endless_slow
extern

◆ lws_pwmseq_sine_endless_fast

const lws_led_sequence_def_t lws_pwmseq_sine_endless_fast

Definition at line 62 of file lws-pwm.h.

◆ lws_pwmseq_linear_wipe

const lws_led_sequence_def_t lws_pwmseq_linear_wipe

Definition at line 63 of file lws-pwm.h.

◆ lws_pwmseq_sine_up

const lws_led_sequence_def_t lws_pwmseq_sine_up

Definition at line 64 of file lws-pwm.h.

◆ lws_pwmseq_sine_down

const lws_led_sequence_def_t lws_pwmseq_sine_down

Definition at line 64 of file lws-pwm.h.

◆ lws_pwmseq_static_on

const lws_led_sequence_def_t lws_pwmseq_static_on

Definition at line 65 of file lws-pwm.h.

◆ lws_pwmseq_static_half

const lws_led_sequence_def_t lws_pwmseq_static_half

Definition at line 66 of file lws-pwm.h.

◆ lws_pwmseq_static_off

const lws_led_sequence_def_t lws_pwmseq_static_off

Definition at line 67 of file lws-pwm.h.