Function esp_idf_svc::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 *mut rmt_encoder_t,
) -> i32
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