SPI Register Read
R2026bRead data from SPI peripheral device register
Libraries:
Raspberry Pi Blockset /
Communication
Description
The SPI Register Read block initiates an SPI read operation from an SPI peripheral register. You can specify the data type and data length to get data from the peripheral registers. To open the pin map of the Raspberry Pi board, click the View pin map button.
For more information on SPI communication, refer to Support SPI Communication and Raspberry Pi SPI Interface
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"raspberrypiCommlib/SPI Register Read"
Example: add_block("raspberrypiCommlib/SPI Register Read","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2017a
