MG32F157 Standard Peripherals Firmware Library
|
This file provides all the TRNG firmware functions. More...
#include "mg32f157_trng.h"
Macros | |
#define | TRNG_Set ((uint32_t)0x00000004) |
#define | TRNG_Reset ((uint32_t)0x00000000) |
#define | TRNG_CED_Set ((uint32_t)0x00000020) |
#define | TRNG_IE_Set ((uint32_t)0x00000008) |
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... | |
This file provides all the TRNG firmware functions.