I2C Controller Read
R2026bRead data from I2C peripheral device or I2C peripheral device register
Libraries:
UAV Toolbox Support Package for PX4 Autopilots /
PX4 Peripheral Blocks
Description
Add-On Required: This feature requires the UAV Toolbox Support Package for PX4 Autopilots add-on.
The I2C Controller Read block reads serial data from an I2C peripheral device that is connected to the board. Using this block, you can read data from a specific register on the I2C peripheral device.
To view the mapping between the Bus number and the port label on hardware board, click View I2C Bus map. For more information on the Bus mapping, see I2C Bus Port Numbers for Labels on PX4 Autopilots.
During Normal mode simulation, the block outputs zeroes.
During Connected I/O simulation, this block reads data from the peripherals of the hardware.
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.
"px4Peripheralslib/I2C Controller Read"
Example: add_block("px4Peripheralslib/I2C Controller Read","myModel/myBlock",MakeNameUnique="on")
