MG32F157 Standard Peripherals Firmware Library
|
Functions | |
void | AES_Cmd (FunctionalState NewState) |
Enables or disables the AES. More... | |
void | AES_DeInit (void) |
Deinitializes the AES peripheral registers to their default reset values. More... | |
void | AES_StructInit (AES_InitTypeDef *AES_InitStruct) |
Fills each AES_InitStruct member with its default value. More... | |
void | AES_Init (AES_InitTypeDef *AES_InitStruct) |
Initializes the AES peripheral according to the specified parameters in the AES_InitStruct. More... | |
void | AES_IT_Config (uint32_t AES_IT, FunctionalState NewState) |
Enables or disables the specified AES interrupts. More... | |
FlagStatus | AES_GetFlagStatus (uint8_t AES_FLAG) |
Checks whether the specified AES flag is set or not. More... | |
void | AES_ClearFlag (uint8_t AES_FLAG) |
Clears the AES's pending flags. More... | |
ITStatus | AES_GetITStatus (uint32_t AES_IT) |
Checks whether the specified AES interrupt has occurred or not. More... | |
void | AES_ClearITPendingBit (uint32_t AES_IT) |
Clears the AES's interrupt pending bits. More... | |
void | AES_SetKey (uint8_t *Key) |
Writes the Key in Key registers. More... | |
void | AES_SetInitVector (uint8_t *InitVector) |
Writes the InitVector/InitCounter in IV registers. More... | |
void | AES_DataInput (uint32_t *inputaddr) |
Writes the origin data into AES DINR register. More... | |
void | AES_DataOutput (uint32_t *outputaddr) |
Gets the output data from AES DOUTR register. More... | |
void | AES_DMA_Cmd (uint16_t AES_DMA, FunctionalState NewState) |
Enables or disables the specified AES DMA request. More... | |
void AES_ClearFlag | ( | uint8_t | AES_FLAG | ) |
Clears the AES's pending flags.
AES_FLAG | specifies the flag to clear. This parameter can be one of the following values:
|
void AES_ClearITPendingBit | ( | uint32_t | AES_IT | ) |
Clears the AES's interrupt pending bits.
AES_IT | specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
|
void AES_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the AES.
NewState | new state of the AES. This parameter can be: ENABLE or DISABLE. |
void AES_DataInput | ( | uint32_t * | inputaddr | ) |
Writes the origin data into AES DINR register.
inputaddr | Pointer to input data buffer. |
void AES_DataOutput | ( | uint32_t * | outputaddr | ) |
Gets the output data from AES DOUTR register.
outputaddr | Pointer to output data buffer. |
void AES_DeInit | ( | void | ) |
Deinitializes the AES peripheral registers to their default reset values.
None |
void AES_DMA_Cmd | ( | uint16_t | AES_DMA, |
FunctionalState | NewState | ||
) |
Enables or disables the specified AES DMA request.
AES_DMA | specifies the DMA input request or DAM output request. This parameter can be: AES_DMA_IN or AES_DMA_OUT. |
NewState | new state of the specified AES DMAC request. This parameter can be: ENABLE or DISABLE. |
FlagStatus AES_GetFlagStatus | ( | uint8_t | AES_FLAG | ) |
Checks whether the specified AES flag is set or not.
AES_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
ITStatus AES_GetITStatus | ( | uint32_t | AES_IT | ) |
Checks whether the specified AES interrupt has occurred or not.
AES_IT | specifies the interrupt source to check. This parameter can be one of the following values:
|
void AES_Init | ( | AES_InitTypeDef * | AES_InitStruct | ) |
Initializes the AES peripheral according to the specified parameters in the AES_InitStruct.
AES_InitStruct | pointer to a AES_InitTypeDef structure that contains the configuration information for the specified AES peripheral. |
void AES_IT_Config | ( | uint32_t | AES_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified AES interrupts.
AES_IT | specifies the AES interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
NewState | new state of the specified AES interrupts. This parameter can be: ENABLE or DISABLE. |
void AES_SetInitVector | ( | uint8_t * | InitVector | ) |
Writes the InitVector/InitCounter in IV registers.
InitVector | : Pointer to InitVector/InitCounter buffer |
void AES_SetKey | ( | uint8_t * | Key | ) |
Writes the Key in Key registers.
Key | Pointer to Key buffer. |
void AES_StructInit | ( | AES_InitTypeDef * | AES_InitStruct | ) |
Fills each AES_InitStruct member with its default value.
AES_InitStruct | pointer to a AES_InitTypeDef structure which will be initialized. |