File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ /** \addtogroup hal */
2
+ /** @{*/
3
+ /* mbed Microcontroller Library
4
+ * Copyright (c) 2017 ARM Limited
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ #ifndef MBED_CPU_UID_API_H
19
+ #define MBED_CPU_UID_API_H
20
+
21
+ #include <stddef.h>
22
+ #include "device.h"
23
+
24
+ #if DEVICE_CPUUID
25
+
26
+ #ifdef __cplusplus
27
+ extern "C" {
28
+ #endif
29
+
30
+ /**
31
+ * \defgroup hal_cpu_uid CPUUID hal functions
32
+ * @{
33
+ */
34
+
35
+
36
+ /** Get length of CPU UID in bytes
37
+ *
38
+ * @return Number of uid bytes
39
+ *
40
+ * @note Shall be used to get the needed size of the byte buffer
41
+ */
42
+ int cpu_uid_get_length (void );
43
+
44
+ /** Get CPU UID data bytes
45
+ *
46
+ * @param uid Byte buffer for uid. Must at least be of size obtained by call to cpu_uid_get_length()
47
+ *
48
+ */
49
+ void cpu_uid_get_uid (uint8_t * uid );
50
+
51
+
52
+ /**@}*/
53
+
54
+ #ifdef __cplusplus
55
+ }
56
+ #endif
57
+
58
+ #endif
59
+
60
+ #endif
61
+ /** @}*/
You can’t perform that action at this time.
0 commit comments