I2C Controller Read
R2026bRead data from I2C peripheral device or I2C peripheral device register
Libraries:
Raspberry Pi Blockset /
Communication
Description
Read serial data from an I2C peripheral. Using this block, you can also read data from a specific register on the I2C peripheral device.
For more information on I2C communication, refer to Support I2C Communication and Raspberry Pi I2C 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/I2C Controller Read"
Example: add_block("raspberrypiCommlib/I2C Controller Read","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2017a
