Home
last modified time | relevance | path

Searched +full:out +full:- +full:max (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/Zephyr-latest/dts/bindings/sensor/
Dams,tmd2620.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [sensor-device.yaml, i2c-device.yaml]
11 int-gpios:
12 type: phandle-array
15 The interrupt pin of TMD2620 is open-drain, active low.
17 as pull-up, active low.
19 proximity-gain:
24 - 1
25 - 2
26 - 4
[all …]
/Zephyr-latest/include/zephyr/drivers/
Demul_sensor.h3 * SPDX-License-Identifier: Apache-2.0
40 enum sensor_attribute attribute, q31_t *min, q31_t *max,
56 return target && target->backend_api; in emul_sensor_backend_is_supported()
64 * @param value Expected value in fixed-point format using standard SI unit for sensor type
68 * @return -ENOTSUP if no backend API or if channel not supported by emul
69 * @return -ERANGE if provided value is not in the sensor's supported range
75 if (!target || !target->backend_api) { in emul_sensor_backend_set_channel()
76 return -ENOTSUP; in emul_sensor_backend_set_channel()
79 struct emul_sensor_driver_api *api = (struct emul_sensor_driver_api *)target->backend_api; in emul_sensor_backend_set_channel()
81 if (api->set_channel) { in emul_sensor_backend_set_channel()
[all …]
/Zephyr-latest/dts/bindings/regulator/
Draspberrypi,core-supply-regulator.yaml2 # SPDX-License-Identifier: Apache-2.0
7 compatible: "raspberrypi,core-supply-regulator"
10 - name: base.yaml
11 - name: regulator.yaml
12 property-allowlist:
13 - regulator-always-on
14 - regulator-boot-on
15 - regulator-min-microvolt
16 - regulator-max-microvolt
17 - regulator-allowed-modes
[all …]
/Zephyr-latest/dts/bindings/input/
Danalog-axis.yaml2 # SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 compatible = "analog-axis";
16 poll-period-ms = <15>;
17 axis-x {
18 io-channels = <&adc 0>;
19 in-deadzone = <50>;
20 in-min = <100>;
21 in-max = <800>;
26 compatible: "analog-axis"
[all …]
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_fs.c4 * SPDX-License-Identifier: Apache-2.0
17 #define LOG_PREFIX_LEN (sizeof(CONFIG_LOG_BACKEND_FS_FILE_PREFIX) - 1)
56 return -ENOENT; in check_log_volume_available()
62 const char *last = path + (strlen(path) - 1); in create_log_dir()
84 len = last - path + 1; in create_log_dir()
86 len = next - path; in create_log_dir()
120 return -EIO; in check_log_file_exist()
126 rc = -EIO; in check_log_file_exist()
167 /* Check if new data overwrites max file size. in write_log_to_file()
202 file_ctr--; in write_log_to_file()
[all …]
/Zephyr-latest/dts/bindings/usb/
Drenesas,smartbond-usbd.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "renesas,smartbond-usbd"
8 include: usb-ep.yaml
11 dma-min-transfer-size:
16 ep-out-buf-size:
20 Buffer size for OUT end points 0-3.
22 fifo-read-threshold:
40 iso-out-mps:
43 Max packet size for ISO out endpoint
/Zephyr-latest/dts/bindings/led_strip/
Dworldsemi,ws2812-spi.yaml2 # SPDX-License-Identifier: Apache-2.0
14 - spi-max-frequency
15 - spi-zero-frame
16 - spi-one-frame.
21 compatible: "worldsemi,ws2812-spi"
23 include: [spi-device.yaml, ws2812.yaml]
27 spi-one-frame:
30 description: 8-bit SPI frame to shift out for a 1 pulse.
32 spi-zero-frame:
35 description: 8-bit SPI frame to shift out for a 0 pulse.
/Zephyr-latest/include/zephyr/linker/
Dkobject-text.ld1 /* SPDX-License-Identifier: Apache-2.0 */
8 * The linker will error out complaining that the location pointer
15 _kobject_text_area_used = _kobject_text_area_end - _kobject_text_area_start;
26 /* In a valid build the MAX function will always evaluate to the
32 . = MAX(., _kobject_text_area_start + CONFIG_KOBJECT_TEXT_AREA);
/Zephyr-latest/drivers/can/
Dcan_common.c4 * SPDX-License-Identifier: Apache-2.0
30 ctx->status = error; in can_tx_default_cb()
31 k_sem_give(&ctx->done); in can_tx_default_cb()
38 const struct can_driver_api *api = (const struct can_driver_api *)dev->api; in z_impl_can_send()
42 return -EINVAL; in z_impl_can_send()
45 if ((frame->flags & CAN_FRAME_IDE) != 0U) { in z_impl_can_send()
51 CHECKIF((frame->id & ~(id_mask)) != 0U) { in z_impl_can_send()
52 LOG_ERR("invalid frame with %s (%d-bit) CAN ID 0x%0*x", in z_impl_can_send()
53 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in z_impl_can_send()
54 (frame->flags & CAN_FRAME_IDE) != 0 ? 29 : 11, in z_impl_can_send()
[all …]
/Zephyr-latest/include/zephyr/drivers/i3c/
Dccc.h5 * SPDX-License-Identifier: Apache-2.0
91 * Set Max Write Length (Broadcast or Direct)
98 * Set Max Read Length (Broadcast or Direct)
117 /** Enter HDR Mode (HDR-DDR) (Broadcast) */
120 /** Enter HDR Mode 0 (HDR-DDR) (Broadcast) */
123 /** Enter HDR Mode 1 (HDR-TSP) (Broadcast) */
126 /** Enter HDR Mode 2 (HDR-TSL) (Broadcast) */
129 /** Enter HDR Mode 3 (HDR-BT) (Broadcast) */
171 /** Multi-Lane Data Transfer Control (Broadcast) */
188 /** Get Max Write Length (Direct) */
[all …]
/Zephyr-latest/tests/drivers/regulator/voltage/dts/bindings/
Dtest-regulator-voltage.yaml2 # SPDX-License-Identifier: Apache-2.0
8 compatible: "test-regulator-voltage"
16 io-channels.
18 io-channels:
19 type: phandle-array
25 tolerance-microvolt:
29 Tolerance (+/-) when reading configured voltages using ADC. This should
34 adc-avg-count:
40 set-read-delay-ms:
46 min-microvolt:
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_xilinx_axi.c10 * SPDX-License-Identifier: Apache-2.0
63 const struct xilinx_wdt_axi_config *config = dev->config; in wdt_xilinx_axi_setup()
64 struct xilinx_wdt_axi_data *data = dev->data; in wdt_xilinx_axi_setup()
65 k_spinlock_key_t key = k_spin_lock(&data->lock); in wdt_xilinx_axi_setup()
68 if (!data->timeout_active) { in wdt_xilinx_axi_setup()
69 ret = -EINVAL; in wdt_xilinx_axi_setup()
70 goto out; in wdt_xilinx_axi_setup()
73 if (data->wdt_started) { in wdt_xilinx_axi_setup()
74 ret = -EBUSY; in wdt_xilinx_axi_setup()
75 goto out; in wdt_xilinx_axi_setup()
[all …]
Dwdt_wwdgt_gd32.c4 * SPDX-License-Identifier: Apache-2.0
49 * count = (timeout * pclk / INTERNAL_DIVIDER * (2^prescaler_exp) ) - 1
56 const struct gd32_wwdgt_config *config = dev->config; in gd32_wwdgt_calc_ticks()
60 (clock_control_subsys_t)&config->clkid, in gd32_wwdgt_calc_ticks()
64 / (WWDGT_INTERNAL_DIVIDER * (1 << exp) * MSEC_PER_SEC) - 1) in gd32_wwdgt_calc_ticks()
76 * @return 0 on success, -EINVAL if the window-max is out of range
84 uint32_t max_count = gd32_wwdgt_calc_ticks(dev, win->max, shift); in gd32_wwdgt_calc_window()
89 if (win->min == 0U) { in gd32_wwdgt_calc_window()
92 *wval = gd32_wwdgt_calc_ticks(dev, win->min, shift); in gd32_wwdgt_calc_window()
99 return -EINVAL; in gd32_wwdgt_calc_window()
[all …]
Dwdt_fwdgt_gd32.c4 * SPDX-License-Identifier: Apache-2.0
37 #error Must be initial-timeout > 0
41 #error Must be initial-timeout <= (256 * 4095 * 1000 / GD32_LOW_SPEED_IRC_FREQUENCY)
51 * @return 0 on success, -EINVAL if the timeout is out of range
67 return -EINVAL; in gd32_fwdgt_calc_timeout()
72 *reload = (ticks / divider) - 1U; in gd32_fwdgt_calc_timeout()
86 return -ENOTSUP; in gd32_fwdgt_setup()
92 return -ENOTSUP; in gd32_fwdgt_setup()
105 return -EPERM; in gd32_fwdgt_disable()
116 if (config->callback != NULL) { in gd32_fwdgt_install_timeout()
[all …]
Dwdt_smartbond.c4 * SPDX-License-Identifier: Apache-2.0
35 return -ENOTSUP; in wdg_smartbond_setup()
44 if (SYS_WDOG->WATCHDOG_CTRL_REG & SYS_WDOG_WATCHDOG_CTRL_REG_NMI_RST_Msk) { in wdg_smartbond_disable()
46 return -EPERM; in wdg_smartbond_disable()
49 GPREG->SET_FREEZE_REG = GPREG_SET_FREEZE_REG_FRZ_SYS_WDOG_Msk; in wdg_smartbond_disable()
65 struct wdog_smartbond_data *data = (struct wdog_smartbond_data *)(dev)->data; in wdg_smartbond_install_timeout()
69 if (config->callback != NULL) { in wdg_smartbond_install_timeout()
70 return -ENOTSUP; in wdg_smartbond_install_timeout()
74 if (CRG_TOP->CLK_RCX_REG & CRG_TOP_CLK_RCX_REG_RCX_ENABLE_Msk) { in wdg_smartbond_install_timeout()
75 reload_val = config->window.max / 21; in wdg_smartbond_install_timeout()
[all …]
Dwdt_dw_common.c1 /* SPDX-License-Identifier: Apache-2.0 */
39 return -ENOTSUP; in dw_wdt_configure()
65 if (config->window.min) { in dw_wdt_calc_period()
67 return -ENOTSUP; in dw_wdt_calc_period()
70 period64 = (uint64_t)clk_freq * config->window.max; in dw_wdt_calc_period()
73 LOG_ERR("Window max is out of range."); in dw_wdt_calc_period()
74 return -EINVAL; in dw_wdt_calc_period()
77 period = period64 - 1; in dw_wdt_calc_period()
82 return -EINVAL; in dw_wdt_calc_period()
86 *period_out = WDT_DW_FLAG_CONFIGURED | (period >= 15 ? period - 15 : 0); in dw_wdt_calc_period()
[all …]
/Zephyr-latest/drivers/lora/
Dshell.c4 * SPDX-License-Identifier: Apache-2.0
34 static int parse_long(long *out, const struct shell *sh, const char *arg) in parse_long() argument
42 return -EINVAL; in parse_long()
45 *out = lval; in parse_long()
49 static int parse_long_range(long *out, const struct shell *sh, in parse_long_range() argument
51 long max) in parse_long_range() argument
55 ret = parse_long(out, sh, arg); in parse_long_range()
60 if (*out < min || *out > max) { in parse_long_range()
61 shell_error(sh, "Parameter '%s' is out of range. " in parse_long_range()
62 "Valid range is %li -- %li.", in parse_long_range()
[all …]
/Zephyr-latest/include/zephyr/drivers/usb/
Dusb_dc.h1 /* usb_dc.h - USB device controller driver interface */
6 * SPDX-License-Identifier: Apache-2.0
70 /** Out transaction on this EP, data is available for read */
115 * OUT EP = 0x00 | \<endpoint number\>
118 /** Endpoint max packet size */
242 * @param[out] stalled Endpoint stall status
303 * out.
310 * @param[out] ret_bytes Bytes scheduled for transmission. This value
322 * This function is called by the endpoint handler function, after an OUT
331 * @param[in] max_data_len Max length of data to read
[all …]
/Zephyr-latest/drivers/dma/
DKconfig.mcux_lpc1 # Copyright (c) 2020-2023, NXP
2 # SPDX-License-Identifier: Apache-2.0
18 Increase or decrease this value depending on the max number of data
29 out of all DMA controllers". A value of 0 (default) means to allocate
31 in any DMA controller hardware. About 1 KB per 3-4 channels unused can
/Zephyr-latest/dts/bindings/interrupt-controller/
Dnxp,s32-siul2-eirq.yaml1 # Copyright 2022-2024 NXP
3 # SPDX-License-Identifier: Apache-2.0
7 compatible: "nxp,s32-siul2-eirq"
9 include: [interrupt-controller.yaml, pinctrl-device.yaml, base.yaml]
15 pinctrl-0:
18 pinctrl-names:
21 filter-prescaler:
33 child-binding:
37 controller, labeled `irq_<interrupt-number>`. For example:
40 max-filter-counter = <5>;
[all …]
/Zephyr-latest/include/zephyr/drivers/mm/
Dmm_drv_bank.h4 * SPDX-License-Identifier: Apache-2.0
11 * This contains generic APIs to be used by a system-wide memory management
29 * This contains APIs for a system-wide memory management driver to
62 * @param[in,out] bank Pointer to the memory bank structure used for tracking
73 * @param[in,out] bank Pointer to the memory bank's data structure
85 * @param[in,out] bank Pointer to the memory bank's data structure
92 * @brief Reset the max number of pages mapped in the bank
98 * @param[in,out] bank Pointer to the memory bank's data structure
108 * @param[in,out] stats Pointer to memory into which to copy the system memory stats
/Zephyr-latest/include/zephyr/sys/
Dmpsc_pbuf.h4 * SPDX-License-Identifier: Apache-2.0
124 /* Store max buffer usage. */
254 * @param[in, out] buffer Buffer.
255 * @param[out] size Buffer size in bytes.
256 * @param[out] now Current buffer usage in bytes.
263 * @param[in, out] buffer Buffer.
264 * @param[out] max Maximum buffer usage in bytes.
267 * retval -ENOTSUP if Collecting utilization data is not supported.
269 int mpsc_pbuf_get_max_utilization(struct mpsc_pbuf_buffer *buffer, uint32_t *max);
/Zephyr-latest/tests/lib/c_lib/common/src/
Dtest_sqrt.c4 * SPDX-License-Identifier: Apache-2.0
13 #define local_abs(x) (((x) < 0) ? -(x) : (x))
86 #define MAX_FLOAT_ERROR_PERCENT (3.5e-5f)
87 #define MAX_DOUBLE_ERROR_PERCENT (4.5e-14)
101 /* test the special cases of 0.0, NAN, -NAN, INFINITY, -INFINITY, and -10.0 */ in ZTEST()
108 zassert_true(isnanf(sqrtf(-NAN)), "isnanf(sqrtf(-nan))"); in ZTEST()
110 zassert_true(isnanf(sqrtf(-INFINITY)), "isnanf(sqrt(-inf))"); in ZTEST()
111 zassert_true(isnanf(sqrtf(-10.0f)), "isnanf(sqrt(-10.0))"); in ZTEST()
113 for (exponent = 1.0e-10f; exponent < 1.0e10f; exponent *= 10.0f) { in ZTEST()
119 "sqrtf out of range"); in ZTEST()
[all …]
/Zephyr-latest/drivers/wifi/esp32/
DKconfig.esp3227 Make sure there is a minimal heap available for Wi-Fi driver.
46 bool "Activates the Station/AP co-existence mode."
70 int "Max number of WiFi static RX buffers"
84 int "Max number of WiFi dynamic RX buffers"
97 application can process them. In these cases we may run out of memory if
108 initialized and released when WiFi is de-initialized. The size of each
133 int "Max number of WiFi static TX buffers"
146 In these cases, we may run out of TX buffers.
149 int "Max number of WiFi cache TX buffers"
163 int "Max number of WiFi dynamic TX buffers"
[all …]
/Zephyr-latest/boards/nxp/mr_canhubk3/
Dmr_canhubk3.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
12 #include <dt-bindings/pwm/pwm.h>
13 #include "mr_canhubk3-pinctrl.dtsi"
14 #include <zephyr/dt-bindings/sensor/qdec_nxp_s32.h>
17 model = "NXP MR-CANHUBK3";
25 zephyr,code-partition = &code_partition;
27 zephyr,shell-uart = &lpuart2;
[all …]

12345678910>>...18