1 // Copyright 2019 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // http://www.apache.org/licenses/LICENSE-2.0 7 // 8 // Unless required by applicable law or agreed to in writing, software 9 // distributed under the License is distributed on an "AS IS" BASIS, 10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // See the License for the specific language governing permissions and 12 // limitations under the License. 13 14 #pragma once 15 16 #include "soc/i2c_reg.h" 17 #include "soc/i2c_struct.h" 18 #include "soc/soc_caps.h" 19 #include "soc/periph_defs.h" 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 typedef struct { 26 const uint8_t sda_out_sig; 27 const uint8_t sda_in_sig; 28 const uint8_t scl_out_sig; 29 const uint8_t scl_in_sig; 30 const uint8_t irq; 31 const periph_module_t module; 32 } i2c_signal_conn_t; 33 34 extern const i2c_signal_conn_t i2c_periph_signal[SOC_I2C_NUM]; 35 36 #ifdef __cplusplus 37 } 38 #endif 39