Main Content

addNewSerialInterface

Class: soc.sdk.Hardware
Namespace: soc.sdk

Add serial interface to hardware

Syntax

serialInterfaceObj = addNewSerialInterface(hardwareObj,interfaceName)

Description

serialInterfaceObj = addNewSerialInterface(hardwareObj,interfaceName) creates a new SerialInterface object with the Name property set to the string interfaceName, and adds the new object to the soc.sdk.Hardware object.

Input Arguments

expand all

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

Name of the SerialInterface object, specified as a string.

Example: "MySerialInterface"

Data Types: string | char

Output Arguments

expand all

A SerialInterface object that defines the serial interface connection to hardware.

Version History

Introduced in R2019b