pub unsafe extern "C" fn rmt_driver_install(
    channel: u32,
    rx_buf_size: usize,
    intr_alloc_flags: i32
) -> i32
Expand description

@brief Initialize RMT driver

@param channel RMT channel @param rx_buf_size Size of RMT RX ringbuffer. Can be 0 if the RX ringbuffer is not used. @param intr_alloc_flags Flags for the RMT driver interrupt handler. Pass 0 for default flags. See esp_intr_alloc.h for details. If ESP_INTR_FLAG_IRAM is used, please do not use the memory allocated from psram when calling rmt_write_items.

@return - ESP_ERR_INVALID_STATE Driver is already installed, call rmt_driver_uninstall first. - ESP_ERR_NO_MEM Memory allocation failure - ESP_ERR_INVALID_ARG Parameter error - ESP_OK Success