请问大佬:
CYW20706蓝牙模块中的demo: Audui_Gateway如何配置成I2S/PCM slave?
我的目的是使用两个模块,一个作为HF(I2S/PCM master),另一个作为AG(I2S/PCM slave),两者通过PCM_IN,PCM_OUT,PCM_SYNC,PCM_CLK进行物理连接并传输音频数字信号。
但目前没有找到将AG端配置为I2S/OCM slave的方法,还请各位大佬指教。
已解决! 转到解答。
请参考wiced_hal_pcm.h中的API
typedef struct{
wiced_hal_i2spcm_path_t mode; /* 0:I2S, 1:PCM*/
wiced_hal_i2spcm_role_t role; /* I2S/PCM interface role: 0: slave; 1: master */
wiced_hal_pcm_param_t pcm_param; /* Configure pcm1 param here*/
}wiced_hal_pcm_config_t;
/**
* Function wiced_hal_set_pcm_config
*
* To set the pcm configuration parameter
*
* @param[in] pcm_config : strucure pointer
*
* @return void
*
*/
void wiced_hal_set_pcm_config (wiced_hal_pcm_config_t *pcm_config);
请参考wiced_hal_pcm.h中的API
typedef struct{
wiced_hal_i2spcm_path_t mode; /* 0:I2S, 1:PCM*/
wiced_hal_i2spcm_role_t role; /* I2S/PCM interface role: 0: slave; 1: master */
wiced_hal_pcm_param_t pcm_param; /* Configure pcm1 param here*/
}wiced_hal_pcm_config_t;
/**
* Function wiced_hal_set_pcm_config
*
* To set the pcm configuration parameter
*
* @param[in] pcm_config : strucure pointer
*
* @return void
*
*/
void wiced_hal_set_pcm_config (wiced_hal_pcm_config_t *pcm_config);
谢谢回复!