Home
last modified time | relevance | path

Searched +full:min +full:- +full:x (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/Zephyr-latest/dts/bindings/input/
Dxptek,xpt2046.yaml2 # SPDX-License-Identifier: Apache-2.0
7 include: spi-device.yaml
10 int-gpios:
11 type: phandle-array
15 touchscreen-size-x:
20 touchscreen-size-y:
25 min-x:
28 description: minimum raw X value reported.
30 min-y:
35 max-x:
[all …]
Dcirque,pinnacle-common.yaml2 # SPDX-License-Identifier: Apache-2.0
7 data-ready-gpios:
8 type: phandle-array
16 default: "4x"
18 ADC attenuation, 1x is the most sensitive and 4x is the least sensitive.
20 - "1x"
21 - "2x"
22 - "3x"
23 - "4x"
25 data-mode:
[all …]
Dst,stmpe811.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [i2c-device.yaml, touchscreen-common.yaml]
11 int-gpios:
12 type: phandle-array
17 raw-x-min:
20 Signed raw X axis start for scaling the reported coordinates.
23 raw-y-min:
29 raw-x-max:
32 Raw X axis end for scaling the reported coordinates.
35 raw-y-max:
[all …]
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/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/drivers/watchdog/
Dwdt_opentitan.c4 * SPDX-License-Identifier: Apache-2.0
35 const struct wdt_ot_aontimer_cfg *const cfg = dev->config; in ot_aontimer_setup()
36 volatile uintptr_t regs = cfg->regs; in ot_aontimer_setup()
40 if (cfg->wdog_lock) { in ot_aontimer_setup()
50 const struct wdt_ot_aontimer_cfg *const cfg = dev->config; in ot_aontimer_disable()
51 volatile uintptr_t regs = cfg->regs; in ot_aontimer_disable()
54 LOG_ERR("Cannot disable - watchdog settings locked."); in ot_aontimer_disable()
55 return -EPERM; in ot_aontimer_disable()
61 return -EFAULT; in ot_aontimer_disable()
69 * The OpenTitan AON Timer includes a multi-level watchdog timer.
[all …]
/Zephyr-latest/drivers/dai/intel/dmic/
Ddmic.h4 * SPDX-License-Identifier: Apache-2.0
29 #define DMIC_HW_CIC_SHIFT_MIN -8
38 #define DMIC_HW_PDM_CLK_MIN 100000 /* Note: Practical min value */
39 #define DMIC_HW_DUTY_MIN 20 /* Note: Practical min value */
53 #define DMIC_HW_FIR_COEF_MAX ((1 << (DMIC_HW_BITS_FIR_COEF - 1)) - 1)
54 #define DMIC_HW_FIR_COEF_Q (DMIC_HW_BITS_FIR_COEF - 1)
60 #define DMIC_HW_FIR_GAIN_MAX ((1 << (DMIC_HW_BITS_FIR_GAIN - 1)) - 1)
67 * decibels, set to -90 dB.
72 * dy = y48 - y16; dx = 48000 - 16000;
74 * offs = round(y16 - coef/2^15 * 16000)
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dloopback.c4 * SPDX-License-Identifier: Apache-2.0
69 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in lb_control_to_host()
70 errno = -ENOTSUP; in lb_control_to_host()
74 if (setup->bRequest == LB_VENDOR_REQ_IN) { in lb_control_to_host()
76 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host()
78 LOG_WRN("Device-to-Host, wLength %u | %zu", setup->wLength, in lb_control_to_host()
79 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host()
84 LOG_ERR("Class request 0x%x not supported", setup->bRequest); in lb_control_to_host()
85 errno = -ENOTSUP; in lb_control_to_host()
94 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in lb_control_to_dev()
[all …]
/Zephyr-latest/samples/sensor/ccs811/src/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
23 unsigned int min; in now_str() local
29 min = now % 60U; in now_str()
34 h, min, s, ms); in now_str()
42 int baseline = -1; in do_fetch()
66 printk("BASELINE %04x\n", baseline); in do_fetch()
68 if (app_fw_2 && !(rp->status & CCS811_STATUS_DATA_READY)) { in do_fetch()
72 if (rp->status & CCS811_STATUS_ERROR) { in do_fetch()
73 printk("ERROR: %02x\n", rp->error); in do_fetch()
88 } else if (-EAGAIN == rc) { in trigger_handler()
[all …]
/Zephyr-latest/subsys/usb/device/class/
Dloopback.c6 * SPDX-License-Identifier: Apache-2.0
75 LOG_DBG("ep 0x%x, bytes to read %d ", ep, bytes_to_read); in loopback_out_cb()
82 LOG_DBG("ep 0x%x", ep); in loopback_in_cb()
128 LOG_DBG("Class request: bRequest 0x%x bmRequestType 0x%x len %d", in loopback_vendor_handler()
129 setup->bRequest, setup->bmRequestType, *len); in loopback_vendor_handler()
131 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in loopback_vendor_handler()
132 return -ENOTSUP; in loopback_vendor_handler()
136 setup->bRequest == 0x5b) { in loopback_vendor_handler()
137 LOG_DBG("Host-to-Device, data %p", *data); in loopback_vendor_handler()
140 * it later in control device-to-host transfer. in loopback_vendor_handler()
[all …]
/Zephyr-latest/tests/drivers/build_all/input/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
17 #io-channel-cells = <1>;
18 #address-cells = <1>;
19 #size-cells = <0>;
26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
32 gpio-controller;
34 #gpio-cells = <0x2>;
[all …]
/Zephyr-latest/samples/bluetooth/iso_peripheral/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
26 BT_DATA(BT_DATA_NAME_COMPLETE, CONFIG_BT_DEVICE_NAME, sizeof(CONFIG_BT_DEVICE_NAME) - 1),
49 printk("Disconnected from %s, reason 0x%02x %s\n", addr, in disconnected()
58 /** Print data as d_0 d_1 d_2 ... d_(n-2) d_(n-1) d_(n) to show the 3 first and 3 last octets
78 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
87 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
88 MIN(max_octets, data_len - max_octets), in iso_print_data()
90 sizeof(data_str) - str_len); in iso_print_data()
99 if (info->flags & BT_ISO_FLAGS_VALID) { in iso_recv()
100 printk("Incoming data channel %p len %u\n", chan, buf->len); in iso_recv()
[all …]
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c4 * SPDX-License-Identifier: Apache-2.0
38 return setup->wLength && USB_REQTYPE_GET_DIR(setup->bmRequestType); in reqtype_is_to_host()
49 uds_ctx->ch9_data.ctrl_type = type; in ch9_set_ctrl_type()
54 return uds_ctx->ch9_data.ctrl_type; in ch9_get_ctrl_type()
62 if (setup->bRequest == USB_SREQ_SET_ADDRESS) { in post_status_stage()
63 ret = udc_set_address(uds_ctx->dev, setup->wValue); in post_status_stage()
65 LOG_ERR("Failed to set device address 0x%x", setup->wValue); in post_status_stage()
69 if (setup->bRequest == USB_SREQ_SET_FEATURE && in post_status_stage()
70 setup->wValue == USB_SFS_TEST_MODE) { in post_status_stage()
71 uint8_t mode = SF_TEST_MODE_SELECTOR(setup->wIndex); in post_status_stage()
[all …]
/Zephyr-latest/drivers/disk/nvme/
Dnvme_controller.c3 * SPDX-License-Identifier: Apache-2.0
28 struct nvme_controller *nvme_ctrlr = dev->data; in nvme_controller_wait_for_ready()
31 k_ms_to_ticks_ceil32(nvme_ctrlr->ready_timeout_in_ms); in nvme_controller_wait_for_ready()
39 return -EIO; in nvme_controller_wait_for_ready()
47 if ((int64_t)timeout - sys_clock_tick_get_32() < 0) { in nvme_controller_wait_for_ready()
49 return -EIO; in nvme_controller_wait_for_ready()
53 delta_t = MIN((MSEC_PER_SEC * USEC_PER_MSEC), delta_t * 3 / 2); in nvme_controller_wait_for_ready()
97 struct nvme_controller *nvme_ctrlr = dev->data; in nvme_controller_enable()
132 cc |= nvme_ctrlr->mps << NVME_CC_REG_MPS_SHIFT; in nvme_controller_enable()
141 struct nvme_controller *nvme_ctrlr = dev->data; in nvme_controller_setup_admin_queues()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx.c1 /* ieee802154_rf2xx.c - ATMEL RF2XX IEEE 802.15.4 Driver */
6 * Copyright (c) 2019-2020 Gerson Fernando Budke
8 * SPDX-License-Identifier: Apache-2.0
67 .rssi = -40,
84 k_sem_give(&ctx->trx_isr_lock); in trx_isr_handler()
111 * Datasheet: Figure 7-13. Timing Example of an RX_AACK Transaction in rf2xx_trx_set_tx_state()
141 struct rf2xx_context *ctx = dev->data; in rf2xx_set_rssi_base()
144 if (ctx->cc_page == IEEE802154_ATTR_PHY_CHANNEL_PAGE_ZERO_OQPSK_2450_BPSK_868_915) { in rf2xx_set_rssi_base()
148 } else if (ctx->cc_page == IEEE802154_ATTR_PHY_CHANNEL_PAGE_TWO_OQPSK_868_915) { in rf2xx_set_rssi_base()
156 ctx->trx_rssi_base = base; in rf2xx_set_rssi_base()
[all …]
/Zephyr-latest/dts/bindings/regulator/
Dx-powers,axp192-regulator.yaml3 # SPDX-License-Identifier: Apache-2.0
17 compatible = "x-powers,axp192-regulator";
41 compatible: "x-powers,axp192-regulator"
45 child-binding:
47 - name: regulator.yaml
48 property-allowlist:
49 - regulator-init-microvolt
50 - regulator-min-microvolt
51 - regulator-max-microvolt
52 - regulator-always-on
[all …]
/Zephyr-latest/tests/drivers/mspi/flash/src/
Dmain.c3 * SPDX-License-Identifier: Apache-2.0
61 pui8TxPtr[i] = (0xff - i) & 0xFF; in prepare_test_pattern()
78 size_t min_page_size = -1; in test_multi_sector_rw()
82 TC_PRINT("Perform test on multiple consequtive sectors on %s\n", flash_dev->name); in test_multi_sector_rw()
86 const struct flash_driver_api *api = flash_dev->api; in test_multi_sector_rw()
88 api->page_layout(flash_dev, &layout, &layout_size); in test_multi_sector_rw()
91 TC_PRINT("----pages-------size----\n"); in test_multi_sector_rw()
93 TC_PRINT("%2d: 0x%-8X 0x%-8x\n", i, layout[i].pages_count, in test_multi_sector_rw()
95 min_page_size = MIN(min_page_size, layout[i].pages_size); in test_multi_sector_rw()
106 MIN(min_page_size, MSPI_FLASH_TEST_SIZE - i)); in test_multi_sector_rw()
[all …]
/Zephyr-latest/scripts/build/
Dfile2hex.py5 # SPDX-License-Identifier: Apache-2.0
28 parser.add_argument("-f", "--file", required=True, help="Input file")
29 parser.add_argument("-o", "--offset", type=lambda x: int(x, 0), default=0,
31 parser.add_argument("-l", "--length", type=lambda x: int(x, 0), default=-1,
34 parser.add_argument("-g", "--gzip", action="store_true",
36 parser.add_argument("-t", "--gzip-mtime", type=int, default=0,
46 return ", ".join("0x" + str(x) for x in list_or_iterator)
50 hexdata = codecs.encode(chunk, 'hex').decode("utf-8")
78 for chunk in iter(lambda: fp.read(min(8, remainder)), b''):
80 remainder = remainder - len(chunk)
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/
Dcis_peripheral.c4 * SPDX-License-Identifier: Apache-2.0
26 /** Print data as d_0 d_1 d_2 ... d_(n-2) d_(n-1) d_(n) to show the 3 first and 3 last octets
46 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
55 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
56 MIN(max_octets, data_len - max_octets), data_str + str_len, in iso_print_data()
57 sizeof(data_str) - str_len); in iso_print_data()
66 if (info->flags & BT_ISO_FLAGS_VALID) { in iso_recv()
67 printk("Incoming data channel %p len %u\n", chan, buf->len); in iso_recv()
68 iso_print_data(buf->data, buf->len); in iso_recv()
80 printk("ISO Channel %p disconnected (reason 0x%02x)\n", chan, reason); in iso_disconnected()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_df_types.h4 * SPDX-License-Identifier: Apache-2.0
9 /* @brief Min supported CTE length in 8us units */
12 /* @brief Min supported length of antenna switching pattern */
68 #define RSSI_DBM_TO_DECI_DBM(x) (-(x) * 10) argument
82 #define IQ_SAMPLE_CONVERT_12_TO_8_BIT(x) ((int16_t)((x) >> 4)) argument
84 #define IQ_SAMPLE_CONVERT_12_TO_8_BIT(x) ((int16_t)((x) >> 2)) argument
86 #define IQ_SAMPLE_CONVERT_12_TO_8_BIT(x) ((int8_t)(x)) argument
/Zephyr-latest/subsys/usb/host/
Dusbh_shell.c4 * SPDX-License-Identifier: Apache-2.0
31 shell_print(sh, "bLength\t\t\t%u", desc->bLength); in print_dev_desc()
32 shell_print(sh, "bDescriptorType\t\t%u", desc->bDescriptorType); in print_dev_desc()
33 shell_print(sh, "bcdUSB\t\t\t%x", desc->bcdUSB); in print_dev_desc()
34 shell_print(sh, "bDeviceClass\t\t%u", desc->bDeviceClass); in print_dev_desc()
35 shell_print(sh, "bDeviceSubClass\t\t%u", desc->bDeviceSubClass); in print_dev_desc()
36 shell_print(sh, "bDeviceProtocol\t\t%u", desc->bDeviceProtocol); in print_dev_desc()
37 shell_print(sh, "bMaxPacketSize0\t\t%u", desc->bMaxPacketSize0); in print_dev_desc()
38 shell_print(sh, "idVendor\t\t%x", desc->idVendor); in print_dev_desc()
39 shell_print(sh, "idProduct\t\t%x", desc->idProduct); in print_dev_desc()
[all …]
/Zephyr-latest/drivers/clock_control/
Dclock_control_litex.c4 * SPDX-License-Identifier: Apache-2.0
66 …* https://github.com/Digilent/Zybo-hdmi-out/blob/b991fff6e964420ae3c00c3dbee52f2ad748b3ba/sdk/disp…
213 return litex_clk_filter_table[glob_mul - 1]; in litex_clk_lookup_filter()
219 return litex_clk_lock_table[glob_mul - 1]; in litex_clk_lookup_lock()
234 int assert = (1 << (drp[reg].size * BITS_PER_BYTE)) - 1; in litex_clk_assert_reg()
251 timeout = ldev->timeout.lock; in litex_clk_wait()
253 timeout = ldev->timeout.drdy; in litex_clk_wait()
257 timeout--; in litex_clk_wait()
261 LOG_WRN("Timeout occured when waiting for the register: 0x%x", reg); in litex_clk_wait()
262 return -ETIME; in litex_clk_wait()
[all …]
/Zephyr-latest/tests/unit/cbprintf/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
96 /* We can't determine at build-time whether int is 64-bit, so assume
114 #define WRAP_FMT(_fmt) "%x" _fmt "%x"
138 /* This has to be more than 255 so we can test over-sized widths. */
158 int idx = outbuf->idx - ((outbuf->idx == outbuf->size) ? 1 : 0); in outbuf_null_terminate()
160 outbuf->buf[idx] = 0; in outbuf_null_terminate()
168 if (buf->idx < buf->size) { in out()
169 buf->buf[buf->idx++] = (char)(unsigned char)c; in out()
253 CBPRINTF_STATIC_PACKAGE(&package[PKG_ALIGN_OFFSET], _len - 1, \
256 zassert_equal(st_pkg_rv, -ENOSPC); \
[all …]
/Zephyr-latest/scripts/gitlint/
Dzephyr_commit_rules.py1 # SPDX-License-Identifier: Apache-2.0
4 The classes below are examples of user-defined CommitRules. Commit rules are gitlint rules that
22 name = "body-min-line-count"
24 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule).
28 … options_spec = [IntOption('min-line-count', 1, "Minimum body line count excluding Signed-off-by")]
31 …filtered = [x for x in commit.message.body if not x.lower().startswith("signed-off-by") and x != '…
33 min_line_count = self.options['min-line-count'].value
40 name = "body-max-line-count"
42 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule).
46 options_spec = [IntOption('max-line-count', 200, "Maximum body line count")]
[all …]
/Zephyr-latest/boards/m5stack/m5stack_core2/
Dm5stack_core2_procpu.dts4 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
9 #include "m5stack_core2-pinctrl.dtsi"
12 #include <zephyr/dt-bindings/display/ili9xxx.h>
13 #include <zephyr/dt-bindings/regulator/axp192.h>
21 pwr-led = &pwr_led;
22 uart-0 = &uart0;
23 i2c-0 = &i2c0;
33 zephyr,shell-uart = &uart0;
36 zephyr,code-partition = &slot0_partition;
[all …]

12345678910>>...15