/* Set the transfer mode for the I2S communication.  */
void I2S_SetTransMode(CM_I2S_TypeDef *I2Sx, uint32_t u32Mode)
/* Set the transfer mode for the I2S communication.  */
void I2S_SetTransMode(CM_I2S_TypeDef *I2Sx, uint32_t u32Mode)
{
    DDL_ASSERT(IS_I2S_UNIT(I2Sx));
    DDL_ASSERT(IS_I2S_TRANS_MD(u32Mode));
    MODIFY_REG32(I2Sx->CTRL, (I2S_CTRL_DUPLEX | I2S_CTRL_SDOE), u32Mode);
}