summaryrefslogtreecommitdiff
path: root/firmware/src/eui64.h
diff options
context:
space:
mode:
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);