/Zephyr-latest/samples/net/sockets/coap_server/src/ |
D | observer.c | 20 static int send_notification_packet(struct coap_resource *resource, in send_notification_packet() argument 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 99 r = coap_resource_parse_observe(resource, request, addr); in obs_get() 110 return send_notification_packet(resource, addr, addr_len, in obs_get() 111 r == 0 ? resource->age : 0, in obs_get() 115 static void obs_notify(struct coap_resource *resource, in obs_notify() argument 118 send_notification_packet(resource, in obs_notify() 121 resource->age, 0, in obs_notify()
|
D | test.c | 16 static int piggyback_get(struct coap_resource *resource, in piggyback_get() argument 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 116 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in test_del() 121 static int test_put(struct coap_resource *resource, in test_put() argument 163 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in test_put() 168 static int test_post(struct coap_resource *resource, in test_post() argument 224 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in test_post()
|
D | separate.c | 14 static int separate_get(struct coap_resource *resource, in separate_get() argument 46 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get() 89 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
|
D | large.c | 16 static int large_get(struct coap_resource *resource, in large_get() argument 90 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_get() 95 static int large_update_put(struct coap_resource *resource, in large_update_put() argument 170 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_update_put() 175 static int large_create_post(struct coap_resource *resource, in large_create_post() argument 242 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_create_post()
|
D | core.c | 15 static int core_get(struct coap_resource *resource, in core_get() argument 48 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in core_get()
|
D | location_query.c | 14 static int location_query_post(struct coap_resource *resource, in location_query_post() argument 62 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in location_query_post()
|
D | query.c | 14 static int query_get(struct coap_resource *resource, in query_get() argument 92 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in query_get()
|
/Zephyr-latest/dts/xtensa/nxp/ |
D | nxp_imx8.dtsi | 55 nxp,resource-id = <IMX_SC_R_IRQSTR_DSP>; 62 nxp,resource-id = <IMX_SC_R_DMA_0_CH6>; 69 nxp,resource-id = <IMX_SC_R_DMA_0_CH7>; 76 nxp,resource-id = <IMX_SC_R_DMA_0_CH14>; 83 nxp,resource-id = <IMX_SC_R_DMA_0_CH15>; 90 nxp,resource-id = <IMX_SC_R_DMA_2_CH6>; 97 nxp,resource-id = <IMX_SC_R_DMA_2_CH7>; 104 nxp,resource-id = <IMX_SC_R_DMA_2_CH14>; 111 nxp,resource-id = <IMX_SC_R_DMA_2_CH15>;
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | coap_server.rst | 71 The following is an example of a CoAP resource registered with our service: 77 static int my_get(struct coap_resource *resource, struct coap_packet *request, 106 return coap_resource_send(resource, &response, addr, addr_len, NULL); 109 static int my_put(struct coap_resource *resource, struct coap_packet *request, 127 As demonstrated in the example above, a CoAP resource handler can return response codes to let 145 static int send_temperature(struct coap_resource *resource, 187 return coap_resource_send(resource, &response, addr, addr_len, NULL); 190 static int temp_get(struct coap_resource *resource, struct coap_packet *request, 199 r = coap_resource_parse_observe(resource, request, addr); 204 return send_temperature(resource, addr, addr_len, r == 0 ? resource->age : 0, [all …]
|
D | http_server.rst | 23 Certain resource types (for example dynamic resource) provide resource-specific 25 instance provide resource content, or process request payload). 27 Currently, the following resource types are supported: 39 resource types usage. See :zephyr:code-sample:`sockets-http-server` for more 133 Application can enable resource wildcard support by enabling 136 with just one resource handler. The `fnmatch() 154 Static resource content is defined build-time and is immutable. The following 155 example shows how gzip compressed webpage can be defined as a static resource 177 The resource content and content encoding is application specific. For the above 193 Static filesystem resource content is defined build-time and is immutable. The following [all …]
|
D | lwm2m.rst | 25 LwM2M uses a simple resource model with the core set of objects and resources 223 The server could query the ``Manufacturer`` resource for ``Device`` object 227 The full list of registered objects and resource IDs can be found in the 260 Create callback functions for LwM2M resource executions: 337 Next we assign ``Security`` resource values to let the client know where and how 358 * Manufacturer resource of Device object = 3/0/0 368 /* Reboot resource of Device object = 3/0/4 */ 402 …Server Public Key resource (ID 4) must contain a server certificate or CA certificate used to sign… 409 In all modes, Server URI resource (ID 0) must contain the full URI for the target server. 469 Writing a value to a resource can be done using functions like lwm2m_set_u8. When writing [all …]
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_core.c | 312 HTTP_SERVICE_FOREACH_RESOURCE(service, resource) { in client_release_resources() 313 detail = resource->detail; in client_release_resources() 697 static bool skip_this(struct http_resource_desc *resource, bool is_websocket) in skip_this() argument 701 detail = (struct http_resource_detail *)resource->detail; in skip_this() 721 HTTP_SERVICE_FOREACH_RESOURCE(service, resource) { in get_resource_detail() 722 if (skip_this(resource, is_websocket)) { in get_resource_detail() 729 ret = fnmatch(resource->resource, path, in get_resource_detail() 732 *path_len = strlen(resource->resource); in get_resource_detail() 733 return resource->detail; in get_resource_detail() 737 if (compare_strings(path, resource->resource) == 0) { in get_resource_detail() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | coap_service.h | 259 int coap_resource_send(const struct coap_resource *resource, const struct coap_packet *cpkt, 276 int coap_resource_parse_observe(struct coap_resource *resource, const struct coap_packet *request, 288 int coap_resource_remove_observer_by_addr(struct coap_resource *resource, 301 int coap_resource_remove_observer_by_token(struct coap_resource *resource,
|
D | coap_link_format.h | 44 int coap_well_known_core_get(struct coap_resource *resource,
|
D | coap_mgmt.h | 91 struct coap_resource *resource; member
|
/Zephyr-latest/samples/net/sockets/coap_download/ |
D | Kconfig | 13 string "The CoAP resource path to download" 16 The path (relative to server's root directory) of the CoAP resource
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_link_format.c | 158 static bool match_queries_resource(const struct coap_resource *resource, in match_queries_resource() argument 162 struct coap_core_metadata *meta = resource->user_data; in match_queries_resource() 184 return match_path_uri(resource->path, uri, uri_len); in match_queries_resource() 368 static int format_resource(const struct coap_resource *resource, in format_resource() argument 373 struct coap_core_metadata *meta = resource->user_data; in format_resource() 377 r = format_uri(resource->path, response, remaining, in format_resource() 618 static int format_resource(const struct coap_resource *resource, in format_resource() argument 621 struct coap_core_metadata *meta = resource->user_data; in format_resource() 625 r = format_uri(resource->path, response); in format_resource() 709 int coap_well_known_core_get(struct coap_resource *resource, in coap_well_known_core_get() argument [all …]
|
D | coap_server.c | 85 struct coap_resource *resource, in coap_service_remove_observer() argument 109 if (resource == NULL) { in coap_service_remove_observer() 116 } else if (coap_remove_observer(resource, obs)) { in coap_service_remove_observer() 587 int coap_resource_send(const struct coap_resource *resource, const struct coap_packet *cpkt, in coap_resource_send() argument 593 if (COAP_SERVICE_HAS_RESOURCE(svc, resource)) { in coap_resource_send() 601 int coap_resource_parse_observe(struct coap_resource *resource, const struct coap_packet *request, in coap_resource_parse_observe() argument 620 if (COAP_SERVICE_HAS_RESOURCE(svc, resource)) { in coap_resource_parse_observe() 656 coap_register_observer(resource, observer); in coap_resource_parse_observe() 658 ret = coap_service_remove_observer(service, resource, addr, token, tkl); in coap_resource_parse_observe() 670 static int coap_resource_remove_observer(struct coap_resource *resource, in coap_resource_remove_observer() argument [all …]
|
D | coap.c | 1135 static int method_from_code(const struct coap_resource *resource, in method_from_code() argument 1140 *method = resource->get; in method_from_code() 1143 *method = resource->post; in method_from_code() 1146 *method = resource->put; in method_from_code() 1149 *method = resource->del; in method_from_code() 1152 *method = resource->fetch; in method_from_code() 1155 *method = resource->patch; in method_from_code() 1158 *method = resource->ipatch; in method_from_code() 1220 struct coap_resource *resource; in coap_handle_request() local 1222 for (resource = resources; resource && resource->path; resource++) { in coap_handle_request() [all …]
|
/Zephyr-latest/boards/shields/x_nucleo_eeprma2/doc/ |
D | index.rst | 73 …https://www.st.com/resource/en/user_manual/dm00671710-getting-started-with-the-xnucleoeeprma2-stan… 76 https://www.st.com/resource/en/datasheet/m24c02-f.pdf 79 https://www.st.com/resource/en/datasheet/m24256-df.pdf 82 https://www.st.com/resource/en/datasheet/m24m01-df.pdf 85 https://www.st.com/resource/en/datasheet/m95040-r.pdf 88 https://www.st.com/resource/en/datasheet/m95256-df.pdf 91 https://www.st.com/resource/en/datasheet/m95m04-dr.pdf
|
/Zephyr-latest/boards/m5stack/m5stack_core2/doc/ |
D | index.rst | 32 .. _M5Core2 Schematic: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Core/CO… 33 .. _MPU-ESP32: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/esp32_data… 34 .. _TOUCH-FT6336U: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/Ft6336… 35 .. _SND-NS4168: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/NS4168_CN… 36 .. _MPU-6886: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/MPU-6886-00… 37 .. _LCD-ILI9342C: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/ILI9342… 38 .. _SPM-1423: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/SPM1423HM4H… 39 .. _RTC-BM8563: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/BM8563_V1… 40 .. _SY7088: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/SY7088-Silerg… 41 .. _PMU-AXP192: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/AXP192_da… [all …]
|
/Zephyr-latest/lib/open-amp/ |
D | Kconfig | 8 bool "coprocessor resource table" 11 add the resource table in the generated binary. This table is
|
/Zephyr-latest/doc/kernel/services/synchronization/ |
D | mutexes.rst | 8 an associated hardware or software resource by ensuring mutually exclusive 9 access to the resource. 33 A thread that needs to use a shared resource must first gain exclusive rights 38 After locking a mutex, the thread may safely use the associated resource 41 that want to use the resource. When the thread no longer needs the resource 42 it must **unlock** the mutex to allow other threads to use the resource. 55 This allows the thread to access the associated resource at a point 155 Use a mutex to provide exclusive access to a resource, such as a physical
|
/Zephyr-latest/samples/net/sockets/coap_client/ |
D | README.rst | 5 Use the CoAP library to implement a client that fetches a resource. 11 from a resource.
|
/Zephyr-latest/tests/net/lib/http_server/common/src/ |
D | main.c | 269 zassert_ok(strcmp(res->resource, "/")); in ZTEST() 272 zassert_ok(strcmp(res->resource, "/index.html")); in ZTEST() 275 zassert_ok(strcmp(res->resource, "/fs/*")); in ZTEST() 286 zassert_ok(strcmp(res->resource, "/foo.htm")); in ZTEST() 289 zassert_ok(strcmp(res->resource, "/bar/baz.php")); in ZTEST()
|