STM8L15x Standard Peripherals Drivers: USART_Flags

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Defines

#define IS_USART_CLEAR_FLAG(Flag)
#define IS_USART_FLAG(Flag)

Enumerations

enum  USART_FLAG_TypeDef {
  USART_FLAG_TXE = (uint16_t)0x0080, USART_FLAG_TC = (uint16_t)0x0040, USART_FLAG_RXNE = (uint16_t)0x0020, USART_FLAG_IDLE = (uint16_t)0x0010,
  USART_FLAG_OR = (uint16_t)0x0008, USART_FLAG_NF = (uint16_t)0x0004, USART_FLAG_FE = (uint16_t)0x0002, USART_FLAG_PE = (uint16_t)0x0001,
  USART_FLAG_SBK = (uint16_t)0x0101
}

Define Documentation

#define IS_USART_CLEAR_FLAG (   Flag)
Value:
(((Flag) == USART_FLAG_TC)  || \
   ((Flag) == USART_FLAG_RXNE))

Definition at line 71 of file stm8l15x_usart.h.

Referenced by USART_ClearFlag().

#define IS_USART_FLAG (   Flag)
Value:
(((Flag) == USART_FLAG_TXE) || \
   ((Flag) == USART_FLAG_TC)  || \
   ((Flag) == USART_FLAG_RXNE) || \
   ((Flag) == USART_FLAG_IDLE) || \
   ((Flag) == USART_FLAG_OR) || \
   ((Flag) == USART_FLAG_NF) || \
   ((Flag) == USART_FLAG_FE) || \
   ((Flag) == USART_FLAG_PE) || \
   ((Flag) == USART_FLAG_SBK))

Definition at line 60 of file stm8l15x_usart.h.

Referenced by USART_GetFlagStatus().


Enumeration Type Documentation

Enumerator:
USART_FLAG_TXE 

Transmit Data Register Empty flag

USART_FLAG_TC 

Transmission Complete flag

USART_FLAG_RXNE 

Read Data Register Not Empty flag

USART_FLAG_IDLE 

Idle line detected flag

USART_FLAG_OR 

OverRun error flag

USART_FLAG_NF 

Noise error flag

USART_FLAG_FE 

Framing Error flag

USART_FLAG_PE 

Parity Error flag

USART_FLAG_SBK 

Send Break characters Flag

Definition at line 47 of file stm8l15x_usart.h.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com