The custom data is encoded using the lteRMCDLTool function. You should be able to use this function to encode your data, just have to watch out to properly set the number of frames so that they fit the entire data set.