STM8L15x Standard Peripherals Drivers: stm8l15x_aes.c File Reference

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

stm8l15x_aes.c File Reference

This file provides firmware functions to manage the following functionalities of the Advanced Encryption Standard (AES) peripheral:

  • Configuration
  • Read/Write operations
  • DMA transfers management
  • Interrupts and flags management.
More...
#include "stm8l15x_aes.h"

Go to the source code of this file.

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.
void AES_Cmd (FunctionalState NewState)
 Enable the AES peripheral.
void AES_DeInit (void)
 Deinitializes the AES peripheral.
void AES_DMAConfig (AES_DMATransfer_TypeDef AES_DMATransfer, FunctionalState NewState)
 Configures the AES DMA interface.
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.
void AES_OperationModeConfig (AES_Operation_TypeDef AES_Operation)
 Configures the AES operation mode.
uint8_t AES_ReadSubData (void)
 Returns the data in DOUTR register processed by AES peripheral.
uint8_t AES_ReadSubKey (void)
 Returns the DOUTR register content.
void AES_WriteSubData (uint8_t Data)
 Write data in DINR register to be processed by AES peripheral.
void AES_WriteSubKey (uint8_t Key)
 Write key in DINR register.

Detailed Description

This file provides firmware functions to manage the following functionalities of the Advanced Encryption Standard (AES) peripheral:

  • Configuration
  • Read/Write operations
  • DMA transfers management
  • Interrupts and flags management.
Author:
MCD Application Team
Version:
V1.5.0
Date:
13-May-2011
  *          ===================================================================
  *                                 How to use this driver
  *          ===================================================================  
  *          1- Enable AES clock to get write access to AES registers
  *             using CLK_PeripheralClockConfig(CLK_Peripheral_AES, ENABLE);
  *
  *          2- Configure the AES operation mode using AES_OperationModeConfig()
  *
  *          3- If required, enable interrupt source using AES_ITConfig()
  *
  *          4- If required, when using the DMA mode 
  *               - Configure the DMA using DMA_Init()
  *               - Enable DMA requests using AES_DMAConfig()
  *
  *          5- Enable the AES peripheral using AES_Cmd()
  *
  *          6- Write data/key using AES_WriteSubData() / AES_WriteSubKey()
  *            
  *  
Attention:

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2011 STMicroelectronics

Definition in file stm8l15x_aes.c.

STM8S Firmware Library: Overview

 

 

 

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