-
Couldn't load subscription status.
- Fork 155
Closed
Description
The I2cMaster::connect<Signals..., reset>() function takes a I2cMaster::ResetDevices enum value as (last) template argument to configure/disable the integrated reset mechanism.
modm/src/modm/platform/i2c/stm32/i2c_master.hpp.in
Lines 43 to 45 in 0992ab1
| template<class... Signals, ResetDevices reset = ResetDevices::Standard> | |
| static void | |
| connect(PullUps pullups = PullUps::External) |
The default value is ResetDevices::Standard (= pull SDA low and 9 clock cycles at 100kHz) which works fine, but it is not possible to actually specify a (different) value:
error: no matching function for call to 'modm::platform::I2cMaster1::connect<modm::platform::detail::DataB8::Scl, modm::platform::detail::DataB9::Sda, modm::I2cMaster::ResetDevices::NoReset>()'
MyI2cMaster::connect<Scl::Scl, Sda::Sda, modm::I2cMaster::ResetDevices::NoReset>();