Universal synchronous asynchronous receiver
transmitter (USART)
23.2.14.10 USART_MSBFirstCmd
void USART_MSBFirstCmd ( USART_TypeDef * USARTx,
FunctionalState NewState)
Enables or disables the USART's most significant bit first
transmitted/received following the start bit.
ï‚· 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 USART most significant bit first
transmitted/received following the start bit. This parameter
can be: ENABLE or DISABLE.
ï‚· This function has to be called before calling USART_Cmd()
function.
23.2.14.11 USART_DataInvCmd
void USART_DataInvCmd ( USART_TypeDef * USARTx,
FunctionalState NewState)
Enables or disables the binary data inversion.
ï‚· 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 defined levels for the USART data. This
parameter can be: ENABLE or DISABLE.
ï€ ENABLE : Logical data from the data register are
send/received in negative logic. (1=L, 0=H). The parity
bit is also inverted.
ï€ DISABLE : Logical data from the data register are
send/received in positive logic. (1=H, 0=L)
ï‚· This function has to be called before calling USART_Cmd()
function.