Create hardware board configuration object for C/C++ code generation from MATLAB code
The coder.hardware
function creates a
coder.Hardware
object that contains hardware board parameters for C/C++
code generation from MATLAB® code.
To use a coder.Hardware
object for code generation, assign it to the
Hardware
property of a coder.CodeConfig
or coder.EmbeddedCodeConfig
object that you pass to
codegen
. Assigning a coder.Hardware
object to the
Hardware
property customizes the associated coder.HardwareImplementation
object and other configuration parameters for the
particular hardware board.
coder.hardware(
creates a
boardname
)coder.Hardware
object for the specified hardware board. The board
must be supported by an installed support package. To see a list of available boards,
call coder.hardware
without input parameters.
coder.hardware()
returns a cell array of names of boards
supported by installed support packages.
In addition to the Name
and CPUClockRate
properties, a coder.Hardware
object has dynamic properties specific to
the hardware board.
To configure code generation parameters for processor-in-the-loop (PIL) execution on a
supported hardware board, use coder.hardware
. See PIL Execution with ARM Cortex-A at the Command Line (Embedded Coder) and PIL Execution with ARM Cortex-A by Using the MATLAB Coder App (Embedded Coder). PIL execution requires Embedded Coder®.