Main Content

getServiceInterface

Class: coder.descriptor.ServiceInterface
Namespace: coder.descriptor

Return service interface object for service interface type

Since R2022b

Syntax

serviceInterfaceTypeObj = getServiceInterface(serviceObj,serviceInterfaceType)

Description

serviceInterfaceTypeObj = getServiceInterface(serviceObj,serviceInterfaceType) returns the type of coder.descriptor.ServiceInterface object associated with the service interface type specified in serviceInterfaceType.

Input Arguments

expand all

Service interface, also referred to as the code configuration object, for which you want to retrieve the information about generated code, specified as a coder.descriptor.ServiceInterface object.

Service interface type defined in Embedded Coder Dictionary, specified as an enumerated value of coder.descriptor.Services.SenderReceiver, coder.descriptor.Services.DataTransfer, coder.descriptor.Services.Timer, coder.descriptor.Services.Measurement, coder.descriptor.Services.ParameterTuning, or coder.descriptor.Services.ParameterArgumentTuning.

Output Arguments

expand all

Service interface object associated with the type of service interface with corresponding properties, returned as:

Input argument: serviceInterfaceTypeObjOutput argument: serviceInterfaceType
coder.descriptor.SenderReceiverServiceInterfacecoder.descriptor.Services.SenderReceiver
coder.descriptor.DataTransferServiceInterfacecoder.descriptor.Services.DataTransfer
coder.descriptor.TimerServiceInterfacecoder.descriptor.Services.Timer
coder.descriptor.MeasurementServiceInterfacecoder.descriptor.Services.Measurement
coder.descriptor.ParameterTuningServiceInterfacecoder.descriptor.Services.ParameterTuning
coder.descriptor.ParameterArgumentTuningServiceInterfacecoder.descriptor.Services.ParameterArgumentTuning

Version History

Introduced in R2022b