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
24
26
#define INFUSE_TEST_DEVICE_ID 0xFFFFFFFFFFFFFFFDULL
27
29
#define INFUSE_LOCALLY_MANAGED_PREFIX 0xFFFF000000000000ULL
30
32
#define BLUETOOTH_STATIC_RANDOM_PREFIX 0xC00000000000ULL
33
40
uint64_t vendor_infuse_device_id(
void
);
42
48
uint64_t
infuse_device_id
(
void
);
49
57
static
inline
uint64_t
local_infuse_device_id_from_bt
(uint64_t bt_addr)
58
{
59
return
0xFFFF000000000000ULL | bt_addr;
60
}
61
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#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:57
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