I2C Minimum Speed#
Soft Driver#
Defined in namespace hal::soft
#include <libhal-soft/i2c_minimum_speed.hpp>
-
class minimum_speed_i2c : public hal::i2c#
A i2c wrapper to ensure that the lowest i2c device frequency is used.
Public Static Functions
-
static result<minimum_speed_i2c> create(hal::i2c &p_i2c, hertz p_frequency = default_max_speed)#
Factory function to create minimum_speed_i2c object.
- Parameters:
p_i2c – - i2c object that the device will use
p_frequency – - the maximum starting frequency the device can use
- Returns:
minimum_speed_i2c - the configured i2c object using the lowest seen frequency
-
static result<minimum_speed_i2c> create(hal::i2c &p_i2c, hertz p_frequency = default_max_speed)#