Home
last modified time | relevance | path

Searched refs:net_buf_simple_add_u8 (Results 1 – 25 of 68) sorted by relevance

123

/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dpublisher.c29 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-latest/subsys/bluetooth/mesh/
Dsar_cfg.c20 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()
Ddfu_metadata.c58 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()
Dpriv_beacon_srv.c46 net_buf_simple_add_u8(&buf, bt_mesh_priv_beacon_get()); in beacon_status_rsp()
47 net_buf_simple_add_u8(&buf, bt_mesh_priv_beacon_update_interval_get()); in beacon_status_rsp()
98 net_buf_simple_add_u8(&buf, bt_mesh_priv_gatt_proxy_get()); in gatt_proxy_status_rsp()
143 net_buf_simple_add_u8(&buf, status); in node_id_status_rsp()
145 net_buf_simple_add_u8(&buf, node_id); in node_id_status_rsp()
Dbrg_cfg_srv.c23 net_buf_simple_add_u8(&msg, bt_mesh_brg_cfg_enable_get() ? 1 : 0); in bridge_status_send()
60 net_buf_simple_add_u8(&msg, status); in bridging_table_status_send()
61 net_buf_simple_add_u8(&msg, entry->directions); in bridging_table_status_send()
146 net_buf_simple_add_u8(&msg, start_id); in bridged_subnets_get()
230 net_buf_simple_add_u8(&msg, status); in bridging_table_get()
252 net_buf_simple_add_u8(&msg, brg_tbl[i].direction); in bridging_table_get()
Dcfg_srv.c66 net_buf_simple_add_u8(&sdu, page); in dev_comp_data_get()
294 net_buf_simple_add_u8(&msg, status); in send_app_key_status()
402 net_buf_simple_add_u8(&msg, status); in app_key_get()
434 net_buf_simple_add_u8(&msg, bt_mesh_beacon_enabled()); in beacon_get()
460 net_buf_simple_add_u8(&msg, buf->data[0]); in beacon_set()
479 net_buf_simple_add_u8(&msg, bt_mesh_default_ttl_get()); in default_ttl_get()
505 net_buf_simple_add_u8(&msg, buf->data[0]); in default_ttl_set()
520 net_buf_simple_add_u8(&msg, bt_mesh_gatt_proxy_get()); in send_gatt_proxy_status()
573 net_buf_simple_add_u8(&msg, bt_mesh_net_transmit_get()); in net_transmit_get()
597 net_buf_simple_add_u8(&msg, buf->data[0]); in net_transmit_set()
[all …]
Ddfu_srv.c151 net_buf_simple_add_u8(&rsp, srv->img_count); in handle_info_get()
152 net_buf_simple_add_u8(&rsp, idx); in handle_info_get()
170 net_buf_simple_add_u8(&rsp, srv->imgs[idx].fwid_len); in handle_info_get()
177 net_buf_simple_add_u8(&rsp, len); in handle_info_get()
180 net_buf_simple_add_u8(&rsp, 0); in handle_info_get()
211 net_buf_simple_add_u8(&rsp, (status & BIT_MASK(3)) | (effect << 3)); in handle_metadata_check()
212 net_buf_simple_add_u8(&rsp, idx); in handle_metadata_check()
231 net_buf_simple_add_u8(&buf, ((status & BIT_MASK(3)) | in update_status_rsp()
235 net_buf_simple_add_u8(&buf, srv->update.ttl); in update_status_rsp()
236 net_buf_simple_add_u8(&buf, srv->update.effect); in update_status_rsp()
[all …]
Drpr_srv.c157 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()
238 net_buf_simple_add_u8(&buf, dev->rssi); in scan_report_send()
[all …]
Dmsg.c21 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()
Dhealth_cli.c219 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()
Dblob_srv.c132 net_buf_simple_add_u8(buf, chunk); in buf_chunk_index_add()
134 net_buf_simple_add_u8(buf, 0xc0 | chunk >> 6); in buf_chunk_index_add()
135 net_buf_simple_add_u8(buf, 0x80 | (chunk & BIT_MASK(6))); in buf_chunk_index_add()
137 net_buf_simple_add_u8(buf, 0xe0 | chunk >> 12); in buf_chunk_index_add()
138 net_buf_simple_add_u8(buf, 0x80 | ((chunk >> 6) & BIT_MASK(6))); in buf_chunk_index_add()
139 net_buf_simple_add_u8(buf, 0x80 | (chunk & BIT_MASK(6))); in buf_chunk_index_add()
327 net_buf_simple_add_u8(&buf, ((status & BIT_MASK(4)) | in xfer_status_rsp()
329 net_buf_simple_add_u8(&buf, srv->phase); in xfer_status_rsp()
342 net_buf_simple_add_u8(&buf, srv->state.xfer.block_size_log); in xfer_status_rsp()
385 net_buf_simple_add_u8(&buf, (status & BIT_MASK(4)) | (format << 6)); in block_status_rsp()
[all …]
Dpriv_beacon_cli.c173 net_buf_simple_add_u8(&buf, val->enabled); in bt_mesh_priv_beacon_cli_set()
175 net_buf_simple_add_u8(&buf, val->rand_interval); in bt_mesh_priv_beacon_cli_set()
216 net_buf_simple_add_u8(&buf, val); in bt_mesh_priv_beacon_cli_gatt_proxy_set()
259 net_buf_simple_add_u8(&buf, val->state); in bt_mesh_priv_beacon_cli_node_id_set()
Dop_agg_srv.c50 status = net_buf_simple_add_u8(srv.ctx.sdu, 0); in handle_sequence()
97 net_buf_simple_add_u8(srv.ctx.sdu, 0); in handle_sequence()
Dprovisioner.c89 net_buf_simple_add_u8(&inv, provisionee.attention_duration); in send_invite()
116 net_buf_simple_add_u8(&start, bt_mesh_prov_link.algorithm); in send_start()
119 net_buf_simple_add_u8(&start, PUB_KEY_OOB); in send_start()
122 net_buf_simple_add_u8(&start, PUB_KEY_NO_OOB); in send_start()
125 net_buf_simple_add_u8(&start, bt_mesh_prov_link.oob_method); in send_start()
127 net_buf_simple_add_u8(&start, bt_mesh_prov_link.oob_action); in send_start()
129 net_buf_simple_add_u8(&start, bt_mesh_prov_link.oob_size); in send_start()
544 net_buf_simple_add_u8(&pdu, bt_mesh_cdb_subnet_flags(sub)); in send_prov_data()
Drpr_cli.c515 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()
Dlarge_comp_data_srv.c63 net_buf_simple_add_u8(&rsp, page); in handle_large_comp_data_get()
133 net_buf_simple_add_u8(&rsp, page); in handle_models_metadata_get()
Dprovisionee.c50 net_buf_simple_add_u8(&buf, err); in prov_send_fail_msg()
86 net_buf_simple_add_u8(&buf, bt_mesh_elem_count()); in prov_invite()
111 net_buf_simple_add_u8(&buf, in prov_invite()
115 net_buf_simple_add_u8(&buf, oob_type); in prov_invite()
118 net_buf_simple_add_u8(&buf, bt_mesh_prov->output_size); in prov_invite()
124 net_buf_simple_add_u8(&buf, bt_mesh_prov->input_size); in prov_invite()
/Zephyr-latest/tests/bluetooth/host/id/mocks/
Dnet_buf.h14 FAKE(net_buf_simple_add_u8) \
19 DECLARE_FAKE_VALUE_FUNC(uint8_t *, net_buf_simple_add_u8, struct net_buf_simple *, uint8_t);
Dnet_buf.c15 DEFINE_FAKE_VALUE_FUNC(uint8_t *, net_buf_simple_add_u8, struct net_buf_simple *, uint8_t);
/Zephyr-latest/samples/bluetooth/mesh/src/
Dmain.c122 net_buf_simple_add_u8(&buf, !onoff.val); in onoff_status_send()
123 net_buf_simple_add_u8(&buf, onoff.val); in onoff_status_send()
124 net_buf_simple_add_u8(&buf, model_time_encode(remaining)); in onoff_status_send()
126 net_buf_simple_add_u8(&buf, onoff.val); in onoff_status_send()
319 net_buf_simple_add_u8(&buf, val); in gen_onoff_send()
320 net_buf_simple_add_u8(&buf, tid++); in gen_onoff_send()
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_encoder.c50 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-latest/subsys/bluetooth/audio/
Dpbp.c48 net_buf_simple_add_u8(pba_data_buf, features); in bt_pbp_get_announcement()
49 net_buf_simple_add_u8(pba_data_buf, meta_len); in bt_pbp_get_announcement()
/Zephyr-latest/samples/bluetooth/periodic_sync_conn/src/
Dmain.c92 net_buf_simple_add_u8(&rsp_buf, sizeof(bt_addr_le_t)); in recv_cb()
93 net_buf_simple_add_u8(&rsp_buf, BT_DATA_LE_BT_DEVICE_ADDRESS); in recv_cb()
95 net_buf_simple_add_u8(&rsp_buf, oob.addr.type); in recv_cb()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_advertiser.c285 (void)net_buf_simple_add_u8(&adv->b, curr); in send_adv_buf()
286 (void)net_buf_simple_add_u8(&adv->b, prev); in send_adv_buf()
546 net_buf_simple_add_u8(&local->b, 0x00); in test_tx_send_cancel()
547 net_buf_simple_add_u8(&adv_cancel->b, 0x01); in test_tx_send_cancel()
593 net_buf_simple_add_u8(&local->b, 0x00); in test_tx_send_terminate()
680 net_buf_simple_add_u8(&local->b, 0x00); in test_tx_send_relay()
681 net_buf_simple_add_u8(&relay_first->b, 0x01); in test_tx_send_relay()
682 net_buf_simple_add_u8(&relay_second->b, 0x02); in test_tx_send_relay()
870 net_buf_simple_add_u8(&advs[i]->b, first_byte); in adv_create_and_send()
871 net_buf_simple_add_u8(&advs[i]->b, i); in adv_create_and_send()
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/
Dmain.c294 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, button_sw->onoff_state); in button_pressed_worker()
513 net_buf_simple_add_u8(pub_cli->msg, button_sw->onoff_state); in button_pressed_worker()
514 net_buf_simple_add_u8(pub_cli->msg, trans_id++); in button_pressed_worker()

123