STM8S/A Standard Peripherals Firmware Library: stm8s_uart1.c File Reference

STM8S/A

stm8s_uart1.c File Reference

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

#include "stm8s_uart1.h"

Go to the source code of this file.

Functions

void UART1_ClearFlag (UART1_Flag_TypeDef UART1_FLAG)
 Clears the UART1 flags.
void UART1_ClearITPendingBit (UART1_IT_TypeDef UART1_IT)
 Clears the UART1 pending flags.
void UART1_Cmd (FunctionalState NewState)
 Enable the UART1 peripheral.
void UART1_DeInit (void)
 Deinitializes the UART peripheral.
FlagStatus UART1_GetFlagStatus (UART1_Flag_TypeDef UART1_FLAG)
 Checks whether the specified UART1 flag is set or not.
ITStatus UART1_GetITStatus (UART1_IT_TypeDef UART1_IT)
 Checks whether the specified UART1 interrupt has occurred or not.
void UART1_HalfDuplexCmd (FunctionalState NewState)
 Enables or disables the UART�s Half Duplex communication.
void UART1_Init (uint32_t BaudRate, UART1_WordLength_TypeDef WordLength, UART1_StopBits_TypeDef StopBits, UART1_Parity_TypeDef Parity, UART1_SyncMode_TypeDef SyncMode, UART1_Mode_TypeDef Mode)
 Initializes the UART1 according to the specified parameters.
void UART1_IrDACmd (FunctionalState NewState)
 Enables or disables the UART�s IrDA interface.
void UART1_IrDAConfig (UART1_IrDAMode_TypeDef UART1_IrDAMode)
 Configures the UART�s IrDA interface.
void UART1_ITConfig (UART1_IT_TypeDef UART1_IT, FunctionalState NewState)
 Enables or disables the specified USART interrupts.
void UART1_LINBreakDetectionConfig (UART1_LINBreakDetectionLength_TypeDef UART1_LINBreakDetectionLength)
 Sets the UART1 LIN Break detection length.
void UART1_LINCmd (FunctionalState NewState)
 Enables or disables the UART1�s LIN mode.
uint8_t UART1_ReceiveData8 (void)
 Returns the most recent received data by the UART1 peripheral.
uint16_t UART1_ReceiveData9 (void)
 Returns the most recent received data by the UART1 peripheral.
void UART1_ReceiverWakeUpCmd (FunctionalState NewState)
 Determines if the UART1 is in mute mode or not.
void UART1_SendBreak (void)
 Transmits break characters.
void UART1_SendData8 (uint8_t Data)
 Transmits 8 bit data through the UART1 peripheral.
void UART1_SendData9 (uint16_t Data)
 Transmits 9 bit data through the UART peripheral.
void UART1_SetAddress (uint8_t UART1_Address)
 Sets the address of the UART1 node.
void UART1_SetGuardTime (uint8_t UART1_GuardTime)
 Sets the specified UART guard time.
void UART1_SetPrescaler (uint8_t UART1_Prescaler)
 Sets the system clock prescaler.
void UART1_SmartCardCmd (FunctionalState NewState)
 Enables or disables the UART1 Smart Card mode.
void UART1_SmartCardNACKCmd (FunctionalState NewState)
 Enables or disables NACK transmission.
void UART1_WakeUpConfig (UART1_WakeUp_TypeDef UART1_WakeUp)
 Selects the UART1 WakeUp method.

Detailed Description

This file contains all the functions for the UART1 peripheral.

Author:
MCD Application Team
Version:
V2.2.0
Date:
30-September-2014
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_uart1.c.

STM8 Standard Peripherals Library: Footer

 

 

 

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