rmt.h 847 B

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