Main Content

addNewDIPSwitch

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

Add new DIP switch to the hardware

Syntax

dipSwitchObj = addNewDIPSwitch(hardwareObj,name)

Description

dipSwitchObj = addNewDIPSwitch(hardwareObj,name) creates a new soc.sdk.DIPSwitch object, with the Name property set to name, 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 DIP switch on the hardware board, specified as a string.

Example: "MyDIPSwitch"

Data Types: string | char

Output Arguments

expand all

A soc.sdk.DIPSwitch object that defines a DIP switch available on the hardware.

Introduced in R2019b