/Zephyr-Core-3.4.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | publisher.c | 29 net_buf_simple_add_u8(root_models[3].pub->msg, 0x01); in publish() 30 net_buf_simple_add_u8(root_models[3].pub->msg, tid++); in publish() 35 net_buf_simple_add_u8(root_models[3].pub->msg, 0x01); in publish() 36 net_buf_simple_add_u8(root_models[3].pub->msg, tid++); in publish() 37 net_buf_simple_add_u8(root_models[3].pub->msg, 0x45); in publish() 38 net_buf_simple_add_u8(root_models[3].pub->msg, 0x28); in publish() 44 net_buf_simple_add_u8(vnd_models[0].pub->msg, tid++); in publish() 51 net_buf_simple_add_u8(root_models[3].pub->msg, 0x00); in publish() 52 net_buf_simple_add_u8(root_models[3].pub->msg, tid++); in publish() 57 net_buf_simple_add_u8(root_models[3].pub->msg, 0x00); in publish() [all …]
|
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/ |
D | sar_cfg.c | 20 net_buf_simple_add_u8(buf, (tx->seg_int_step & 0xf) | in bt_mesh_sar_tx_encode() 22 net_buf_simple_add_u8(buf, (tx->unicast_retrans_without_prog_count & in bt_mesh_sar_tx_encode() 24 net_buf_simple_add_u8(buf, (tx->unicast_retrans_int_inc & 0xf) | in bt_mesh_sar_tx_encode() 26 net_buf_simple_add_u8(buf, tx->multicast_retrans_int & 0xf); in bt_mesh_sar_tx_encode() 32 net_buf_simple_add_u8(buf, (rx->seg_thresh & 0x1f) | in bt_mesh_sar_rx_encode() 34 net_buf_simple_add_u8(buf, (rx->discard_timeout & 0xf) | in bt_mesh_sar_rx_encode() 36 net_buf_simple_add_u8(buf, (rx->ack_retrans_count & 0x3)); in bt_mesh_sar_rx_encode()
|
D | priv_beacon_srv.c | 25 net_buf_simple_add_u8(&buf, bt_mesh_priv_beacon_get()); in beacon_status_rsp() 26 net_buf_simple_add_u8(&buf, bt_mesh_priv_beacon_update_interval_get()); in beacon_status_rsp() 77 net_buf_simple_add_u8(&buf, bt_mesh_priv_gatt_proxy_get()); in gatt_proxy_status_rsp() 122 net_buf_simple_add_u8(&buf, status); in node_id_status_rsp() 124 net_buf_simple_add_u8(&buf, node_id); in node_id_status_rsp()
|
D | dfu_metadata.c | 58 net_buf_simple_add_u8(buf, metadata->fw_ver.major); in bt_mesh_dfu_metadata_encode() 59 net_buf_simple_add_u8(buf, metadata->fw_ver.minor); in bt_mesh_dfu_metadata_encode() 63 net_buf_simple_add_u8(buf, metadata->fw_core_type); in bt_mesh_dfu_metadata_encode()
|
D | cfg_srv.c | 75 net_buf_simple_add_u8(&sdu, page); in dev_comp_data_get() 292 net_buf_simple_add_u8(&msg, status); in send_app_key_status() 401 net_buf_simple_add_u8(&msg, status); in app_key_get() 439 net_buf_simple_add_u8(&msg, bt_mesh_beacon_enabled()); in beacon_get() 465 net_buf_simple_add_u8(&msg, buf->data[0]); in beacon_set() 484 net_buf_simple_add_u8(&msg, bt_mesh_default_ttl_get()); in default_ttl_get() 510 net_buf_simple_add_u8(&msg, buf->data[0]); in default_ttl_set() 525 net_buf_simple_add_u8(&msg, bt_mesh_gatt_proxy_get()); in send_gatt_proxy_status() 578 net_buf_simple_add_u8(&msg, bt_mesh_net_transmit_get()); in net_transmit_get() 602 net_buf_simple_add_u8(&msg, buf->data[0]); in net_transmit_set() [all …]
|
D | dfu_srv.c | 146 net_buf_simple_add_u8(&rsp, srv->img_count); in handle_info_get() 147 net_buf_simple_add_u8(&rsp, idx); in handle_info_get() 165 net_buf_simple_add_u8(&rsp, srv->imgs[idx].fwid_len); in handle_info_get() 172 net_buf_simple_add_u8(&rsp, len); in handle_info_get() 175 net_buf_simple_add_u8(&rsp, 0); in handle_info_get() 206 net_buf_simple_add_u8(&rsp, (status & BIT_MASK(3)) | (effect << 3)); in handle_metadata_check() 207 net_buf_simple_add_u8(&rsp, idx); in handle_metadata_check() 226 net_buf_simple_add_u8(&buf, ((status & BIT_MASK(3)) | in update_status_rsp() 230 net_buf_simple_add_u8(&buf, srv->update.ttl); in update_status_rsp() 231 net_buf_simple_add_u8(&buf, srv->update.effect); in update_status_rsp() [all …]
|
D | rpr_srv.c | 157 net_buf_simple_add_u8(&rsp, status); in scan_status_send() 158 net_buf_simple_add_u8(&rsp, srv.scan.state); in scan_status_send() 159 net_buf_simple_add_u8(&rsp, srv.scan.max_devs); in scan_status_send() 160 net_buf_simple_add_u8(&rsp, timeout); in scan_status_send() 170 net_buf_simple_add_u8(&buf, status); in link_status_send() 171 net_buf_simple_add_u8(&buf, srv.link.state); in link_status_send() 182 net_buf_simple_add_u8(&buf, srv.link.status); in link_report_send() 183 net_buf_simple_add_u8(&buf, srv.link.state); in link_report_send() 186 net_buf_simple_add_u8(&buf, srv.link.close_reason); in link_report_send() 237 net_buf_simple_add_u8(&buf, dev->rssi); in scan_report_send() [all …]
|
D | op_agg_srv.c | 41 status = net_buf_simple_add_u8(agg->sdu, 0); in handle_sequence() 88 net_buf_simple_add_u8(agg->sdu, 0); in handle_sequence()
|
D | msg.c | 21 net_buf_simple_add_u8(msg, opcode); in bt_mesh_model_msg_init() 27 net_buf_simple_add_u8(msg, ((opcode >> 16) & 0xff)); in bt_mesh_model_msg_init()
|
D | health_cli.c | 219 net_buf_simple_add_u8(&msg, attention); in bt_mesh_health_cli_attention_set() 237 net_buf_simple_add_u8(&msg, attention); in bt_mesh_health_cli_attention_set_unack() 271 net_buf_simple_add_u8(&msg, divisor); in bt_mesh_health_cli_period_set() 289 net_buf_simple_add_u8(&msg, divisor); in bt_mesh_health_cli_period_set_unack() 307 net_buf_simple_add_u8(&msg, test_id); in bt_mesh_health_cli_fault_test() 326 net_buf_simple_add_u8(&msg, test_id); in bt_mesh_health_cli_fault_test_unack()
|
D | blob_srv.c | 134 net_buf_simple_add_u8(buf, chunk); in buf_chunk_index_add() 136 net_buf_simple_add_u8(buf, 0xc0 | chunk >> 6); in buf_chunk_index_add() 137 net_buf_simple_add_u8(buf, 0x80 | (chunk & BIT_MASK(6))); in buf_chunk_index_add() 139 net_buf_simple_add_u8(buf, 0xe0 | chunk >> 12); in buf_chunk_index_add() 140 net_buf_simple_add_u8(buf, 0x80 | ((chunk >> 6) & BIT_MASK(6))); in buf_chunk_index_add() 141 net_buf_simple_add_u8(buf, 0x80 | (chunk & BIT_MASK(6))); in buf_chunk_index_add() 295 net_buf_simple_add_u8(&buf, ((status & BIT_MASK(4)) | in xfer_status_rsp() 297 net_buf_simple_add_u8(&buf, srv->phase); in xfer_status_rsp() 310 net_buf_simple_add_u8(&buf, srv->state.xfer.block_size_log); in xfer_status_rsp() 353 net_buf_simple_add_u8(&buf, (status & BIT_MASK(4)) | (format << 6)); in block_status_rsp() [all …]
|
D | priv_beacon_cli.c | 172 net_buf_simple_add_u8(&buf, val->enabled); in bt_mesh_priv_beacon_cli_set() 174 net_buf_simple_add_u8(&buf, val->rand_interval); in bt_mesh_priv_beacon_cli_set() 214 net_buf_simple_add_u8(&buf, *val); in bt_mesh_priv_beacon_cli_gatt_proxy_set() 256 net_buf_simple_add_u8(&buf, val->state); in bt_mesh_priv_beacon_cli_node_id_set()
|
D | large_comp_data_srv.c | 68 net_buf_simple_add_u8(&rsp, page); in handle_large_comp_data_get() 116 net_buf_simple_add_u8(&rsp, page); in handle_models_metadata_get()
|
D | provisioner.c | 90 net_buf_simple_add_u8(&inv, prov_device.attention_duration); in send_invite() 117 net_buf_simple_add_u8(&start, bt_mesh_prov_link.algorithm); in send_start() 120 net_buf_simple_add_u8(&start, PUB_KEY_OOB); in send_start() 123 net_buf_simple_add_u8(&start, PUB_KEY_NO_OOB); in send_start() 126 net_buf_simple_add_u8(&start, bt_mesh_prov_link.oob_method); in send_start() 128 net_buf_simple_add_u8(&start, bt_mesh_prov_link.oob_action); in send_start() 130 net_buf_simple_add_u8(&start, bt_mesh_prov_link.oob_size); in send_start() 535 net_buf_simple_add_u8(&pdu, bt_mesh_cdb_subnet_flags(sub)); in send_prov_data()
|
D | prov_device.c | 51 net_buf_simple_add_u8(&buf, err); in prov_send_fail_msg() 88 net_buf_simple_add_u8(&buf, bt_mesh_elem_count()); in prov_invite() 112 net_buf_simple_add_u8(&buf, in prov_invite() 116 net_buf_simple_add_u8(&buf, oob_type); in prov_invite() 119 net_buf_simple_add_u8(&buf, bt_mesh_prov->output_size); in prov_invite() 125 net_buf_simple_add_u8(&buf, bt_mesh_prov->input_size); in prov_invite()
|
D | dfd_srv.c | 109 net_buf_simple_add_u8(&buf, status); in receivers_status_rsp() 191 net_buf_simple_add_u8(&rsp, t->img_idx); in handle_receivers_get() 227 net_buf_simple_add_u8(&rsp, 0U); /* OOB retrieval not supported */ in handle_capabilities_get() 240 net_buf_simple_add_u8(&rsp, status); in status_rsp() 241 net_buf_simple_add_u8(&rsp, srv->phase); in status_rsp() 250 net_buf_simple_add_u8(&rsp, srv->inputs.ttl); in status_rsp() 252 net_buf_simple_add_u8(&rsp, ((srv->dfu.xfer.blob.mode & BIT_MASK(2)) | in status_rsp() 340 net_buf_simple_add_u8(&rsp, status); in upload_status_rsp() 341 net_buf_simple_add_u8(&rsp, srv->upload.phase); in upload_status_rsp() 349 net_buf_simple_add_u8(&rsp, in upload_status_rsp() [all …]
|
D | rpr_cli.c | 515 net_buf_simple_add_u8(&buf, max_devs); in bt_mesh_rpr_scan_start() 516 net_buf_simple_add_u8(&buf, timeout); in bt_mesh_rpr_scan_start() 542 net_buf_simple_add_u8(&buf, ad_count); in bt_mesh_rpr_scan_start_ext() 546 net_buf_simple_add_u8(&buf, timeout); in bt_mesh_rpr_scan_start_ext() 578 net_buf_simple_add_u8(&buf, PROV_BEARER_LINK_STATUS_FAIL); in bt_mesh_rpr_link_close() 595 net_buf_simple_add_u8(&buf, cli->link.time); in link_open_prov() 610 net_buf_simple_add_u8(&buf, type); in link_open_node() 628 net_buf_simple_add_u8(&buf, status); in link_close()
|
D | od_priv_proxy_srv.c | 23 net_buf_simple_add_u8(&buf, bt_mesh_od_priv_proxy_get()); in proxy_status_rsp()
|
/Zephyr-Core-3.4.0/tests/bluetooth/host/id/mocks/ |
D | net_buf.h | 14 FAKE(net_buf_simple_add_u8) \ 19 DECLARE_FAKE_VALUE_FUNC(uint8_t *, net_buf_simple_add_u8, struct net_buf_simple *, uint8_t);
|
D | net_buf.c | 15 DEFINE_FAKE_VALUE_FUNC(uint8_t *, net_buf_simple_add_u8, struct net_buf_simple *, uint8_t);
|
/Zephyr-Core-3.4.0/samples/bluetooth/mesh/src/ |
D | main.c | 123 net_buf_simple_add_u8(&buf, !onoff.val); in onoff_status_send() 124 net_buf_simple_add_u8(&buf, onoff.val); in onoff_status_send() 125 net_buf_simple_add_u8(&buf, model_time_encode(remaining)); in onoff_status_send() 127 net_buf_simple_add_u8(&buf, onoff.val); in onoff_status_send() 320 net_buf_simple_add_u8(&buf, val); in gen_onoff_send() 321 net_buf_simple_add_u8(&buf, tid++); in gen_onoff_send()
|
/Zephyr-Core-3.4.0/subsys/net/lib/mqtt_sn/ |
D | mqtt_sn_encoder.c | 50 net_buf_simple_add_u8(buf, (uint8_t)sz); in prepare_message() 52 net_buf_simple_add_u8(buf, MQTT_SN_LENGTH_FIELD_EXTENDED_PREFIX); in prepare_message() 56 net_buf_simple_add_u8(buf, (uint8_t)type); in prepare_message() 77 net_buf_simple_add_u8(buf, b); in encode_flags() 91 net_buf_simple_add_u8(buf, params->radius); in mqtt_sn_encode_msg_searchgw() 107 net_buf_simple_add_u8(buf, params->gw_id); in mqtt_sn_encode_msg_gwinfo() 127 net_buf_simple_add_u8(buf, MQTT_SN_PROTOCOL_ID); in mqtt_sn_encode_msg_connect() 203 net_buf_simple_add_u8(buf, params->ret_code); in mqtt_sn_encode_msg_regack() 251 net_buf_simple_add_u8(buf, params->ret_code); in mqtt_sn_encode_msg_puback()
|
/Zephyr-Core-3.4.0/samples/bluetooth/periodic_sync_conn/src/ |
D | main.c | 91 net_buf_simple_add_u8(&rsp_buf, sizeof(bt_addr_le_t)); in recv_cb() 92 net_buf_simple_add_u8(&rsp_buf, BT_DATA_LE_BT_DEVICE_ADDRESS); in recv_cb() 94 net_buf_simple_add_u8(&rsp_buf, oob.addr.type); in recv_cb()
|
/Zephyr-Core-3.4.0/samples/boards/nrf/mesh/onoff-app/src/ |
D | main.c | 294 net_buf_simple_add_u8(&msg, onoff_state->current); in gen_onoff_get() 333 net_buf_simple_add_u8(msg, onoff_state->current); in gen_onoff_set_unack() 500 net_buf_simple_add_u8(&msg, sw->onoff_state); in button_pressed_worker() 513 net_buf_simple_add_u8(pub_cli->msg, sw->onoff_state); in button_pressed_worker() 514 net_buf_simple_add_u8(pub_cli->msg, trans_id++); in button_pressed_worker()
|
/Zephyr-Core-3.4.0/subsys/bluetooth/audio/ |
D | bap_broadcast_source.c | 319 net_buf_simple_add_u8(buf, stream_count); in encode_base_subgroup() 320 net_buf_simple_add_u8(buf, codec->id); in encode_base_subgroup() 339 net_buf_simple_add_u8(buf, codec_data->data_len + sizeof(codec_data->type)); in encode_base_subgroup() 340 net_buf_simple_add_u8(buf, codec_data->type); in encode_base_subgroup() 368 net_buf_simple_add_u8(buf, metadata->data_len + sizeof(metadata->type)); in encode_base_subgroup() 369 net_buf_simple_add_u8(buf, metadata->type); in encode_base_subgroup() 387 net_buf_simple_add_u8(buf, bis_index); in encode_base_subgroup() 411 net_buf_simple_add_u8(buf, codec_data->data_len + sizeof(codec_data->type)); in encode_base_subgroup() 412 net_buf_simple_add_u8(buf, codec_data->type); in encode_base_subgroup() 447 net_buf_simple_add_u8(buf, subgroup_count); in encode_base()
|