I2C Controller Read
R2026bRead data from I2C Peripheral devices or I2C Peripheral devices register
Libraries:
STM32 Microcontroller Blockset /
STM32F1xx Based Boards
STM32 Microcontroller Blockset /
STM32F2xx Based Boards
STM32 Microcontroller Blockset /
STM32F3xx Based Boards
STM32 Microcontroller Blockset /
STM32F4xx Based Boards
STM32 Microcontroller Blockset /
STM32F7xx Based Boards
STM32 Microcontroller Blockset /
STM32G0xx Based Boards
STM32 Microcontroller Blockset /
STM32G4xx Based Boards
STM32 Microcontroller Blockset /
STM32H5xx Based Boards
STM32 Microcontroller Blockset /
STM32H7xx Based Boards
STM32 Microcontroller Blockset /
STM32H7RSxx Based Boards
STM32 Microcontroller Blockset /
STM32L4xx Based Boards
STM32 Microcontroller Blockset /
STM32L5xx Based Boards
STM32 Microcontroller Blockset /
STM32N6xx Based Boards
STM32 Microcontroller Blockset /
STM32U5xx Based Boards
STM32 Microcontroller Blockset /
STM32WBxx Based Boards
Description
The I2C Controller Read block reads serial data from an I2C Peripheral devices that is connected to the board. Using this block, you can read data from a specific register on the I2C Peripheral devices.
For more information on I2C communication, see Support I2C Communication.
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.
"stm32f1xxblockslib/I2C Controller Read"
"stm32f2xxblockslib/I2C Controller Read"
"stm32f3xxblockslib/I2C Controller Read"
"stm32f4xxblockslib/I2C Controller Read"
"stm32f7xxblockslib/I2C Controller Read"
"stm32g0xxblockslib/I2C Controller Read"
"stm32g4xxblockslib/I2C Controller Read"
"stm32h5xxblockslib/I2C Controller Read"
"stm32h7xxblockslib/I2C Controller Read"
"stm32h7rsxxblockslib/I2C Controller Read"
"stm32l4xxblockslib/I2C Controller Read"
"stm32l5xxblockslib/I2C Controller Read"
"stm32n6xxblockslib/I2C Controller Read"
"stm32u5xxblockslib/I2C Controller Read"
"stm32wbxxblockslib/I2C Controller Read"
Example: add_block("stm32f1xxblockslib/I2C Controller Read","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2018a
