readRegister
Syntax
Description
data = readRegister(
reads a single value of data stored in the specified register memory address
peripheral,registerAddress)registerAddress of the I2C peripheral device
peripheral and returns the data as a uint8 value.
This operation is done in a single I2C transaction.
data = readRegister(
reads the specified number of values peripheral,registerAddress,count)count from contiguous registers
starting at registerAddress and returns the data as a
uint8 value.
data = readRegister(___,
reads data in the form specified by datatype)datatype.
Examples
Input Arguments
Version History
Introduced in R2023a
See Also
device | writeRegister | read | write