1 /* 2 * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #pragma once 8 9 #include <stdint.h> 10 #include "soc/soc_caps.h" 11 #include "soc/periph_defs.h" 12 #include "soc/parl_io_reg.h" 13 #include "soc/parl_io_struct.h" 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 typedef struct { 20 struct { 21 struct { 22 const int data_sigs[SOC_PARLIO_TX_UNIT_MAX_DATA_WIDTH]; 23 const int clk_out_sig; 24 const int clk_in_sig; 25 } tx_units[SOC_PARLIO_TX_UNITS_PER_GROUP]; 26 struct { 27 const int data_sigs[SOC_PARLIO_RX_UNIT_MAX_DATA_WIDTH]; 28 const int clk_out_sig; 29 const int clk_in_sig; 30 } rx_units[SOC_PARLIO_RX_UNITS_PER_GROUP]; 31 const int tx_irq_id; 32 const int rx_irq_id; 33 const periph_module_t module; 34 } groups[SOC_PARLIO_GROUPS]; 35 } parlio_signal_conn_t; 36 37 extern const parlio_signal_conn_t parlio_periph_signals; 38 39 #ifdef __cplusplus 40 } 41 #endif 42