/* Enables or disables the USART's one bit sampling method.  */
void USART_OneBitMethodCmd(USART_TypeDef *USARTx, FunctionalState NewState)
/* Enables or disables the USART's one bit sampling method.  */
void USART_OneBitMethodCmd(USART_TypeDef *USARTx, FunctionalState NewState)
{
  assert_param(IS_USART_ALL_PERIPH(USARTx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    USARTx->CR3 |= USART_CR3_ONEBIT;
  }
  else
  {
    USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT);
  }
}