Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 272) sorted by relevance

1234567891011

/hal_espressif-2.7.6/components/hal/esp32c3/include/hal/
Dgdma_ll.h46 static inline void gdma_ll_enable_m2m_mode(gdma_dev_t *dev, uint32_t channel, bool enable) in gdma_ll_enable_m2m_mode() argument
48 dev->channel[channel].in.in_conf0.mem_trans_en = enable; in gdma_ll_enable_m2m_mode()
51 dev->channel[channel].in.in_peri_sel.sel = 0; in gdma_ll_enable_m2m_mode()
52 dev->channel[channel].out.out_peri_sel.sel = 0; in gdma_ll_enable_m2m_mode()
59 static inline uint32_t gdma_ll_get_interrupt_status(gdma_dev_t *dev, uint32_t channel) in gdma_ll_get_interrupt_status() argument
61 return dev->intr[channel].st.val; in gdma_ll_get_interrupt_status()
67 static inline void gdma_ll_enable_interrupt(gdma_dev_t *dev, uint32_t channel, uint32_t mask, bool … in gdma_ll_enable_interrupt() argument
70 dev->intr[channel].ena.val |= mask; in gdma_ll_enable_interrupt()
72 dev->intr[channel].ena.val &= ~mask; in gdma_ll_enable_interrupt()
79 static inline void gdma_ll_clear_interrupt_status(gdma_dev_t *dev, uint32_t channel, uint32_t mask) in gdma_ll_clear_interrupt_status() argument
[all …]
Drmt_ll.h56 static inline void rmt_ll_set_counter_clock_src(rmt_dev_t *dev, uint32_t channel, uint8_t src, uint… in rmt_ll_set_counter_clock_src() argument
67 static inline uint32_t rmt_ll_get_counter_clock_src(rmt_dev_t *dev, uint32_t channel) in rmt_ll_get_counter_clock_src() argument
72 static inline void rmt_ll_tx_reset_counter_clock_div(rmt_dev_t *dev, uint32_t channel) in rmt_ll_tx_reset_counter_clock_div() argument
74 dev->ref_cnt_rst.val |= (1 << channel); in rmt_ll_tx_reset_counter_clock_div()
75 dev->ref_cnt_rst.val &= ~(1 << channel); in rmt_ll_tx_reset_counter_clock_div()
78 static inline void rmt_ll_rx_reset_counter_clock_div(rmt_dev_t *dev, uint32_t channel) in rmt_ll_rx_reset_counter_clock_div() argument
80 dev->ref_cnt_rst.val |= (1 << (channel + 2)); in rmt_ll_rx_reset_counter_clock_div()
81 dev->ref_cnt_rst.val &= ~(1 << (channel + 2)); in rmt_ll_rx_reset_counter_clock_div()
84 static inline void rmt_ll_tx_reset_pointer(rmt_dev_t *dev, uint32_t channel) in rmt_ll_tx_reset_pointer() argument
86 dev->tx_conf[channel].mem_rd_rst = 1; in rmt_ll_tx_reset_pointer()
[all …]
/hal_espressif-2.7.6/components/hal/esp32s3/include/hal/
Dgdma_ll.h51 static inline void gdma_ll_enable_m2m_mode(gdma_dev_t *dev, uint32_t channel, bool enable) in gdma_ll_enable_m2m_mode() argument
53 dev->conf0[channel].mem_trans_en = enable; in gdma_ll_enable_m2m_mode()
56 dev->peri_sel[channel].peri_in_sel = 0; in gdma_ll_enable_m2m_mode()
57 dev->peri_sel[channel].peri_out_sel = 0; in gdma_ll_enable_m2m_mode()
64 static inline uint32_t gdma_ll_get_interrupt_status(gdma_dev_t *dev, uint32_t channel) in gdma_ll_get_interrupt_status() argument
66 return dev->int_st[channel].val; in gdma_ll_get_interrupt_status()
72 static inline void gdma_ll_enable_interrupt(gdma_dev_t *dev, uint32_t channel, uint32_t mask, bool … in gdma_ll_enable_interrupt() argument
75 dev->int_ena[channel].val |= mask; in gdma_ll_enable_interrupt()
77 dev->int_ena[channel].val &= ~mask; in gdma_ll_enable_interrupt()
84 static inline void gdma_ll_clear_interrupt_status(gdma_dev_t *dev, uint32_t channel, uint32_t mask) in gdma_ll_clear_interrupt_status() argument
[all …]
Drmt_ll.h56 static inline void rmt_ll_set_counter_clock_src(rmt_dev_t *dev, uint32_t channel, uint8_t src, uint… in rmt_ll_set_counter_clock_src() argument
67 static inline uint32_t rmt_ll_get_counter_clock_src(rmt_dev_t *dev, uint32_t channel) in rmt_ll_get_counter_clock_src() argument
72 static inline void rmt_ll_tx_reset_counter_clock_div(rmt_dev_t *dev, uint32_t channel) in rmt_ll_tx_reset_counter_clock_div() argument
74 dev->ref_cnt_rst.val |= (1 << channel); in rmt_ll_tx_reset_counter_clock_div()
75 dev->ref_cnt_rst.val &= ~(1 << channel); in rmt_ll_tx_reset_counter_clock_div()
78 static inline void rmt_ll_rx_reset_counter_clock_div(rmt_dev_t *dev, uint32_t channel) in rmt_ll_rx_reset_counter_clock_div() argument
80 dev->ref_cnt_rst.val |= (1 << (channel + 4)); in rmt_ll_rx_reset_counter_clock_div()
81 dev->ref_cnt_rst.val &= ~(1 << (channel + 4)); in rmt_ll_rx_reset_counter_clock_div()
84 static inline void rmt_ll_tx_reset_pointer(rmt_dev_t *dev, uint32_t channel) in rmt_ll_tx_reset_pointer() argument
86 dev->tx_conf[channel].mem_rd_rst = 1; in rmt_ll_tx_reset_pointer()
[all …]
Ddac_ll.h37 static inline void dac_ll_power_on(dac_channel_t channel) in dac_ll_power_on() argument
39 RTCIO.pad_dac[channel].dac_xpd_force = 1; in dac_ll_power_on()
40 RTCIO.pad_dac[channel].xpd_dac = 1; in dac_ll_power_on()
48 static inline void dac_ll_power_down(dac_channel_t channel) in dac_ll_power_down() argument
50 RTCIO.pad_dac[channel].dac_xpd_force = 0; in dac_ll_power_down()
51 RTCIO.pad_dac[channel].xpd_dac = 0; in dac_ll_power_down()
61 static inline void dac_ll_update_output_value(dac_channel_t channel, uint8_t value) in dac_ll_update_output_value() argument
63 if (channel == DAC_CHANNEL_1) { in dac_ll_update_output_value()
65 RTCIO.pad_dac[channel].dac = value; in dac_ll_update_output_value()
66 } else if (channel == DAC_CHANNEL_2) { in dac_ll_update_output_value()
[all …]
Dmcpwm_ll.h253 mcpwm->channel[op].cmpr_cfg.a_upmethod = BIT(0); in mcpwm_ll_operator_set_compare_upmethod()
254 mcpwm->channel[op].cmpr_cfg.b_upmethod = BIT(0); in mcpwm_ll_operator_set_compare_upmethod()
267 return (mcpwm->channel[op].cmpr_value[cmp_n].cmpr_val); in mcpwm_ll_operator_get_compare()
280 mcpwm->channel[op].cmpr_value[cmp_n].cmpr_val = compare; in mcpwm_ll_operator_set_compare()
299 mcpwm->channel[op].generator[gen].utez = action; in mcpwm_ll_gen_set_zero_action()
300 mcpwm->channel[op].generator[gen].dtez = action; in mcpwm_ll_gen_set_zero_action()
313 mcpwm->channel[op].generator[gen].utep = action; in mcpwm_ll_gen_set_period_action()
314 mcpwm->channel[op].generator[gen].dtep = action; in mcpwm_ll_gen_set_period_action()
331 mcpwm->channel[op].generator[gen].utea = up_action; in mcpwm_ll_gen_set_cmp_action()
332 mcpwm->channel[op].generator[gen].dtea = down_action; in mcpwm_ll_gen_set_cmp_action()
[all …]
/hal_espressif-2.7.6/components/hal/esp32s2/include/hal/
Drmt_ll.h55 static inline void rmt_ll_set_counter_clock_src(rmt_dev_t *dev, uint32_t channel, uint8_t src, uint… in rmt_ll_set_counter_clock_src() argument
57 dev->conf_ch[channel].conf1.ref_always_on = src; in rmt_ll_set_counter_clock_src()
60 static inline uint32_t rmt_ll_get_counter_clock_src(rmt_dev_t *dev, uint32_t channel) in rmt_ll_get_counter_clock_src() argument
62 return dev->conf_ch[channel].conf1.ref_always_on; in rmt_ll_get_counter_clock_src()
65 static inline void rmt_ll_tx_reset_counter_clock_div(rmt_dev_t *dev, uint32_t channel) in rmt_ll_tx_reset_counter_clock_div() argument
67 dev->ref_cnt_rst.val |= (1 << channel); in rmt_ll_tx_reset_counter_clock_div()
68 dev->ref_cnt_rst.val &= ~(1 << channel); in rmt_ll_tx_reset_counter_clock_div()
71 static inline void rmt_ll_rx_reset_counter_clock_div(rmt_dev_t *dev, uint32_t channel) in rmt_ll_rx_reset_counter_clock_div() argument
73 dev->ref_cnt_rst.val |= (1 << channel); in rmt_ll_rx_reset_counter_clock_div()
74 dev->ref_cnt_rst.val &= ~(1 << channel); in rmt_ll_rx_reset_counter_clock_div()
[all …]
Ddac_ll.h42 static inline void dac_ll_power_on(dac_channel_t channel) in dac_ll_power_on() argument
45 RTCIO.pad_dac[channel].dac_xpd_force = 1; in dac_ll_power_on()
46 RTCIO.pad_dac[channel].xpd_dac = 1; in dac_ll_power_on()
54 static inline void dac_ll_power_down(dac_channel_t channel) in dac_ll_power_down() argument
56 RTCIO.pad_dac[channel].dac_xpd_force = 0; in dac_ll_power_down()
57 RTCIO.pad_dac[channel].xpd_dac = 0; in dac_ll_power_down()
73 static inline void dac_ll_update_output_value(dac_channel_t channel, uint8_t value) in dac_ll_update_output_value() argument
75 if (channel == DAC_CHANNEL_1) { in dac_ll_update_output_value()
77 RTCIO.pad_dac[channel].dac = value; in dac_ll_update_output_value()
78 } else if (channel == DAC_CHANNEL_2) { in dac_ll_update_output_value()
[all …]
Ddedic_gpio_ll.h47 static inline void dedic_gpio_ll_set_channel(dedic_dev_t *dev, uint32_t channel) in dedic_gpio_ll_set_channel() argument
49 dev->gpio_out_idv.val = 1 << (2 * channel); in dedic_gpio_ll_set_channel()
52 static inline void dedic_gpio_ll_clear_channel(dedic_dev_t *dev, uint32_t channel) in dedic_gpio_ll_clear_channel() argument
54 dev->gpio_out_idv.val = 2 << (2 * channel); in dedic_gpio_ll_clear_channel()
57 static inline void dedic_gpio_ll_toggle_channel(dedic_dev_t *dev, uint32_t channel) in dedic_gpio_ll_toggle_channel() argument
59 dev->gpio_out_idv.val = 3 << (2 * channel); in dedic_gpio_ll_toggle_channel()
72 static inline void dedic_gpio_ll_set_input_delay(dedic_dev_t *dev, uint32_t channel, uint32_t delay… in dedic_gpio_ll_set_input_delay() argument
74 dev->gpio_in_dly.val &= ~(3 << (2 * channel)); in dedic_gpio_ll_set_input_delay()
75 dev->gpio_in_dly.val |= (delay_cpu_clks & 0x03) << (2 * channel); in dedic_gpio_ll_set_input_delay()
78 static inline uint32_t dedic_gpio_ll_get_input_delay(dedic_dev_t *dev, uint32_t channel) in dedic_gpio_ll_get_input_delay() argument
[all …]
/hal_espressif-2.7.6/components/driver/
Drmt.c67 #define RMT_IS_RX_CHANNEL(channel) ((channel) >= RMT_RX_CHANNEL_ENCODING_START) argument
68 #define RMT_IS_TX_CHANNEL(channel) ((channel) <= RMT_TX_CHANNEL_ENCODING_END) argument
88 rmt_channel_t channel; member
152 esp_err_t rmt_set_clk_div(rmt_channel_t channel, uint8_t div_cnt) in rmt_set_clk_div() argument
154 RMT_CHECK(channel < RMT_CHANNEL_MAX, RMT_CHANNEL_ERROR_STR, ESP_ERR_INVALID_ARG); in rmt_set_clk_div()
156 if (RMT_IS_RX_CHANNEL(channel)) { in rmt_set_clk_div()
157 … rmt_ll_rx_set_counter_clock_div(rmt_contex.hal.regs, RMT_DECODE_RX_CHANNEL(channel), div_cnt); in rmt_set_clk_div()
159 rmt_ll_tx_set_counter_clock_div(rmt_contex.hal.regs, channel, div_cnt); in rmt_set_clk_div()
165 esp_err_t rmt_get_clk_div(rmt_channel_t channel, uint8_t *div_cnt) in rmt_get_clk_div() argument
167 RMT_CHECK(channel < RMT_CHANNEL_MAX, RMT_CHANNEL_ERROR_STR, ESP_ERR_INVALID_ARG); in rmt_get_clk_div()
[all …]
Dledc.c89 static IRAM_ATTR void ledc_ls_channel_update(ledc_mode_t speed_mode, ledc_channel_t channel) in ledc_ls_channel_update() argument
92 ledc_hal_ls_channel_update(&(p_ledc_obj[speed_mode]->ledc_hal), channel); in ledc_ls_channel_update()
125 static esp_err_t ledc_enable_intr_type(ledc_mode_t speed_mode, ledc_channel_t channel, ledc_intr_ty… in ledc_enable_intr_type() argument
129 ledc_hal_set_fade_end_intr(&(p_ledc_obj[speed_mode]->ledc_hal), channel, true); in ledc_enable_intr_type()
131 ledc_hal_set_fade_end_intr(&(p_ledc_obj[speed_mode]->ledc_hal), channel, false); in ledc_enable_intr_type()
137 static void _ledc_fade_hw_acquire(ledc_mode_t mode, ledc_channel_t channel) in _ledc_fade_hw_acquire() argument
139 ledc_fade_t* fade = s_ledc_fade_rec[mode][channel]; in _ledc_fade_hw_acquire()
142 ledc_enable_intr_type(mode, channel, LEDC_INTR_DISABLE); in _ledc_fade_hw_acquire()
146 static void _ledc_fade_hw_release(ledc_mode_t mode, ledc_channel_t channel) in _ledc_fade_hw_release() argument
148 ledc_fade_t* fade = s_ledc_fade_rec[mode][channel]; in _ledc_fade_hw_release()
[all …]
Ddac_common.c41 esp_err_t dac_pad_get_io_num(dac_channel_t channel, gpio_num_t *gpio_num) in dac_pad_get_io_num() argument
43 DAC_CHECK(channel < DAC_CHANNEL_MAX, "DAC channel error", ESP_ERR_INVALID_ARG); in dac_pad_get_io_num()
45 *gpio_num = (gpio_num_t)dac_periph_signal.dac_channel_io_num[channel]; in dac_pad_get_io_num()
50 static esp_err_t dac_rtc_pad_init(dac_channel_t channel) in dac_rtc_pad_init() argument
52 DAC_CHECK(channel < DAC_CHANNEL_MAX, "DAC channel error", ESP_ERR_INVALID_ARG); in dac_rtc_pad_init()
55 dac_pad_get_io_num(channel, &gpio_num); in dac_rtc_pad_init()
64 esp_err_t dac_output_enable(dac_channel_t channel) in dac_output_enable() argument
66 DAC_CHECK(channel < DAC_CHANNEL_MAX, "DAC channel error", ESP_ERR_INVALID_ARG); in dac_output_enable()
68 dac_rtc_pad_init(channel); in dac_output_enable()
70 dac_hal_power_on(channel); in dac_output_enable()
[all …]
Dsigmadelta.c41 … _sigmadelta_set_duty(sigmadelta_port_t sigmadelta_port, sigmadelta_channel_t channel, int8_t duty) in _sigmadelta_set_duty() argument
45 sigmadelta_hal_set_duty(&(p_sigmadelta_obj[sigmadelta_port]->hal), channel, duty); in _sigmadelta_set_duty()
49 …lta_set_prescale(sigmadelta_port_t sigmadelta_port, sigmadelta_channel_t channel, uint8_t prescale) in _sigmadelta_set_prescale() argument
53 sigmadelta_hal_set_prescale(&(p_sigmadelta_obj[sigmadelta_port]->hal), channel, prescale); in _sigmadelta_set_prescale()
57 …gmadelta_set_pin(sigmadelta_port_t sigmadelta_port, sigmadelta_channel_t channel, gpio_num_t gpio_… in _sigmadelta_set_pin() argument
63 …esp_rom_gpio_connect_out_signal(gpio_num, sigma_delta_periph_signals.channels[channel].sd_sig, 0, … in _sigmadelta_set_pin()
71 _sigmadelta_set_duty(sigmadelta_port, config->channel, config->sigmadelta_duty); in _sigmadelta_config()
72 _sigmadelta_set_prescale(sigmadelta_port, config->channel, config->sigmadelta_prescale); in _sigmadelta_config()
73 _sigmadelta_set_pin(sigmadelta_port, config->channel, config->sigmadelta_gpio); in _sigmadelta_config()
104 esp_err_t sigmadelta_set_duty(sigmadelta_channel_t channel, int8_t duty) in sigmadelta_set_duty() argument
[all …]
Dadc_common.c56 #define ADC_GET_IO_NUM(periph, channel) (adc_channel_io_map[periph][channel]) argument
58 #define ADC_CHANNEL_CHECK(periph, channel) ADC_CHECK(channel < SOC_ADC_CHANNEL_NUM(periph), "ADC"#p… argument
143 …extern uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t … in get_calibration_offset()
209 esp_err_t adc1_pad_get_io_num(adc1_channel_t channel, gpio_num_t *gpio_num) in adc1_pad_get_io_num() argument
211 ADC_CHANNEL_CHECK(ADC_NUM_1, channel); in adc1_pad_get_io_num()
213 int io = ADC_GET_IO_NUM(ADC_NUM_1, channel); in adc1_pad_get_io_num()
223 esp_err_t adc2_pad_get_io_num(adc2_channel_t channel, gpio_num_t *gpio_num) in adc2_pad_get_io_num() argument
225 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc2_pad_get_io_num()
227 int io = ADC_GET_IO_NUM(ADC_NUM_2, channel); in adc2_pad_get_io_num()
266 esp_err_t adc_gpio_init(adc_unit_t adc_unit, adc_channel_t channel) in adc_gpio_init() argument
[all …]
/hal_espressif-2.7.6/components/hal/esp32/include/hal/
Drmt_ll.h50 static inline void rmt_ll_set_counter_clock_src(rmt_dev_t *dev, uint32_t channel, uint8_t src, uint… in rmt_ll_set_counter_clock_src() argument
52 dev->conf_ch[channel].conf1.ref_always_on = src; in rmt_ll_set_counter_clock_src()
55 static inline uint32_t rmt_ll_get_counter_clock_src(rmt_dev_t *dev, uint32_t channel) in rmt_ll_get_counter_clock_src() argument
57 return dev->conf_ch[channel].conf1.ref_always_on; in rmt_ll_get_counter_clock_src()
60 static inline void rmt_ll_tx_reset_counter_clock_div(rmt_dev_t *dev, uint32_t channel) in rmt_ll_tx_reset_counter_clock_div() argument
62 dev->conf_ch[channel].conf1.ref_cnt_rst = 1; in rmt_ll_tx_reset_counter_clock_div()
63 dev->conf_ch[channel].conf1.ref_cnt_rst = 0; in rmt_ll_tx_reset_counter_clock_div()
66 static inline void rmt_ll_rx_reset_counter_clock_div(rmt_dev_t *dev, uint32_t channel) in rmt_ll_rx_reset_counter_clock_div() argument
68 dev->conf_ch[channel].conf1.ref_cnt_rst = 1; in rmt_ll_rx_reset_counter_clock_div()
69 dev->conf_ch[channel].conf1.ref_cnt_rst = 0; in rmt_ll_rx_reset_counter_clock_div()
[all …]
Ddac_ll.h37 static inline void dac_ll_power_on(dac_channel_t channel) in dac_ll_power_on() argument
39 RTCIO.pad_dac[channel].dac_xpd_force = 1; in dac_ll_power_on()
40 RTCIO.pad_dac[channel].xpd_dac = 1; in dac_ll_power_on()
48 static inline void dac_ll_power_down(dac_channel_t channel) in dac_ll_power_down() argument
50 RTCIO.pad_dac[channel].dac_xpd_force = 0; in dac_ll_power_down()
51 RTCIO.pad_dac[channel].xpd_dac = 0; in dac_ll_power_down()
61 static inline void dac_ll_update_output_value(dac_channel_t channel, uint8_t value) in dac_ll_update_output_value() argument
63 if (channel == DAC_CHANNEL_1) { in dac_ll_update_output_value()
65 RTCIO.pad_dac[channel].dac = value; in dac_ll_update_output_value()
66 } else if (channel == DAC_CHANNEL_2) { in dac_ll_update_output_value()
[all …]
Dmcpwm_ll.h253 mcpwm->channel[op].cmpr_cfg.a_upmethod = BIT(0); in mcpwm_ll_operator_set_compare_upmethod()
254 mcpwm->channel[op].cmpr_cfg.b_upmethod = BIT(0); in mcpwm_ll_operator_set_compare_upmethod()
267 return (mcpwm->channel[op].cmpr_value[cmp_n].cmpr_val); in mcpwm_ll_operator_get_compare()
280 mcpwm->channel[op].cmpr_value[cmp_n].cmpr_val = compare; in mcpwm_ll_operator_set_compare()
299 mcpwm->channel[op].generator[gen].utez = action; in mcpwm_ll_gen_set_zero_action()
300 mcpwm->channel[op].generator[gen].dtez = action; in mcpwm_ll_gen_set_zero_action()
313 mcpwm->channel[op].generator[gen].utep = action; in mcpwm_ll_gen_set_period_action()
314 mcpwm->channel[op].generator[gen].dtep = action; in mcpwm_ll_gen_set_period_action()
331 mcpwm->channel[op].generator[gen].utea = up_action; in mcpwm_ll_gen_set_cmp_action()
332 mcpwm->channel[op].generator[gen].dtea = down_action; in mcpwm_ll_gen_set_cmp_action()
[all …]
/hal_espressif-2.7.6/components/driver/include/driver/
Drmt.h79 rmt_channel_t channel; /*!< RMT channel */ member
97 .channel = channel_id, \
120 .channel = channel_id, \
142 typedef void (*rmt_tx_end_fn_t)(rmt_channel_t channel, void *arg);
184 esp_err_t rmt_set_clk_div(rmt_channel_t channel, uint8_t div_cnt);
196 esp_err_t rmt_get_clk_div(rmt_channel_t channel, uint8_t *div_cnt);
212 esp_err_t rmt_set_rx_idle_thresh(rmt_channel_t channel, uint16_t thresh);
228 esp_err_t rmt_get_rx_idle_thresh(rmt_channel_t channel, uint16_t *thresh);
255 esp_err_t rmt_set_mem_block_num(rmt_channel_t channel, uint8_t rmt_mem_num);
267 esp_err_t rmt_get_mem_block_num(rmt_channel_t channel, uint8_t *rmt_mem_num);
[all …]
Dledc.h75 esp_err_t ledc_update_duty(ledc_mode_t speed_mode, ledc_channel_t channel);
102 esp_err_t ledc_stop(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t idle_level);
147 esp_err_t ledc_set_duty_with_hpoint(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t duty, …
158 int ledc_get_hpoint(ledc_mode_t speed_mode, ledc_channel_t channel);
177 esp_err_t ledc_set_duty(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t duty);
189 uint32_t ledc_get_duty(ledc_mode_t speed_mode, ledc_channel_t channel);
208 esp_err_t ledc_set_fade(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t duty, ledc_duty_di…
291 esp_err_t ledc_bind_channel_timer(ledc_mode_t speed_mode, ledc_channel_t channel, ledc_timer_t time…
314 esp_err_t ledc_set_fade_with_step(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_d…
336 esp_err_t ledc_set_fade_with_time(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t target_d…
[all …]
/hal_espressif-2.7.6/components/hal/
Drmt_hal.c24 void rmt_hal_tx_channel_reset(rmt_hal_context_t *hal, uint32_t channel) in rmt_hal_tx_channel_reset() argument
26 rmt_ll_tx_reset_pointer(hal->regs, channel); in rmt_hal_tx_channel_reset()
27 rmt_ll_enable_tx_err_interrupt(hal->regs, channel, false); in rmt_hal_tx_channel_reset()
28 rmt_ll_enable_tx_end_interrupt(hal->regs, channel, false); in rmt_hal_tx_channel_reset()
29 rmt_ll_enable_tx_thres_interrupt(hal->regs, channel, false); in rmt_hal_tx_channel_reset()
30 rmt_ll_clear_tx_err_interrupt(hal->regs, channel); in rmt_hal_tx_channel_reset()
31 rmt_ll_clear_tx_end_interrupt(hal->regs, channel); in rmt_hal_tx_channel_reset()
32 rmt_ll_clear_tx_thres_interrupt(hal->regs, channel); in rmt_hal_tx_channel_reset()
35 void rmt_hal_rx_channel_reset(rmt_hal_context_t *hal, uint32_t channel) in rmt_hal_rx_channel_reset() argument
37 rmt_ll_rx_reset_pointer(hal->regs, channel); in rmt_hal_rx_channel_reset()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_led.c106 static IRAM_ATTR esp_err_t iot_ledc_duty_config(ledc_mode_t speed_mode, ledc_channel_t channel, int… in iot_ledc_duty_config() argument
111 … LEDC.channel_group[speed_mode].channel[channel].hpoint.hpoint = hpoint_val & LEDC_HPOINT_LSCH1_V; in iot_ledc_duty_config()
113 … LEDC.channel_group[speed_mode].channel[channel].hpoint.hpoint = hpoint_val & LEDC_HPOINT_HSCH1_V; in iot_ledc_duty_config()
118 LEDC.channel_group[speed_mode].channel[channel].duty.duty = duty_val; in iot_ledc_duty_config()
122 …LEDC.channel_group[speed_mode].channel[channel].conf1.val = ((duty_direction & LEDC_DUTY_INC_LSCH0… in iot_ledc_duty_config()
127 …LEDC.channel_group[speed_mode].channel[channel].conf1.val = ((duty_direction & LEDC_DUTY_INC_HSCH0… in iot_ledc_duty_config()
133 LEDC.channel_group[speed_mode].channel[channel].conf0.sig_out_en = 1; in iot_ledc_duty_config()
134 LEDC.channel_group[speed_mode].channel[channel].conf1.duty_start = 1; in iot_ledc_duty_config()
137 LEDC.channel_group[speed_mode].channel[channel].conf0.low_speed_update = 1; in iot_ledc_duty_config()
143 static IRAM_ATTR esp_err_t _iot_set_fade_with_step(ledc_mode_t speed_mode, ledc_channel_t channel, … in _iot_set_fade_with_step() argument
[all …]
/hal_espressif-2.7.6/components/driver/test/touch_sensor_test/
Dtouch_scope.c54 static void datascope_get_channel_data(float data, unsigned char channel) in datascope_get_channel_data() argument
56 if ( (channel > 10) || (channel == 0) ) { in datascope_get_channel_data()
59 switch (channel) { in datascope_get_channel_data()
60 case 1: float_to_byte(&data,datascope_output_buffer, channel*4-3); break; in datascope_get_channel_data()
61 case 2: float_to_byte(&data,datascope_output_buffer, channel*4-3); break; in datascope_get_channel_data()
62 case 3: float_to_byte(&data,datascope_output_buffer, channel*4-3); break; in datascope_get_channel_data()
63 case 4: float_to_byte(&data,datascope_output_buffer, channel*4-3); break; in datascope_get_channel_data()
64 case 5: float_to_byte(&data,datascope_output_buffer, channel*4-3); break; in datascope_get_channel_data()
65 case 6: float_to_byte(&data,datascope_output_buffer, channel*4-3); break; in datascope_get_channel_data()
66 case 7: float_to_byte(&data,datascope_output_buffer, channel*4-3); break; in datascope_get_channel_data()
[all …]
/hal_espressif-2.7.6/examples/peripherals/ledc/main/
Dledc_example_main.c100 .channel = LEDC_HS_CH0_CHANNEL, in app_main()
108 .channel = LEDC_HS_CH1_CHANNEL, in app_main()
117 .channel = LEDC_LS_CH0_CHANNEL, in app_main()
125 .channel = LEDC_LS_CH1_CHANNEL, in app_main()
134 .channel = LEDC_LS_CH2_CHANNEL, in app_main()
142 .channel = LEDC_LS_CH3_CHANNEL, in app_main()
163 ledc_channel[ch].channel, LEDC_TEST_DUTY, LEDC_TEST_FADE_TIME); in app_main()
165 ledc_channel[ch].channel, LEDC_FADE_NO_WAIT); in app_main()
172 ledc_channel[ch].channel, 0, LEDC_TEST_FADE_TIME); in app_main()
174 ledc_channel[ch].channel, LEDC_FADE_NO_WAIT); in app_main()
[all …]
/hal_espressif-2.7.6/components/driver/test/
Dtest_rmt.c116 wrong_config.channel = SOC_RMT_CHANNELS_NUM;
120 wrong_config.channel = 2;
123 TEST_ASSERT(rmt_set_mem_block_num(wrong_config.channel, -1) == ESP_ERR_INVALID_ARG);
128 rmt_channel_t channel = 0; variable
136 rmt_setup_testbench(channel, -1, 0);
138 TEST_ESP_OK(rmt_set_mem_block_num(channel, 2));
139 TEST_ESP_OK(rmt_get_mem_block_num(channel, &memNum));
142 TEST_ESP_OK(rmt_set_clk_div(channel, 160));
143 TEST_ESP_OK(rmt_get_clk_div(channel, &div_cnt));
147 TEST_ESP_OK(rmt_set_source_clk(channel, RMT_BASECLK_REF));
[all …]
/hal_espressif-2.7.6/components/driver/esp32/
Dadc.c64 #define ADC_GET_IO_NUM(periph, channel) (adc_channel_io_map[periph][channel]) argument
66 #define ADC_CHANNEL_CHECK(periph, channel) ADC_CHECK(channel < SOC_ADC_CHANNEL_NUM(periph), "ADC"#p… argument
85 esp_err_t adc_i2s_mode_init(adc_unit_t adc_unit, adc_channel_t channel) in adc_i2s_mode_init() argument
89 ADC_CHANNEL_CHECK(ADC_NUM_1, channel); in adc_i2s_mode_init()
93 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc_i2s_mode_init()
108 adc1_pattern[0].channel = channel; in adc_i2s_mode_init()
115 adc2_pattern[0].channel = channel; in adc_i2s_mode_init()
119 adc_gpio_init(adc_unit, channel); in adc_i2s_mode_init()

1234567891011