STM8L15x Standard Peripherals Drivers
|
stm8l15x_aes.h File Reference
This file contains all the functions prototypes for the AES firmware library. More...
#include "stm8l15x.h"
Go to the source code of this file.
Defines | |
#define | IS_AES_DMATRANSFER(Transfer) ((Transfer) == AES_DMATransfer_InOut) |
#define | IS_AES_FLAG(Flag) |
#define | IS_AES_IT(IT) |
#define | IS_AES_MODE(Operation) |
Enumerations | |
enum | AES_DMATransfer_TypeDef { AES_DMATransfer_InOut = (uint8_t) 0x80 } |
enum | AES_FLAG_TypeDef { AES_FLAG_CCF = (uint8_t)0x01, AES_FLAG_RDERR = (uint8_t)0x02, AES_FLAG_WRERR = (uint8_t)0x04 } |
enum | AES_IT_TypeDef { AES_IT_CCIE = (uint16_t)0x20, AES_IT_ERRIE = (uint16_t)0x40 } |
enum | AES_Operation_TypeDef { AES_Operation_Encryp = (uint8_t)0x00, AES_Operation_KeyDeriv = (uint8_t)0x02, AES_Operation_Decryp = (uint8_t)0x04, AES_Operation_KeyDerivAndDecryp = (uint8_t)0x06 } |
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 contains all the functions prototypes for the AES firmware library.
- 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.h.