1 /* 2 * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #pragma once 8 #include <stdint.h> 9 #include "soc/soc_caps.h" 10 #include "soc/periph_defs.h" 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 /* 17 Stores a bunch of USB-peripheral data. 18 */ 19 typedef struct { 20 const uint8_t extphy_vp_in; 21 const uint8_t extphy_vm_in; 22 const uint8_t extphy_rcv_in; 23 const uint8_t extphy_oen_out; 24 const uint8_t extphy_vpo_out; 25 const uint8_t extphy_vmo_out; 26 const uint8_t extphy_suspend_in; 27 const uint8_t extphy_speed_in; 28 const uint8_t srp_bvalid_in; 29 const uint8_t srp_sessend_in; 30 const uint8_t srp_chrgvbus_out; 31 const uint8_t srp_dischrgvbus_out; 32 const uint8_t otg_iddig_in; 33 const uint8_t otg_avalid_in; 34 const uint8_t otg_vbusvalid_in; 35 const uint8_t otg_idpullup_out; 36 const uint8_t otg_dppulldown_out; 37 const uint8_t otg_dmpulldown_out; 38 const uint8_t otg_drvvbus_out; 39 const periph_module_t module; 40 } usb_phy_signal_conn_t; 41 42 extern const usb_phy_signal_conn_t usb_otg_periph_signal; 43 44 #ifdef __cplusplus 45 } 46 #endif 47