Skip to content

I2cMaster::connect<Signals..., reset>() without resetting devices #841

@rleh

Description

@rleh

The I2cMaster::connect<Signals..., reset>() function takes a I2cMaster::ResetDevices enum value as (last) template argument to configure/disable the integrated reset mechanism.

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>();

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions