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 Functions

minimum_speed_i2c(hal::i2c &p_i2c, hertz p_frequency = default_max_speed)#

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