Searched refs:nfy (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/samples/bluetooth/peripheral_csc/src/ |
D | main.c | 266 struct csc_measurement_nfy *nfy; in measurement_nfy() local 267 uint8_t buf[sizeof(*nfy) + in measurement_nfy() 272 nfy = (void *) buf; in measurement_nfy() 273 nfy->flags = 0U; in measurement_nfy() 279 nfy->flags |= CSC_WHEEL_REV_DATA_PRESENT; in measurement_nfy() 283 memcpy(nfy->data, &data, sizeof(data)); in measurement_nfy() 291 nfy->flags |= CSC_CRANK_REV_DATA_PRESENT; in measurement_nfy() 295 memcpy(nfy->data + len, &data, sizeof(data)); in measurement_nfy()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | gatt.c | 2425 struct bt_att_notify_mult *nfy; in gatt_add_nfy_to_buf() local 2427 nfy = net_buf_add(buf, sizeof(*nfy) + params->len); in gatt_add_nfy_to_buf() 2428 nfy->handle = sys_cpu_to_le16(handle); in gatt_add_nfy_to_buf() 2429 nfy->len = sys_cpu_to_le16(params->len); in gatt_add_nfy_to_buf() 2430 (void)memcpy(nfy->value, params->data, params->len); in gatt_add_nfy_to_buf() 2488 struct bt_att_notify *nfy; in gatt_notify() local 2532 sizeof(*nfy) + params->len); in gatt_notify() 2540 nfy = net_buf_add(buf, sizeof(*nfy) + params->len); in gatt_notify() 2541 nfy->handle = sys_cpu_to_le16(handle); in gatt_notify() 2542 memcpy(nfy->value, params->data, params->len); in gatt_notify() [all …]
|