Function esp_idf_sys::rmt_new_bytes_encoder
source ยท pub unsafe extern "C" fn rmt_new_bytes_encoder(
config: *const rmt_bytes_encoder_config_t,
ret_encoder: *mut rmt_encoder_handle_t,
) -> esp_err_t
Expand description
@brief Create RMT bytes encoder, which can encode byte stream into RMT symbols
@param[in] config Bytes encoder configuration @param[out] ret_encoder Returned encoder handle @return - ESP_OK: Create RMT bytes encoder successfully - ESP_ERR_INVALID_ARG: Create RMT bytes encoder failed because of invalid argument - ESP_ERR_NO_MEM: Create RMT bytes encoder failed because out of memory - ESP_FAIL: Create RMT bytes encoder failed because of other error