Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 316) sorted by relevance

12345678910>>...13

/Zephyr-latest/samples/net/sockets/coap_server/src/
Dobserver.c20 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()
Dtest.c16 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()
Dseparate.c14 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()
Dlarge.c16 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()
Dlocation_query.c14 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()
Dcore.c15 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()
Dquery.c14 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/
Dnxp_imx8.dtsi55 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/subsys/net/lib/http/
Dhttp_server_core.c318 HTTP_SERVICE_FOREACH_RESOURCE(service, resource) { in client_release_resources()
319 detail = resource->detail; in client_release_resources()
708 static int compare_strings(const char *path, const char *resource) in compare_strings() argument
710 while ((*path && *resource) && (*path == *resource) && (*path != '?')) { in compare_strings()
712 resource++; in compare_strings()
716 if ((*path == '\0' || *path == '?') && (*resource == '\0')) { in compare_strings()
734 static bool skip_this(struct http_resource_desc *resource, bool is_websocket) in skip_this() argument
738 detail = (struct http_resource_detail *)resource->detail; in skip_this()
756 HTTP_SERVICE_FOREACH_RESOURCE(service, resource) { in get_resource_detail()
757 if (skip_this(resource, is_websocket)) { in get_resource_detail()
[all …]
/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_server.rst71 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 …]
Dhttp_server.rst23 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:
45 resource types usage. See :zephyr:code-sample:`sockets-http-server` for more
131 specify a fallback resource which will be used if no other resource matches the
163 /* Register a fallback resource to handle any unknown path */
175 Application can enable resource wildcard support by enabling
178 with just one resource handler. The `fnmatch()
196 Static resource content is defined build-time and is immutable. The following
197 example shows how gzip compressed webpage can be defined as a static resource
[all …]
Dlwm2m.rst25 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/include/zephyr/net/
Dcoap_service.h259 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,
Dcoap_link_format.h44 int coap_well_known_core_get(struct coap_resource *resource,
Dcoap_mgmt.h91 struct coap_resource *resource; member
/Zephyr-latest/samples/net/sockets/coap_download/
DKconfig13 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/
Dcoap_link_format.c142 static bool match_queries_resource(const struct coap_resource *resource, in match_queries_resource() argument
146 struct coap_core_metadata *meta = resource->user_data; in match_queries_resource()
168 return match_path_uri(resource->path, uri, uri_len); in match_queries_resource()
352 static int format_resource(const struct coap_resource *resource, in format_resource() argument
357 struct coap_core_metadata *meta = resource->user_data; in format_resource()
361 r = format_uri(resource->path, response, remaining, in format_resource()
602 static int format_resource(const struct coap_resource *resource, in format_resource() argument
605 struct coap_core_metadata *meta = resource->user_data; in format_resource()
609 r = format_uri(resource->path, response); in format_resource()
693 int coap_well_known_core_get(struct coap_resource *resource, in coap_well_known_core_get() argument
[all …]
Dcoap_server.c85 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()
626 int coap_resource_send(const struct coap_resource *resource, const struct coap_packet *cpkt, in coap_resource_send() argument
632 if (COAP_SERVICE_HAS_RESOURCE(svc, resource)) { in coap_resource_send()
640 int coap_resource_parse_observe(struct coap_resource *resource, const struct coap_packet *request, in coap_resource_parse_observe() argument
659 if (COAP_SERVICE_HAS_RESOURCE(svc, resource)) { in coap_resource_parse_observe()
695 coap_register_observer(resource, observer); in coap_resource_parse_observe()
697 ret = coap_service_remove_observer(service, resource, addr, token, tkl); in coap_resource_parse_observe()
709 static int coap_resource_remove_observer(struct coap_resource *resource, in coap_resource_remove_observer() argument
[all …]
Dcoap.c1136 static int method_from_code(const struct coap_resource *resource, in method_from_code() argument
1141 *method = resource->get; in method_from_code()
1144 *method = resource->post; in method_from_code()
1147 *method = resource->put; in method_from_code()
1150 *method = resource->del; in method_from_code()
1153 *method = resource->fetch; in method_from_code()
1156 *method = resource->patch; in method_from_code()
1159 *method = resource->ipatch; in method_from_code()
1221 struct coap_resource *resource; in coap_handle_request() local
1223 for (resource = resources; resource && resource->path; resource++) { in coap_handle_request()
[all …]
/Zephyr-latest/boards/m5stack/m5stack_core2/doc/
Dindex.rst32 .. _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/boards/shields/x_nucleo_eeprma2/doc/
Dindex.rst73 …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/lib/open-amp/
DKconfig8 bool "coprocessor resource table"
11 add the resource table in the generated binary. This table is
/Zephyr-latest/doc/kernel/services/synchronization/
Dmutexes.rst8 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/drivers/dma/
Ddma_ifx_cat1.c136 .resource.type = CYHAL_RSC_DW, in ifx_cat1_dma_ex_connect_digital()
137 .resource.block_num = _get_hw_block_num(cfg->regs), in ifx_cat1_dma_ex_connect_digital()
138 .resource.channel_num = channel, in ifx_cat1_dma_ex_connect_digital()
152 .resource.type = CYHAL_RSC_DW, in ifx_cat1_dma_ex_enable_output()
153 .resource.block_num = _get_hw_block_num(cfg->regs), in ifx_cat1_dma_ex_enable_output()
154 .resource.channel_num = channel, in ifx_cat1_dma_ex_enable_output()
430 .resource.type = CYHAL_RSC_DW, in ifx_cat1_dma_start()
431 .resource.block_num = _get_hw_block_num(cfg->regs), in ifx_cat1_dma_start()
432 .resource.channel_num = channel, in ifx_cat1_dma_start()
/Zephyr-latest/samples/net/sockets/coap_client/
DREADME.rst5 Use the CoAP library to implement a client that fetches a resource.
11 from a resource.

12345678910>>...13