/Zephyr-latest/include/zephyr/dt-bindings/usb-c/ |
D | nxp_nx20p3483.h | 3 * SPDX-License-Identifier: Apache-2.0 14 /** Voltage limit of 6.0V */ 16 /** Voltage limit of 6.8V */ 17 #define NX20P3483_U_THRESHOLD_6_8 1 /* <-- default */ 18 /** Voltage limit of 10.0V */ 20 /** Voltage limit of 11.5V */ 22 /** Voltage limit of 14.0V */ 24 /** Voltage limit of 17.0V */ 26 /** Voltage limit of 23.0V */ 29 /** Current limit of 400mA */ [all …]
|
/Zephyr-latest/dts/bindings/regulator/ |
D | regulator.yaml | 1 # 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-init-microamp: 36 description: Current set during initialisation [all …]
|
D | nxp,pca9420.yaml | 2 # 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 …]
|
/Zephyr-latest/include/zephyr/drivers/led/ |
D | is31fl3733.h | 4 * 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-latest/dts/bindings/led/ |
D | issi,is31fl3733.yaml | 2 # 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 …]
|
D | issi,is31fl3194.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 IS31FL3194 3-channel LED driver with programmable pattern sequencing 7 This driver supports single-channel and RGB LEDs. For single channel LEDs, 11 by the color-mapping property. 23 color-mapping = 30 The following example defines three single-channel LEDs in the is31fl3194 DT node: 38 color-mapping = <LED_COLOR_ID_RED>; 43 color-mapping = <LED_COLOR_ID_GREEN>; 48 color-mapping = <LED_COLOR_ID_BLUE>; 55 include: ["i2c-device.yaml", "led-controller.yaml"] [all …]
|
/Zephyr-latest/dts/bindings/sensor/ |
D | nordic,npm1300-charger.yaml | 4 # 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 - 200000 [all …]
|
D | ti,ina230.yaml | 5 # SPDX-License-Identifier: Apache-2.0 9 TI INA230, INA231 and INA236 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-latest/include/zephyr/drivers/ |
D | regulator.h | 2 * Copyright (c) 2019-2020 Peter Bigot Consulting, LLC 7 * SPDX-License-Identifier: Apache-2.0 53 /** Current is too high. */ 67 /** @brief Driver-specific API functions to support parent regulator control. */ 100 /** @brief Driver-specific API functions to support regulator control. */ 166 /** Minimum allowed current, in microamps. */ 168 /** Maximum allowed current, in microamps. */ 170 /** Initial current, in microamps. */ 261 * - Automatically enable the regulator if it is set to `regulator-boot-on` 262 * or `regulator-always-on` and increase its usage count. [all …]
|
/Zephyr-latest/samples/drivers/led/is31fl3733/src/ |
D | main.c | 4 * 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-latest/drivers/led/ |
D | is31fl3733.c | 2 * 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-latest/dts/bindings/i2c/ |
D | atmel,sam-i2c-twim.yaml | 1 # 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-latest/include/zephyr/drivers/usb/ |
D | usb_bc12.h | 4 * 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 determining 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-latest/scripts/utils/ |
D | gen_util_macros.py | 3 - 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-latest/dts/bindings/power/ |
D | st,stm32wb0-pwr.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "st,stm32wb0-pwr" 8 include: "st,stm32-pwr.yaml" 11 smps-mode: 18 - SMPS converter disabled 19 - LDOs supply voltage: VDD 29 - SMPS converter enabled - clock disabled 30 - LDOs supply voltage: VDD (though SMPS) 31 - Current supplied to LDOs can be limited 35 - SMPS converter enabled - clock enabled [all …]
|
/Zephyr-latest/dts/bindings/battery/ |
D | battery.yaml | 2 # SPDX-License-Identifier: Apache-2.0 11 device-chemistry: 14 The "lithium-ion" value is a blanket type for all lithium-ion batteries. 16 the precise "lithium-ion-X" options. 18 - "nickel-cadmium" 19 - "nickel-metal-hydride" 20 - "lithium-ion" 21 - "lithium-ion-polymer" 22 - "lithium-ion-iron-phosphate" 23 - "lithium-ion-manganese-oxide" [all …]
|
/Zephyr-latest/samples/net/sockets/big_http_download/ |
D | Kconfig | 4 # 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-latest/include/zephyr/sys/ |
D | sem.h | 4 * SPDX-License-Identifier: Apache-2.0 38 int limit; member 67 .limit = _count_limit \ 91 * @param limit Maximum permitted semaphore count. 94 * @retval -EINVAL Bad parameters, the value of limit should be located in 95 * (0, INT_MAX] and initial_count shouldn't be greater than limit. 98 unsigned int limit); 109 * @retval -EINVAL Parameter address not recognized. 110 * @retval -EACCES Caller does not have enough access. 111 * @retval -EAGAIN Count reached Maximum permitted count and try again. [all …]
|
/Zephyr-latest/dts/bindings/charger/ |
D | maxim,max20335-charger.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 compatible: "maxim,max20335-charger" 11 constant-charge-voltage-max-microvolt: 14 - 4050000 15 - 4100000 16 - 4150000 17 - 4200000 18 - 4250000 19 - 4300000 20 - 4350000 [all …]
|
/Zephyr-latest/tests/drivers/build_all/charger/ |
D | i2c.dtsi | 3 * SPDX-License-Identifier: Apache-2.0 15 constant-charge-current-max-microamp = <1000000>; 16 constant-charge-voltage-max-microvolt = <4208000>; 18 ce-gpios = <&test_gpio 0 0>; 27 compatible = "maxim,max20335-charger"; 29 chgin-to-sys-current-limit-microamp = <100000>; 30 constant-charge-voltage-max-microvolt = <4050000>; 31 system-voltage-min-threshold-microvolt = <3600000>; 32 re-charge-threshold-microvolt = <170000>; 33 thermistor-monitoring-mode = "JEITA-2"; [all …]
|
/Zephyr-latest/boards/shields/npm1300_ek/ |
D | npm1300_ek.overlay | 3 * 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 = <1000000>; 27 regulator-max-microvolt = <3300000>; [all …]
|
/Zephyr-latest/drivers/sensor/nordic/npm1300_charger/ |
D | npm1300_charger.c | 3 * SPDX-License-Identifier: Apache-2.0 37 uint16_t current; member 143 /* Linear range for charger current */ 146 /* Allowed values for discharge limit */ 149 /* Linear range for vbusin current limit */ 157 float log_result = log((1024.f / (float)code) - 1); in calc_temp() 158 float inv_temp_k = (1.f / 298.15f) - (log_result / (float)config->thermistor_beta); in calc_temp() 160 float temp = (1.f / inv_temp_k) - 273.15f; in calc_temp() 162 valp->val1 = (int32_t)temp; in calc_temp() 163 valp->val2 = (int32_t)(fmodf(temp, 1.f) * 1000000.f); in calc_temp() [all …]
|
/Zephyr-latest/dts/bindings/gpio/ |
D | adi,max14916-gpio.yaml | 3 # SPDX-License-Identifier: Apache-2.0 7 compatible: "adi,max14916-gpio" 10 "#gpio-cells": 17 drdy-gpios: 19 High-Side Open-Drain Output. READY is passive low when the internal 22 type: phandle-array 23 fault-gpios: 27 type: phandle-array 28 sync-gpios: 31 type: phandle-array [all …]
|
/Zephyr-latest/boards/nordic/nrf9131ek/ |
D | nrf9131ek_nrf9131_common.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 6 #include "nrf9131ek_nrf9131_common-pinctrl.dtsi" 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 11 compatible = "nordic,nrf9131-ek-nrf9131"; 15 zephyr,shell-uart = &uart0; 16 zephyr,uart-mcumgr = &uart0; 20 compatible = "gpio-leds"; 36 compatible = "pwm-leds"; 49 compatible = "gpio-keys"; 62 pwm-led0 = &pwm_led0; [all …]
|
/Zephyr-latest/arch/xtensa/include/ |
D | xtensa_backtrace.h | 4 * SPDX-License-Identifier: Apache-2.0 30 * within a single stack. The next_pc represents the PC of the current 31 * frame's caller, thus a next_pc of 0 indicates that the current frame 38 uint32_t pc; /* PC of the current frame */ 39 uint32_t sp; /* SP of the current frame */ 40 uint32_t next_pc; /* PC of the current frame's caller */ 44 * Get the first frame of the current stack's backtrace 47 * (B -> A -> X -> esp_backtrace_get_start), 49 * - Flush CPU registers and window frames onto the current stack 50 * - Return PC and SP of function A (i.e. start of the stack's backtrace) [all …]
|