51 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| /****************************************************************************
 | |
| Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
 | |
| 
 | |
| This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
 | |
| be copied by any method or incorporated into another program without
 | |
| the express written consent of Aerospace C.Power. This Information or any portion
 | |
| thereof remains the property of Aerospace C.Power. The Information contained herein
 | |
| is believed to be accurate and Aerospace C.Power assumes no responsibility or
 | |
| liability for its use in any way and conveys no license or title under
 | |
| any patent or copyright and makes no representation or warranty that this
 | |
| Information is free from patent or copyright infringement.
 | |
| 
 | |
| ****************************************************************************/
 | |
| 
 | |
| #ifndef _DMA_I2S_H_
 | |
| #define _DMA_I2S_H_
 | |
| 
 | |
| #include "iot_i2s_api.h"
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| typedef  void*  iot_dma_i2s_h;
 | |
| 
 | |
| void i2s_prepare_mic_buf(uint8_t slave, uint8_t master, uint32_t mode);
 | |
| 
 | |
| void i2s_release_mic_rxbuf(uint8_t slave, uint8_t master, uint32_t mode);
 | |
| 
 | |
| iot_dma_i2s_h iot_i2s_dma_open(uint8_t port, uint32_t mode, \
 | |
|     iot_i2s_dma_rcv_func rcv, iot_i2s_dma_send_func send, \
 | |
|     uint8_t phase, uint8_t num);
 | |
| 
 | |
| void iot_i2s_dma_init(void);
 | |
| 
 | |
| uint8_t iot_i2s_dma_push_pool(unsigned char port, char *src, uint32_t size);
 | |
| 
 | |
| uint8_t iot_get_dma_i2s_mic_array_data(uint8_t port, uint32_t size,
 | |
|         uint32_t * fst_addr, uint32_t *fst_size,
 | |
|         uint32_t *snd_addr, uint32_t *snd_size);
 | |
| 
 | |
| uint8_t iot_dma_mic_array_start(uint8_t port);
 | |
| 
 | |
| void iot_i2s_dma_close(uint8_t port);
 | |
| void iot_set_tx_sync_en(uint8_t en);
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif //_DMA_I2S_H_
 |