targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_i2c.c
void I2C_DMACmd(I2C_Type* I2Cx, uint16_t I2C_DMAReq, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_DMAREQ(I2C_DMAReq));  
  assert_param(IS_FUNCTIONAL_STATE(NewState)); 

  if (NewState != DISABLE)
  {
    /* Enable the DMA transfer */
    I2Cx->CR |= I2C_DMAReq;
  }
  else
  {
    /* Disable the DMA transfer */
    I2Cx->CR &= ~I2C_DMAReq;
  }
}
/**
  * @brief  Enables or disables the I2C DMA interface.
  * @param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
  * @param  I2C_DMAReq: specifies the DMA request.
  *   This parameter can be any combination of the following values:
  *     @arg I2C_DMAReq_Tx: I2C DMA transmit request
  *     @arg I2C_DMAReq_Rx: I2C DMA receive request.
  * @param  NewState: functional state @ref FunctionalState
  *   This parameter can be: ENABLE or DISABLE.   
  * @retval None
  */
@brief  Enables or disables the I2C DMA interface.
@param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
@param  I2C_DMAReq: specifies the DMA request.
This parameter can be any combination of the following values:
@arg I2C_DMAReq_Tx: I2C DMA transmit request
@arg I2C_DMAReq_Rx: I2C DMA receive request.
@param  NewState: functional state @ref FunctionalState
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Enables or disables the I2C DMA interface . @param I2Cx : where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type @param I2C_DMAReq : specifies the DMA request . This parameter can be any combination of the following values : @arg I2C_DMAReq_Tx : I2C DMA transmit request @arg I2C_DMAReq_Rx : I2C DMA receive request . @param NewState : functional state @ref FunctionalState This parameter can be : ENABLE or DISABLE . @retval None
void I2C_DMACmd(I2C_Type* I2Cx, uint16_t I2C_DMAReq, FunctionalState NewState)
{
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_DMAREQ(I2C_DMAReq));  
  assert_param(IS_FUNCTIONAL_STATE(NewState)); 
  if (NewState != DISABLE)
  {
    I2Cx->CR |= I2C_DMAReq;
  }
  else
  {
    I2Cx->CR &= ~I2C_DMAReq;
  }
}
void I2C_DMACmd ( I2C_Type * I2Cx , uint16_t I2C_DMAReq , FunctionalState NewState ) { assert_param ( IS_I2C_ALL_PERIPH ( I2Cx ) ) ; assert_param ( IS_I2C_DMAREQ ( I2C_DMAReq ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState != DISABLE ) { I2Cx -> CR |= I2C_DMAReq ; } else { I2Cx -> CR &= ~ I2C_DMAReq ; } }
@brief  Enables or disables the I2C DMA interface.
@brief Enables or disables the I2C DMA interface .
/* Check the parameters */ /* Enable the DMA transfer */ /* Disable the DMA transfer */