Commit 0e095c98 authored by Asbjørn Sæbø's avatar Asbjørn Sæbø Committed by Carles Cufi
Browse files

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: default avatarAsbjørn Sæbø <asbjorn.sabo@nordicsemi.no>
parent 2e242c51
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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