Main Content

addNewSerialInterface

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

Add serial interface to hardware

Syntax

serialInterfaceObj = addNewSerialInterface(hardwareObj,interfaceName)

Description

Add-On Required: This feature requires the SoC Blockset Support Package for AMD FPGA and SoC Devices add-on.

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

Hardware object mapped to the soc.sdk.BoardSupport object, specified as an soc.sdk.Hardware 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