openthread_sys

Function otDatasetConvertToTlvs

Source
pub unsafe extern "C" fn otDatasetConvertToTlvs(
    aDataset: *const otOperationalDataset,
    aDatasetTlvs: *mut otOperationalDatasetTlvs,
) -> otError
Expand description

Converts a given Operational Dataset to otOperationalDatasetTlvs.

@param[in] aDataset An Operational dataset to convert to TLVs. @param[out] aDatasetTlvs A pointer to dataset TLVs to return the result.

@retval OT_ERROR_NONE Successfully converted @p aDataset and updated @p aDatasetTlvs. @retval OT_ERROR_INVALID_ARGS @p aDataset is invalid, does not contain active or pending timestamps.