![]() |
STM32F37 Standard Peripheral bibliotheek
1.0
ST Microelectronics bibliotheek documentatie voor de STM32F37 Standard Peripheral Library
|
USART driver modules. More...
Modules | |
| USART_Exported_Constants | |
| USART_Private_Functions | |
Data Structures | |
| struct | USART_InitTypeDef |
| USART Init Structure definition. More... | |
| struct | USART_ClockInitTypeDef |
| USART Clock Init Structure definition. More... | |
Macros | |
| #define | CR1_CLEAR_MASK |
| #define | CR2_CLOCK_CLEAR_MASK |
| #define | CR3_CLEAR_MASK ((uint32_t)(USART_CR3_RTSE | USART_CR3_CTSE)) |
| #define | IT_MASK ((uint32_t)0x000000FF) |
Functions | |
| void | USART_DeInit (USART_TypeDef *USARTx) |
| Deinitializes the USARTx peripheral registers to their default reset values. More... | |
| void | USART_Init (USART_TypeDef *USARTx, USART_InitTypeDef *USART_InitStruct) |
| Initializes the USARTx peripheral according to the specified parameters in the USART_InitStruct . More... | |
| void | USART_StructInit (USART_InitTypeDef *USART_InitStruct) |
| Fills each USART_InitStruct member with its default value. More... | |
| void | USART_ClockInit (USART_TypeDef *USARTx, USART_ClockInitTypeDef *USART_ClockInitStruct) |
| Initializes the USARTx peripheral Clock according to the specified parameters in the USART_ClockInitStruct. More... | |
| void | USART_ClockStructInit (USART_ClockInitTypeDef *USART_ClockInitStruct) |
| Fills each USART_ClockInitStruct member with its default value. More... | |
| void | USART_Cmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the specified USART peripheral. More... | |
| void | USART_DirectionModeCmd (USART_TypeDef *USARTx, uint32_t USART_DirectionMode, FunctionalState NewState) |
| Enables or disables the USART's transmitter or receiver. More... | |
| void | USART_SetPrescaler (USART_TypeDef *USARTx, uint8_t USART_Prescaler) |
| Sets the system clock prescaler. More... | |
| void | USART_OverSampling8Cmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's 8x oversampling mode. More... | |
| void | USART_OneBitMethodCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's one bit sampling method. More... | |
| void | USART_MSBFirstCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's most significant bit first transmitted/received following the start bit. More... | |
| void | USART_DataInvCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the binary data inversion. More... | |
| void | USART_InvPinCmd (USART_TypeDef *USARTx, uint32_t USART_InvPin, FunctionalState NewState) |
| Enables or disables the Pin(s) active level inversion. More... | |
| void | USART_SWAPPinCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the swap Tx/Rx pins. More... | |
| void | USART_ReceiverTimeOutCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the receiver Time Out feature. More... | |
| void | USART_SetReceiverTimeOut (USART_TypeDef *USARTx, uint32_t USART_ReceiverTimeOut) |
| Sets the receiver Time Out value. More... | |
| void | USART_STOPModeCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the specified USART peripheral in STOP Mode. More... | |
| void | USART_StopModeWakeUpSourceConfig (USART_TypeDef *USARTx, uint32_t USART_WakeUpSource) |
| Selects the USART WakeUp method form stop mode. More... | |
| void | USART_AutoBaudRateCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the Auto Baud Rate. More... | |
| void | USART_AutoBaudRateConfig (USART_TypeDef *USARTx, uint32_t USART_AutoBaudRate) |
| Selects the USART auto baud rate method. More... | |
| void | USART_SendData (USART_TypeDef *USARTx, uint16_t Data) |
| Transmits single data through the USARTx peripheral. More... | |
| uint16_t | USART_ReceiveData (USART_TypeDef *USARTx) |
| Returns the most recent received data by the USARTx peripheral. More... | |
| void | USART_SetAddress (USART_TypeDef *USARTx, uint8_t USART_Address) |
| Sets the address of the USART node. More... | |
| void | USART_MuteModeWakeUpConfig (USART_TypeDef *USARTx, uint32_t USART_WakeUp) |
| Selects the USART WakeUp method from mute mode. More... | |
| void | USART_MuteModeCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's mute mode. More... | |
| void | USART_AddressDetectionConfig (USART_TypeDef *USARTx, uint32_t USART_AddressLength) |
| Configure the the USART Address detection length. More... | |
| void | USART_LINBreakDetectLengthConfig (USART_TypeDef *USARTx, uint32_t USART_LINBreakDetectLength) |
| Sets the USART LIN Break detection length. More... | |
| void | USART_LINCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's LIN mode. More... | |
| void | USART_HalfDuplexCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's Half Duplex communication. More... | |
| void | USART_SmartCardCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's Smart Card mode. More... | |
| void | USART_SmartCardNACKCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables NACK transmission. More... | |
| void | USART_SetGuardTime (USART_TypeDef *USARTx, uint8_t USART_GuardTime) |
| Sets the specified USART guard time. More... | |
| void | USART_SetAutoRetryCount (USART_TypeDef *USARTx, uint8_t USART_AutoCount) |
| Sets the Smart Card number of retries in transmit and receive. More... | |
| void | USART_SetBlockLength (USART_TypeDef *USARTx, uint8_t USART_BlockLength) |
| Sets the Smart Card Block length. More... | |
| void | USART_IrDAConfig (USART_TypeDef *USARTx, uint32_t USART_IrDAMode) |
| Configures the USART's IrDA interface. More... | |
| void | USART_IrDACmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's IrDA interface. More... | |
| void | USART_DECmd (USART_TypeDef *USARTx, FunctionalState NewState) |
| Enables or disables the USART's DE functionality. More... | |
| void | USART_DEPolarityConfig (USART_TypeDef *USARTx, uint32_t USART_DEPolarity) |
| Configures the USART's DE polarity. More... | |
| void | USART_SetDEAssertionTime (USART_TypeDef *USARTx, uint32_t USART_DEAssertionTime) |
| Sets the specified RS485 DE assertion time. More... | |
| void | USART_SetDEDeassertionTime (USART_TypeDef *USARTx, uint32_t USART_DEDeassertionTime) |
| Sets the specified RS485 DE deassertion time. More... | |
| void | USART_DMACmd (USART_TypeDef *USARTx, uint32_t USART_DMAReq, FunctionalState NewState) |
| Enables or disables the USART's DMA interface. More... | |
| void | USART_DMAReceptionErrorConfig (USART_TypeDef *USARTx, uint32_t USART_DMAOnError) |
| Enables or disables the USART's DMA interface when reception error occurs. More... | |
| void | USART_ITConfig (USART_TypeDef *USARTx, uint32_t USART_IT, FunctionalState NewState) |
| Enables or disables the specified USART interrupts. More... | |
| void | USART_RequestCmd (USART_TypeDef *USARTx, uint32_t USART_Request, FunctionalState NewState) |
| Enables the specified USART's Request. More... | |
| void | USART_OverrunDetectionConfig (USART_TypeDef *USARTx, uint32_t USART_OVRDetection) |
| Enables or disables the USART's Overrun detection. More... | |
| FlagStatus | USART_GetFlagStatus (USART_TypeDef *USARTx, uint32_t USART_FLAG) |
| Checks whether the specified USART flag is set or not. More... | |
| void | USART_ClearFlag (USART_TypeDef *USARTx, uint32_t USART_FLAG) |
| Clears the USARTx's pending flags. More... | |
| ITStatus | USART_GetITStatus (USART_TypeDef *USARTx, uint32_t USART_IT) |
| Checks whether the specified USART interrupt has occurred or not. More... | |
| void | USART_ClearITPendingBit (USART_TypeDef *USARTx, uint32_t USART_IT) |
| Clears the USARTx's interrupt pending bits. More... | |
USART driver modules.
| #define CR1_CLEAR_MASK |
< USART CR1 register clear Mask ((~(uint32_t)0xFFFFE6F3)) USART CR2 register clock bits clear Mask ((~(uint32_t)0xFFFFF0FF))
| #define CR2_CLOCK_CLEAR_MASK |
USART CR3 register clear Mask ((~(uint32_t)0xFFFFFCFF))
| #define CR3_CLEAR_MASK ((uint32_t)(USART_CR3_RTSE | USART_CR3_CTSE)) |
USART Interrupts mask
| void USART_AddressDetectionConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_AddressLength | ||
| ) |
Configure the the USART Address detection length.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_AddressLength,: | specifies the USART address length detection. This parameter can be one of the following values:
|
| None |
| void USART_AutoBaudRateCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the Auto Baud Rate.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USARTx auto baud rate. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_AutoBaudRateConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_AutoBaudRate | ||
| ) |
Selects the USART auto baud rate method.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_AutoBaudRate,: | specifies the selected USART auto baud rate method. This parameter can be one of the following values:
|
| None |
| void USART_ClearFlag | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_FLAG | ||
| ) |
Clears the USARTx's pending flags.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_FLAG,: | specifies the flag to clear. This parameter can be any combination of the following values:
|
| None |
| void USART_ClearITPendingBit | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_IT | ||
| ) |
Clears the USARTx's interrupt pending bits.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_IT,: | specifies the interrupt pending bit to clear. This parameter can be one of the following values:
|
| None |
| void USART_ClockInit | ( | USART_TypeDef * | USARTx, |
| USART_ClockInitTypeDef * | USART_ClockInitStruct | ||
| ) |
Initializes the USARTx peripheral Clock according to the specified parameters in the USART_ClockInitStruct.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_ClockInitStruct,: | pointer to a USART_ClockInitTypeDef structure that contains the configuration information for the specified USART peripheral. |
| None |
| 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. |
| None |
| void USART_Cmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified USART peripheral.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USARTx peripheral. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_DataInvCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the binary data inversion.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new defined levels for the USART data. This parameter can be:
|
| None |
| void USART_DECmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's DE functionality.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the driver enable mode. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_DeInit | ( | USART_TypeDef * | USARTx | ) |
Deinitializes the USARTx peripheral registers to their default reset values.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| None |
| void USART_DEPolarityConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_DEPolarity | ||
| ) |
Configures the USART's DE polarity.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_DEPolarity,: | specifies the DE polarity. This parameter can be one of the following values:
|
| None |
| void USART_DirectionModeCmd | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_DirectionMode, | ||
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's transmitter or receiver.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_Direction,: | specifies the USART direction. This parameter can be any combination of the following values:
|
| NewState,: | new state of the USART transfer direction. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_DMACmd | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_DMAReq, | ||
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's DMA interface.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_DMAReq,: | specifies the DMA request. This parameter can be any combination of the following values:
|
| NewState,: | new state of the DMA Request sources. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_DMAReceptionErrorConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_DMAOnError | ||
| ) |
Enables or disables the USART's DMA interface when reception error occurs.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_DMAOnError,: | specifies the DMA status in case of reception error. This parameter can be any combination of the following values:
|
| None |
| FlagStatus USART_GetFlagStatus | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_FLAG | ||
| ) |
Checks whether the specified USART flag is set or not.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_FLAG,: | specifies the flag to check. This parameter can be one of the following values:
|
| The | new state of USART_FLAG (SET or RESET). |
| ITStatus USART_GetITStatus | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_IT | ||
| ) |
Checks whether the specified USART interrupt has occurred or not.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_IT,: | specifies the USART interrupt source to check. This parameter can be one of the following values:
|
| The | new state of USART_IT (SET or RESET). |
| void USART_HalfDuplexCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's Half Duplex communication.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USART Communication. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_Init | ( | USART_TypeDef * | USARTx, |
| USART_InitTypeDef * | USART_InitStruct | ||
| ) |
Initializes the USARTx peripheral according to the specified parameters in the USART_InitStruct .
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_InitStruct,: | pointer to a USART_InitTypeDef structure that contains the configuration information for the specified USART peripheral. |
| None |
| void USART_InvPinCmd | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_InvPin, | ||
| FunctionalState | NewState | ||
| ) |
Enables or disables the Pin(s) active level inversion.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_InvPin,: | specifies the USART pin(s) to invert. This parameter can be any combination of the following values:
|
| NewState,: | new active level status for the USART pin(s). This parameter can be:
|
| None |
| void USART_IrDACmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's IrDA interface.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the IrDA mode. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_IrDAConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_IrDAMode | ||
| ) |
Configures the USART's IrDA interface.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_IrDAMode,: | specifies the IrDA mode. This parameter can be one of the following values:
|
| None |
| void USART_ITConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_IT, | ||
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified USART interrupts.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_IT,: | specifies the USART interrupt sources to be enabled or disabled. This parameter can be one of the following values:
|
| NewState,: | new state of the specified USARTx interrupts. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_LINBreakDetectLengthConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_LINBreakDetectLength | ||
| ) |
Sets the USART LIN Break detection length.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_LINBreakDetectLength,: | specifies the LIN break detection length. This parameter can be one of the following values:
|
| None |
| void USART_LINCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's LIN mode.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USART LIN mode. This parameter can be: ENABLE or DISABLE. |
| None |
| 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,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USART most significant bit first transmitted/received following the start bit. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_MuteModeCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's mute mode.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USART mute mode. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_MuteModeWakeUpConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_WakeUp | ||
| ) |
Selects the USART WakeUp method from mute mode.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_WakeUp,: | specifies the USART wakeup method. This parameter can be one of the following values:
|
| None |
| void USART_OneBitMethodCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's one bit sampling method.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USART one bit sampling method. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_OverrunDetectionConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_OVRDetection | ||
| ) |
Enables or disables the USART's Overrun detection.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_OVRDetection,: | specifies the OVR detection status in case of OVR error. This parameter can be any combination of the following values:
|
| None |
| void USART_OverSampling8Cmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's 8x oversampling mode.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USART 8x oversampling mode. This parameter can be: ENABLE or DISABLE. |
| None |
| uint16_t USART_ReceiveData | ( | USART_TypeDef * | USARTx | ) |
Returns the most recent received data by the USARTx peripheral.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| The | received data. |
| void USART_ReceiverTimeOutCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the receiver Time Out feature.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USARTx receiver Time Out. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_RequestCmd | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_Request, | ||
| FunctionalState | NewState | ||
| ) |
Enables the specified USART's Request.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_Request,: | specifies the USART request. This parameter can be any combination of the following values:
|
| NewState,: | new state of the DMA interface when reception error occurs. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_SendData | ( | USART_TypeDef * | USARTx, |
| uint16_t | Data | ||
| ) |
Transmits single data through the USARTx peripheral.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| Data,: | the data to transmit. |
| None |
| void USART_SetAddress | ( | USART_TypeDef * | USARTx, |
| uint8_t | USART_Address | ||
| ) |
Sets the address of the USART node.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_Address,: | Indicates the address of the USART node. |
| None |
| void USART_SetAutoRetryCount | ( | USART_TypeDef * | USARTx, |
| uint8_t | USART_AutoCount | ||
| ) |
Sets the Smart Card number of retries in transmit and receive.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_AutoCount,: | specifies the Smart Card auto retry count. |
| None |
| void USART_SetBlockLength | ( | USART_TypeDef * | USARTx, |
| uint8_t | USART_BlockLength | ||
| ) |
Sets the Smart Card Block length.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_BlockLength,: | specifies the Smart Card block length. |
| None |
| void USART_SetDEAssertionTime | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_DEAssertionTime | ||
| ) |
Sets the specified RS485 DE assertion time.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_DEAssertionTime,: | specifies the time between the activation of the DE signal and the beginning of the start bit |
| None |
| void USART_SetDEDeassertionTime | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_DEDeassertionTime | ||
| ) |
Sets the specified RS485 DE deassertion time.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_DeassertionTime,: | specifies the time between the middle of the last stop bit in a transmitted message and the de-activation of the DE signal |
| None |
| void USART_SetGuardTime | ( | USART_TypeDef * | USARTx, |
| uint8_t | USART_GuardTime | ||
| ) |
Sets the specified USART guard time.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_GuardTime,: | specifies the guard time. |
| None |
| void USART_SetPrescaler | ( | USART_TypeDef * | USARTx, |
| uint8_t | USART_Prescaler | ||
| ) |
Sets the system clock prescaler.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_Prescaler,: | specifies the prescaler clock. |
| None |
| void USART_SetReceiverTimeOut | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_ReceiverTimeOut | ||
| ) |
Sets the receiver Time Out value.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_ReceiverTimeOut,: | specifies the Receiver Time Out value. |
| None |
| void USART_SmartCardCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the USART's Smart Card mode.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the Smart Card mode. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_SmartCardNACKCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables NACK transmission.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the NACK transmission. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_STOPModeCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified USART peripheral in STOP Mode.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USARTx peripheral state in stop mode. This parameter can be: ENABLE or DISABLE. |
| None |
| void USART_StopModeWakeUpSourceConfig | ( | USART_TypeDef * | USARTx, |
| uint32_t | USART_WakeUpSource | ||
| ) |
Selects the USART WakeUp method form stop mode.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| USART_WakeUp,: | specifies the selected USART wakeup method. This parameter can be one of the following values:
|
| None |
| void USART_StructInit | ( | USART_InitTypeDef * | USART_InitStruct | ) |
Fills each USART_InitStruct member with its default value.
| USART_InitStruct,: | pointer to a USART_InitTypeDef structure which will be initialized. |
| None |
| void USART_SWAPPinCmd | ( | USART_TypeDef * | USARTx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the swap Tx/Rx pins.
| USARTx,: | where x can be 1 or 2 or 3 to select the USART peripheral. |
| NewState,: | new state of the USARTx TX/RX pins pinout. This parameter can be:
|
| None |