You can create models for targeting the same way you create other Simulink® models—by combining standard blocks and C-MEX S-functions.
You can use blocks from the following sources:
Hardware support packages, which you can install using
The Embedded Targets library (
Blocks from the System Toolboxes products
|Byte Pack||Convert input signals to |
|Byte Reversal||Reverse order of bytes in input word|
|Byte Unpack||Unpack UDP |
|CAN Pack||Pack individual signals into CAN message|
|CAN Unpack||Unpack individual signals from CAN messages|
|Host SCI Receive||Configure host-side serial communications interface to receive data from serial port|
|Host SCI Setup||Configure COM ports for host-side SCI Transmit and Receive blocks|
|Host SCI Transmit||Configure host-side serial communications interface to transmit data to serial port|
|UDP Receive||Receive UDP packet|
|UDP Send||Send UDP message|
Configuring the model for code generation.