1 /*!
2  * \file      lr1110-se-hal.h
3  *
4  * \brief     Secure Element hardware abstraction layer
5  *
6  * \copyright Revised BSD License, see section \ref LICENSE.
7  *
8  * \code
9  *                ______                              _
10  *               / _____)             _              | |
11  *              ( (____  _____ ____ _| |_ _____  ____| |__
12  *               \____ \| ___ |    (_   _) ___ |/ ___)  _ \
13  *               _____) ) ____| | | || |_| ____( (___| | | |
14  *              (______/|_____)_|_|_| \__)_____)\____)_| |_|
15  *              (C)2020 Semtech
16  *
17  *               ___ _____ _   ___ _  _____ ___  ___  ___ ___
18  *              / __|_   _/_\ / __| |/ / __/ _ \| _ \/ __| __|
19  *              \__ \ | |/ _ \ (__| ' <| _| (_) |   / (__| _|
20  *              |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
21  *              embedded.connectivity.solutions===============
22  *
23  * \endcode
24  *
25  */
26 #ifndef __LR1110_SE_HAL_H__
27 #define __LR1110_SE_HAL_H__
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #include <stdint.h>
34 #include <stdbool.h>
35 
36 /*!
37  * \brief Get a 64 bits unique ID
38  *
39  * \param [IN] id Pointer to an array that will contain the Unique ID
40  */
41 void LR1110SeHalGetUniqueId( uint8_t *id );
42 
43 /*!
44  * \brief Get a random number
45  *
46  * \remark The number SHALL NOT be generated using a pseudo random number
47  *         generator
48  * \retval number 32 bit random value
49  */
50 uint32_t LR1110SeHalGetRandomNumber( void );
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif  //  __LR1110_SE_HAL_H__
57