/Zephyr-latest/drivers/gnss/gnss_u_blox_protocol/ |
D | gnss_u_blox_protocol.c | 76 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 …]
|
/Zephyr-latest/samples/subsys/zbus/confirmed_channel/ |
D | sample.yaml | 10 - "I: From listener -> Confirmed message payload = 0" 11 - "I: From bar_sub1 subscriber -> Confirmed message payload = 0" 12 - "I: From bar_sub2 subscriber -> Confirmed message payload = 0" 13 - "I: From bar_sub3 subscriber -> Confirmed message payload = 0" 14 - "I: From listener -> Confirmed message payload = 1" 15 - "I: From bar_sub1 subscriber -> Confirmed message payload = 1" 16 - "I: From bar_sub2 subscriber -> Confirmed message payload = 1" 17 - "I: From bar_sub3 subscriber -> Confirmed message payload = 1" 18 - "I: From listener -> Confirmed message payload = 2" 19 - "I: From bar_sub1 subscriber -> Confirmed message payload = 2" [all …]
|
D | README.rst | 29 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-latest/drivers/i3c/ |
D | i3c_handlers.c | 12 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 …]
|
D | i3c_ibi_workq.c | 57 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-latest/samples/userspace/prod_consumer/ |
D | README.rst | 37 function with a fixed-sized data payload. 38 - App A callback function, in supervisor mode, places the data payload 41 When it wakes up, copy the data payload into a buffer allocated out 62 I:monitor thread got data payload #0 64 I:monitor thread got data payload #1 66 I:monitor thread got data payload #2 68 I:monitor thread got data payload #3 70 I:monitor thread got data payload #4 71 I:processing payload #1 complete 74 I:monitor thread got data payload #5 [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/block_transfer/src/ |
D | main.c | 117 zassert_equal(0, ret, "Not able to append payload marker"); in ZTEST_F() 138 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() 146 /* payload should start after headers, options and payload marker (size: 1) */ in ZTEST_F() 147 zassert_equal(payload, msg->cpkt.data + EXPECTED_HEADERS_LEN, in ZTEST_F() 148 "Payload not starting at expected address"); in ZTEST_F() 153 "Payload not starting at expected address"); in ZTEST_F() 155 /* check payload */ in ZTEST_F() 157 zassert_equal(payload[i], i, "Byte %i in payload is wrong", i); in ZTEST_F() 160 /* check first byte after payload */ in ZTEST_F() [all …]
|
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/ |
D | isoal_test_debug.c | 66 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-latest/subsys/tracing/sysview/ |
D | sysview.c | 74 uint8_t *payload; in sys_trace_named_event() local 76 payload = SEGGER_SYSVIEW_PREPARE_PACKET(a_packet); in sys_trace_named_event() 77 payload = SEGGER_SYSVIEW_EncodeString(payload, name, NAMED_EVENT_MAXSTR); in sys_trace_named_event() 78 payload = SEGGER_SYSVIEW_EncodeU32(payload, arg0); in sys_trace_named_event() 79 payload = SEGGER_SYSVIEW_EncodeU32(payload, arg1); in sys_trace_named_event() 80 SEGGER_SYSVIEW_SendPacket(a_packet, payload, TID_NAMED_EVENT); in sys_trace_named_event()
|
/Zephyr-latest/drivers/gnss/ |
D | gnss_u_blox_m8.c | 242 static int ubx_m8_modem_ubx_script_init(const struct device *dev, void *payload, uint16_t payld_sz, in ubx_m8_modem_ubx_script_init() argument 261 msg_id, payload, payld_sz); in ubx_m8_modem_ubx_script_init() 271 struct ubx_cfg_rate_payload payload; in ubx_m8_ubx_cfg_rate() local 275 ubx_cfg_rate_payload_default(&payload); in ubx_m8_ubx_cfg_rate() 277 ret = ubx_m8_modem_ubx_script_init(dev, &payload, UBX_CFG_RATE_PAYLOAD_SZ, UBX_CLASS_CFG, in ubx_m8_ubx_cfg_rate() 297 struct ubx_cfg_prt_set_payload payload; in ubx_m8_ubx_cfg_prt_set() local 301 ubx_cfg_prt_set_payload_default(&payload); in ubx_m8_ubx_cfg_prt_set() 302 payload.baudrate = target_baudrate; in ubx_m8_ubx_cfg_prt_set() 304 ret = ubx_m8_modem_ubx_script_init(dev, &payload, UBX_CFG_PRT_SET_PAYLOAD_SZ, in ubx_m8_ubx_cfg_prt_set() 329 struct ubx_cfg_rst_payload payload; in ubx_m8_ubx_cfg_rst() local [all …]
|
/Zephyr-latest/include/zephyr/drivers/i3c/ |
D | ibi.h | 62 /** Pointer to payload of IBI. */ 63 uint8_t *payload; member 65 /** Length in bytes of the IBI payload. */ 70 * @brief Structure of payload buffer for IBI. 76 * Length of available data in the payload buffer. 81 * Pointer to byte array as payload buffer. 83 uint8_t payload[CONFIG_I3C_IBI_MAX_PAYLOAD_SIZE]; member 117 * IBI payload. 119 struct i3c_ibi_payload payload; member 141 * @param payload Payload associated with the IBI. NULL if there is [all …]
|
/Zephyr-latest/subsys/bluetooth/lib/ |
D | ead.c | 79 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() 96 LOG_DBG("Failed to encrypt the payload (bt_ccm_encrypt err %d)", err); 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() 119 LOG_DBG("payload is 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() 159 LOG_DBG("payload is NULL"); in bt_test_ead_encrypt() [all …]
|
/Zephyr-latest/samples/subsys/zbus/confirmed_channel/src/ |
D | main.c | 14 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() 55 "message payload = " in bar_sub1_task() 57 cm.payload); in bar_sub1_task() 80 "message payload = " in bar_sub2_task() 82 cm.payload); in bar_sub2_task() 106 "message payload = " in bar_sub3_task() 108 cm.payload); in bar_sub3_task() 132 ++cm.payload; in main()
|
/Zephyr-latest/tests/net/lib/lwm2m/content_plain_text/src/ |
D | main.c | 59 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() 63 test_in.offset = 1; /* Payload marker */ in test_payload_set() 81 "Invalid payload format"); in ZTEST() 112 "Invalid payload format"); in ZTEST() 143 "Invalid payload format"); in ZTEST() 176 "Invalid payload format"); in ZTEST() 203 "Invalid payload format"); in ZTEST() 236 "Invalid payload format"); in ZTEST() [all …]
|
/Zephyr-latest/samples/drivers/lora/receive/ |
D | README.rst | 41 [00:00:00.956,000] <inf> lora_receive: LoRa RX payload 44 [00:00:02.249,000] <inf> lora_receive: LoRa RX payload 47 [00:00:03.541,000] <inf> lora_receive: LoRa RX payload 50 [00:00:04.834,000] <inf> lora_receive: LoRa RX payload 54 [00:00:06.127,000] <inf> lora_receive: LoRa RX payload 57 [00:00:07.419,000] <inf> lora_receive: LoRa RX payload 60 [00:00:08.712,000] <inf> lora_receive: LoRa RX payload 63 [00:00:10.004,000] <inf> lora_receive: LoRa RX payload 66 [00:00:11.297,000] <inf> lora_receive: LoRa RX payload 69 [00:00:12.590,000] <inf> lora_receive: LoRa RX payload [all …]
|
/Zephyr-latest/samples/net/sockets/coap_server/src/ |
D | test.c | 22 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 …]
|
D | large.c | 24 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() 132 LOG_ERR("Packet without payload"); in large_update_put() 151 /* Do something with the payload */ 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() [all …]
|
D | separate.c | 20 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()
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | ead.h | 35 * payload size in bytes. 40 /** Get the size (in bytes) of the decrypted payload for a given payload size in 51 * - Encrypted payload is added ( @p payload_size bytes); 64 * @param[in] payload Advertising Data to encrypt. Can be multiple advertising 78 const uint8_t *payload, size_t payload_size, uint8_t *encrypted_payload); 94 * @param[out] payload Decrypted advertising payload. Use @ref 105 uint8_t *payload);
|
/Zephyr-latest/tests/net/lib/lwm2m/content_oma_tlv/src/ |
D | main.c | 77 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() 81 test_in.offset = 1; /* Payload marker */ in test_payload_set() 132 "Invalid payload format"); in ZTEST() 198 "Invalid payload format"); in ZTEST() 268 "Invalid payload format"); in ZTEST() 348 "Invalid payload format"); in ZTEST() 385 expected_payload.len, "Invalid payload format"); in ZTEST() 497 "Invalid payload format"); in ZTEST() 562 "Invalid payload format"); in ZTEST() [all …]
|
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/ |
D | mqtt_client.c | 23 /* MQTT payload buffer */ 33 /* JSON payload format */ 118 /** Called when an MQTT payload is received. 119 * Reads the payload and calls the commands 126 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() 131 LOG_ERR("Failed to read received MQTT payload [%d]", rc); in on_mqtt_publish() 134 /* Place null terminator at end of payload buffer */ in on_mqtt_publish() 135 payload[rc] = '\0'; in on_mqtt_publish() 137 LOG_INF("MQTT payload received!"); in on_mqtt_publish() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | coap_client.h | 36 * It is used to indicate errors, response codes from server or to deliver payload. 37 * Blockwise transfers cause this callback to be called sequentially with increasing payload offset 38 * and only partial content in buffer pointed by payload parameter. 42 * @param offset Payload offset from the beginning of a blockwise transfer. 43 * @param payload Buffer containing the payload from the response. NULL for empty payload. 44 * @param len Size of the payload. 49 size_t offset, const uint8_t *payload, size_t len, 60 const uint8_t *payload; /**< User allocated buffer for send request */ member 61 size_t len; /**< Length of the payload */
|
/Zephyr-latest/tests/subsys/logging/log_syst/src/ |
D | main.c | 26 * PAYLOAD_MULTIPLE_ARGS defines the expected payload 83 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-latest/dts/bindings/fuel-gauge/ |
D | battery-cutoff.yaml | 24 Address of register to receive cutoff payload for battery cutoff. 26 battery-cutoff-payload: 28 Payload to write to cutoff battery register. This must be array of maximum 2 integers.
|
/Zephyr-latest/tests/net/lib/lwm2m/content_json/src/ |
D | main.c | 103 /* 2 bytes for Content Format option + payload marker */ 129 static void test_payload_set(const char *payload) in test_payload_set() argument 131 memcpy(test_msg.msg_data + 1, payload, strlen(payload)); in test_payload_set() 132 test_msg.cpkt.offset = strlen(payload) + 1; in test_payload_set() 133 test_msg.in.offset = 1; /* Payload marker */ in test_payload_set() 182 "Invalid payload format"); in ZTEST() 224 "Invalid payload format"); in ZTEST() 266 "Invalid payload format"); in ZTEST() 308 "Invalid payload format"); in ZTEST() 340 "Invalid payload format"); in ZTEST() [all …]
|