STM8S/A Standard Peripherals Drivers: stm8s_uart2.c File Reference

STM8S/A

stm8s_uart2.c File Reference

This file contains all the functions for the UART2 peripheral. More...

#include "stm8s_uart2.h"

Go to the source code of this file.

Functions

void UART2_ClearFlag (UART2_Flag_TypeDef UART2_FLAG)
 Clears the UART2 flags.
void UART2_ClearITPendingBit (UART2_IT_TypeDef UART2_IT)
 Clears the UART2 pending flags.
void UART2_Cmd (FunctionalState NewState)
 Enable the UART2 peripheral.
void UART2_DeInit (void)
 Deinitializes the UART peripheral.
FlagStatus UART2_GetFlagStatus (UART2_Flag_TypeDef UART2_FLAG)
 Checks whether the specified UART2 flag is set or not.
ITStatus UART2_GetITStatus (UART2_IT_TypeDef UART2_IT)
 Checks whether the specified UART2 interrupt has occurred or not.
void UART2_Init (uint32_t BaudRate, UART2_WordLength_TypeDef WordLength, UART2_StopBits_TypeDef StopBits, UART2_Parity_TypeDef Parity, UART2_SyncMode_TypeDef SyncMode, UART2_Mode_TypeDef Mode)
 Initializes the UART2 according to the specified parameters.
void UART2_IrDACmd (FunctionalState NewState)
 Enables or disables the UART2�s IrDA interface.
void UART2_IrDAConfig (UART2_IrDAMode_TypeDef UART2_IrDAMode)
 Configures the UART2�s IrDA interface.
void UART2_ITConfig (UART2_IT_TypeDef UART2_IT, FunctionalState NewState)
 Enables or disables the specified UART2 interrupts.
void UART2_LINBreakDetectionConfig (UART2_LINBreakDetectionLength_TypeDef UART2_LINBreakDetectionLength)
 Sets the UART2 LIN Break detection length.
void UART2_LINCmd (FunctionalState NewState)
 Enables or disables the UART2 LIN mode.
void UART2_LINConfig (UART2_LinMode_TypeDef UART2_Mode, UART2_LinAutosync_TypeDef UART2_Autosync, UART2_LinDivUp_TypeDef UART2_DivUp)
 Configure the UART2 peripheral.
uint8_t UART2_ReceiveData8 (void)
 Returns the most recent received data by the UART2 peripheral.
uint16_t UART2_ReceiveData9 (void)
 Returns the most recent received data by the UART2 peripheral.
void UART2_ReceiverWakeUpCmd (FunctionalState NewState)
 Determines if the UART2 is in mute mode or not.
void UART2_SendBreak (void)
 Transmits break characters.
void UART2_SendData8 (uint8_t Data)
 Transmits 8 bit data through the UART2 peripheral.
void UART2_SendData9 (uint16_t Data)
 Transmits 9 bit data through the UART2 peripheral.
void UART2_SetAddress (uint8_t UART2_Address)
 Sets the address of the UART2 node.
void UART2_SetGuardTime (uint8_t UART2_GuardTime)
 Sets the specified UART2 guard time.
void UART2_SetPrescaler (uint8_t UART2_Prescaler)
 Sets the system clock prescaler.
void UART2_SmartCardCmd (FunctionalState NewState)
 Enables or disables the UART2 Smart Card mode.
void UART2_SmartCardNACKCmd (FunctionalState NewState)
 Enables or disables NACK transmission.
void UART2_WakeUpConfig (UART2_WakeUp_TypeDef UART2_WakeUp)
 Selects the UART2 WakeUp method.

Detailed Description

This file contains all the functions for the UART2 peripheral.

Author:
MCD Application Team
Version:
V2.3.0
Date:
16-June-2017
Attention:

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file stm8s_uart2.c.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com