class I2CReadParameter

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
deviceuint32I2C device identification
device_addressuint32I2C device address
sizeuint32I2C number of bytes to read (max 128 bytes)
timeoutuint32Request timeout in milliseconds

Member functions

Function nameReturn typeInput typeDescription
device() constuint32voidReturns the current value of device. If the device is not set, returns 0.
set_device()voiduint32Sets the value of device. After calling this, device() will return value.
clear_device()voidvoidClears the value of device. After calling this, device() will return the empty string/empty bytes.
device_address()uint32voidReturns the current value of device_address. If the device_address is not set, returns 0.
set_device_address()voiduint32Sets the value of device_address. After calling this, device_address() will return value.
clear_device_address()voidvoidClears the value of device_address. After calling this, device_address() will return 0.
size()uint32voidReturns the current value of size. If the size is not set, returns 0.
set_size()voiduint32Sets the value of size. After calling this, size() will return value.
clear_size()voidvoidClears the value of size. After calling this, size() will return 0.
timeout()uint32voidReturns the current value of timeout. If the timeout is not set, returns 0.
set_timeout()voiduint32Sets the value of timeout. After calling this, timeout() will return value.
clear_timeout()voidvoidClears the value of timeout. After calling this, timeout() will return 0.

Parent topic: InterconnectConfig (C++)