/Zephyr-latest/samples/net/sockets/coap_server/src/ |
D | observer.c | 5 * SPDX-License-Identifier: Apache-2.0 20 static int send_notification_packet(struct coap_resource *resource, in send_notification_packet() argument 23 uint16_t age, uint16_t id, in send_notification_packet() argument 40 id = coap_next_id(); in send_notification_packet() 45 COAP_RESPONSE_CODE_CONTENT, id); in send_notification_packet() 68 /* The response that coap-client expects */ in send_notification_packet() 83 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in send_notification_packet() 88 static int obs_get(struct coap_resource *resource, in obs_get() argument 93 uint16_t id; in obs_get() local 99 r = coap_resource_parse_observe(resource, request, addr); in obs_get() [all …]
|
D | test.c | 5 * SPDX-License-Identifier: Apache-2.0 16 static int piggyback_get(struct coap_resource *resource, in piggyback_get() argument 24 uint16_t id; in piggyback_get() local 32 id = coap_header_get_id(request); in piggyback_get() 36 LOG_INF("type: %u code %u id %u", type, code, id); in piggyback_get() 47 COAP_RESPONSE_CODE_CONTENT, id); in piggyback_get() 63 /* The response that coap-client expects */ in piggyback_get() 65 "Type: %u\nCode: %u\nMID: %u\n", type, code, id); in piggyback_get() 76 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in piggyback_get() 81 static int test_del(struct coap_resource *resource, in test_del() argument [all …]
|
D | large.c | 5 * SPDX-License-Identifier: Apache-2.0 16 static int large_get(struct coap_resource *resource, in large_get() argument 27 uint16_t id; in large_get() local 39 return -EINVAL; in large_get() 44 id = coap_header_get_id(request); in large_get() 48 LOG_INF("type: %u code %u id %u", type, code, id); in large_get() 53 COAP_RESPONSE_CODE_CONTENT, id); in large_get() 55 return -EINVAL; in large_get() 75 ctx.total_size - ctx.current); in large_get() 90 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_get() [all …]
|
D | separate.c | 5 * SPDX-License-Identifier: Apache-2.0 14 static int separate_get(struct coap_resource *resource, in separate_get() argument 22 uint16_t id; in separate_get() local 30 id = coap_header_get_id(request); in separate_get() 34 LOG_INF("type: %u code %u id %u", type, code, id); in separate_get() 46 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get() 57 /* Re-use the buffer */ in separate_get() 76 /* The response that coap-client expects */ in separate_get() 78 "Type: %u\nCode: %u\nMID: %u\n", type, code, id); in separate_get() 89 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
|
D | location_query.c | 5 * SPDX-License-Identifier: Apache-2.0 14 static int location_query_post(struct coap_resource *resource, in location_query_post() argument 25 uint16_t id; in location_query_post() local 33 id = coap_header_get_id(request); in location_query_post() 37 LOG_INF("type: %u code %u id %u", type, code, id); in location_query_post() 48 COAP_RESPONSE_CODE_CREATED, id); in location_query_post() 62 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in location_query_post() 67 static const char * const location_query_path[] = { "location-query", NULL };
|
D | query.c | 5 * SPDX-License-Identifier: Apache-2.0 14 static int query_get(struct coap_resource *resource, in query_get() argument 23 uint16_t id; in query_get() local 31 id = coap_header_get_id(request); in query_get() 36 return -EINVAL; in query_get() 40 LOG_INF("type: %u code %u id %u", type, code, id); in query_get() 63 COAP_RESPONSE_CODE_CONTENT, id); in query_get() 79 /* The response that coap-client expects */ in query_get() 81 "Type: %u\nCode: %u\nMID: %u\n", type, code, id); in query_get() 92 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in query_get()
|
D | core.c | 5 * SPDX-License-Identifier: Apache-2.0 15 static int core_get(struct coap_resource *resource, in core_get() argument 23 uint16_t id; in core_get() local 27 id = coap_header_get_id(request); in core_get() 32 COAP_RESPONSE_CODE_CONTENT, id); in core_get() 48 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in core_get()
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_registry.h | 4 * SPDX-License-Identifier: Apache-2.0 15 * @param[in] obj_id Object id of the object instance. 16 * @param[in] obj_inst_id Object instance id of the object instance to be created. 26 * @param[in] obj_id Object id of the object instance to be deleted 27 * @param[in] obj_inst_id Object instance id of the object instance to be deleted 33 * @brief Get the engine object instance specified by @p msg->path. Usually only used in do_write 60 * @brief Get the resource instance specified by @p path. Creates and allocates a new one 61 * if the resource instance does not exist. 63 * @param[in] path Path to resource instance (i.e 100/100/100/1) 64 * @param[out] res Engine resource buffer pointer. [all …]
|
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 15 module-dep = LOG 16 module-str = Log level for LwM2M library 90 bool "Use path matching as fallback for cancel-observe" 93 implementations to implement cancel-observe by specifying the resource 95 this option, cancel-observe may not work properly when connecting to 140 According to LwM2M specification v1.0 and v1.1, non-core object versions other than 1.0 177 int "Default server ssid when using the lwm2m-client. (used for access control)" 189 int "LWM2M firmware server port non-secure" 205 between notifications. If a resource has to be notified during this [all …]
|
D | lwm2m_obj_server.h | 4 * SPDX-License-Identifier: Apache-2.0 14 /* Server resource IDs */ 24 /* Server object version 1.1 resource IDs */ 43 * with object instance id given by @p obj_inst_id. 45 * @param[in] obj_inst_id Object instance id of the server object instance 52 * with object instance id given by @p obj_inst_id. 54 * @param[in] obj_inst_id Object instance id of the server object instance 60 * @brief Returns the Short Server ID of the server object instance with 61 * object instance id given by @p obj_inst_id. 63 * @param[in] obj_inst_id Object instance id of the server object [all …]
|
D | ucifi_lpwan.h | 4 * SPDX-License-Identifier: Apache-2.0 10 /* Mandatory resource: ID 6 - IEEE MAC address of the device (up to 64 bits) */ 13 /* Device resource IDs */ 14 /* clang-format off */ 39 /* clang-format on */
|
D | lwm2m_engine.h | 3 * Copyright (c) 2018-2019 Foundries.io 5 * SPDX-License-Identifier: Apache-2.0 96 * @p obj_inst and the resource id in @p msg. Returns the field to obj_field (if it exists). 98 * @param[in] msg lwm2m message to signal for which resource the write access should checked 99 * @param[in] obj_inst Engine object instance to signal which object the resource belongs to 139 * @brief Deletes the object instance specified by msg->path. If the object instance id of the 190 * id given by @p obj_inst_id 192 * @param[in] obj_inst_id object instance id of the security instance 198 * @brief Returns the object instance id of the security having ssid given by @p short_id. 201 * @return Object instance id or negative in case not found [all …]
|
D | lwm2m_obj_portfolio.c | 4 * SPDX-License-Identifier: Apache-2.0 40 * Calculate resource instances as follows: 42 * subtract MULTI resources and execute because their counts include 0 resource (3) 43 * add PORTFOLIO_IDENTITY_ID resource instances 44 * add PORTFOLIO_AUTH_DATA_ID resource instances 46 #define RESOURCE_INSTANCE_COUNT (PORTFOLIO_MAX_ID - 3 + \ 52 OBJ_FIELD_DATA(PORTFOLIO_IDENTITY_ID, RW, STRING), /* Mandatory, multi-instance */ 53 OBJ_FIELD_EXECUTE(PORTFOLIO_GET_AUTH_DATA_ID), /* Optional, single-instance */ 54 OBJ_FIELD_DATA(PORTFOLIO_AUTH_DATA_ID, R_OPT, OPAQUE), /* Optional, multi-instance */ 55 OBJ_FIELD_DATA(PORTFOLIO_AUTH_STATUS_ID, R_OPT, U8) /* Optional, single-instance*/ [all …]
|
/Zephyr-latest/lib/open-amp/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 8 bool "coprocessor resource table" 11 add the resource table in the generated binary. This table is 15 int "Resource table number of rpmsg buffers" 23 int "IPM RX channel ID" 27 This option specifies the IPM RX channel ID used in a VRING 31 int "IPM TX channel ID" 35 This option specifies the IPM TX channel ID used in a VRING
|
/Zephyr-latest/include/zephyr/acpi/ |
D | acpi.h | 4 * SPDX-License-Identifier: Apache-2.0 18 #define ACPI_MMIO_GET(res) (res)->reg_base[0].mmio 19 #define ACPI_IO_GET(res) (res)->reg_base[0].port 20 #define ACPI_RESOURCE_SIZE_GET(res) (res)->reg_base[0].length 21 #define ACPI_RESOURCE_TYPE_GET(res) (res)->reg_base[0].type 23 #define ACPI_MULTI_MMIO_GET(res, idx) (res)->reg_base[idx].mmio 24 #define ACPI_MULTI_IO_GET(res, idx) (res)->reg_base[idx].port 25 #define ACPI_MULTI_RESOURCE_SIZE_GET(res, idx) (res)->reg_base[idx].length 26 #define ACPI_MULTI_RESOURCE_TYPE_GET(res, idx) (res)->reg_base[idx].type 28 #define ACPI_RESOURCE_COUNT_GET(res) (res)->mmio_max [all …]
|
/Zephyr-latest/dts/xtensa/nxp/ |
D | nxp_imx8.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/dt-bindings/clock/imx_ccm.h> 10 #include <zephyr/dt-bindings/dai/esai.h> 11 #include <zephyr/dt-bindings/power/imx_scu_rsrc.h> 15 #address-cells = <1>; 16 #size-cells = <0>; 20 compatible = "cdns,tensilica-xtensa-lx6"; 23 #address-cells = <1>; 24 #size-cells = <0>; 26 clic: interrupt-controller@0 { [all …]
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | coap_server.rst | 13 Zephyr comes with a batteries-included CoAP server, which uses services to listen for CoAP 23 .. code-block:: cfg 32 .. code-block:: c 33 :caption: ``sections-ram.ld`` 41 .. code-block:: cmake 45 zephyr_linker_sources(DATA_SECTIONS sections-ram.ld) 54 .. code-block:: c 71 The following is an example of a CoAP resource registered with our service: 73 .. code-block:: c 77 static int my_get(struct coap_resource *resource, struct coap_packet *request, [all …]
|
D | lwm2m.rst | 18 CoAP packet-size optimization and a simple, stateless flow that supports a 25 LwM2M uses a simple resource model with the core set of objects and resources 35 .. list-table:: 36 :header-rows: 1 38 * - Object ID 39 - Name 40 - Instance 41 - Mandatory 43 * - 3 44 - Device [all …]
|
/Zephyr-latest/soc/intel/common/ |
D | soc_gpio.h | 4 * SPDX-License-Identifier: Apache-2.0 21 * @brief Retrieve current resource settings of a gpio device from acpi. 24 * @param hid the hardware id of the acpi device 25 * @param uid the unique id of the acpi device 26 * @param res the pointer to resource struct on which data return
|
/Zephyr-latest/include/zephyr/net/ |
D | lwm2m.h | 3 * Copyright (c) 2017-2019 Foundries.io 5 * SPDX-License-Identifier: Apache-2.0 10 * @brief LwM2M high-level API 13 * LwM2M high-level interface is defined in this header. 18 * OMA-TS-LightweightM2M_Core-V1_1_1-20190617-A 20 * @defgroup lwm2m_api LwM2M high-level API 46 /* clang-format off */ 61 /* clang-format on */ 68 * Refer to the OMA LightweightM2M (LwM2M) Object and Resource Registry: 73 /* clang-format off */ [all …]
|
D | coap.h | 5 * SPDX-License-Identifier: Apache-2.0 47 COAP_OPTION_IF_MATCH = 1, /**< If-Match */ 48 COAP_OPTION_URI_HOST = 3, /**< Uri-Host */ 50 COAP_OPTION_IF_NONE_MATCH = 5, /**< If-None-Match */ 52 COAP_OPTION_URI_PORT = 7, /**< Uri-Port */ 53 COAP_OPTION_LOCATION_PATH = 8, /**< Location-Path */ 54 COAP_OPTION_URI_PATH = 11, /**< Uri-Path */ 55 COAP_OPTION_CONTENT_FORMAT = 12, /**< Content-Format */ 56 COAP_OPTION_MAX_AGE = 14, /**< Max-Age */ 57 COAP_OPTION_URI_QUERY = 15, /**< Uri-Query */ [all …]
|
/Zephyr-latest/dts/bindings/power-domain/ |
D | nxp,scu-pd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: NXP SCU-managed power domain 6 compatible: "nxp,scu-pd" 8 include: power-domain.yaml 11 nxp,resource-id: 16 the resource on which the PD-related operations are to be 19 "#power-domain-cells":
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_link_format.c | 4 * SPDX-License-Identifier: Apache-2.0 30 if (cpkt->max_len - cpkt->offset < 1) { in append_u8() 34 cpkt->data[cpkt->offset++] = data; in append_u8() 45 if (cpkt->max_len - cpkt->offset < 2) { in append_be16() 49 cpkt->data[cpkt->offset++] = data >> 8; in append_be16() 50 cpkt->data[cpkt->offset++] = (uint8_t) data; in append_be16() 61 if (cpkt->max_len - cpkt->offset < len) { in append() 65 memcpy(cpkt->data + cpkt->offset, data, len); in append() 66 cpkt->offset += len; in append() 113 if (i == (k - 1) && j == plen) { in match_path_uri() [all …]
|
D | coap.c | 4 * SPDX-License-Identifier: Apache-2.0 32 /* Values as per RFC 7252, section-3.1. 34 * Option Delta/Length: 4-bit unsigned integer. A value between 0 and 37 * 13: An 8-bit unsigned integer precedes the Option Value and indicates 39 * 14: A 16-bit unsigned integer in network byte order precedes the 56 /* The CoAP message ID that is incremented each time coap_next_id() is called. */ 73 cpkt->data[offset] = data; in encode_u8() 74 ++cpkt->offset; in encode_u8() 79 cpkt->data[offset] = data >> 8; in encode_be16() 80 cpkt->data[offset + 1] = (uint8_t)data; in encode_be16() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_registry/src/ |
D | test_obj.c | 4 * SPDX-License-Identifier: Apache-2.0 31 /* Use LWM2M_RES_TYPE_* also as a resource ID, so that 32 * resource ID of U8 type is LWM2M_RES_TYPE_U8 68 /* initialize instance resource data */ in obj_create()
|