/* Enables or disables the specified I2C DMA requests.  */
void I2C_EnableDMA(I2C_Module *I2Cx, FunctionalState Cmd)
/* Enables or disables the specified I2C DMA requests.  */
void I2C_EnableDMA(I2C_Module *I2Cx, FunctionalState Cmd)
{
    assert_param(IS_I2C_PERIPH(I2Cx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        I2Cx->CTRL2 |= CTRL2_DMAEN_SET;
    }
    else
    {
        I2Cx->CTRL2 &= CTRL2_DMAEN_RESET;
    }
}