discoverpixy
Functions
Interrupts and flags management functions

Interrupts and flags management functions. More...

Collaboration diagram for Interrupts and flags management functions:

Functions

void LTDC_ITConfig (uint32_t LTDC_IT, FunctionalState NewState)
 Enables or disables the specified LTDC's interrupts. More...
 
FlagStatus LTDC_GetFlagStatus (uint32_t LTDC_FLAG)
 Checks whether the specified LTDC's flag is set or not. More...
 
void LTDC_ClearFlag (uint32_t LTDC_FLAG)
 Clears the LTDC's pending flags. More...
 
ITStatus LTDC_GetITStatus (uint32_t LTDC_IT)
 Checks whether the specified LTDC's interrupt has occurred or not. More...
 
void LTDC_ClearITPendingBit (uint32_t LTDC_IT)
 Clears the LTDC's interrupt pending bits. More...
 

Detailed Description

Interrupts and flags management functions.

 ===============================================================================
            ##### Interrupts and flags management functions #####
 ===============================================================================

    [..] This section provides functions allowing to configure the LTDC Interrupts 
         and to get the status and clear flags and Interrupts pending bits.
  
    [..] The LTDC provides 4 Interrupts sources and 4 Flags
    
    *** Flags ***
    =============
    [..]
      (+) LTDC_FLAG_LI:   Line Interrupt flag.
      (+) LTDC_FLAG_FU:   FIFO Underrun Interrupt flag.
      (+) LTDC_FLAG_TERR: Transfer Error Interrupt flag.
      (+) LTDC_FLAG_RR:   Register Reload interrupt flag.
      
    *** Interrupts ***
    ==================
    [..]
      (+) LTDC_IT_LI: Line Interrupt is generated when a programmed line 
                      is reached. The line interrupt position is programmed in 
                      the LTDC_LIPR register.
      (+) LTDC_IT_FU: FIFO Underrun interrupt is generated when a pixel is requested 
                      from an empty layer FIFO
      (+) LTDC_IT_TERR: Transfer Error interrupt is generated when an AHB bus 
                        error occurs during data transfer.
      (+) LTDC_IT_RR: Register Reload interrupt is generated when the shadow 
                      registers reload was performed during the vertical blanking 
                      period.

Function Documentation

void LTDC_ClearFlag ( uint32_t  LTDC_FLAG)

Clears the LTDC's pending flags.

Parameters
LTDC_FLAGspecifies the flag to clear. This parameter can be any combination of the following values:
  • LTDC_FLAG_LI: Line Interrupt flag.
  • LTDC_FLAG_FU: FIFO Underrun Interrupt flag.
  • LTDC_FLAG_TERR: Transfer Error Interrupt flag.
  • LTDC_FLAG_RR: Register Reload interrupt flag.
Return values
None
void LTDC_ClearITPendingBit ( uint32_t  LTDC_IT)

Clears the LTDC's interrupt pending bits.

Parameters
LTDC_ITspecifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • LTDC_IT_LIE: Line Interrupt.
  • LTDC_IT_FUIE: FIFO Underrun Interrupt.
  • LTDC_IT_TERRIE: Transfer Error Interrupt.
  • LTDC_IT_RRIE: Register Reload interrupt.
Return values
None
FlagStatus LTDC_GetFlagStatus ( uint32_t  LTDC_FLAG)

Checks whether the specified LTDC's flag is set or not.

Parameters
LTDC_FLAGspecifies the flag to check. This parameter can be one of the following values:
  • LTDC_FLAG_LI: Line Interrupt flag.
  • LTDC_FLAG_FU: FIFO Underrun Interrupt flag.
  • LTDC_FLAG_TERR: Transfer Error Interrupt flag.
  • LTDC_FLAG_RR: Register Reload interrupt flag.
Return values
Thenew state of LTDC_FLAG (SET or RESET).
ITStatus LTDC_GetITStatus ( uint32_t  LTDC_IT)

Checks whether the specified LTDC's interrupt has occurred or not.

Parameters
LTDC_ITspecifies the LTDC interrupts sources to check. This parameter can be one of the following values:
  • LTDC_IT_LI: Line Interrupt Enable.
  • LTDC_IT_FU: FIFO Underrun Interrupt Enable.
  • LTDC_IT_TERR: Transfer Error Interrupt Enable.
  • LTDC_IT_RR: Register Reload interrupt Enable.
Return values
Thenew state of the LTDC_IT (SET or RESET).
void LTDC_ITConfig ( uint32_t  LTDC_IT,
FunctionalState  NewState 
)

Enables or disables the specified LTDC's interrupts.

Parameters
LTDC_ITspecifies the LTDC interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
  • LTDC_IT_LI: Line Interrupt Enable.
  • LTDC_IT_FU: FIFO Underrun Interrupt Enable.
  • LTDC_IT_TERR: Transfer Error Interrupt Enable.
  • LTDC_IT_RR: Register Reload interrupt enable.
NewStatenew state of the specified LTDC interrupts. This parameter can be: ENABLE or DISABLE.
Return values
None