Lines Matching refs:uuid
26 .uuid = { BT_UUID_TYPE_128 },
79 bool bt_uuid_create(struct bt_uuid *uuid, const uint8_t *data, uint8_t data_len) in bt_uuid_create() argument
84 uuid->type = BT_UUID_TYPE_16; in bt_uuid_create()
85 BT_UUID_16(uuid)->val = sys_get_le16(data); in bt_uuid_create()
88 uuid->type = BT_UUID_TYPE_32; in bt_uuid_create()
89 BT_UUID_32(uuid)->val = sys_get_le32(data); in bt_uuid_create()
92 uuid->type = BT_UUID_TYPE_128; in bt_uuid_create()
93 memcpy(&BT_UUID_128(uuid)->val, data, 16); in bt_uuid_create()
101 void bt_uuid_to_str(const struct bt_uuid *uuid, char *str, size_t len) in bt_uuid_to_str() argument
106 switch (uuid->type) { in bt_uuid_to_str()
108 snprintk(str, len, "%04x", BT_UUID_16(uuid)->val); in bt_uuid_to_str()
111 snprintk(str, len, "%08x", BT_UUID_32(uuid)->val); in bt_uuid_to_str()
114 memcpy(&tmp0, &BT_UUID_128(uuid)->val[0], sizeof(tmp0)); in bt_uuid_to_str()
115 memcpy(&tmp1, &BT_UUID_128(uuid)->val[2], sizeof(tmp1)); in bt_uuid_to_str()
116 memcpy(&tmp2, &BT_UUID_128(uuid)->val[6], sizeof(tmp2)); in bt_uuid_to_str()
117 memcpy(&tmp3, &BT_UUID_128(uuid)->val[8], sizeof(tmp3)); in bt_uuid_to_str()
118 memcpy(&tmp4, &BT_UUID_128(uuid)->val[10], sizeof(tmp4)); in bt_uuid_to_str()
119 memcpy(&tmp5, &BT_UUID_128(uuid)->val[12], sizeof(tmp5)); in bt_uuid_to_str()