i2cdev
Description
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
i2cdev objects represent a connection between an I2C device and
an NVIDIA®
Jetson™ board. Use I2C device objects to read from and write to the I2C device, or read
from and write to specific registers on the device.
Creation
Syntax
Description
i2cobj = i2cdev(
creates an I2C device object for the NVIDIA
Jetson hardware, hwObj,bus,deviceAddress)hwObj, from the I2C bus,
bus, to the I2C device at the address
deviceAddress.
i2cobj = i2cdev(
connects to an I2C bus that is not listed in the available buses.hwObj,bus,deviceAddress,forceBus=forceBusOption)
Input Arguments
Properties
Object Functions
read | Read from I2C device connected to NVIDIA Jetson board |
write | Write to I2C device connected to NVIDIA Jetson board |
readRegister | Read register of I2C device connected to NVIDIA Jetson |
writeRegister | Write to register of I2C device connected to NVIDIA Jetson board |
Examples
Version History
Introduced in R2026a