STM8L15x Standard Peripherals Drivers: Interrupts and flags management functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Interrupts and flags management functions

Interrupts and flags management functions. More...

Functions

void AES_ClearFlag (AES_FLAG_TypeDef AES_FLAG)
 Clears the AES flags.
void AES_ClearITPendingBit (AES_IT_TypeDef AES_IT)
 Clears the AES's interrupt pending bits.
FlagStatus AES_GetFlagStatus (AES_FLAG_TypeDef AES_FLAG)
 Checks whether the specified AES flag is set or not.
ITStatus AES_GetITStatus (AES_IT_TypeDef AES_IT)
 Checks whether the specified AES interrupt has occurred or not.
void AES_ITConfig (AES_IT_TypeDef AES_IT, FunctionalState NewState)
 Enables or disables the specified AES interrupt.

Detailed Description

Interrupts and flags management functions.

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

Function Documentation

void AES_ClearFlag ( AES_FLAG_TypeDef  AES_FLAG)

Clears the AES flags.

Parameters:
AES_FLAG,:specifies the flag to clear. This parameter can be one of the following values:
  • AES_FLAG_CCF: Computation Complete Flag
  • AES_FLAG_RDERR: Read Error Flag
  • AES_FLAG_WRERR: Write Error Flag
Return values:
None

Definition at line 360 of file stm8l15x_aes.c.

References AES, AES_CR_CCFC, AES_CR_ERRC, AES_FLAG_CCF, and IS_AES_FLAG.

void AES_ClearITPendingBit ( AES_IT_TypeDef  AES_IT)

Clears the AES's interrupt pending bits.

Parameters:
AES_IT,:specifies the interrupt pending bit to clear. This parameter can be one of the following values:
  • AES_IT_CCIE: Computation Complete interrupt enable
  • AES_IT_ERRIE: Error interrupt enable
Return values:
None

Definition at line 448 of file stm8l15x_aes.c.

References AES, AES_CR_CCFC, AES_CR_ERRC, AES_IT_CCIE, and IS_AES_IT.

FlagStatus AES_GetFlagStatus ( AES_FLAG_TypeDef  AES_FLAG)

Checks whether the specified AES flag is set or not.

Parameters:
AES_FLAGspecifies the flag to check. This parameter can be one of the following values:
  • AES_FLAG_CCF: Computation Complete Flag
  • AES_FLAG_RDERR: Read Error Flag
  • AES_FLAG_WRERR: Write Error Flag
Return values:
FlagStatus(SET or RESET)
Note:
CCF bit has a meaning only when DMA requests are disabled (DMAEN bit = 0).

Definition at line 301 of file stm8l15x_aes.c.

References AES, AES_FLAG_CCF, AES_FLAG_RDERR, AES_FLAG_WRERR, IS_AES_FLAG, RESET, and SET.

ITStatus AES_GetITStatus ( AES_IT_TypeDef  AES_IT)

Checks whether the specified AES interrupt has occurred or not.

Parameters:
AES_IT,:Specifies the AES interrupt pending bit to check. This parameter can be one of the following values:
  • AES_IT_CCIE: Computation Complete interrupt enable
  • AES_IT_ERRIE: Error interrupt enable
Return values:
ITStatusThe new state of AES_IT (SET or RESET).

Definition at line 386 of file stm8l15x_aes.c.

References AES, AES_CR_CCIE, AES_CR_ERRIE, AES_IT_CCIE, AES_SR_CCF, AES_SR_RDERR, AES_SR_WRERR, IS_AES_IT, RESET, and SET.

void AES_ITConfig ( AES_IT_TypeDef  AES_IT,
FunctionalState  NewState 
)

Enables or disables the specified AES interrupt.

Parameters:
AES_IT,:Specifies the AES interrupt source to enable/disable. This parameter can be one of the following values:
  • AES_IT_CCIE: Computation Complete interrupt enable
  • AES_IT_ERRIE: Error interrupt enable
NewState: The new state of the AES peripheral. This parameter can be: ENABLE or DISABLE.
Return values:
None

< AES_IT Enable

< AES_IT Disable

Definition at line 275 of file stm8l15x_aes.c.

References AES, DISABLE, IS_AES_IT, and IS_FUNCTIONAL_STATE.

STM8S Firmware Library: Overview

 

 

 

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