soc.sdk.DIPSwitch class
Package: soc.sdk
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 コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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)