target.HardwareComponentSupport - Describe support for a hardware component - MATLAB (original) (raw)
Main Content
Namespace: target
Describe support for a hardware component
Since R2022b
Description
Use a target.HardwareComponentSupport
object to specify that a tool or toolchain applies to a particular target device.
To create a target.HardwareComponentSupport
object, use the target.create function.
The target.HardwareComponentSupport
class is a handle class.
Properties
Supported target device, for example, a target.Processor
or atarget.Board
object.
Attributes:
GetAccess | public |
---|---|
SetAccess | public |
Examples
This code snippet shows how you can create atarget.HardwareComponentSupport
object and use it to define a toolchain that is available only when the target device Intel-x86-64 (Windows64)
is selected.
tc = target.create('Toolchain', 'Name', 'My Toolchain'); tc.Builder = target.create('CMakeBuilder', 'Generator', 'Ninja'); tc.SupportedHardware = target.create('HardwareComponentSupport'); tc.SupportedHardware.Component = target.get('Processor', 'Intel-x86-64 (Windows64)');
Version History
Introduced in R2022b