1 /***********************************************************************
2  * Copyright (c)  2008 - 2016, Shanghai AisinoChip Co.,Ltd .
3  * All rights reserved.
4  * Filename    : HAL_HRNG.h
5  * Description : hrng header file
6  * Author(s)   : Eric
7  * version     : V1.0
8  * Modify date : 2021-03-24
9  ***********************************************************************/
10 #ifndef __HAL_HRNG_H__
11 #define __HAL_HRNG_H__
12 #include "ACM32Fxx_HAL.h"
13 
14 
15 /*********************************************************************************
16 * Function Name  : HAL_HRNG_Initial
17 * Description    : intial hrng module
18 * Input          : None
19 * Output         : None
20 * Return         : None
21 *********************************************************************************/
22 void HAL_HRNG_Initial(void);
23 
24 /*********************************************************************************
25 * Function Name  : HAL_HRNG_Source_Disable
26 * Description    : disable hrng source
27 * Input          : None
28 * Output         : None
29 * Return         : None
30 *********************************************************************************/
31 void HAL_HRNG_Source_Disable(void);
32 
33 /*********************************************************************************
34 * Function Name  : HAL_HRNG_GetHrng
35 * Description    : get random number
36 * Input          : byte_len :  the byte length of random number
37 * Output         : *hdata   :  the start address of random number the size must be 16bytes
38 * Return         : 0: hrng data is ok; 1: hrng data is bad
39 *********************************************************************************/
40 UINT8 HAL_HRNG_GetHrng(UINT8 *hdata, UINT32 byte_len);
41 
42 #endif
43 
44 
45 
46