Home
last modified time | relevance | path

Searched refs:chrc_data (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/host/misc/disable/src/
Dgatt_server_test.c47 static uint8_t chrc_data[CHRC_SIZE]; variable
55 (void *)chrc_data, sizeof(chrc_data)); in read_test_chrc()
65 if (len > sizeof(chrc_data)) { in write_test_chrc()
68 } else if (offset + len > sizeof(chrc_data)) { in write_test_chrc()
78 (void)memcpy(chrc_data + offset, buf, len); in write_test_chrc()
Dgatt_client_test.c25 static uint8_t chrc_data[] = { LISTIFY(CHRC_SIZE, ARRAY_ITEM, (,)) }; /* 1, 2, 3 ... */ variable
190 write_params.data = chrc_data; in gatt_write()
191 write_params.length = sizeof(chrc_data); in gatt_write()
222 memcmp(data, chrc_data, length) != 0) { in gatt_read_cb()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/general/src/
Dgatt_server_test.c55 static uint8_t chrc_data[CHRC_SIZE]; variable
63 (void *)chrc_data, sizeof(chrc_data)); in read_test_chrc()
73 if (len > sizeof(chrc_data)) { in write_test_chrc()
76 } else if (offset + len > sizeof(chrc_data)) { in write_test_chrc()
86 (void)memcpy(chrc_data + offset, buf, len); in write_test_chrc()
Dgatt_client_test.c27 static uint8_t chrc_data[] = { LISTIFY(CHRC_SIZE, ARRAY_ITEM, (,)) }; /* 1, 2, 3 ... */ variable
221 write_params.data = chrc_data; in gatt_write()
222 write_params.length = sizeof(chrc_data); in gatt_write()
229 write_params.data = chrc_data; in gatt_write()
230 write_params.length = sizeof(chrc_data); in gatt_write()
233 write_params.data = chrc_data; in gatt_write()
234 write_params.length = sizeof(chrc_data); in gatt_write()
284 memcmp(data_received, chrc_data, data_received_size) != 0) { in gatt_read_cb()
295 memcmp(data_received, chrc_data, data_received_size) != 0) { in gatt_read_cb()
300 memcmp(data_received, chrc_data, data_received_size) != 0) { in gatt_read_cb()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify/src/
Dgatt_server_test.c18 const uint8_t chrc_data[] = { LISTIFY(CHRC_SIZE, ARRAY_ITEM, (,)) }; /* 1, 2, 3 ... */ variable
65 return bt_gatt_attr_read(conn, attr, buf, len, offset, (void *)chrc_data, in read_test_chrc()
66 sizeof(chrc_data)); in read_test_chrc()
124 .data = chrc_data, in short_notify()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/authorization/src/
Dgatt_client_test.c25 static uint8_t chrc_data[] = { LISTIFY(CHRC_SIZE, ARRAY_ITEM, (,)) }; /* 1, 2, 3 ... */ variable
201 write_params.data = chrc_data; in gatt_write()
202 write_params.length = sizeof(chrc_data); in gatt_write()
249 if ((length != CHRC_SIZE) || (memcmp(data, chrc_data, length) != 0)) { in gatt_read_cb()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/caching/src/
Dgatt_server_test.c67 static const uint8_t chrc_data[] = { LISTIFY(CHRC_SIZE, ARRAY_ITEM, (,)) }; /* 1, 2, 3 ... */ variable
74 return bt_gatt_attr_read(conn, attr, buf, len, offset, (const void *)chrc_data, CHRC_SIZE); in read_test_chrc()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify_multiple/src/
Dgatt_server_test.c18 const uint8_t chrc_data[] = { LISTIFY(CHRC_SIZE, ARRAY_ITEM, (,)) }; /* 1, 2, 3 ... */ variable
112 .data = chrc_data, in multiple_notify()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_gatt.c435 struct bt_gatt_chrc *chrc_data; in alloc_characteristic() local
444 sizeof(*chrc_data)); in alloc_characteristic()
479 server_buf_pull(sizeof(*chrc_data)); in alloc_characteristic()
485 chrc_data = attr_chrc->user_data; in alloc_characteristic()
486 chrc_data->properties = ch->properties; in alloc_characteristic()
487 chrc_data->uuid = attr_value->uuid; in alloc_characteristic()