RBControl
Library for the RB3201-RBControl board with the ESP32 by RoboticsBrno.
i2s_parallel.h
Go to the documentation of this file.
1 #ifndef I2S_PARALLEL_H
2 #define I2S_PARALLEL_H
3 
4 #include "soc/i2s_struct.h"
5 #include <stdint.h>
6 
7 typedef enum {
12 
14 typedef struct {
15  void* memory;
16  size_t size;
17 } i2s_parallel_buffer_desc_t;
18 
20 typedef struct {
21  int gpio_bus[24];
22  int gpio_wclk;
23  bool inv_wclk;
24  int gpio_bclk;
25  bool inv_bclk;
26  int clkspeed;
28  i2s_parallel_buffer_desc_t* bufa;
29  i2s_parallel_buffer_desc_t* bufb;
30 } i2s_parallel_config_t;
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 int i2snum(i2s_dev_t* dev);
37 void i2s_parallel_setup(i2s_dev_t* dev, const i2s_parallel_config_t* cfg);
38 void i2s_parallel_flip_to_buffer(i2s_dev_t* dev, int bufid);
39 
40 #ifdef __cplusplus
41 } // extern "C"
42 #endif
43 
44 #endif
i2s_parallel_cfg_bits_t
Definition: i2s_parallel.h:7
@ I2S_PARALLEL_BITS_16
Definition: i2s_parallel.h:9
@ I2S_PARALLEL_BITS_8
Definition: i2s_parallel.h:8
@ I2S_PARALLEL_BITS_32
Definition: i2s_parallel.h:10
int i2snum(i2s_dev_t *dev)
void i2s_parallel_setup(i2s_dev_t *dev, const i2s_parallel_config_t *cfg)
void i2s_parallel_flip_to_buffer(i2s_dev_t *dev, int bufid)