diff --git a/src/shared/drivers/i2c/I2CDriver.h b/src/shared/drivers/i2c/I2CDriver.h index dc9e93a87e24bd849ffde9761aedc4b9aef9aa6f..fee1e0531387cc6207c56cbc5a1bbf81453b0727 100644 --- a/src/shared/drivers/i2c/I2CDriver.h +++ b/src/shared/drivers/i2c/I2CDriver.h @@ -102,16 +102,19 @@ public: */ typedef struct { - uint16_t - slaveAddress; ///< Slave address without shifts (in BIT7 addressing - ///< |9-bit unused|7-bit address|; in BIT10 - ///< addressing |6-bit unused|10-bit address|). - I2CDriver::Addressing addressing = - I2CDriver::Addressing::BIT7; ///< Addressing mode of the device. - I2CDriver::Speed speed = - I2CDriver::Speed::MAX_SPEED; ///< Speed mode of the communication. - bool MSBFirst = false; ///< Registers with lower values are the MSB of - ///< multi-byte registers + ///< Slave address without shifts: + ///< - BIT7 addressing |9-bit unused|7-bit address| + ///< - BIT10 addressing |6-bit unused|10-bit address| + uint16_t slaveAddress; + + ///< Addressing mode of the device. + I2CDriver::Addressing addressing = I2CDriver::Addressing::BIT7; + + ///< Speed mode of the communication. + I2CDriver::Speed speed = I2CDriver::Speed::MAX_SPEED; + + ///< Registers with lower values are the MSB of multi-byte registers + bool MSBFirst = false; } I2CSlaveConfig; /**