GrowNode
gn_pwm.c File Reference

Data Structures

struct  gn_pump_hs_data_t
 

Macros

#define TAG   "gn_leaf_pwm"
 
#define GN_PUMP_HS_FADE
 
#define GN_LEAF_PWM_FADE_SPEED   500
 
#define GN_LEAF_PWM_UNKNOWN_CHANNEL   -1
 
#define GN_LEAF_PWM_UNKNOWN_POWER   -1
 
#define GN_LEAF_PWM_UNKNOWN_GPIO   -1
 

Functions

static bool cb_ledc_fade_end_event (const ledc_cb_param_t *param, void *user_arg)
 
void gn_leaf_pwm_task (gn_leaf_handle_t leaf_config)
 
gn_leaf_descriptor_handle_t gn_leaf_pwm_config (gn_leaf_handle_t leaf_config)
 

Variables

static const ledc_mode_t GN_LEAF_PWM_PARAM_LEDC_MODE = LEDC_HIGH_SPEED_MODE
 

Macro Definition Documentation

◆ GN_LEAF_PWM_FADE_SPEED

#define GN_LEAF_PWM_FADE_SPEED   500

define fade speed (msec)

◆ GN_LEAF_PWM_UNKNOWN_CHANNEL

#define GN_LEAF_PWM_UNKNOWN_CHANNEL   -1

◆ GN_LEAF_PWM_UNKNOWN_GPIO

#define GN_LEAF_PWM_UNKNOWN_GPIO   -1

◆ GN_LEAF_PWM_UNKNOWN_POWER

#define GN_LEAF_PWM_UNKNOWN_POWER   -1

◆ GN_PUMP_HS_FADE

#define GN_PUMP_HS_FADE

define if duty has to be faded

◆ TAG

#define TAG   "gn_leaf_pwm"

Function Documentation

◆ cb_ledc_fade_end_event()

static bool cb_ledc_fade_end_event ( const ledc_cb_param_t *  param,
void *  user_arg 
)
static

◆ gn_leaf_pwm_config()

gn_leaf_descriptor_handle_t gn_leaf_pwm_config ( gn_leaf_handle_t  leaf_config)

◆ gn_leaf_pwm_task()

void gn_leaf_pwm_task ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ GN_LEAF_PWM_PARAM_LEDC_MODE

const ledc_mode_t GN_LEAF_PWM_PARAM_LEDC_MODE = LEDC_HIGH_SPEED_MODE
static