MG32F157 Standard Peripherals Firmware Library
Macros | Functions
mg32f157_trng.h File Reference

This file contains all the functions prototypes for the TRNG firmware library. More...

#include "mg32f157.h"

Go to the source code of this file.

Macros

#define TRNG_IT_SEIS   ((uint16_t)0x4008)
 
#define TRNG_IT_CEIS   ((uint16_t)0x2008)
 
#define TRNG_IT_DRDY   ((uint16_t)0x0108)
 
#define IS_TRNG_CLEAR_IT(IT)
 
#define IS_TRNG_GET_IT(IT)
 
#define TRNG_FLAG_SECS   ((uint8_t)0x04)
 
#define TRNG_FLAG_CECS   ((uint8_t)0x02)
 
#define TRNG_FLAG_DRDY   ((uint8_t)0x01)
 
#define IS_TRNG_GET_FLAG(FLAG)
 
#define IS_TRNG_CLEAR_FLAG(FLAG)
 

Functions

void TRNG_DeInit (void)
 Deinitializes the TRNG peripheral registers to their default reset values. More...
 
void TRNG_Cmd (FunctionalState NewState)
 Enables or disables the TRNG peripheral generate true random number. More...
 
void TRNG_Clock_CheckCmd (FunctionalState NewState)
 Enables or disables the TRNG clock error detection. More...
 
void TRNG_ClearFlag (uint8_t TRNG_FLAG)
 Clears the TRNG's pending flags. More...
 
void TRNG_ClearITPendingBit (uint16_t TRNG_IT)
 Clears the TRNG's pending interrupt pending bits. 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...
 
ITStatus TRNG_GetITStatus (uint16_t TRNG_IT)
 Checks whether the specified TRNG interrupt has occurred or not. More...
 
void TRNG_ITCmd (FunctionalState NewState)
 Enable or Disable the TRNG interrupt. More...
 

Detailed Description

This file contains all the functions prototypes for the TRNG firmware library.

Author
MegawinTech Application Team
Version
V0.0.4
Date
16-June-2023