Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 SILA Embedded Solutions GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 */
7
8#ifndef ZEPHYR_INCLUDE_DRIVERS_I2C_STM32_H_
9#define ZEPHYR_INCLUDE_DRIVERS_I2C_STM32_H_
10
11#include <zephyr/device.h>
12
18};
19
20void i2c_stm32_set_smbus_mode(const struct device *dev, enum i2c_stm32_mode mode);
21
22#ifdef CONFIG_SMBUS_STM32_SMBALERT
23typedef void (*i2c_stm32_smbalert_cb_func_t)(const struct device *dev);
24
25void i2c_stm32_smbalert_set_callback(const struct device *dev, i2c_stm32_smbalert_cb_func_t func,
26 const struct device *cb_dev);
27void i2c_stm32_smbalert_enable(const struct device *dev);
28void i2c_stm32_smbalert_disable(const struct device *dev);
29#endif /* CONFIG_SMBUS_STM32_SMBALERT */
30
31#endif /* ZEPHYR_INCLUDE_DRIVERS_I2C_STM32_H_ */
i2c_stm32_mode
Definition: stm32.h:13
@ I2CSTM32MODE_SMBUSHOST
Definition: stm32.h:15
@ I2CSTM32MODE_SMBUSDEVICE
Definition: stm32.h:16
@ I2CSTM32MODE_SMBUSDEVICEARP
Definition: stm32.h:17
@ I2CSTM32MODE_I2C
Definition: stm32.h:14
void i2c_stm32_set_smbus_mode(const struct device *dev, enum i2c_stm32_mode mode)
Runtime device structure (in ROM) per driver instance.
Definition: device.h:403