Main Content

getServiceDataCommMethod

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

Return data communication method for service function

Since R2022b

Syntax

dataCommMethod = getServiceDataCommMethod(serviceObj,serviceFunctionName)

Description

dataCommMethod = getServiceDataCommMethod(serviceObj,serviceFunctionName) returns the data communication method for the service function as configured in the Embedded Coder Dictionary. The result is an enumerated value of type DataCommunicationMethodEnum.

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 function name, specified as character vector or string scalar.

Output Arguments

expand all

Data communication method for the service function as configured in Embedded Coder Dictionary, returned as an enumerated value of type DataCommunicationMethodEnum.

Version History

Introduced in R2022b