Home
last modified time | relevance | path

Searched refs:payload (Results 1 – 25 of 98) sorted by relevance

1234

/Zephyr-Core-2.7.6/samples/userspace/prod_consumer/
DREADME.rst39 function with a fixed-sized data payload.
40 - App A callback function, in supervisor mode, places the data payload
43 When it wakes up, copy the data payload into a buffer allocated out
64 I:monitor thread got data payload #0
66 I:monitor thread got data payload #1
68 I:monitor thread got data payload #2
70 I:monitor thread got data payload #3
72 I:monitor thread got data payload #4
73 I:processing payload #1 complete
76 I:monitor thread got data payload #5
[all …]
/Zephyr-Core-2.7.6/subsys/logging/
Dlog_msg.c160 cont_free(msg->payload.ext.next); in msg_free()
205 return msg->payload.ext.data.args[arg_idx]; in cont_arg_get()
209 cont = msg->payload.ext.next; in cont_arg_get()
217 return cont->payload.args[arg_idx]; in cont_arg_get()
230 arg = msg->payload.single.args[arg_idx]; in log_msg_arg_get()
267 next = &msg->payload.ext.next; in msg_alloc()
289 struct log_msg_cont *cont = msg->payload.ext.next; in copy_args_to_msg()
292 (void)memcpy(msg->payload.ext.data.args, args, in copy_args_to_msg()
297 (void)memcpy(msg->payload.single.args, args, in copy_args_to_msg()
305 (void)memcpy(cont->payload.args, args, in copy_args_to_msg()
[all …]
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/openisa/lll/
Dlll_test.c205 uint8_t *payload; in ll_test_tx() local
221 payload = &pdu[2]; in ll_test_tx()
225 memcpy(payload, prbs9, len); in ll_test_tx()
229 memset(payload, 0x0f, len); in ll_test_tx()
233 memset(payload, 0x55, len); in ll_test_tx()
237 memcpy(payload, prbs15, len); in ll_test_tx()
241 memset(payload, 0xff, len); in ll_test_tx()
245 memset(payload, 0x00, len); in ll_test_tx()
249 memset(payload, 0xf0, len); in ll_test_tx()
253 memset(payload, 0xaa, len); in ll_test_tx()
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_test.c207 uint8_t *payload; in ll_test_tx() local
223 payload = &pdu[2]; in ll_test_tx()
227 memcpy(payload, prbs9, len); in ll_test_tx()
231 memset(payload, 0x0f, len); in ll_test_tx()
235 memset(payload, 0x55, len); in ll_test_tx()
239 memcpy(payload, prbs15, len); in ll_test_tx()
243 memset(payload, 0xff, len); in ll_test_tx()
247 memset(payload, 0x00, len); in ll_test_tx()
251 memset(payload, 0xf0, len); in ll_test_tx()
255 memset(payload, 0xaa, len); in ll_test_tx()
/Zephyr-Core-2.7.6/samples/net/sockets/coap_server/src/
Dcoap-server.c213 uint8_t payload[40]; in piggyback_get() local
261 r = snprintk((char *) payload, sizeof(payload), in piggyback_get()
267 r = coap_packet_append_payload(&response, (uint8_t *)payload, in piggyback_get()
268 strlen(payload)); in piggyback_get()
335 const uint8_t *payload; in test_put() local
353 payload = coap_packet_get_payload(request, &payload_len); in test_put()
354 if (payload) { in test_put()
355 net_hexdump("PUT Payload", payload, payload_len); in test_put()
395 const uint8_t *payload; in test_post() local
413 payload = coap_packet_get_payload(request, &payload_len); in test_post()
[all …]
/Zephyr-Core-2.7.6/include/logging/
Dlog_msg.h146 } payload; /*!< Message data. */ member
155 } payload; member
383 msg->payload.single.args[0] = arg1; in log_msg_create_1()
412 msg->payload.single.args[0] = arg1; in log_msg_create_2()
413 msg->payload.single.args[1] = arg2; in log_msg_create_2()
444 msg->payload.single.args[0] = arg1; in log_msg_create_3()
445 msg->payload.single.args[1] = arg2; in log_msg_create_3()
446 msg->payload.single.args[2] = arg3; in log_msg_create_3()
/Zephyr-Core-2.7.6/samples/userspace/prod_consumer/src/
Dapp_b.c38 void *payload; in processor_thread() local
57 payload = k_queue_get(&shared_queue_incoming, K_FOREVER); in processor_thread()
71 k_queue_alloc_append(&shared_queue_outgoing, payload); in processor_thread()
Dapp_a.c83 void *payload; in monitor_entry() local
102 payload = sys_heap_alloc(&shared_pool, in monitor_entry()
104 if (payload == NULL) { in monitor_entry()
114 ret = k_msgq_get(&mqueue, payload, K_FOREVER); in monitor_entry()
132 k_queue_alloc_append(&shared_queue_incoming, payload); in monitor_entry()
/Zephyr-Core-2.7.6/tests/net/lib/mqtt_pubsub/src/
Dtest_mqtt_pubsub.c30 static const uint8_t *payload; variable
112 if (payload_left != evt->param.publish.message.payload.len) { in publish_handler()
114 evt->param.publish.message.payload.len); in publish_handler()
124 if (memcmp(payload, buf, evt->param.publish.message.payload.len) in publish_handler()
349 payload_left = strlen(payload); in test_publish()
355 param.message.payload.data = (uint8_t *)payload; in test_publish()
356 param.message.payload.len = payload_left; in test_publish()
437 payload = payload_short; in test_mqtt_publish_short()
443 payload = payload_long; in test_mqtt_publish_long()
/Zephyr-Core-2.7.6/tests/net/lib/mqtt_publisher/src/
Dtest_mqtt_publish.c22 char payload[] = "DOORS:OPEN_QoSx"; variable
153 payload[strlen(payload) - 1] = '0' + qos; in get_mqtt_payload()
155 return payload; in get_mqtt_payload()
193 param.message.payload.data = get_mqtt_payload(qos); in publish()
194 param.message.payload.len = in publish()
195 strlen(param.message.payload.data); in publish()
/Zephyr-Core-2.7.6/drivers/disk/
Dsdmmc_spi.c159 static int sdhc_spi_tx_cmd(struct sdhc_spi_data *data, uint8_t cmd, uint32_t payload) in sdhc_spi_tx_cmd() argument
163 LOG_DBG("cmd%d payload=%u", cmd, payload); in sdhc_spi_tx_cmd()
168 sys_put_be32(payload, &buf[1]); in sdhc_spi_tx_cmd()
261 uint8_t cmd, uint32_t payload) in sdhc_spi_cmd_r1_raw() argument
265 err = sdhc_spi_tx_cmd(data, cmd, payload); in sdhc_spi_cmd_r1_raw()
284 uint8_t cmd, uint32_t payload) in sdhc_spi_cmd_r1() argument
286 return sdhc_map_r1_status(sdhc_spi_cmd_r1_raw(data, cmd, payload)); in sdhc_spi_cmd_r1()
291 uint32_t payload) in sdhc_spi_cmd_r1_idle() argument
293 return sdhc_map_r1_idle_status(sdhc_spi_cmd_r1_raw(data, cmd, payload)); in sdhc_spi_cmd_r1_idle()
298 uint8_t cmd, uint32_t payload) in sdhc_spi_cmd_r2() argument
[all …]
/Zephyr-Core-2.7.6/samples/net/mqtt_publisher/src/
Dmain.c219 static APP_BMEM char payload[30]; in get_mqtt_payload() local
221 snprintk(payload, sizeof(payload), "{d:{temperature:%d}}", in get_mqtt_payload()
224 static APP_DMEM char payload[] = "DOORS:OPEN_QoSx"; in get_mqtt_payload()
226 payload[strlen(payload) - 1] = '0' + qos; in get_mqtt_payload()
229 return payload; in get_mqtt_payload()
250 param.message.payload.data = get_mqtt_payload(qos); in publish()
251 param.message.payload.len = in publish()
252 strlen(param.message.payload.data); in publish()
/Zephyr-Core-2.7.6/subsys/net/l2/ppp/
Dpap.c23 uint8_t payload[] = { 5, 'b', 'l', 'a', 'n', 'k', in pap_config_info_add() local
27 pkt = net_pkt_alloc_with_buffer(ppp_fsm_iface(fsm), sizeof(payload), in pap_config_info_add()
33 (void)net_pkt_write(pkt, payload, sizeof(payload)); in pap_config_info_add()
/Zephyr-Core-2.7.6/drivers/ieee802154/
Dieee802154_b91.c175 static void b91_set_tx_payload(uint8_t *payload, uint8_t payload_len) in b91_set_tx_payload() argument
187 memcpy(data.tx_buffer + B91_PAYLOAD_OFFSET, payload, payload_len); in b91_set_tx_payload()
256 uint8_t *payload; in b91_rf_rx_isr() local
280 payload = (uint8_t *)(data.rx_buffer + B91_PAYLOAD_OFFSET); in b91_rf_rx_isr()
284 (payload[B91_FRAME_TYPE_OFFSET] == B91_ACK_TYPE)) { in b91_rf_rx_isr()
292 if (b91_run_filter(payload) == false) { in b91_rf_rx_isr()
298 if (payload[B91_FRAME_TYPE_OFFSET] & B91_ACK_REQUEST) { in b91_rf_rx_isr()
299 b91_send_ack(payload[B91_DSN_OFFSET]); in b91_rf_rx_isr()
310 if (net_pkt_write(pkt, payload, length)) { in b91_rf_rx_isr()
Dieee802154_nrf5.c436 static bool nrf5_tx_immediate(struct net_pkt *pkt, uint8_t *payload, bool cca) in nrf5_tx_immediate() argument
446 return nrf_802154_transmit_raw(payload, &metadata); in nrf5_tx_immediate()
449 static bool nrf5_tx_csma_ca(struct net_pkt *pkt, uint8_t *payload) in nrf5_tx_csma_ca() argument
458 return nrf_802154_transmit_csma_ca_raw(payload, &metadata); in nrf5_tx_csma_ca()
463 static bool nrf5_tx_at(struct net_pkt *pkt, uint8_t *payload, bool cca) in nrf5_tx_at() argument
476 ret = nrf_802154_transmit_raw_at(payload, in nrf5_tx_at()
494 uint8_t *payload = frag->data; in nrf5_tx() local
502 LOG_DBG("%p (%u)", payload, payload_len); in nrf5_tx()
505 memcpy(nrf5_radio->tx_psdu + 1, payload, payload_len); in nrf5_tx()
559 memcpy(payload, nrf5_radio->tx_psdu + 1, payload_len); in nrf5_tx()
/Zephyr-Core-2.7.6/samples/net/cloud/tagoio_http_post/src/
Dmain.c46 (void)snprintf(ctx.payload, sizeof(ctx.payload), in collect_data()
Dsockets.c115 req.payload = ctx->payload; in tagoio_http_push()
116 req.payload_len = strlen(ctx->payload); in tagoio_http_push()
Dsockets.h11 uint8_t payload[TAGOIO_SOCKET_MAX_BUF_LEN]; member
/Zephyr-Core-2.7.6/doc/reference/networking/
Dcan_isotp.rst20 This transport protocol extends the limited payload data size for classical
23 behavior. ISO-TP segments packets into small fragments depending on the payload
32 the entire payload data and additionally, the first few bytes of payload data.
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Dtesting.c35 const void *payload, size_t payload_len) in bt_test_mesh_net_recv() argument
41 cb->mesh_net_recv(ttl, ctl, src, dst, payload, in bt_test_mesh_net_recv()
Dtesting.h14 const void *payload, size_t payload_len);
/Zephyr-Core-2.7.6/samples/net/cloud/mqtt_azure/src/
Dmain.c241 len = evt->param.publish.message.payload.len; in mqtt_event_handler()
291 char payload[] = "{id=123}"; in publish() local
299 param.message.payload.data = payload; in publish()
300 param.message.payload.len = strlen(payload); in publish()
/Zephyr-Core-2.7.6/tests/net/lib/coap/src/
Dmain.c94 static const char payload[] = "payload"; in test_build_simple_pdu() local
114 r = coap_packet_append_payload(&cpkt, payload, sizeof(payload)); in test_build_simple_pdu()
127 zassert_equal(payload_len, sizeof(payload), "Invalid payload length"); in test_build_simple_pdu()
212 const uint8_t payload[] = "payload"; in test_parse_simple_pdu() local
236 zassert_equal(payload_len, sizeof(payload), "Invalid payload length"); in test_parse_simple_pdu()
449 uint8_t payload[32] = { 0 }; in prepare_block1_request() local
480 r = coap_packet_append_payload(req, payload, in prepare_block1_request()
610 uint8_t payload[64]; in prepare_block2_response() local
645 r = coap_packet_append_payload(rsp, payload, in prepare_block2_response()
795 char payload[] = "This is the payload"; in server_resource_1_get() local
[all …]
/Zephyr-Core-2.7.6/tests/net/lib/mqtt_packet/src/
Dmqtt_packet.c374 .message.payload.data = (uint8_t *)"OK",
375 .message.payload.len = 2,
393 .message.payload.data = (uint8_t *)"OK",
394 .message.payload.len = 2,
412 .message.payload.data = (uint8_t *)"OK",
413 .message.payload.len = 2,
430 .message.payload.data = (uint8_t *)"OK",
431 .message.payload.len = 2,
779 memcpy(buf.end, param->message.payload.data, in eval_msg_publish()
780 param->message.payload.len); in eval_msg_publish()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/http_client/src/
Dmain.c255 req.payload = "foobar"; in run_queries()
256 req.payload_len = strlen(req.payload); in run_queries()
275 req.payload = "foobar"; in run_queries()
276 req.payload_len = strlen(req.payload); in run_queries()

1234