STM8L15x Standard Peripherals Drivers: USART_Interrupts

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Defines

#define IS_USART_CLEAR_IT(IT)   (((IT) == USART_IT_TC) || ((IT) == USART_IT_RXNE))
#define IS_USART_CONFIG_IT(Interrupt)
#define IS_USART_GET_IT(ITPendingBit)

Enumerations

enum  USART_IT_TypeDef {
  USART_IT_TXE = (uint16_t)0x0277, USART_IT_TC = (uint16_t)0x0266, USART_IT_RXNE = (uint16_t)0x0255, USART_IT_IDLE = (uint16_t)0x0244,
  USART_IT_OR = (uint16_t)0x0235, USART_IT_PE = (uint16_t)0x0100, USART_IT_ERR = (uint16_t)0x0500, USART_IT_NF = (uint16_t)0x0102,
  USART_IT_FE = (uint16_t)0x0101
}
 

USART Interrupt definition USART_IT possible values Elements values convention: 0x0ZYX X: Position of the corresponding Interrupt Y: Flag position Z: Register index.

More...

Define Documentation

#define IS_USART_CLEAR_IT (   IT)    (((IT) == USART_IT_TC) || ((IT) == USART_IT_RXNE))

Definition at line 121 of file stm8l15x_usart.h.

Referenced by USART_ClearITPendingBit().

#define IS_USART_CONFIG_IT (   Interrupt)
Value:
(((Interrupt) == USART_IT_PE) || \
   ((Interrupt) == USART_IT_TXE) || \
   ((Interrupt) == USART_IT_TC) || \
   ((Interrupt) == USART_IT_RXNE) || \
   ((Interrupt) == USART_IT_OR) || \
   ((Interrupt) == USART_IT_ERR) || \
   ((Interrupt) == USART_IT_IDLE))

Definition at line 104 of file stm8l15x_usart.h.

Referenced by USART_ITConfig().

#define IS_USART_GET_IT (   ITPendingBit)
Value:
(((ITPendingBit) == USART_IT_TXE)  || \
   ((ITPendingBit) == USART_IT_TC)   || \
   ((ITPendingBit) == USART_IT_RXNE) || \
   ((ITPendingBit) == USART_IT_IDLE) || \
   ((ITPendingBit) == USART_IT_OR)  || \
   ((ITPendingBit) == USART_IT_PE))

Definition at line 113 of file stm8l15x_usart.h.

Referenced by USART_GetITStatus().


Enumeration Type Documentation

USART Interrupt definition USART_IT possible values Elements values convention: 0x0ZYX X: Position of the corresponding Interrupt Y: Flag position Z: Register index.

Enumerator:
USART_IT_TXE 

Transmit interrupt

USART_IT_TC 

Transmission Complete interrupt

USART_IT_RXNE 

Receive interrupt

USART_IT_IDLE 

IDLE line interrupt

USART_IT_OR 

Overrun Error interrupt

USART_IT_PE 

Parity Error interrupt

USART_IT_ERR 

Error interrupt

USART_IT_NF 

Noise Error interrupt

USART_IT_FE 

Frame Error interrupt

Definition at line 91 of file stm8l15x_usart.h.

STM8S Firmware Library: Overview

 

 

 

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