1 /**
2  * @file      atecc608a-tnglora-se-hal.h
3  *
4  * @brief     Secure Element hardware abstraction layer
5  *
6  * @remark    Current implementation only supports LoRaWAN 1.0.x version
7  *
8  * @copyright Copyright (c) 2020 The Things Industries B.V.
9  *
10  * Revised BSD License
11  * Copyright The Things Industries B.V 2020. All rights reserved.
12  *
13  * Redistribution and use in source and binary forms, with or without
14  * modification, are permitted provided that the following conditions are met:
15  *     * Redistributions of source code must retain the above copyright
16  *       notice, this list of conditions and the following disclaimer.
17  *     * Redistributions in binary form must reproduce the above copyright
18  *       notice, this list of conditions and the following disclaimer in the
19  *       documentation and/or other materials provided with the distribution.
20  *     * Neither the name of the Things Industries B.V nor the
21  *       names of its contributors may be used to endorse or promote products
22  *       derived from this software without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27  * ARE DISCLAIMED. IN NO EVENT SHALL THE THINGS INDUSTRIES B.V BE LIABLE FOR ANY
28  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
31  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34  */
35 #ifndef __ATECC608A_TNGLORA_SE_HAL_H__
36 #define __ATECC608A_TNGLORA_SE_HAL_H__
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #include <stdint.h>
43 #include <stdbool.h>
44 
45 /*!
46  * \brief Get a random number
47  *
48  * \remark The number SHALL NOT be generated using a pseudo random number
49  *         generator
50  * \retval number 32 bit random value
51  */
52 uint32_t ATECC608ASeHalGetRandomNumber( void );
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif  //  __ATECC608A_TNGLORA_SE_HAL_H__
59