/Zephyr-latest/tests/subsys/logging/log_syst/src/ |
D | mock_backend.h | 4 * SPDX-License-Identifier: Apache-2.0 24 * @param type Field in message header to indicate the type of SyS-T message. 25 * @param optional_flags Optional Flags in message header. 26 * @param module_id ModuleID in a Message Header distinguish between multiple 28 * @param sub_type Enumerated types for representing the sub-type of a Message. 29 * @param payload The content of the Message. 33 const char *payload);
|
/Zephyr-latest/soc/microchip/mec/common/spigen/ |
D | mec_spi_gen.py | 4 # SPDX-License-Identifier: Apache-2.0 12 # Header parameters 34 # 1st digit - number of I/O pins used to transmit the opcode 35 # 2nd digit - number of I/O pins used to transmit the SPI address 36 # 3rd digit - number of pins used to read data from flash 37 # 4th digit (if present) - dummy clocks between address and data phase 43 # Payload parameters 99 CRC8-ITU calculation 107 """Build MEC172x Boot-ROM TAG 109 MEC172x Boot-ROM TAG is 4 bytes [all …]
|
/Zephyr-latest/subsys/net/lib/websocket/ |
D | websocket.c | 10 * SPDX-License-Identifier: Apache-2.0 84 int old_rc = atomic_inc(&ctx->refcount); in websocket_context_ref() 91 int old_rc = atomic_dec(&ctx->refcount); in websocket_context_unref() 94 return old_rc - 1; in websocket_context_unref() 102 return !!atomic_get(&ctx->refcount); in websocket_context_is_used() 160 rsp->data_len); in response_cb() 161 ctx->all_received = false; in response_cb() 164 rsp->data_len); in response_cb() 165 ctx->all_received = true; in response_cb() 175 struct websocket_context *ctx = req->internal.user_data; in on_header_field() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/block_transfer/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 53 memset(&fixture->ctx, 0, sizeof(struct lwm2m_ctx)); in net_block_transfer_before() 54 memset(&fixture->msg, 0, sizeof(struct lwm2m_message)); in net_block_transfer_before() 55 fixture->msg.ctx = &fixture->ctx; in net_block_transfer_before() 62 lwm2m_reset_message(&fixture->msg, true); in net_block_transfer_after() 68 struct lwm2m_message *msg = &fixture->msg; in ZTEST_F() 74 zassert_not_equal(msg->msg_data, msg->cpkt.data, in ZTEST_F() 76 zassert_equal(msg->cpkt.data, msg->body_encode_buffer.data, in ZTEST_F() 79 zassert_equal(EXPECTED_LWM2M_COAP_FULL_BUFFER_SIZE, msg->cpkt.max_len, in ZTEST_F() 82 zassert_equal(EXPECTED_DEFAULT_HEADER_OFFSET, msg->cpkt.offset); in ZTEST_F() [all …]
|
/Zephyr-latest/tests/net/icmpv4/src/ |
D | main.c | 1 /* main.c - Application main entry point */ 7 * SPDX-License-Identifier: Apache-2.0 34 /* IPv4 Header */ 38 /* ICMP Header (Echo Request) */ 41 /* Payload */ 51 /* IPv4 Header */ 55 /* ICMP Header (Echo Reply)*/ 60 /* IPv4 Header */ 64 /* IPv4 Header Options (Timestamp) */ 70 /* ICMP Header (Echo Request) */ [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/ |
D | bluetooth-le-host.rst | 6 The Bluetooth Host implements all the higher-level protocols and 7 profiles, and most importantly, provides a high-level API for 17 Lowest down in the host stack sits a so-called HCI driver, which is 20 host, and vice-versa. 26 * Connection-oriented roles 32 * Connection-less roles 38 Each role comes with its own build-time configuration option: 41 connection-oriented roles central implicitly enables observer role, and 52 Most Zephyr-based BLE devices will most likely be peripheral-role 64 Central role may not be as common for Zephyr-based devices as peripheral [all …]
|
/Zephyr-latest/tests/subsys/logging/log_switch_format/src/ |
D | mock_backend.h | 4 * SPDX-License-Identifier: Apache-2.0 24 * @param type Field in message header to indicate the type of SyS-T message. 25 * @param optional_flags Optional Flags in message header. 26 * @param module_id ModuleID in a Message Header distinguish between multiple 28 * @param sub_type Enumerated types for representing the sub-type of a Message. 29 * @param payload The content of the Message.
|
/Zephyr-latest/doc/connectivity/canbus/ |
D | isotp.rst | 3 ISO-TP Transport Protocol 13 ISO-TP is a transport protocol defined in the ISO-Standard ISO15765-2 Road 14 vehicles - Diagnostic communication over Controller Area Network (DoCAN). 20 This transport protocol extends the limited payload data size for classical 23 behavior. ISO-TP segments packets into small fragments depending on the payload 24 size of the CAN frame. The header of those segments is called Protocol Control 28 single-frames (SF). They don't need to fragment and do not have any flow-control. 30 Packets larger than that are segmented into a first-frame (FF) and as many 31 consecutive-frames (CF) as required. The FF contains information about the length of 32 the entire payload data and additionally, the first few bytes of payload data. [all …]
|
/Zephyr-latest/include/zephyr/net/http/ |
D | client.h | 10 * SPDX-License-Identifier: Apache-2.0 116 * recv_buffer that contains header + body 119 * |←-------- body_frag_len ---------→| 120 * |←--------------------- data len --------------------→| 121 * --------------------------------------------------------------- 122 * ..header | header | body | body.. 123 * --------------------------------------------------------------- 131 * |←------------------ body_frag_len ------------------→| 132 * |←--------------------- data len --------------------→| 133 * --------------------------------------------------------------- [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_hostlink.c | 4 * SPDX-License-Identifier: Apache-2.0 55 uint32_t payload_size; /* Buffer size without packet header. */ 60 /* Hostlink packet header. */ 63 uint32_t total_size; /* Size of packet including header. */ 102 char reserved[HL_MAX_DCACHE_LINE - HL_HEADERS_SZ]; 113 /* Payload buffer */ 114 volatile union payload_u payload; member 122 * some features which require bigger payload buffer this might become not true. 212 /* Get hostlink payload size (iochunk + reserved space). */ 215 return sizeof(__HOSTLINK__.payload); in hl_payload_size() [all …]
|
/Zephyr-latest/subsys/net/lib/capture/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 20 as a payload in UDP datagrams. 50 bool "Capture non-IP packets a.k.a cooked (SLL) mode [EXPERIMENTAL]" 57 Linux cooked mode (sll). Here a synthetic link layer header 58 is used instead of real network link header. 65 What SLL header version to use. 71 Use SLL version 1 (header is 16 bytes) 77 Use SLL version 2 (header is 20 bytes) 98 module-dep = NET_LOG 99 module-str = Log level for network capture API [all …]
|
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_chains/src/ |
D | common.c | 4 * SPDX-License-Identifier: Apache-2.0 83 adv_set->lll.sync = &g_sync_set.lll; in common_create_adv_set() 84 lll_hdr_init(&adv_set->lll, adv_set); in common_create_adv_set() 85 g_sync_set.lll.adv = &adv_set->lll; in common_create_adv_set() 94 lll_adv_data_reset(&lll_sync->data); in common_create_adv_set() 95 err = lll_adv_data_init(&lll_sync->data); in common_create_adv_set() 99 adv_set->is_created = 1U; in common_create_adv_set() 113 if (adv_set->lll.sync) { in common_release_adv_set() 114 sync = HDR_LLL2ULL(adv_set->lll.sync); in common_release_adv_set() 116 sync->is_started = 0U; in common_release_adv_set() [all …]
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 21 bool "CoAP ./well-known/core services block wise support" 24 to ./well-known/core request. Without this option all resource's 30 int "CoAP ./well-known/core services block wise support" 96 This option enables MQTT-style wildcards in path. Disable it if 102 This option enables keeping application-specific user data 108 This option enables the API for CoAP-client for sending CoAP requests 119 int "LWM2M CoAP block-wise transfer size" 123 CoAP block size used by CoAP client when performing block-wise 127 int "Message payload size" [all …]
|
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/ |
D | Kconfig | 1 # Bluetooth Controller configuration options for ISO-AL Unit Tests 4 # SPDX-License-Identifier: Apache-2.0 15 parent-module = BT 17 module-str = "Bluetooth Controller ISO-AL" 21 bool "ISO-AL verbose debug logging" 25 Use this option to enable ISO-AL verbose debug logging. 34 int "Number of SDU fragments that the ISO-AL can buffer" 40 ISO-AL per channel. Buffering is required to compute the size of the 44 header. 52 Minimum number of payload bytes that would make inserting a new [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | msg.c | 4 * SPDX-License-Identifier: Apache-2.0 54 msg->timestamp.protocol._sec.high = ntohs(ts->seconds_high); in msg_timestamp_post_recv() 55 msg->timestamp.protocol._sec.low = ntohl(ts->seconds_low); in msg_timestamp_post_recv() 56 msg->timestamp.protocol.nanosecond = ntohl(ts->nanoseconds); in msg_timestamp_post_recv() 61 ts->seconds_high = htons(ts->seconds_high); in msg_timestamp_pre_send() 62 ts->seconds_low = htonl(ts->seconds_low); in msg_timestamp_pre_send() 63 ts->nanoseconds = htonl(ts->nanoseconds); in msg_timestamp_pre_send() 68 port_id->port_number = ntohs(port_id->port_number); in msg_port_id_post_recv() 73 port_id->port_number = htons(port_id->port_number); in msg_port_id_pre_send() 76 static int msg_header_post_recv(struct ptp_header *header) in msg_header_post_recv() argument [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/smp/src/ |
D | smp.c | 2 * Copyright (c) 2018-2021 mcumgr authors 3 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 8 /** SMP - Simple Management Protocol. */ 34 * @param err Group-specific error code 54 cnr->nb = nb; in cbor_nb_reader_init() 55 zcbor_new_decode_state(cnr->zs, ARRAY_SIZE(cnr->zs), nb->data, in cbor_nb_reader_init() 56 nb->len, 1, NULL, 0); in cbor_nb_reader_init() 62 cnw->nb = nb; in cbor_nb_writer_init() 63 cnw->nb->len = sizeof(struct smp_hdr); in cbor_nb_writer_init() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | icmp.h | 4 * SPDX-License-Identifier: Apache-2.0 33 #define NET_ICMPV4_ECHO_REQUEST 8 /**< ICMPv4 Echo-Request */ 34 #define NET_ICMPV4_ECHO_REPLY 0 /**< ICMPv4 Echo-Reply */ 35 #define NET_ICMPV6_ECHO_REQUEST 128 /**< ICMPv6 Echo-Request */ 36 #define NET_ICMPV6_ECHO_REPLY 129 /**< ICMPv6 Echo-Reply */ 48 * @param ip_hdr IP header of the packet. 49 * @param icmp_hdr ICMP header of the packet. 60 * @brief Handler function that is called when an Echo-Request is sent 69 * @param params Echo-Request specific parameters. May be NULL in which case 104 * @brief Struct presents either IPv4 or IPv6 header in ICMP response message. [all …]
|
/Zephyr-latest/dts/bindings/ethernet/ |
D | snps,dwcxgmac.yaml | 2 # SPDX - License - Identifier : Apache - 2.0 9 - name: reset-device.yaml 10 - name: ethernet-controller.yaml 17 max-frame-size: 23 means that normally xgmac will reject any frame above max-frame-size 26 Ethernet Frame [ 14 MAC HEADER | 1500 MTU | 4 FCS ] = 1518 bytes 27 max-speed: 30 - 10 31 - 100 32 - 1000 [all …]
|
/Zephyr-latest/drivers/dma/ |
D | dma_iproc_pax_v1.c | 4 * SPDX-License-Identifier: Apache-2.0 33 return ring->pkt_id = 0x0; in reset_pkt_id() 41 ring->pkt_id = (ring->pkt_id + 1) % 32; in alloc_pkt_id() 42 return ring->pkt_id; in alloc_pkt_id() 47 return ring->pkt_id; in curr_pkt_id() 52 return ring->curr.toggle; in curr_toggle_val() 56 * @brief Populate header descriptor 63 r->opq = opq; in rm_write_header_desc() 65 r->bdcount = bdcount; in rm_write_header_desc() 66 r->prot = 0x0; in rm_write_header_desc() [all …]
|
/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_encoder.c | 4 * SPDX-License-Identifier: Apache-2.0 44 * @retval -ENOMEM if there is no place in the buffer to store the value. 48 uint8_t *cur = buf->cur; in pack_uint8() 49 uint8_t *end = buf->end; in pack_uint8() 51 if ((end - cur) < sizeof(uint8_t)) { in pack_uint8() 52 return -ENOMEM; in pack_uint8() 59 buf->cur = (cur + sizeof(uint8_t)); in pack_uint8() 72 * @retval -ENOMEM if there is no place in the buffer to store the value. 76 uint8_t *cur = buf->cur; in pack_uint16() 77 uint8_t *end = buf->end; in pack_uint16() [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/smp/ |
D | Kconfig | 2 # Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved. 3 # SPDX-License-Identifier: Apache-2.0 11 # MCUMGR_SMP_ -- for general SMP options; 12 # MCUMGR_SMP_CBOR -- for CBOR encoding specific options; 23 data directly to main map, creating sub-maps instead so 75 SMP commands/groups that provide no CBOR encoded payload 77 Commands that provide CBOR payload require at least 1 level, 79 For example if command accepts payload of map of parameters 149 The protocol selection is indicated by the request header sent by the
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_cbor.c | 4 * SPDX-License-Identifier: Apache-2.0 33 #define CPKT_CBOR_W_SZ(pos, cpkt) ((size_t)(pos) - (size_t)(cpkt)->data - (size_t)(cpkt)->offset) 35 #define ICTX_CBOR_R_SZ(pos, ictx) ((size_t)pos - (size_t)(ictx)->in_cpkt->data - (ictx)->offset) 43 char time_str[sizeof("1970-01-01T00:00:00-00:00")] = { 0 }; in put_time() 51 return -EINVAL; in put_time() 56 "%04d-%02d-%02dT%02d:%02d:%02d-00:00", in put_time() 64 if (len < 0 || len > sizeof(time_str) - 1) { in put_time() 66 return -EINVAL; in put_time() 69 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_time() 76 return -ENOMEM; in put_time() [all …]
|
/Zephyr-latest/tests/net/ieee802154/l2/src/ |
D | ieee802154_test.c | 4 * SPDX-License-Identifier: Apache-2.0 51 0x7b, 0x09, /* IPHC Header */ 52 0x3a, /* Next Header: ICMPv6 */ 109 0x00, 0x00 /* Payload */ 132 0x98, 0x49, 0x1f, 0x57, /* Encrypted Payload */ 142 .payload_length = 4U /* encrypted payload */ + 16U /* MIC */, 149 /* Construct raw packet payload, length and FCS gets added in the radio driver, 150 * see https://github.com/linux-wpan/wpan-tools/blob/master/examples/af_packet_tx.c 160 0xAA, 0xBB, 0xCC, /* MAC Payload */ 176 printk(" -> Packet content:\n"); in pkt_hexdump() [all …]
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_6lo_fragment.c | 4 * SPDX-License-Identifier: Apache-2.0 52 * If an entire payload (e.g., IPv6) datagram fits within a single 802.15.4 54 * a fragmentation header. If the datagram does not fit within a single 61 * Functionality is comprised of link-local IPv6 addresses and stateless 62 * IPv6 address autoconfiguration, Neighbor Discovery, and header compression 64 * LE's link-layer fragmentation support. 70 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 72 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 76 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 78 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ [all …]
|
D | ieee802154_6lo_fragment.h | 4 * SPDX-License-Identifier: Apache-2.0 34 ctx->buf = pkt->buffer; in ieee802154_6lo_fragment_ctx_init() 35 ctx->pos = ctx->buf->data; in ieee802154_6lo_fragment_ctx_init() 36 ctx->hdr_diff = hdr_diff; in ieee802154_6lo_fragment_ctx_init() 37 ctx->pkt_size = net_pkt_get_len(pkt) + (iphc ? hdr_diff : -1); in ieee802154_6lo_fragment_ctx_init() 38 ctx->offset = 0U; in ieee802154_6lo_fragment_ctx_init() 39 ctx->processed = 0U; in ieee802154_6lo_fragment_ctx_init() 46 * needs to be fragmented. Every fragment will have fragmentation header 47 * data size, data offset, data tag and payload. 51 * @param ipch bool true for IPHC compression, false for IPv6 dispatch header
|