Lines Matching refs:rmt_param
557 static esp_err_t rmt_internal_config(rmt_dev_t *dev, const rmt_config_t *rmt_param) in rmt_internal_config() argument
559 uint8_t mode = rmt_param->rmt_mode; in rmt_internal_config()
560 uint8_t channel = rmt_param->channel; in rmt_internal_config()
561 uint8_t gpio_num = rmt_param->gpio_num; in rmt_internal_config()
562 uint8_t mem_cnt = rmt_param->mem_block_num; in rmt_internal_config()
563 uint8_t clk_div = rmt_param->clk_div; in rmt_internal_config()
564 uint32_t carrier_freq_hz = rmt_param->tx_config.carrier_freq_hz; in rmt_internal_config()
565 bool carrier_en = rmt_param->tx_config.carrier_en; in rmt_internal_config()
579 if (rmt_param->flags & RMT_CHANNEL_FLAGS_AWARE_DFS) { in rmt_internal_config()
607 uint16_t carrier_duty_percent = rmt_param->tx_config.carrier_duty_percent; in rmt_internal_config()
608 uint8_t carrier_level = rmt_param->tx_config.carrier_level; in rmt_internal_config()
609 uint8_t idle_level = rmt_param->tx_config.idle_level; in rmt_internal_config()
615 rmt_ll_tx_enable_loop(dev, channel, rmt_param->tx_config.loop_en); in rmt_internal_config()
617 if (rmt_param->tx_config.loop_en) { in rmt_internal_config()
618 rmt_ll_tx_set_loop_count(dev, channel, rmt_param->tx_config.loop_count); in rmt_internal_config()
624 rmt_ll_tx_enable_idle(dev, channel, rmt_param->tx_config.idle_output_en); in rmt_internal_config()
644 uint8_t filter_cnt = rmt_param->rx_config.filter_ticks_thresh; in rmt_internal_config()
645 uint16_t threshold = rmt_param->rx_config.idle_threshold; in rmt_internal_config()
656 … rmt_ll_rx_enable_filter(dev, RMT_DECODE_RX_CHANNEL(channel), rmt_param->rx_config.filter_en); in rmt_internal_config()
664 …rmt_ll_rx_enable_carrier_demodulation(dev, RMT_DECODE_RX_CHANNEL(channel), rmt_param->rx_config.rm… in rmt_internal_config()
665 if (rmt_param->rx_config.rm_carrier) { in rmt_internal_config()
666 … rmt_ll_rx_get_channel_clock_div(dev, RMT_DECODE_RX_CHANNEL(channel)) / rmt_param->rx_config.carri… in rmt_internal_config()
667 uint32_t duty_high = duty_total * rmt_param->rx_config.carrier_duty_percent / 100; in rmt_internal_config()
670 …rmt_ll_rx_set_carrier_level(dev, RMT_DECODE_RX_CHANNEL(channel), rmt_param->rx_config.carrier_leve… in rmt_internal_config()
682 esp_err_t rmt_config(const rmt_config_t *rmt_param) in rmt_config() argument
686 …ESP_RETURN_ON_ERROR(rmt_set_gpio(rmt_param->channel, rmt_param->rmt_mode, rmt_param->gpio_num, rmt… in rmt_config()
687 ESP_RETURN_ON_ERROR(rmt_internal_config(&RMT, rmt_param), TAG, "initialize RMT driver failed"); in rmt_config()