• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 #include "soc/soc.h"
17 #include "soc/periph_defs.h"
18 #include "soc/i2s_struct.h"
19 #include "soc/i2s_reg.h"
20 #include "soc/soc_caps.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /*
27  Stores a bunch of per-I2S-peripheral data.
28 */
29 typedef struct {
30     const uint8_t o_bck_in_sig;
31     const uint8_t o_ws_in_sig;
32     const uint8_t o_bck_out_sig;
33     const uint8_t o_ws_out_sig;
34     const uint8_t o_data_out_sig;
35     const uint8_t i_bck_in_sig;
36     const uint8_t i_ws_in_sig;
37     const uint8_t i_bck_out_sig;
38     const uint8_t i_ws_out_sig;
39     const uint8_t i_data_in_sig;
40     const uint8_t irq;
41     const periph_module_t module;
42 } i2s_signal_conn_t;
43 
44 extern const i2s_signal_conn_t i2s_periph_signal[SOC_I2S_NUM];
45 
46 #ifdef __cplusplus
47 }
48 #endif
49