Infuse-IoT SDK API
0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
identifiers.h
Go to the documentation of this file.
1
9
10
#ifndef INFUSE_SDK_INCLUDE_INFUSE_IDENTIFIERS_H_
11
#define INFUSE_SDK_INCLUDE_INFUSE_IDENTIFIERS_H_
12
13
#include <stdint.h>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
25
27
#define INFUSE_TEST_DEVICE_ID 0xFFFFFFFFFFFFFFFDULL
28
30
#define INFUSE_LOCALLY_MANAGED_PREFIX 0xFFFF000000000000ULL
31
33
#define BLUETOOTH_STATIC_RANDOM_PREFIX 0xC00000000000ULL
34
41
uint64_t vendor_infuse_device_id(
void
);
43
49
uint64_t
infuse_device_id
(
void
);
50
58
static
inline
uint64_t
local_infuse_device_id_from_bt
(uint64_t bt_addr)
59
{
60
return
0xFFFF000000000000ULL | bt_addr;
61
}
62
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* INFUSE_SDK_INCLUDE_INFUSE_IDENTIFIERS_H_ */
local_infuse_device_id_from_bt
static uint64_t local_infuse_device_id_from_bt(uint64_t bt_addr)
Convert a Bluetooth address to a locally managed Infuse-Iot device ID.
Definition
identifiers.h:58
infuse_device_id
uint64_t infuse_device_id(void)
Get local device ID.
infuse
identifiers.h
Generated on
for Infuse-IoT SDK API by
1.14.0