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

STM8S/A Standard Peripherals Library

stm8s_uart4.c File Reference

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

#include "stm8s_uart4.h"

Go to the source code of this file.

Functions

void UART4_ClearFlag (UART4_Flag_TypeDef UART4_FLAG)
 Clears the UART4 flags.
void UART4_ClearITPendingBit (UART4_IT_TypeDef UART4_IT)
 Clears the UART4 pending flags.
void UART4_Cmd (FunctionalState NewState)
 Enable the UART4 peripheral.
void UART4_DeInit (void)
 Deinitializes the UART peripheral.
FlagStatus UART4_GetFlagStatus (UART4_Flag_TypeDef UART4_FLAG)
 Checks whether the specified UART4 flag is set or not.
ITStatus UART4_GetITStatus (UART4_IT_TypeDef UART4_IT)
 Checks whether the specified UART4 interrupt has occurred or not.
void UART4_HalfDuplexCmd (FunctionalState NewState)
 Enables or disables the UART�s Half Duplex communication.
void UART4_Init (uint32_t BaudRate, UART4_WordLength_TypeDef WordLength, UART4_StopBits_TypeDef StopBits, UART4_Parity_TypeDef Parity, UART4_SyncMode_TypeDef SyncMode, UART4_Mode_TypeDef Mode)
 Initializes the UART4 according to the specified parameters.
void UART4_IrDACmd (FunctionalState NewState)
 Enables or disables the UART4�s IrDA interface.
void UART4_IrDAConfig (UART4_IrDAMode_TypeDef UART4_IrDAMode)
 Configures the UART4�s IrDA interface.
void UART4_ITConfig (UART4_IT_TypeDef UART4_IT, FunctionalState NewState)
 Enables or disables the specified UART4 interrupts.
void UART4_LINBreakDetectionConfig (UART4_LINBreakDetectionLength_TypeDef UART4_LINBreakDetectionLength)
 Sets the UART4 LIN Break detection length.
void UART4_LINCmd (FunctionalState NewState)
 Enables or disables the UART4 LIN mode.
void UART4_LINConfig (UART4_LinMode_TypeDef UART4_Mode, UART4_LinAutosync_TypeDef UART4_Autosync, UART4_LinDivUp_TypeDef UART4_DivUp)
 Configure the UART4 peripheral.
uint8_t UART4_ReceiveData8 (void)
 Returns the most recent received data by the UART4 peripheral.
uint16_t UART4_ReceiveData9 (void)
 Returns the most recent received data by the UART4 peripheral.
void UART4_ReceiverWakeUpCmd (FunctionalState NewState)
 Determines if the UART4 is in mute mode or not.
void UART4_SendBreak (void)
 Transmits break characters.
void UART4_SendData8 (uint8_t Data)
 Transmits 8 bit data through the UART4 peripheral.
void UART4_SendData9 (uint16_t Data)
 Transmits 9 bit data through the UART4 peripheral.
void UART4_SetAddress (uint8_t UART4_Address)
 Sets the address of the UART4 node.
void UART4_SetGuardTime (uint8_t UART4_GuardTime)
 Sets the specified UART4 guard time.
void UART4_SetPrescaler (uint8_t UART4_Prescaler)
 Sets the system clock prescaler.
void UART4_SmartCardCmd (FunctionalState NewState)
 Enables or disables the UART4 Smart Card mode.
void UART4_SmartCardNACKCmd (FunctionalState NewState)
 Enables or disables NACK transmission.
void UART4_WakeUpConfig (UART4_WakeUp_TypeDef UART4_WakeUp)
 Selects the UART4 WakeUp method.

Detailed Description

This file contains all the functions for the UART4 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_uart4.c.

STM8 Standard Peripherals Library: Footer

 

 

 

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