|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include <stdlib.h>#include <string.h>#include <sys/cdefs.h>#include "esp_log.h"#include "esp_check.h"#include "driver/rmt_tx.h"#include "led_strip.h"#include "led_strip_interface.h"#include "led_strip_rmt_encoder.h"Go to the source code of this file.
Data Structures | |
| struct | led_strip_rmt_obj |
Macros | |
| #define | LED_STRIP_RMT_DEFAULT_RESOLUTION 10000000 |
| #define | LED_STRIP_RMT_DEFAULT_TRANS_QUEUE_SIZE 4 |
| #define | LED_STRIP_RMT_DEFAULT_MEM_BLOCK_SYMBOLS 48 |
Functions | |
| static esp_err_t | led_strip_rmt_set_pixel (led_strip_t *strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue) |
| static esp_err_t | led_strip_rmt_set_pixel_rgbw (led_strip_t *strip, uint32_t index, uint32_t red, uint32_t green, uint32_t blue, uint32_t white) |
| static esp_err_t | led_strip_rmt_refresh (led_strip_t *strip) |
| static esp_err_t | led_strip_rmt_clear (led_strip_t *strip) |
| static esp_err_t | led_strip_rmt_del (led_strip_t *strip) |
| 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. | |
Variables | |
| static const char * | TAG = "led_strip_rmt" |
| #define LED_STRIP_RMT_DEFAULT_MEM_BLOCK_SYMBOLS 48 |
Definition at line 22 of file led_strip_rmt_dev.c.
Referenced by led_strip_new_rmt_device(), and led_strip_new_rmt_device().
| #define LED_STRIP_RMT_DEFAULT_RESOLUTION 10000000 |
Definition at line 16 of file led_strip_rmt_dev.c.
Referenced by led_strip_new_rmt_device().
| #define LED_STRIP_RMT_DEFAULT_TRANS_QUEUE_SIZE 4 |
Definition at line 17 of file led_strip_rmt_dev.c.
Referenced by 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.
| led_config | LED strip configuration |
| rmt_config | RMT specific configuration |
| ret_strip | Returned LED strip handle |
Definition at line 97 of file led_strip_rmt_dev.c.
|
static |
Definition at line 80 of file led_strip_rmt_dev.c.
References led_strip_rmt_obj::bytes_per_pixel, led_strip_rmt_refresh(), led_strip_rmt_obj::pixel_buf, and led_strip_rmt_obj::strip_len.
Referenced by led_strip_new_rmt_device(), and led_strip_new_rmt_device().
|
static |
Definition at line 88 of file led_strip_rmt_dev.c.
References ESP_OK, ESP_RETURN_ON_ERROR, led_strip_rmt_obj::rmt_chan, led_strip_rmt_obj::strip_encoder, and TAG.
Referenced by led_strip_new_rmt_device(), and led_strip_new_rmt_device().
|
static |
Definition at line 65 of file led_strip_rmt_dev.c.
References led_strip_rmt_obj::bytes_per_pixel, ESP_OK, ESP_RETURN_ON_ERROR, led_strip_rmt_obj::pixel_buf, led_strip_rmt_obj::rmt_chan, led_strip_rmt_obj::strip_encoder, led_strip_rmt_obj::strip_len, and TAG.
Referenced by led_strip_new_rmt_device(), led_strip_new_rmt_device(), and led_strip_rmt_clear().
|
static |
Definition at line 36 of file led_strip_rmt_dev.c.
References led_strip_rmt_obj::bytes_per_pixel, ESP_OK, led_strip_rmt_obj::pixel_buf, and TAG.
Referenced by led_strip_new_rmt_device(), and led_strip_new_rmt_device().
|
static |
Definition at line 51 of file led_strip_rmt_dev.c.
References led_strip_rmt_obj::bytes_per_pixel, ESP_OK, led_strip_rmt_obj::pixel_buf, and TAG.
Referenced by led_strip_new_rmt_device().
|
static |
Definition at line 25 of file led_strip_rmt_dev.c.