targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_i2c.c
void I2C_SetHoldTimeStartCondition(I2C_Type* I2Cx, uint16_t I2C_HoldTime)
{
  /* Check the parameters */
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_HOLDTIME(I2C_HoldTime));

  /* Standard mode */
  if(I2Cx->CR_b.SM == I2C_CR_SM_STD) {
    I2Cx->THDSTA_FST_STD_b.THDSTA_STD = I2C_HoldTime;
  }
  else if(I2Cx->CR_b.SM == I2C_CR_SM_FAST) {
    I2Cx->THDSTA_FST_STD_b.THDSTA_FST = I2C_HoldTime;
  }
}
/**
  * @brief  Set the hold time value for start condition.
  * @param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
  * @param  I2C_HoldTime: specifies the hold time value.
  * @retval None
  */
@brief  Set the hold time value for start condition.
@param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
@param  I2C_HoldTime: specifies the hold time value.
@retval None
@brief Set the hold time value for start condition . @param I2Cx : where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type @param I2C_HoldTime : specifies the hold time value . @retval None
void I2C_SetHoldTimeStartCondition(I2C_Type* I2Cx, uint16_t I2C_HoldTime)
{
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_HOLDTIME(I2C_HoldTime));
  if(I2Cx->CR_b.SM == I2C_CR_SM_STD) {
    I2Cx->THDSTA_FST_STD_b.THDSTA_STD = I2C_HoldTime;
  }
  else if(I2Cx->CR_b.SM == I2C_CR_SM_FAST) {
    I2Cx->THDSTA_FST_STD_b.THDSTA_FST = I2C_HoldTime;
  }
}
void I2C_SetHoldTimeStartCondition ( I2C_Type * I2Cx , uint16_t I2C_HoldTime ) { assert_param ( IS_I2C_ALL_PERIPH ( I2Cx ) ) ; assert_param ( IS_I2C_HOLDTIME ( I2C_HoldTime ) ) ; if ( I2Cx -> CR_b . SM == I2C_CR_SM_STD ) { I2Cx -> THDSTA_FST_STD_b . THDSTA_STD = I2C_HoldTime ; } else if ( I2Cx -> CR_b . SM == I2C_CR_SM_FAST ) { I2Cx -> THDSTA_FST_STD_b . THDSTA_FST = I2C_HoldTime ; } }
@brief  Set the hold time value for start condition.
@brief Set the hold time value for start condition .
/* Check the parameters */ /* Standard mode */