1 /**************************************************************************//**
2  * @file     rng.h
3  * @version  V3.00
4  * @brief    Random Number Generator Interface Controller (rng) driver header file
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  * @copyright (C) 2023 Nuvoton Technology Corp. All rights reserved.
8  *****************************************************************************/
9 #ifndef __RNG_H__
10 #define __RNG_H__
11 
12 #ifdef __cplusplus
13 extern "C"
14 {
15 #endif
16 
17 /** @addtogroup Standard_Driver Standard Driver
18   @{
19 */
20 
21 /** @addtogroup RNG_Driver RNG Driver
22   @{
23 */
24 
25 /** @addtogroup RNG_EXPORTED_CONSTANTS RNG Exported Constants
26   @{
27 */
28 
29 /**@}*/ /* end of group RNG_EXPORTED_CONSTANTS */
30 
31 
32 /** @addtogroup RNG_EXPORTED_FUNCTIONS RNG Exported Functions
33   @{
34 */
35 
36 int32_t RNG_Open(void);
37 int32_t RNG_Random(uint32_t *pu32Buf, int32_t i32WordCnt);
38 int32_t RNG_EntropyPoll(uint8_t* pu8Out, int32_t i32Len);
39 
40 /**@}*/ /* end of group RNG_EXPORTED_FUNCTIONS */
41 
42 /**@}*/ /* end of group RNG_Driver */
43 
44 /**@}*/ /* end of group Standard_Driver */
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* __RNG_H__ */
51 
52