Function esp_idf_sys::rmt_bytes_encoder_update_config
source ยท pub unsafe extern "C" fn rmt_bytes_encoder_update_config(
bytes_encoder: rmt_encoder_handle_t,
config: *const rmt_bytes_encoder_config_t,
) -> esp_err_t
Expand description
@brief Update the configuration of the bytes encoder
@note The configurations of the bytes encoder is also set up by rmt_new_bytes_encoder()
.
This function is used to update the configuration of the bytes encoder at runtime.
@param[in] bytes_encoder Bytes encoder handle, created by e.g rmt_new_bytes_encoder()
@param[in] config Bytes encoder configuration
@return
- ESP_OK: Update RMT bytes encoder successfully
- ESP_ERR_INVALID_ARG: Update RMT bytes encoder failed because of invalid argument
- ESP_FAIL: Update RMT bytes encoder failed because of other error