VSF Documented
i2c_types.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2026 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18/*
19 * Clean-room public types shared between the new I2C master driver
20 * (i2c_master.h) and future slave driver (i2c_slave.h).
21 *
22 * Authored from ESP-IDF v5.2 public API only.
23 */
24
25#ifndef __VSF_ESPIDF_I2C_TYPES_H__
26#define __VSF_ESPIDF_I2C_TYPES_H__
27
28#include <stdint.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/*============================ TYPES =========================================*/
35
42typedef int i2c_port_num_t;
43
51#ifndef I2C_NUM_MAX
52# define I2C_NUM_MAX 2
53#endif
54
58typedef enum {
62
71#define I2C_CLK_SRC_DEFAULT 0
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* __VSF_ESPIDF_I2C_TYPES_H__ */
int i2c_port_num_t
I2C port number.
Definition i2c_types.h:42
int i2c_clock_source_t
I2C clock source.
Definition i2c_types.h:70
i2c_addr_bit_len_t
I2C device address bit length.
Definition i2c_types.h:58
@ I2C_ADDR_BIT_LEN_7
Definition i2c_types.h:59
@ I2C_ADDR_BIT_LEN_10
Definition i2c_types.h:60
Generated from commit: vsfteam/vsf@015f4d1