Bluetooth: Object transfer service object ID mask define
Object IDs are 48 bits, but are often carried in uint64_t variables. This commit defines a mask value that retains the least significant 48 bits. Signed-off-by: Asbjørn Sæbø <asbjorn.sabo@nordicsemi.no>
This commit is contained in:
parent
2e242c51fb
commit
0e095c9817
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ extern "C" {
|
|||
/** @brief Size of OTS object ID (in bytes). */
|
||||
#define BT_OTS_OBJ_ID_SIZE 6
|
||||
|
||||
/** @brief Mask for OTS object IDs, preserving the 48 bits */
|
||||
#define BT_OTS_OBJ_ID_MASK BIT64_MASK(48)
|
||||
|
||||
/** @brief Length of OTS object ID string (in bytes). */
|
||||
#define BT_OTS_OBJ_ID_STR_LEN 15
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue