1 /*
2  * Copyright (c) 2020 Linumiz
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __HAWKBIT_DEVICE_H__
8 #define __HAWKBIT_DEVICE_H__
9 
10 #include <zephyr/kernel.h>
11 #include <zephyr/drivers/hwinfo.h>
12 
13 #ifdef CONFIG_HAWKBIT_CUSTOM_DEVICE_ID
14 #define DEVICE_ID_BIN_MAX_SIZE	(CONFIG_HAWKBIT_DEVICE_ID_MAX_LENGTH / 2)
15 #define DEVICE_ID_HEX_MAX_SIZE	(CONFIG_HAWKBIT_DEVICE_ID_MAX_LENGTH + 1)
16 #else
17 #define DEVICE_ID_BIN_MAX_SIZE	16
18 #define DEVICE_ID_HEX_MAX_SIZE	((DEVICE_ID_BIN_MAX_SIZE * 2) + 1)
19 #endif
20 
21 bool hawkbit_get_device_identity(char *id, int id_max_len);
22 
23 #endif /* __HAWKBIT_DEVICE_H__ */
24