10#ifndef SEMF_HARDWAREABSTRACTION_STM32F4_STM32F4I2CSLAVE_H_
11#define SEMF_HARDWAREABSTRACTION_STM32F4_STM32F4I2CSLAVE_H_
15#if defined(STM32F4) && defined(HAL_I2C_MODULE_ENABLED)
21class Stm32F4I2cSlave :
public Stm32I2cSlave
27 enum class ErrorCode : uint8_t
29 SetFrequencyHardware_FrequencyNotSupported = 0
40 void clearBusyFlagErratum(GPIO_TypeDef* sclPort, uint16_t sclPin,
41 GPIO_TypeDef* sdaPort, uint16_t sdaPin, uint8_t alternate);
48 void setFrequencyHardware(uint32_t hz)
override;
52 static constexpr Error::ClassID kSemfClassId = Error::ClassID::Stm32F4I2cSlave;
Stm32I2cSlave(I2C_HandleTypeDef &hwHandle)
Constructor.