This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

SPI Register Read

Read data from SPI slave device register

  • Library:
  • Simulink Coder Support Package for BeagleBone Blue Hardware / Communication

Description

The SPI Register Read block initiates an SPI read operation from an SPI slave register. You can specify the data type and data length to get data from the slave registers. To open the pin map of the BeagleBone® board, click the View pin map button.

Ports

Output

expand all

This port is the output port to read data from an SPI slave register.

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

Parameters

expand all

Select the mode of SPI communication.

Enter the SPI slave register address to read the data.

Select the data type for SPI communication.

Enter the output data length of the selected data type to read from the SPI slave register.

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

Specify how often the block reads data from the SPI slave device. When you specify this parameter as-1,Simulink® determines the best sample time for the block based on the block context within the model.

Introduced in R2018b