Main Content

getExternalMode

Class: soc.sdk.BoardSupport
Namespace: soc.sdk

Get the external mode configuration for the board support

Syntax

externalModeObjs = getExternalMode(boardSupportObj)
externalModeObjs = getExternalMode(boardSupportObj,"mapped")
externalModeObjs = getExternalMode(boardSupportObj,"mapped",hardwareObj)
externalModeObjs = getExternalMode(boardSupportObj,"unmapped")
externalModeObjs = getExternalMode(boardSupportObj,"reference")
externalModeObjs = getExternalMode(boardSupportObj,"name",name)

Description

externalModeObjs = getExternalMode(boardSupportObj) returns all soc.sdk.ExternalMode objects mapped to soc.sdk.BoardSupport object or the reference board support.

externalModeObjs = getExternalMode(boardSupportObj,"mapped") returns all the ExternalMode objects mapped to BoardSupport object.

externalModeObjs = getExternalMode(boardSupportObj,"mapped",hardwareObj) returns all ExternalMode objects mapped to the BoardSupport object and soc.sdk.Hardware object.

externalModeObjs = getExternalMode(boardSupportObj,"unmapped") returns all ExternalMode objects only mapped to the reference board support but that can be mapped to the BoardSupport object.

externalModeObjs = getExternalMode(boardSupportObj,"reference") returns all ExternalMode objects mapped to the reference board support of the BoardSupport object.

externalModeObjs = getExternalMode(boardSupportObj,"name",name) returns the ExternalMode object with Name property equal to the value of name.

Input Arguments

expand all

BoardSupport object, specified as an soc.sdk.BoardSupport object, defines a hardware board that you can use with the SoC Blockset™ features.

soc.sdk.Hardware object mapped to the soc.sdk.BoardSupport object.

Name assigned to the Name property of the ExternalMode object.

Example: "MyExternalMode"

Data Types: string | char

Output Arguments

expand all

soc.sdk.ExternalMode object or cell array of ExternalMode objects.

Version History

Introduced in R2019b