Universal synchronous asynchronous receiver
transmitter (USART)
void USART_ClockStructInit ( USART_ClockInitTypeDef *
USART_ClockInitStruct)
Fills each USART_ClockInitStruct member with its default value.
ï‚· USART_ClockInitStruct : pointer to a
USART_ClockInitTypeDef structure which will be initialized.
23.2.14.6 USART_Cmd
void USART_Cmd ( USART_TypeDef * USARTx,
FunctionalState NewState)
Enables or disables the specified USART peripheral.
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· NewState : new state of the USARTx peripheral. This
parameter can be: ENABLE or DISABLE.
23.2.14.7 USART_DirectionModeCmd
void USART_DirectionModeCmd ( USART_TypeDef *
USARTx, uint32_t USART_DirectionMode, FunctionalState
NewState)
Enables or disables the USART's transmitter or receiver.
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· USART_Direction : specifies the USART direction. This
parameter can be any combination of the following values:
ï€ USART_Mode_Tx : USART Transmitter
ï€ USART_Mode_Rx : USART Receiver