Zephyr Project API
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
13
enum
i2c_stm32_mode
{
14
I2CSTM32MODE_I2C
,
15
I2CSTM32MODE_SMBUSHOST
,
16
I2CSTM32MODE_SMBUSDEVICE
,
17
I2CSTM32MODE_SMBUSDEVICEARP
,
18
};
19
20
void
i2c_stm32_set_smbus_mode
(
const
struct
device
*dev,
enum
i2c_stm32_mode
mode);
21
22
#ifdef CONFIG_SMBUS_STM32_SMBALERT
23
typedef
void (*i2c_stm32_smbalert_cb_func_t)(
const
struct
device
*dev);
24
25
void
i2c_stm32_smbalert_set_callback(
const
struct
device
*dev, i2c_stm32_smbalert_cb_func_t
func
,
26
const
struct
device
*cb_dev);
27
void
i2c_stm32_smbalert_enable(
const
struct
device
*dev);
28
void
i2c_stm32_smbalert_disable(
const
struct
device
*dev);
29
#endif
/* CONFIG_SMBUS_STM32_SMBALERT */
30
31
#endif
/* ZEPHYR_INCLUDE_DRIVERS_I2C_STM32_H_ */
device.h
i2c_stm32_mode
i2c_stm32_mode
Definition
stm32.h:13
I2CSTM32MODE_SMBUSHOST
@ I2CSTM32MODE_SMBUSHOST
Definition
stm32.h:15
I2CSTM32MODE_SMBUSDEVICE
@ I2CSTM32MODE_SMBUSDEVICE
Definition
stm32.h:16
I2CSTM32MODE_SMBUSDEVICEARP
@ I2CSTM32MODE_SMBUSDEVICEARP
Definition
stm32.h:17
I2CSTM32MODE_I2C
@ I2CSTM32MODE_I2C
Definition
stm32.h:14
i2c_stm32_set_smbus_mode
void i2c_stm32_set_smbus_mode(const struct device *dev, enum i2c_stm32_mode mode)
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:403
func
static void func(void *arg1, void *arg2, void *arg3)
Definition
main.c:26
include
zephyr
drivers
i2c
stm32.h
Generated on Sun Sep 15 2024 17:01:29 for Zephyr Project API by
1.9.8