Lines Matching +full:max +full:- +full:virtual +full:- +full:functions

32     virtual ~I2CException() = default;
51 virtual ~I2CInterface() = default;
73 virtual void open() = 0;
79 virtual bool isOpen() const = 0;
83 * The interface can later be re-opened by calling open().
92 virtual void close() = 0;
96 * @param[out] data - The data read from the i2c device
100 virtual void read(uint8_t& data) = 0;
104 * @param[in] addr - The register address of the i2c device
105 * @param[out] data - The data read from the i2c device
109 virtual void read(uint8_t addr, uint8_t& data) = 0;
114 * the first byte read is the low-order byte.
116 * @param[in] addr - The register address of the i2c device
117 * @param[out] data - The data read from the i2c device
121 virtual void read(uint8_t addr, uint16_t& data) = 0;
125 * @param[in] addr - The register address of the i2c device
126 * @param[in,out] size - The out parameter to indicate the size of data read
129 * @param[out] data - The pointer to buffer to read from the i2c device,
133 * @param[in] mode - The block read mode, either SMBus or I2C.
134 * Internally, it invokes functions from libi2c:
140 virtual void read(uint8_t addr, uint8_t& size, uint8_t* data,
145 * @param[in] data - The data to write to the i2c device
149 virtual void write(uint8_t data) = 0;
153 * @param[in] addr - The register address of the i2c device
154 * @param[in] data - The data to write to the i2c device
158 virtual void write(uint8_t addr, uint8_t data) = 0;
163 * the first byte written is the low-order byte.
165 * @param[in] addr - The register address of the i2c device
166 * @param[in] data - The data to write to the i2c device
170 virtual void write(uint8_t addr, uint16_t data) = 0;
174 * @param[in] addr - The register address of the i2c device
175 * @param[in] size - The size of data to write, SMBus allows at most 32
177 * @param[in] data - The data to write to the i2c device
178 * @param[in] mode - The block write mode, either SMBus or I2C.
179 * Internally, it invokes functions from libi2c:
185 virtual void write(uint8_t addr, uint8_t size, const uint8_t* data,
190 * @param[in] addr - The register address of the i2c device
191 * @param[in] writeData - The data to write to the i2c device
192 * @param[out] readData - The data read from the i2c device
196 virtual void processCall(uint8_t addr, uint16_t writeData,
199 /** @brief SMBus Block Write-Block Read Process Call protocol
208 * I2C-level commands, the maximum write size is 255 bytes. The read size +
211 * @param[in] addr - The register address of the i2c device
212 * @param[in] writeSize - The size of data to write
213 * @param[in] writeData - The data to write to the i2c device
214 * @param[out] readSize - The size of data read from i2c device. Max read
216 * @param[out] readData - Pointer to buffer to hold the data read from the
218 * returned by the device (max is 32 bytes).
222 virtual void processCall(uint8_t addr, uint8_t writeSize,
231 * @param[in] busId - The i2c bus ID
232 * @param[in] devAddr - The device address of the i2c
233 * @param[in] initialState - Initial state of the I2CInterface object
234 * @param[in] maxRetries - Maximum number of times to retry an I2C operation