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
18
extern
"C"
{
19
#endif
20
24
typedef
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
31
size_t
mem_block_symbols
;
32
struct
{
33
uint32_t
with_dma
: 1;
34
} flags;
35
}
led_strip_rmt_config_t
;
36
49
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);
50
51
#ifdef __cplusplus
52
}
53
#endif
esp_err.h
esp_err_t
int esp_err_t
Definition
esp_err.h:21
led_strip_new_rmt_device
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.
Definition
led_strip_rmt_dev.c:97
led_strip_types.h
led_strip_handle_t
struct led_strip_t * led_strip_handle_t
LED strip handle.
Definition
led_strip_types.h:36
led_strip_config_t
LED Strip Configuration.
Definition
led_strip_types.h:41
led_strip_rmt_config_t
LED Strip RMT specific configuration.
Definition
led_strip_rmt.h:24
led_strip_rmt_config_t::with_dma
uint32_t with_dma
Definition
led_strip_rmt.h:33
led_strip_rmt_config_t::clk_src
rmt_clock_source_t clk_src
Definition
led_strip_rmt.h:28
led_strip_rmt_config_t::resolution_hz
uint32_t resolution_hz
Definition
led_strip_rmt.h:29
led_strip_rmt_config_t::mem_block_symbols
size_t mem_block_symbols
Definition
led_strip_rmt.h:31
components
espressif__led_strip
include
led_strip_rmt.h
Generated by
1.16.1