Select one of the symbols to view example projects that use it.
 
Outline
#include <stdint.h>
#include "driver/rmt_encoder.h"
ir_nec_scan_code_t
ir_nec_encoder_config_t
rmt_new_ir_nec_encoder(const ir_nec_encoder_config_t *, rmt_encoder_handle_t *);
Files
loading...
SourceVuESP-IDF Framework and Examplesir_nec_transceiver samplemain/ir_nec_encoder.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #include <stdint.h> #include "driver/rmt_encoder.h" #ifdef __cplusplus extern "C" { #endif /** * @brief IR NEC scan code representation *//* ... */ typedef struct { uint16_t address; uint16_t command; }{ ... } ir_nec_scan_code_t; /** * @brief Type of IR NEC encoder configuration *//* ... */ typedef struct { uint32_t resolution; /*!< Encoder resolution, in Hz */ }{ ... } ir_nec_encoder_config_t; /** * @brief Create RMT encoder for encoding IR NEC frame into RMT symbols * * @param[in] config Encoder configuration * @param[out] ret_encoder Returned encoder handle * @return * - ESP_ERR_INVALID_ARG for any invalid arguments * - ESP_ERR_NO_MEM out of memory when creating IR NEC encoder * - ESP_OK if creating encoder successfully *//* ... */ esp_err_t rmt_new_ir_nec_encoder(const ir_nec_encoder_config_t *config, rmt_encoder_handle_t *ret_encoder); #ifdef __cplusplus }{...} #endif
Details