ESP-LiveControl  1.99.1
HTTP server, AJAX API backend and Vue.js web application implementing self-contained, zero-install WiFi remote control of hardware modules attached to the Espressif ESP32 SoC
Public Attributes | List of all members
AuxHwDrvConfig Struct Reference

Hardware configuration for AuxHwDrv. More...

#include <app_config.hpp>

Public Attributes

float temp_1_fan_threshold_hi = 45.0f
 
float temp_1_fan_threshold_lo = 40.0f
 
float temp_2_fan_threshold_hi = 45.0f
 
float temp_2_fan_threshold_lo = 40.0f
 
adc1_channel_t temp_ch_1 = ADC1_CHANNEL_0
 ADC channel for first temperature sensor.
 
adc1_channel_t temp_ch_2 = ADC1_CHANNEL_3
 ADC channel for second temperature sensor.
 
gpio_num_t gpio_fan = GPIO_NUM_2
 
gpio_num_t gpio_overcurrent_reset = GPIO_NUM_16
 
gpio_num_t gpio_relay_ref = GPIO_NUM_18
 
gpio_num_t gpio_relay_dut = GPIO_NUM_19
 
gpio_num_t gpio_delta_sigma_out = GPIO_NUM_21
 
gpio_num_t gpio_drv_supply_en = GPIO_NUM_23
 
gpio_num_t gpio_drv_disable = GPIO_NUM_32
 
gpio_num_t gpio_curr_limit_reference_pwm = GPIO_NUM_17
 
gpio_num_t gpio_delta_sigma_in = GPIO_NUM_22
 
gpio_config_t aux_periph_gpio_output_config
 
gpio_config_t aux_periph_gpio_input_config
 
ledc_timer_config_t pwm_timer_config
 
ledc_channel_config_t curr_lim_pwm_ch_config
 
ledc_channel_config_t delta_sigma_out_pwm_ch_config
 
uint32_t oc_reset_pulse_length_ms = 20
 
float curr_limit_pwm_scale
 
uint32_t curr_limit_pwm_offset = 0
 

Detailed Description

Hardware configuration for AuxHwDrv.

Member Data Documentation

◆ aux_periph_gpio_input_config

gpio_config_t AuxHwDrvConfig::aux_periph_gpio_input_config
Initial value:
{
.pin_bit_mask = ((1ULL<<gpio_delta_sigma_in)
),
.mode = GPIO_MODE_INPUT,
.pull_up_en = GPIO_PULLUP_DISABLE,
.pull_down_en = GPIO_PULLDOWN_ENABLE,
.intr_type = GPIO_INTR_DISABLE
}

◆ aux_periph_gpio_output_config

gpio_config_t AuxHwDrvConfig::aux_periph_gpio_output_config
Initial value:
{
.pin_bit_mask = ((1ULL<<gpio_fan)
|(1ULL<<gpio_overcurrent_reset)
|(1ULL<<gpio_relay_ref)
|(1ULL<<gpio_relay_dut)
|(1ULL<<gpio_delta_sigma_out)
|(1ULL<<gpio_drv_supply_en)
|(1ULL<<gpio_drv_disable)
),
.mode = GPIO_MODE_OUTPUT,
.pull_up_en = GPIO_PULLUP_DISABLE,
.pull_down_en = GPIO_PULLDOWN_DISABLE,
.intr_type = GPIO_INTR_DISABLE
}

◆ curr_lim_pwm_ch_config

ledc_channel_config_t AuxHwDrvConfig::curr_lim_pwm_ch_config
Initial value:
{
.gpio_num = gpio_curr_limit_reference_pwm,
.speed_mode = LEDC_HIGH_SPEED_MODE,
.channel = LEDC_CHANNEL_0,
.intr_type = LEDC_INTR_DISABLE,
.timer_sel = LEDC_TIMER_0,
.duty = 0,
.hpoint = 0
}

◆ curr_limit_pwm_scale

float AuxHwDrvConfig::curr_limit_pwm_scale
Initial value:
= 1.0f/100.0f * (float)(
1 << pwm_timer_config.duty_resolution)

◆ delta_sigma_out_pwm_ch_config

ledc_channel_config_t AuxHwDrvConfig::delta_sigma_out_pwm_ch_config
Initial value:
{
.gpio_num = gpio_delta_sigma_out,
.speed_mode = LEDC_HIGH_SPEED_MODE,
.channel = LEDC_CHANNEL_0,
.intr_type = LEDC_INTR_DISABLE,
.timer_sel = LEDC_TIMER_0,
.duty = 0,
.hpoint = 0
}

◆ pwm_timer_config

ledc_timer_config_t AuxHwDrvConfig::pwm_timer_config
Initial value:
{
.speed_mode = LEDC_HIGH_SPEED_MODE,
.duty_resolution = LEDC_TIMER_12_BIT,
.timer_num = LEDC_TIMER_0,
.freq_hz = 19500,
.clk_cfg = LEDC_USE_APB_CLK
}

The documentation for this struct was generated from the following file: