ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
led_strip_rmt.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#pragma once
7
8#include <stdint.h>
9#include "esp_err.h"
10#include "led_strip_types.h"
11#include "esp_idf_version.h"
12
13#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
14#include "driver/rmt_types.h"
15#endif
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
24typedef struct {
25#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0)
26 uint8_t rmt_channel;
27#else // new driver supports specify the clock source and clock resolution
28 rmt_clock_source_t clk_src;
29 uint32_t resolution_hz;
30#endif
32 struct {
33 uint32_t with_dma: 1;
34 } flags;
36
50
51#ifdef __cplusplus
52}
53#endif
int esp_err_t
Definition esp_err.h:21
esp_err_t led_strip_new_rmt_device(const led_strip_config_t *led_config, const led_strip_rmt_config_t *rmt_config, led_strip_handle_t *ret_strip)
Create LED strip based on RMT TX channel.
struct led_strip_t * led_strip_handle_t
LED strip handle.
LED Strip Configuration.
LED Strip RMT specific configuration.
rmt_clock_source_t clk_src