Hauptinhalt

SPI Register Write

R2026b

Write data to registers of an SPI peripheral device

  • SPI Register Write block

Libraries:
Simulink Coder Support Package for BeagleBone Blue Hardware / Communication

Description

Add-On Required: This feature requires the Simulink Coder Support Package for BeagleBone Blue Hardware add-on.

The SPI Register Write block writes the block input data to specified register address. To open the pin map of the BeagleBone® Blue board, click the View pin map button.

Ports

Input

expand all

The input port to accept data to write the data to the SPI peripheral register.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Parameters

expand all

Select the pin number on the BeagleBone Blue board to which the SPI peripheral device is connected.

Select the SPI communication mode.

Enter the peripheral register address to write the data.

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"bbblueCommlib/SPI Register Write"

Example: add_block("bbblueCommlib/SPI Register Write","myModel/myBlock",MakeNameUnique="on")

Version History

Introduced in R2018b