MATLAB: What is the proper syntax to include an enum data type in a Simulink parameter

enumeratedmodel workspaceparametersimulinksyntax

I have a Simulink parameter that I've imported to the model workspace and is data type struct. It's going to be used as a bus output from a constant block in the model, outputting a bus that is stored in a data dictionary, and will be used with a Bus Assignment block being sent to the 'bus' input port.
The problem I'm running into is that the bus I want to use contains an enumerated data type. I manually edited my parameter object to include the necessary data, but I don't know what to use here to make it accept an enum. I know that these can store data with multiple dimensions, because I've worked on a similar project where that was done, but I have no reference for how to use an enum.
Input_1 = Simulink.Parameter;
saveVarsTmp{1} = struct;
saveVarsTmp{1}.flag = 0;
saveVarsTmp{1}.data = struct;
saveVarsTmp{1}.data.camAttStd = single(0);
saveVarsTmp{1}.data.camPosStd = single(0);
saveVarsTmp{1}.data.mapStd = single(0);
saveVarsTmp{1}.data.timingJitterStd = single(0);
saveVarsTmp{1}.data.camIntStd = single(0);
saveVarsTmp{1}.data.terrain = single(0); % <--- This value needs proper syntax for type enum
Input_1.Value = saveVarsTmp{1};
Input_1.CoderInfo.StorageClass = 'Auto';
Input_1.CoderInfo.Alias = '';
Input_1.CoderInfo.Alignment = -1;
Input_1.CoderInfo.CustomStorageClass = 'Default';
Input_1.CoderInfo.CustomAttributes.ConcurrentAccess = false;
Input_1.Description = '';
Input_1.DataType = 'Bus: errConfig_IO';
Input_1.Min = [];
Input_1.Max = [];
Input_1.DocUnits = '';
clear saveVarsTmp;
The data named "terrain" is an enum holding about 10 different values, while all other data is just floats. Can anyone help me with the proper syntax here? I have been combing the documentation and have found lots of info for handling enums in different places in Matlab, but never on this format within a Simulink parameter.

Best Answer

I discovered a method that doesn't need Simulink parameters whatsoever... it was actually such a simple thing, yet I would have never found it by reading online.
If you set a constant block's value field to 0, you can then safely output any bus object data, regardless of if it has mixed types, enums, anything. So instead of this awful roundabout way of outputting buses from a constant via structs manually defined in the model workspace, all I needed was a 0.