Main Content

addNewEthernetInterface

Class: soc.sdk.Hardware
Package: soc.sdk

Add new Ethernet interface to hardware

Syntax

ethernetInterfaceObj = addNewEthernetInterface(hardwareObj,interfaceName)

Description

ethernetInterfaceObj = addNewEthernetInterface(hardwareObj,interfaceName) creates a new EthernetInterface 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 EthernetInterface object, specified as a string.

Example: "MyEthernetInterface"

Data Types: string | char

Output Arguments

expand all

A EthernetInterface object that defines the Ethernet interface connection to hardware.

Introduced in R2019b