1 /* 2 * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 // DO NOT USE THESE APIS IN YOUR APPLICATIONS 8 // The following APIs are for internal test. 9 10 #pragma once 11 12 #include "esp_err.h" 13 #include "driver/rmt_types.h" 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 /** 20 * @brief Get the unique ID of RMT channel 21 * 22 * @param[in] channel RMT generic channel that created by `rmt_new_tx_channel()` or `rmt_new_rx_channel()` 23 * @param[out] ret_id The unique ID of RMT channel 24 * @return 25 * - ESP_OK: Get RMT channel ID successfully 26 * - ESP_ERR_INVALID_ARG: Get RMT channel ID failed because of invalid argument 27 * - ESP_FAIL: Get RMT channel ID failed because of other reasons 28 */ 29 esp_err_t rmt_get_channel_id(rmt_channel_handle_t channel, int *ret_id); 30 31 #ifdef __cplusplus 32 } 33 #endif 34