MG32F157 Standard Peripherals Firmware Library
|
Functions | |
void | TRNG_DeInit (void) |
Deinitializes the TRNG peripheral registers to their default reset values. More... | |
void | TRNG_Clock_CheckCmd (FunctionalState NewState) |
Enables or disables the TRNG clock error detection. More... | |
void | TRNG_Cmd (FunctionalState NewState) |
Enables or disables the TRNG peripheral generate true random number. More... | |
uint32_t | TRNG_GetData (void) |
Returns true random number value. More... | |
FlagStatus | TRNG_GetFlagStatus (uint8_t TRNG_FLAG) |
Checks whether the specified TRNG flag is set or not. More... | |
void | TRNG_ClearFlag (uint8_t TRNG_FLAG) |
Clears the TRNG's pending flags. More... | |
void | TRNG_ITCmd (FunctionalState NewState) |
Enable or Disable the TRNG interrupt. More... | |
ITStatus | TRNG_GetITStatus (uint16_t TRNG_IT) |
Checks whether the specified TRNG interrupt has occurred or not. More... | |
void | TRNG_ClearITPendingBit (uint16_t TRNG_IT) |
Clears the TRNG's pending interrupt pending bits. More... | |
void TRNG_ClearFlag | ( | uint8_t | TRNG_FLAG | ) |
Clears the TRNG's pending flags.
TRNG_FLAG | specifies the flags to clear. This parameter can be any combination of the following values:
|
void TRNG_ClearITPendingBit | ( | uint16_t | TRNG_IT | ) |
Clears the TRNG's pending interrupt pending bits.
TRNG_IT | specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
|
void TRNG_Clock_CheckCmd | ( | FunctionalState | NewState | ) |
Enables or disables the TRNG clock error detection.
NewState | new state of the TRNG clock error detection. This parameter can be: ENABLE or DISABLE. |
void TRNG_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the TRNG peripheral generate true random number.
NewState | new state of the TRNG. This parameter can be: ENABLE or DISABLE. |
void TRNG_DeInit | ( | void | ) |
Deinitializes the TRNG peripheral registers to their default reset values.
None |
uint32_t TRNG_GetData | ( | void | ) |
Returns true random number value.
None |
FlagStatus TRNG_GetFlagStatus | ( | uint8_t | TRNG_FLAG | ) |
Checks whether the specified TRNG flag is set or not.
TRNG_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
ITStatus TRNG_GetITStatus | ( | uint16_t | TRNG_IT | ) |
Checks whether the specified TRNG interrupt has occurred or not.
TRNG_IT | specifies the interrupt source to check. This parameter can be one of the following values:
|
void TRNG_ITCmd | ( | FunctionalState | NewState | ) |
Enable or Disable the TRNG interrupt.
NewState | new state of the TRNG interrupt. This parameter can be: ENABLE or DISABLE. |