Home
last modified time | relevance | path

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

/hal_espressif-latest/components/hal/
Dspi_hal.c91 …k(timing_param->clk_src_hz, timing_param->expected_freq, timing_param->duty_cycle, &temp_conf.cloc… in spi_hal_cal_clock_conf()
117 int spi_hal_master_cal_clock(int fapb, int hz, int duty_cycle) in spi_hal_master_cal_clock() argument
119 return spi_ll_master_cal_clock(fapb, hz, duty_cycle, NULL); in spi_hal_master_cal_clock()
Dledc_hal_iram.c48 …d ledc_hal_set_duty_cycle(ledc_hal_context_t *hal, ledc_channel_t channel_num, uint32_t duty_cycle) in ledc_hal_set_duty_cycle() argument
50 ledc_ll_set_duty_cycle(hal->dev, hal->speed_mode, channel_num, duty_cycle); in ledc_hal_set_duty_cycle()
/hal_espressif-latest/components/hal/include/hal/
Dspi_hal.h43 uint32_t duty_cycle; ///< Expected duty cycle of SPI clock member
242 int spi_hal_master_cal_clock(int fapb, int hz, int duty_cycle);
Dledc_hal.h328 … ledc_hal_set_duty_cycle(ledc_hal_context_t *hal, ledc_channel_t channel_num, uint32_t duty_cycle);
/hal_espressif-latest/components/hal/esp32s3/include/hal/
Dledc_ll.h376 …duty_cycle(ledc_dev_t *hw, ledc_mode_t speed_mode, ledc_channel_t channel_num, uint32_t duty_cycle) in ledc_ll_set_duty_cycle() argument
378 hw->channel_group[speed_mode].channel[channel_num].conf1.duty_cycle = duty_cycle; in ledc_ll_set_duty_cycle()
Dspi_ll.h690 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument
736 h = (duty_cycle * n + 127) / 256; in spi_ll_master_cal_clock()
769 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument
772 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, &reg_val); in spi_ll_master_set_clock()
/hal_espressif-latest/components/hal/esp32/include/hal/
Dledc_ll.h373 …duty_cycle(ledc_dev_t *hw, ledc_mode_t speed_mode, ledc_channel_t channel_num, uint32_t duty_cycle) in ledc_ll_set_duty_cycle() argument
375 hw->channel_group[speed_mode].channel[channel_num].conf1.duty_cycle = duty_cycle; in ledc_ll_set_duty_cycle()
Dspi_ll.h563 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument
609 h = (duty_cycle * n + 127) / 256; in spi_ll_master_cal_clock()
642 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument
645 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, &reg_val); in spi_ll_master_set_clock()
/hal_espressif-latest/components/hal/esp32c2/include/hal/
Dledc_ll.h375 …duty_cycle(ledc_dev_t *hw, ledc_mode_t speed_mode, ledc_channel_t channel_num, uint32_t duty_cycle) in ledc_ll_set_duty_cycle() argument
377 hw->channel_group[speed_mode].channel[channel_num].conf1.duty_cycle = duty_cycle; in ledc_ll_set_duty_cycle()
Dspi_ll.h676 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument
722 h = (duty_cycle * n + 127) / 256; in spi_ll_master_cal_clock()
755 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument
758 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, &reg_val); in spi_ll_master_set_clock()
/hal_espressif-latest/components/hal/esp32c3/include/hal/
Dledc_ll.h375 …duty_cycle(ledc_dev_t *hw, ledc_mode_t speed_mode, ledc_channel_t channel_num, uint32_t duty_cycle) in ledc_ll_set_duty_cycle() argument
377 hw->channel_group[speed_mode].channel[channel_num].conf1.duty_cycle = duty_cycle; in ledc_ll_set_duty_cycle()
Dspi_ll.h676 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument
722 h = (duty_cycle * n + 127) / 256; in spi_ll_master_cal_clock()
755 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument
758 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, &reg_val); in spi_ll_master_set_clock()
/hal_espressif-latest/components/hal/esp32s2/include/hal/
Dledc_ll.h390 …duty_cycle(ledc_dev_t *hw, ledc_mode_t speed_mode, ledc_channel_t channel_num, uint32_t duty_cycle) in ledc_ll_set_duty_cycle() argument
392 hw->channel_group[speed_mode].channel[channel_num].conf1.duty_cycle = duty_cycle; in ledc_ll_set_duty_cycle()
Dspi_ll.h638 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument
684 h = (duty_cycle * n + 127) / 256; in spi_ll_master_cal_clock()
717 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument
720 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, &reg_val); in spi_ll_master_set_clock()
/hal_espressif-latest/components/driver/spi/gpspi/
Dspi_master.c398 int duty_cycle = (dev_config->duty_cycle_pos == 0) ? 128 : dev_config->duty_cycle_pos; in spi_bus_add_device() local
405 .duty_cycle = duty_cycle, in spi_bus_add_device()
440 dev->cfg.duty_cycle_pos = duty_cycle; in spi_bus_add_device()
533 int spi_get_actual_clock(int fapb, int hz, int duty_cycle) in spi_get_actual_clock() argument
535 return spi_hal_master_cal_clock(fapb, hz, duty_cycle); in spi_get_actual_clock()
/hal_espressif-latest/components/driver/spi/include/driver/
Dspi_master.h365 int spi_get_actual_clock(int fapb, int hz, int duty_cycle) __attribute__((deprecated("Please use sp…
/hal_espressif-latest/components/hal/esp32c6/include/hal/
Dspi_ll.h680 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument
726 h = (duty_cycle * n + 127) / 256; in spi_ll_master_cal_clock()
759 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument
762 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, &reg_val); in spi_ll_master_set_clock()
Dledc_ll.h396 …duty_cycle(ledc_dev_t *hw, ledc_mode_t speed_mode, ledc_channel_t channel_num, uint32_t duty_cycle) in ledc_ll_set_duty_cycle() argument
398 hw->channel_gamma_group[speed_mode].channel[channel_num].wr.gamma_duty_cycle = duty_cycle; in ledc_ll_set_duty_cycle()
/hal_espressif-latest/components/hal/esp32h2/include/hal/
Dspi_ll.h682 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument
728 h = (duty_cycle * n + 127) / 256; in spi_ll_master_cal_clock()
761 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument
764 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, &reg_val); in spi_ll_master_set_clock()
Dledc_ll.h377 …duty_cycle(ledc_dev_t *hw, ledc_mode_t speed_mode, ledc_channel_t channel_num, uint32_t duty_cycle) in ledc_ll_set_duty_cycle() argument
379 hw->channel_gamma_group[speed_mode].channel[channel_num].wr.gamma_duty_cycle = duty_cycle; in ledc_ll_set_duty_cycle()
/hal_espressif-latest/components/soc/esp32c3/include/soc/
Dledc_struct.h46 uint32_t duty_cycle: 10; member
/hal_espressif-latest/components/soc/esp32s3/include/soc/
Dledc_struct.h57 uint32_t duty_cycle: 10; member
/hal_espressif-latest/components/soc/esp32c2/include/soc/
Dledc_struct.h73 uint32_t duty_cycle:10; member
/hal_espressif-latest/components/soc/esp32s2/include/soc/
Dledc_struct.h48 uint32_t duty_cycle: 10; member
/hal_espressif-latest/components/soc/esp32/include/soc/
Dledc_struct.h54 …uint32_t duty_cycle:10; /*This register is used to increase or decrease the duty ever… member