soc.sdk.DIPSwitch Class
Namespace: soc.sdk
DIP switch on the hardware board
Description
DIPSwitch
object represents a DIP switch on the hardware board.
Creation
Description
creates a new dipSwitchObj
= soc.sdk.DIPSwitch(Name
)soc.sdk.DIPSwitch
object, with the
Name
property set to name
.
Properties
Name
— Name of the DIP switch
character vector
Name of the DIP switch, specified as a character vector.
Note
The name must start with a letter and may contain letters, numbers, underscores, minus signs, slashes, and spaces.
Example: 'MyDIPSwitch'
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
Pins
— Pin numbers
{} (default) | cell array of nonnegative scalars
The pins used by the DIP switch.
Example: {'A11','A12'}
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: cell
ActiveHigh
— DIP switch set to active high
1
(default) | 0
Configuration of DIP switch where 1
is active high and
0
is active low.
Example: 0
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: logical
IOStandard
— IO standard used by DIP switch
''
(default) | character vector
The IO standard used by the DIP switch, specified as a character vector.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
Version History
Introduced in R2019b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)