summaryrefslogtreecommitdiff
path: root/firmware/src/eui64.h
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-30 22:06:31 +0200
committerxengineering <me@xengineering.eu>2024-05-30 22:12:34 +0200
commitb8147bcba2e8dfef419ba14053285bc9750dc319 (patch)
tree62a7129f0805ec2eea65ab79e63305c848762083 /firmware/src/eui64.h
parent17008662c08e8e99aefc1814dd80d366872d7ded (diff)
downloadiot-core-b8147bcba2e8dfef419ba14053285bc9750dc319.tar
iot-core-b8147bcba2e8dfef419ba14053285bc9750dc319.tar.zst
iot-core-b8147bcba2e8dfef419ba14053285bc9750dc319.zip
firmware: Rename from uid64 to eui64
The term EUI-64 is more commonly known (see Wikipedia about MAC addresses [1]). The term UID-64 was introduced because of ST documentation. [1]: https://en.wikipedia.org/wiki/MAC_address
Diffstat (limited to 'firmware/src/eui64.h')
-rw-r--r--firmware/src/eui64.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/src/eui64.h b/firmware/src/eui64.h
new file mode 100644
index 0000000..b7a8a6f
--- /dev/null
+++ b/firmware/src/eui64.h
@@ -0,0 +1,8 @@
+#include <zephyr/devicetree.h>
+
+/* 2 chars per byte (hex), 1 char per ':' delimiter and one char for \0 */
+#define UID64_STR_LEN (8*2 + 7*1 + 1)
+
+uint64_t eui64_get(void);
+void eui64_to_string(uint64_t, char *str);
+bool eui64_available(void);