如何将demo:Audio_Gateway配置成I2S/PCM slave?

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
PeYu_4639956
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

请问大佬:

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的方法,还请各位大佬指教。

0 点赞
1 解答
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

请参考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);

在原帖中查看解决方案

0 点赞
2 回复数
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

请参考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);

0 点赞

谢谢回复!

0 点赞