MG32F10x Standard Peripherals Firmware Library

I2S_PlayAudio/drv_es8316.h
1 #ifndef __DRV_ES8316_H__
2 #define __DRV_ES8316_H__
3
4 /* includes. */
5 #include "mg32f10x.h"
6
7
8 #define ES8316_SLAVE_ADDRESS 0x20
9
10
11
12 uint32_t es8316_init(void);
13 uint32_t es8316_probe(void);
14
15 uint32_t es8316_write_reg(uint8_t reg, uint8_t data);
16 uint32_t es8316_read_reg(uint8_t reg, uint8_t* pdata);
17
18 void es8316_config_play_path(void);
19 void es8316_config_record_path(void);
20
21
22 #endif /* __DRV_ES8316_H__ */