Home
last modified time | relevance | path

Searched +full:current +full:- +full:limit (Results 1 – 25 of 146) sorted by relevance

123456

/Zephyr-Core-3.5.0/dts/bindings/regulator/
Dregulator.yaml1 # Copyright 2019-2020, Peter Bigot Consulting, LLC
3 # SPDX-License-Identifier: Apache-2.0
6 Voltage/Current Regulators
14 regulator-name:
18 regulator-init-microvolt:
22 regulator-min-microvolt:
26 regulator-max-microvolt:
30 regulator-microvolt-offset:
34 regulator-min-microamp:
36 description: smallest current consumers may set
[all …]
Dnxp,pca9420.yaml2 # SPDX -License-Identifier: Apache-2.0
34 nxp,enable-modesel-pins:
40 nxp,vin-ilim-microamp:
44 - 85000
45 - 255000
46 - 425000
47 - 595000
48 - 765000
49 - 935000
50 - 1105000
[all …]
Dadi,adp5360-regulator.yaml2 # SPDX -License-Identifier: Apache-2.0
7 The PMIC has one buck converter and one buck-boost converter. Both need to be
16 compatible = "adi,adp5360-regulator";
27 compatible: "adi,adp5360-regulator"
31 child-binding:
33 - name: regulator.yaml
34 property-allowlist:
35 - regulator-always-on
36 - regulator-boot-on
37 - regulator-init-microvolt
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/led/
Dis31fl3733.h4 * SPDX-License-Identifier: Apache-2.0
14 * flicker-free display updates, or power saving.
23 * @brief Sets led current limit
25 * Sets the current limit for the LED driver. This is a separate value
26 * from per-led brightness, and applies to all LEDs.
27 * This value sets the output current limit according
28 * to the following formula: (840/R_ISET) * (limit/256)
31 * @param limit: current limit to apply
34 int is31fl3733_current_limit(const struct device *dev, uint8_t limit);
/Zephyr-Core-3.5.0/dts/bindings/led/
Dissi,is31fl3733.yaml2 # SPDX-License-Identifier: Apache-2.0
7 include: "i2c-device.yaml"
10 sdb-gpios:
11 type: phandle-array
17 current-limit:
21 Global current limit. Sets the global current control register of LED
22 driver (set table 14). Limits global current based on the following
23 formula: (840/R_ISET) * (current-limit/256). Defaults to max value
27 sync-mode:
31 - "none"
[all …]
/Zephyr-Core-3.5.0/dts/bindings/sensor/
Dnordic,npm1300-charger.yaml4 # SPDX-License-Identifier: Apache-2.0
9 compatible: "nordic,npm1300-charger"
11 include: [sensor-device.yaml]
14 term-microvolt:
21 term-warm-microvolt:
26 If omitted, the term-microvolt value will be used.
28 current-microamp:
32 Charge current in uA.
36 dischg-limit-microamp:
40 Discharge current limit in uA.
[all …]
Dti,ina230.yaml5 # SPDX-License-Identifier: Apache-2.0
9 TI INA230 and INA231 Bidirectional Current and Power Monitor.
10 The <zephyr/dt-bindings/sensor/ina230.h> file should be included in the
16 include: ti,ina23x-common.yaml
28 alert-config:
30 description: Diag alert register, default matches the power-on reset value
32 adc-mode:
36 Default is the power-on reset value.
39 - "Shutdown single shot"
40 - "Shunt Voltage single shot"
[all …]
/Zephyr-Core-3.5.0/samples/drivers/led_is31fl3733/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
119 printk("Error- LED device is not ready\n"); in main()
137 /* Select lower current limt */ in main()
138 printk("Restarting sample with lower current limit\n"); in main()
142 printk("Could not set LED current limit (%d)\n", ret); in main()
146 /* Select higher current limt */ in main()
147 printk("Restarting sample with higher current limit\n"); in main()
151 printk("Could not set LED current limit (%d)\n", ret); in main()
/Zephyr-Core-3.5.0/drivers/led/
Dis31fl3733.c2 * Copyright 2022-2023 Daniel DeGrasse <daniel@degrasse.com>
4 * SPDX-License-Identifier: Apache-2.0
36 #define GLOBAL_CURRENT_CTRL_REG 0x1 /* global current control register */
70 const struct is31fl3733_config *config = dev->config; in is31fl3733_select_page()
71 struct is31fl3733_data *data = dev->data; in is31fl3733_select_page()
74 if (data->selected_page == page) { in is31fl3733_select_page()
80 ret = i2c_reg_write_byte_dt(&config->bus, CMD_LOCK_REG, CMD_LOCK_UNLOCK); in is31fl3733_select_page()
87 ret = i2c_reg_write_byte_dt(&config->bus, CMD_SEL_REG, page); in is31fl3733_select_page()
92 data->selected_page = page; in is31fl3733_select_page()
99 const struct is31fl3733_config *config = dev->config; in is31fl3733_led_set_brightness()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dsem.h4 * SPDX-License-Identifier: Apache-2.0
37 int limit; member
66 .limit = _count_limit \
90 * @param limit Maximum permitted semaphore count.
93 * @retval -EINVAL Bad parameters, the value of limit should be located in
94 * (0, INT_MAX] and initial_count shouldn't be greater than limit.
97 unsigned int limit);
108 * @retval -EINVAL Parameter address not recognized.
109 * @retval -EACCES Caller does not have enough access.
110 * @retval -EAGAIN Count reached Maximum permitted count and try again.
[all …]
/Zephyr-Core-3.5.0/dts/bindings/i2c/
Datmel,sam-i2c-twim.yaml1 # Copyright (c) 2020-2023 Gerson Fernando Budke <nandojve@gmail.com>
2 # SPDX-License-Identifier: Apache-2.0
7 The Atmel Two-wire Master Interface (TWIM) interconnects components on a
8 unique two-wire bus, made up of one clock line and one data line with speeds
9 of up to 3.4 Mbit/s, based on a byte-oriented transfer format. The TWIM is
20 std-clk-slew-lim = <0>;
21 std-clk-strength-low = "0.5";
22 std-data-slew-lim = <0>;
23 std-data-strength-low = "0.5";
25 hs-clk-slew-lim = <0>;
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/usb/
Dusb_bc12.h4 * SPDX-License-Identifier: Apache-2.0
28 /* FIXME - make these Kconfig options */
38 * BC1.2 USB charger minimum current. Set to match the Isusp of 2.5 mA parameter.
42 * The application may increase the current draw after determing the USB device
49 /** BC1.2 USB charger maximum current. */
55 * @brief Helper macro for setting a BC1.2 current limit
57 * @param val Current limit value, in uA.
58 * @return A valid BC1.2 current limit, in uA, clamped between the BC1.2 minimum
92 * @param bc12_role Current role of the BC1.2 device.
94 * @param current_ma Current, in uA, that the charging partner provides. Valid when bc12_role is
[all …]
/Zephyr-Core-3.5.0/scripts/utils/
Dgen_util_macros.py3 - Z_LISTIFY
4 - Z_UTIL_INC
5 - Z_UTIL_DEC
6 - Z_UTIL_X2
7 - Z_IS_EQ
10 The script will simply create the header files in the current working directory,
15 python $ZEPHYR_BASE/scripts/utils/gen_util_macros.py -l 4095
18 SPDX-License-Identifier: Apache-2.0
35 def gen_util_listify(limit:int):
52 for i in range(2, limit + 3):
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/
Dregulator.h2 * Copyright (c) 2019-2020 Peter Bigot Consulting, LLC
6 * SPDX-License-Identifier: Apache-2.0
50 /** Current is too high. */
64 /** @brief Driver-specific API functions to support parent regulator control. */
90 /** @brief Driver-specific API functions to support regulator control. */
134 /** Minimum allowed current, in microamps. */
136 /** Maximum allowed current, in microamps. */
214 * - Automatically enable the regulator if it is set to `regulator-boot-on`
215 * or `regulator-always-on` and increase its usage count.
216 * - Configure the regulator mode if `regulator-initial-mode` is set.
[all …]
/Zephyr-Core-3.5.0/samples/net/sockets/big_http_download/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
10 …default "http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/hd-medi…
19 int "Limit number of iterations"
22 Number of download iterations (0 - unlimited).
/Zephyr-Core-3.5.0/subsys/shell/backends/
DKconfig.backends4 # SPDX-License-Identifier: Apache-2.0
15 DT_CHOSEN_Z_SHELL_UART := zephyr,shell-uart
87 default-timeout = 100
90 default-size = 512
94 prompt "Initial log level limit"
98 bool "System limit (LOG_MAX_LEVEL)"
150 Select index of up-buffer used for shell output, by default it uses
151 terminal up-buffer and its settings.
160 default-timeout = 100
163 default-size = 512
[all …]
/Zephyr-Core-3.5.0/boards/shields/npm1300_ek/
Dnpm1300_ek.overlay3 * SPDX-License-Identifier: Apache-2.0
6 #include <dt-bindings/regulator/npm1300.h>
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 npm1300_ek_gpio: gpio-controller {
15 compatible = "nordic,npm1300-gpio";
16 gpio-controller;
17 #gpio-cells = <2>;
22 compatible = "nordic,npm1300-regulator";
26 regulator-min-microvolt = <1800000>;
27 regulator-max-microvolt = <3300000>;
[all …]
/Zephyr-Core-3.5.0/arch/xtensa/core/include/
Dxtensa_backtrace.h4 * SPDX-License-Identifier: Apache-2.0
25 * within a single stack. The next_pc represents the PC of the current
26 * frame's caller, thus a next_pc of 0 indicates that the current frame
33 uint32_t pc; /* PC of the current frame */
34 uint32_t sp; /* SP of the current frame */
35 uint32_t next_pc; /* PC of the current frame's caller */
39 * Get the first frame of the current stack's backtrace
42 * (B -> A -> X -> esp_backtrace_get_start),
44 * - Flush CPU registers and window frames onto the current stack
45 * - Return PC and SP of function A (i.e. start of the stack's backtrace)
[all …]
/Zephyr-Core-3.5.0/drivers/sensor/npm1300_charger/
Dnpm1300_charger.c3 * SPDX-License-Identifier: Apache-2.0
35 uint16_t current; member
112 /* Linear range for charger current */
115 /* Linear range for Discharge limit */
118 /* Linear range for vbusin current limit */
126 float log_result = log((1024.f / (float)code) - 1); in calc_temp()
127 float inv_temp_k = (1.f / 298.15f) - (log_result / (float)config->thermistor_beta); in calc_temp()
129 float temp = (1.f / inv_temp_k) - 273.15f; in calc_temp()
131 valp->val1 = (int32_t)temp; in calc_temp()
132 valp->val2 = (int32_t)(fmodf(temp, 1.f) * 1000000.f); in calc_temp()
[all …]
/Zephyr-Core-3.5.0/arch/arm64/core/
Dswitch.S4 * SPDX-License-Identifier: Apache-2.0
8 * Thread context switching for ARM64 Cortex-A (AArch64)
11 * on ARM64 Cortex-A (AArch64)
36 /* Save the current SP_EL0 */
51 /* Save the current SP_ELx and return address */
55 /* save current thread's exception depth */
69 * depth value, and before old->switch_handle is updated (making
72 stp x0, x1, [sp, #-16]!
112 /* arch_curr_cpu()->arch.current_stack_limit = thread->arch.stack_limit */
119 str lr, [sp, #-16]!
[all …]
/Zephyr-Core-3.5.0/samples/drivers/led_is31fl3733/
DREADME.rst1 .. zephyr:code-sample:: is31fl3733
3 :relevant-api: led_interface
13 - Set all LEDs to full brightness with :c:func:`led_write_channels` API
14 - Disable upper quadrant of LED array with :c:func:`led_write_channels` API
15 - Dim each LED in sequence using :c:func:`led_set_brightness` API
16 - Toggle each LED in sequency using :c:func:`led_on` and :c:func:`led_of` APIs
17 - Toggle between low or high current limit using :c:func:`is31fl3733_current_limit`
25 - :kconfig:option:`CONFIG_LED_ROW_COUNT`
26 - :kconfig:option:`CONFIG_LED_COLUMN_COUNT`
/Zephyr-Core-3.5.0/subsys/net/lib/sntp/
Dsntp_simple.c4 * SPDX-License-Identifier: Apache-2.0
34 res = sntp_init(&sntp_ctx, addr->ai_addr, addr->ai_addrlen); in sntp_simple()
45 /* Timeout for current iteration */ in sntp_simple()
51 if (res != -ETIMEDOUT) { in sntp_simple()
55 /* Exponential backoff with limit */ in sntp_simple()
/Zephyr-Core-3.5.0/include/zephyr/sd/
Dsd_spec.h4 * SPDX-License-Identifier: Apache-2.0
66 * to inform the SD card the next command is an application-specific one.
84 /* Bits 0-2 reserved */
96 /* Bits 17-18 reserved */
131 * @brief SD current state values
133 * SD current state values, contained in R1 response data.
181 #define SD_SPI_CMD_BODY_SIZE (SD_SPI_CMD_SIZE - 1)
268 /*!< VDD 2.7-2.8 */
270 /*!< VDD 2.8-2.9 */
272 /*!< VDD 2.9-3.0 */
[all …]
/Zephyr-Core-3.5.0/doc/hardware/peripherals/
Dbc12.rst8 devices to draw current exceeding the USB 2.0 specification limit of 0.5A, 2.5W.
12 sinks current from the USB connection.
15 should not be confused with the USB-C Power Delivery, which also uses the
19 charger capability on USB type C ports when the attached type-C partner does not
27 Allowed PD (portable device) Current Draw from Charging Port IDEV_CHG 1.5 A
28 Charging Downstream Port Rated Current ICDP 1.5 - 5.0 A
29 Maximum Configured Current when connected to a SDP ICFG_MAX 500 mA
30 Dedicated Charging Port Rated Current IDCP 1.5 - 5.0 A
31 Suspend current ISUSP 2.5 mA
32 Unit load current IUNIT 100 mA
[all …]
/Zephyr-Core-3.5.0/subsys/sd/
Dsdmmc.c4 * SPDX-License-Identifier: Apache-2.0
26 scr->flags = 0U; in sdmmc_decode_scr()
27 scr->scr_structure = (uint8_t)((raw_scr[0U] & 0xF0000000U) >> 28U); in sdmmc_decode_scr()
28 scr->sd_spec = (uint8_t)((raw_scr[0U] & 0xF000000U) >> 24U); in sdmmc_decode_scr()
30 scr->flags |= SD_SCR_DATA_STATUS_AFTER_ERASE; in sdmmc_decode_scr()
32 scr->sd_sec = (uint8_t)((raw_scr[0U] & 0x700000U) >> 20U); in sdmmc_decode_scr()
33 scr->sd_width = (uint8_t)((raw_scr[0U] & 0xF0000U) >> 16U); in sdmmc_decode_scr()
35 scr->flags |= SD_SCR_SPEC3; in sdmmc_decode_scr()
37 scr->sd_ext_sec = (uint8_t)((raw_scr[0U] & 0x7800U) >> 10U); in sdmmc_decode_scr()
38 scr->cmd_support = (uint8_t)(raw_scr[0U] & 0x3U); in sdmmc_decode_scr()
[all …]

123456