Home
last modified time | relevance | path

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

123456789

/Zephyr-Core-3.7.0/drivers/gnss/gnss_u_blox_protocol/
Dgnss_u_blox_protocol.c76 uint8_t msg_id, const void *payload, uint16_t payload_size) in ubx_create_and_validate_frame() argument
82 return modem_ubx_create_frame(ubx_frame, ubx_frame_size, msg_cls, msg_id, payload, in ubx_create_and_validate_frame()
86 void ubx_cfg_ack_payload_default(struct ubx_cfg_ack_payload *payload) in ubx_cfg_ack_payload_default() argument
88 payload->message_class = UBX_CLASS_CFG; in ubx_cfg_ack_payload_default()
89 payload->message_id = UBX_CFG_PRT; in ubx_cfg_ack_payload_default()
92 void ubx_cfg_rate_payload_default(struct ubx_cfg_rate_payload *payload) in ubx_cfg_rate_payload_default() argument
94 payload->meas_rate_ms = 1000; in ubx_cfg_rate_payload_default()
95 payload->nav_rate = 1; in ubx_cfg_rate_payload_default()
96 payload->time_ref = UBX_CFG_RATE_TIME_REF_UTC; in ubx_cfg_rate_payload_default()
99 void ubx_cfg_prt_poll_payload_default(struct ubx_cfg_prt_poll_payload *payload) in ubx_cfg_prt_poll_payload_default() argument
[all …]
Dgnss_u_blox_protocol.h47 uint8_t msg_id, const void *payload, uint16_t payload_size);
54 void ubx_cfg_ack_payload_default(struct ubx_cfg_ack_payload *payload);
68 void ubx_cfg_rate_payload_default(struct ubx_cfg_rate_payload *payload);
74 void ubx_cfg_prt_poll_payload_default(struct ubx_cfg_prt_poll_payload *payload);
119 void ubx_cfg_prt_set_payload_default(struct ubx_cfg_prt_set_payload *payload);
140 void ubx_cfg_rst_payload_default(struct ubx_cfg_rst_payload *payload);
188 void ubx_cfg_nav5_payload_default(struct ubx_cfg_nav5_payload *payload);
239 void ubx_cfg_gnss_payload_default(struct ubx_cfg_gnss_payload *payload);
249 void ubx_cfg_msg_payload_default(struct ubx_cfg_msg_payload *payload);
/Zephyr-Core-3.7.0/drivers/i3c/
Di3c_handlers.c12 struct i3c_ccc_payload *payload) in z_vrfy_i3c_do_ccc() argument
15 K_OOPS(K_SYSCALL_MEMORY_READ(payload, sizeof(*payload))); in z_vrfy_i3c_do_ccc()
16 K_OOPS(K_SYSCALL_MEMORY_WRITE(payload, sizeof(*payload))); in z_vrfy_i3c_do_ccc()
18 if (payload->ccc.data != NULL) { in z_vrfy_i3c_do_ccc()
19 K_OOPS(K_SYSCALL_MEMORY_ARRAY_READ(payload->ccc.data, in z_vrfy_i3c_do_ccc()
20 payload->ccc.data_len, in z_vrfy_i3c_do_ccc()
21 sizeof(*payload->ccc.data))); in z_vrfy_i3c_do_ccc()
22 K_OOPS(K_SYSCALL_MEMORY_ARRAY_WRITE(payload->ccc.data, in z_vrfy_i3c_do_ccc()
23 payload->ccc.data_len, in z_vrfy_i3c_do_ccc()
24 sizeof(*payload->ccc.data))); in z_vrfy_i3c_do_ccc()
[all …]
Di3c_ibi_workq.c57 uint8_t *payload, size_t payload_len) in i3c_ibi_work_enqueue_target_irq() argument
73 ibi_node->payload.payload_len = payload_len; in i3c_ibi_work_enqueue_target_irq()
75 if ((payload != NULL) && (payload_len > 0U)) { in i3c_ibi_work_enqueue_target_irq()
76 (void)memcpy(&ibi_node->payload.payload[0], in i3c_ibi_work_enqueue_target_irq()
77 payload, payload_len); in i3c_ibi_work_enqueue_target_irq()
105 ibi_node->payload.payload_len = 0; in i3c_ibi_work_enqueue_hotjoin()
147 struct i3c_ibi_payload *payload; in i3c_ibi_work_handler() local
154 ibi_node->payload.payload_len); in i3c_ibi_work_handler()
156 if (ibi_node->payload.payload_len > 0U) { in i3c_ibi_work_handler()
157 LOG_HEXDUMP_DBG(&ibi_node->payload.payload[0], in i3c_ibi_work_handler()
[all …]
/Zephyr-Core-3.7.0/tests/bluetooth/ctrl_isoal/src/
Disoal_test_debug.c66 seg_length = pdu->payload[i + 1U]; in isoal_test_debug_print_rx_pdu()
68 pdu->payload[i] & BIT(0) ? "C" : "S", in isoal_test_debug_print_rx_pdu()
69 pdu->payload[i] & BIT(1) ? "C" : "-", in isoal_test_debug_print_rx_pdu()
70 pdu->payload[i + 1U]); in isoal_test_debug_print_rx_pdu()
71 if ((pdu->payload[i] & BIT(0)) == 0U) { in isoal_test_debug_print_rx_pdu()
73 ((uint32_t)pdu->payload[i + 2U] + in isoal_test_debug_print_rx_pdu()
74 ((uint32_t)pdu->payload[i + 3U] << 8) + in isoal_test_debug_print_rx_pdu()
75 ((uint32_t)pdu->payload[i + 4U] << 16))); in isoal_test_debug_print_rx_pdu()
80 pdu->payload[i], in isoal_test_debug_print_rx_pdu()
81 pdu->payload[i + 1U]); in isoal_test_debug_print_rx_pdu()
[all …]
/Zephyr-Core-3.7.0/samples/subsys/zbus/confirmed_channel/
DREADME.rst29 I: From listener -> Confirmed message payload = 0
30 I: From bar_sub2 subscriber -> Confirmed message payload = 0
31 I: From bar_sub1 subscriber -> Confirmed message payload = 0
32 I: From bar_sub3 subscriber -> Confirmed message payload = 0
33 I: From listener -> Confirmed message payload = 1
34 I: From bar_sub2 subscriber -> Confirmed message payload = 1
35 I: From bar_sub1 subscriber -> Confirmed message payload = 1
36 I: From bar_sub3 subscriber -> Confirmed message payload = 1
37 I: From listener -> Confirmed message payload = 2
38 I: From bar_sub2 subscriber -> Confirmed message payload = 2
[all …]
/Zephyr-Core-3.7.0/drivers/gnss/
Dgnss_u_blox_m10.c242 static int ubx_m10_modem_ubx_script_init(const struct device *dev, void *payload, uint16_t payld_sz, in ubx_m10_modem_ubx_script_init() argument
261 msg_id, payload, payld_sz); in ubx_m10_modem_ubx_script_init()
271 struct ubx_cfg_rate_payload payload; in ubx_m10_ubx_cfg_rate() local
275 ubx_cfg_rate_payload_default(&payload); in ubx_m10_ubx_cfg_rate()
277 ret = ubx_m10_modem_ubx_script_init(dev, &payload, UBX_CFG_RATE_PAYLOAD_SZ, UBX_CLASS_CFG, in ubx_m10_ubx_cfg_rate()
297 struct ubx_cfg_prt_set_payload payload; in ubx_m10_ubx_cfg_prt_set() local
301 ubx_cfg_prt_set_payload_default(&payload); in ubx_m10_ubx_cfg_prt_set()
302 payload.baudrate = target_baudrate; in ubx_m10_ubx_cfg_prt_set()
304 ret = ubx_m10_modem_ubx_script_init(dev, &payload, UBX_CFG_PRT_SET_PAYLOAD_SZ, in ubx_m10_ubx_cfg_prt_set()
329 struct ubx_cfg_rst_payload payload; in ubx_m10_ubx_cfg_rst() local
[all …]
/Zephyr-Core-3.7.0/subsys/bluetooth/lib/
Dead.c79 const uint8_t randomizer[BT_EAD_RANDOMIZER_SIZE], const uint8_t *payload, in ead_encrypt() argument
93 err = bt_ccm_encrypt(session_key, nonce, payload, payload_size, bt_ead_aad, BT_EAD_AAD_SIZE, in ead_encrypt()
106 const uint8_t *payload, size_t payload_size, uint8_t *encrypted_payload) in bt_ead_encrypt() argument
118 CHECKIF(payload == NULL) { in bt_ead_encrypt()
133 return ead_encrypt(session_key, iv, NULL, payload, payload_size, encrypted_payload); in bt_ead_encrypt()
140 const uint8_t randomizer[BT_EAD_RANDOMIZER_SIZE], const uint8_t *payload, in bt_test_ead_encrypt() argument
158 CHECKIF(payload == NULL) { in bt_test_ead_encrypt()
173 return ead_encrypt(session_key, iv, randomizer, payload, payload_size, encrypted_payload); in bt_test_ead_encrypt()
180 uint8_t *payload) in ead_decrypt() argument
198 BT_EAD_AAD_SIZE, payload, BT_EAD_MIC_SIZE); in ead_decrypt()
[all …]
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/block_transfer/src/
Dmain.c138 const uint8_t *payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F() local
140 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
147 zassert_equal(payload, msg->cpkt.data + EXPECTED_HEADERS_LEN, in ZTEST_F()
157 zassert_equal(payload[i], i, "Byte %i in payload is wrong", i); in ZTEST_F()
161 zassert_equal(payload[payload_len], 0x00, "Byte after payload is wrong"); in ZTEST_F()
209 const uint8_t *payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F() local
211 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
213 zassert_equal(0x00, payload[0], "First byte in payload wrong"); in ZTEST_F()
214 zassert_equal(0x3f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
223 const uint8_t *payload; in ZTEST_F() local
[all …]
/Zephyr-Core-3.7.0/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-3.7.0/include/zephyr/drivers/i3c/
Dibi.h63 uint8_t *payload; member
83 uint8_t payload[CONFIG_I3C_IBI_MAX_PAYLOAD_SIZE]; member
119 struct i3c_ibi_payload payload; member
147 struct i3c_ibi_payload *payload);
185 uint8_t *payload, size_t payload_len);
/Zephyr-Core-3.7.0/samples/subsys/zbus/confirmed_channel/src/
Dmain.c14 uint32_t payload; member
23 ZBUS_MSG_INIT(.payload = 0) /* Initial value */
30 LOG_INF("From listener -> Confirmed message payload = %u", cm->payload); in listener_callback_example()
57 cm.payload); in bar_sub1_task()
82 cm.payload); in bar_sub2_task()
108 cm.payload); in bar_sub3_task()
132 ++cm.payload; in main()
/Zephyr-Core-3.7.0/samples/net/sockets/coap_server/src/
Dtest.c22 uint8_t payload[40]; in piggyback_get() local
64 r = snprintk((char *) payload, sizeof(payload), in piggyback_get()
70 r = coap_packet_append_payload(&response, (uint8_t *)payload, in piggyback_get()
71 strlen(payload)); in piggyback_get()
128 const uint8_t *payload; in test_put() local
145 payload = coap_packet_get_payload(request, &payload_len); in test_put()
146 if (payload) { in test_put()
147 net_hexdump("PUT Payload", payload, payload_len); in test_put()
180 const uint8_t *payload; in test_post() local
197 payload = coap_packet_get_payload(request, &payload_len); in test_post()
[all …]
Dseparate.c20 uint8_t payload[40]; in separate_get() local
77 r = snprintk((char *) payload, sizeof(payload), in separate_get()
83 r = coap_packet_append_payload(&response, (uint8_t *)payload, in separate_get()
84 strlen(payload)); in separate_get()
Dlarge.c24 uint8_t payload[64]; in large_get() local
77 memset(payload, 'A', MIN(size, sizeof(payload))); in large_get()
79 r = coap_packet_append_payload(&response, (uint8_t *)payload, size); in large_get()
102 const uint8_t *payload; in large_update_put() local
130 payload = coap_packet_get_payload(request, &len); in large_update_put()
131 if (!last_block && payload == NULL) { in large_update_put()
182 const uint8_t *payload; in large_create_post() local
210 payload = coap_packet_get_payload(request, &len); in large_create_post()
211 if (!last_block && payload) { in large_create_post()
Dquery.c21 uint8_t payload[40]; in query_get() local
80 r = snprintk((char *) payload, sizeof(payload), in query_get()
86 r = coap_packet_append_payload(&response, (uint8_t *)payload, in query_get()
87 strlen(payload)); in query_get()
/Zephyr-Core-3.7.0/tests/subsys/logging/log_syst/src/
Dmain.c83 const char *payload = in ZTEST() local
86 validate_msg(type, optional_flags, module_id, sub_type, payload); in ZTEST()
95 char *payload = PAYLOAD_MULTIPLE_ARGS; in ZTEST() local
97 validate_msg(type, optional_flags, module_id, sub_type, payload); in ZTEST()
106 const char *payload = in ZTEST() local
109 validate_msg(type, optional_flags, module_id, sub_type, payload); in ZTEST()
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/content_plain_text/src/
Dmain.c59 static void test_payload_set(const char *payload) in test_payload_set() argument
61 memcpy(test_payload + 1, payload, strlen(payload)); in test_payload_set()
62 test_packet.offset = strlen(payload) + 1; in test_payload_set()
324 char * const payload[] = { "0", "2147483647", "-2147483648" }; in ZTEST() local
329 test_payload_set(payload[i]); in ZTEST()
332 zassert_equal(ret, strlen(payload[i]), in ZTEST()
335 zassert_equal(test_in.offset, strlen(payload[i]) + 1, in ZTEST()
353 char * const payload[] = { in ZTEST() local
360 test_payload_set(payload[i]); in ZTEST()
363 zassert_equal(ret, strlen(payload[i]), in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/net/lib/coap_client/src/
Dmain.c146 const uint8_t *payload = coap_packet_get_payload(&response, &payload_len); in z_impl_zsock_sendto_custom_fake_echo_next_req() local
148 zassert_mem_equal(payload, "echo testing", payload_len, "Incorrect payload"); in z_impl_zsock_sendto_custom_fake_echo_next_req()
347 void coap_callback(int16_t code, size_t offset, const uint8_t *payload, size_t len, bool last_block, in coap_callback() argument
366 .payload = NULL, in ZTEST()
370 client_request.payload = short_payload; in ZTEST()
395 .payload = NULL, in ZTEST()
399 client_request.payload = short_payload; in ZTEST()
427 .payload = NULL, in ZTEST()
431 client_request.payload = short_payload; in ZTEST()
458 .payload = NULL, in ZTEST()
[all …]
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/openisa/lll/
Dlll_test.c205 uint8_t *payload; in ll_test_tx() local
227 payload = &pdu[2]; in ll_test_tx()
231 memcpy(payload, prbs9, len); in ll_test_tx()
235 memset(payload, 0x0f, len); in ll_test_tx()
239 memset(payload, 0x55, len); in ll_test_tx()
243 memcpy(payload, prbs15, len); in ll_test_tx()
247 memset(payload, 0xff, len); in ll_test_tx()
251 memset(payload, 0x00, len); in ll_test_tx()
255 memset(payload, 0xf0, len); in ll_test_tx()
259 memset(payload, 0xaa, len); in ll_test_tx()
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/content_oma_tlv/src/
Dmain.c77 static void test_payload_set(const uint8_t *payload, size_t len) in test_payload_set() argument
79 memcpy(test_payload + 1, payload, len); in test_payload_set()
686 struct test_payload_buffer payload[] = { in ZTEST() local
723 test_payload_set(payload[i].data, payload[i].len); in ZTEST()
726 zassert_equal(ret, payload[i].len, "Invalid length returned"); in ZTEST()
728 zassert_equal(test_in.offset, payload[i].len + 1, in ZTEST()
746 struct test_payload_buffer payload[] = { in ZTEST() local
794 test_payload_set(payload[i].data, payload[i].len); in ZTEST()
797 zassert_equal(ret, payload[i].len, "Invalid length returned"); in ZTEST()
799 zassert_equal(test_in.offset, payload[i].len + 1, in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/content_senml_cbor/src/
Dmain.c145 static void test_payload_set(struct test_payload_buffer payload) in test_payload_set() argument
147 memcpy(test_msg.msg_data + 1, payload.data, payload.len); in test_payload_set()
148 test_msg.cpkt.offset = payload.len + 1; in test_payload_set()
962 struct test_payload_buffer payload[] = { in ZTEST() local
1016 test_payload_set(payload[i]); in ZTEST()
1021 zassert_equal(test_msg.in.offset, payload[i].len + 1, in ZTEST()
1040 struct test_payload_buffer payload[] = { in ZTEST() local
1094 test_payload_set(payload[i]); in ZTEST()
1099 zassert_equal(test_msg.in.offset, payload[i].len + 1, in ZTEST()
1117 struct test_payload_buffer payload = { in ZTEST() local
[all …]
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/content_raw_cbor/src/
Dmain.c67 static void test_payload_set(const uint8_t *payload, size_t len) in test_payload_set() argument
69 memcpy(test_payload + 1, payload, len); in test_payload_set()
653 struct test_payload_buffer payload[] = { in ZTEST() local
685 test_payload_set(payload[i].data, payload[i].len); in ZTEST()
688 zassert_equal(ret, payload[i].len, "Invalid length returned"); in ZTEST()
690 zassert_equal(test_in.offset, payload[i].len + 1, in ZTEST()
708 struct test_payload_buffer payload[] = { in ZTEST() local
742 test_payload_set(payload[i].data, payload[i].len); in ZTEST()
745 zassert_equal(ret, payload[i].len, "Invalid length returned"); in ZTEST()
747 zassert_equal(test_in.offset, payload[i].len + 1, in ZTEST()
[all …]
/Zephyr-Core-3.7.0/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()
/Zephyr-Core-3.7.0/samples/net/secure_mqtt_sensor_actuator/src/
Dmqtt_client.c126 uint8_t payload[CONFIG_NET_SAMPLE_MQTT_PAYLOAD_SIZE]; in on_mqtt_publish() local
128 rc = mqtt_read_publish_payload(client, payload, in on_mqtt_publish()
135 payload[rc] = '\0'; in on_mqtt_publish()
139 evt->param.publish.message.topic.topic.utf8, payload); in on_mqtt_publish()
144 device_command_handler(payload); in on_mqtt_publish()
267 static int get_mqtt_payload(struct mqtt_binstr *payload) in get_mqtt_payload() argument
285 payload->data = payload_buf; in get_mqtt_payload()
286 payload->len = strlen(payload->data); in get_mqtt_payload()
295 struct mqtt_binstr payload; in app_mqtt_publish() local
306 rc = get_mqtt_payload(&payload); in app_mqtt_publish()
[all …]

123456789