targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_i2c.c
void I2C_BeginTransaction(I2C_Type* I2Cx, I2C_TransactionType* tr)
{
  
  /* Check the parameters */
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_OPERATION(tr->Operation));
  assert_param(IS_I2C_STARTBYTE(tr->StartByte));
  assert_param(IS_I2C_ADDRESSTYPE(tr->AddressType));
  assert_param(IS_I2C_OWN_ADDRESS1(tr->Address));
  assert_param(IS_I2C_STOPCONDITION(tr->StopCondition));
  assert_param(IS_I2C_LENGTH(tr->Length));
    
  I2Cx->MCR = ((uint32_t)(tr->Operation)) | (((uint32_t)(tr->Address)) << 1) |
        ((uint32_t)(tr->StartByte)) | ((uint32_t)(tr->AddressType)) | 
        ((uint32_t)(tr->StopCondition)) | (((uint32_t)(tr->Length)) << 15);
  
}
/**
  * @brief  Start an I2C transaction sending the frame specified.
  * @param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
  * @param  tr: pointer to an @ref I2C_TransactionType structure used
  *   for this transaction.
  * @retval None.
  */
@brief  Start an I2C transaction sending the frame specified.
@param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
@param  tr: pointer to an @ref I2C_TransactionType structure used
for this transaction.
@retval None.
@brief Start an I2C transaction sending the frame specified . @param I2Cx : where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type @param tr : pointer to an @ref I2C_TransactionType structure used for this transaction . @retval None .
void I2C_BeginTransaction(I2C_Type* I2Cx, I2C_TransactionType* tr)
{
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_OPERATION(tr->Operation));
  assert_param(IS_I2C_STARTBYTE(tr->StartByte));
  assert_param(IS_I2C_ADDRESSTYPE(tr->AddressType));
  assert_param(IS_I2C_OWN_ADDRESS1(tr->Address));
  assert_param(IS_I2C_STOPCONDITION(tr->StopCondition));
  assert_param(IS_I2C_LENGTH(tr->Length));
  I2Cx->MCR = ((uint32_t)(tr->Operation)) | (((uint32_t)(tr->Address)) << 1) |
        ((uint32_t)(tr->StartByte)) | ((uint32_t)(tr->AddressType)) | 
        ((uint32_t)(tr->StopCondition)) | (((uint32_t)(tr->Length)) << 15);
}
void I2C_BeginTransaction ( I2C_Type * I2Cx , I2C_TransactionType * tr ) { assert_param ( IS_I2C_ALL_PERIPH ( I2Cx ) ) ; assert_param ( IS_I2C_OPERATION ( tr -> Operation ) ) ; assert_param ( IS_I2C_STARTBYTE ( tr -> StartByte ) ) ; assert_param ( IS_I2C_ADDRESSTYPE ( tr -> AddressType ) ) ; assert_param ( IS_I2C_OWN_ADDRESS1 ( tr -> Address ) ) ; assert_param ( IS_I2C_STOPCONDITION ( tr -> StopCondition ) ) ; assert_param ( IS_I2C_LENGTH ( tr -> Length ) ) ; I2Cx -> MCR = ( ( uint32_t ) ( tr -> Operation ) ) | ( ( ( uint32_t ) ( tr -> Address ) ) << 1 ) | ( ( uint32_t ) ( tr -> StartByte ) ) | ( ( uint32_t ) ( tr -> AddressType ) ) | ( ( uint32_t ) ( tr -> StopCondition ) ) | ( ( ( uint32_t ) ( tr -> Length ) ) << 15 ) ; }
@brief  Start an I2C transaction sending the frame specified.
@brief Start an I2C transaction sending the frame specified .
/* Check the parameters */