Home
last modified time | relevance | path

Searched +full:power +full:- +full:role (Results 1 – 25 of 95) sorted by relevance

1234

/Zephyr-latest/samples/subsys/usb_c/sink/
DREADME.rst1 .. zephyr:code-sample:: usb-c-sink
2 :name: Basic USB-C Sink
3 :relevant-api: _usbc_device_api
5 Implement a USB-C Power Delivery application in the form of a USB-C Sink.
10 This example demonstrates how to create a USB-C Power Delivery application and
11 how to generate USB VIF policies in XML format using the USB-C subsystem. The
12 application implements a USB-C Sink device.
14 After the USB-C Sink device is plugged into a Power Delivery charger, it
16 Power Delivery Objects (PDOs) provided by the charger.
18 .. _usb-c-sink-sample-requirements:
[all …]
/Zephyr-latest/dts/bindings/usb-c/
Dusb-c-connector.yaml2 # SPDX-License-Identifier: Apache-2.0
5 A USB Type-C connector node represents a physical USB Type-C connector.
6 It should be a child of a USB-C interface controller or a separate node
7 when it is attached to both MUX and USB-C interface controller.
10 …/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/connector/usb-connector.yaml?h=v5.1…
14 USB-C connector attached to a STM32 UCPD typec port controller, which has
15 power delivery support and enables SINK.
18 compatible = "zephyr,usb-c-vbus-adc";
19 io-channels = <&adc2 8>;
20 output-ohms = <49900>;
[all …]
/Zephyr-latest/include/zephyr/usb_c/
Dtcpci.h3 * SPDX-License-Identifier: Apache-2.0
15 * Registers and fields are compliant to the Type-C Port Controller Interface
19 /** Register address - vendor id */
22 /** Register address - product id */
25 /** Register address - version of TCPC */
28 /** Register address - USB TypeC version */
30 /** Mask for major part of type-c release supported */
32 /** Macro to extract the major part of type-c release supported */
34 /** Mask for minor part of type-c release supported */
36 /** Macro to extract the minor part of type-c release supported */
[all …]
Dusbc.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB-C Device APIs
10 * This file contains the USB-C Device APIs.
26 * @brief USB-C Device APIs
27 * @defgroup _usbc_device_api USB-C Device API
56 /** Request Type-C layer to transition to Disabled State */
58 /** Request Type-C layer to transition to Error Recovery State */
60 /** End of Type-C requests */
63 /** Request Policy Engine layer to perform a Data Role Swap */
81 * minimum power
[all …]
/Zephyr-latest/subsys/bluetooth/
DKconfig5 # SPDX-License-Identifier: Apache-2.0
9 # Some BT threads use co-op priorities to implement critical sections,
25 bool "HCI-based"
27 HCI-based stack with optional host & controller parts and an
33 Select a custom, non-HCI based stack. If you're not sure what
34 this is, you probably want the HCI-based stack instead.
41 range -256 -1
71 bool "Peripheral Role support"
76 Select this for LE Peripheral role support.
79 bool "Central Role support"
[all …]
/Zephyr-latest/scripts/generate_usb_vif/constants/
Ddt_constants.py4 # SPDX-License-Identifier: Apache-2.0
8 SINK_PDOS = "sink-pdos"
9 PD_DISABLE = "pd-disable"
10 POWER_ROLE = "power-role"
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_tc.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB Type-C Cable and Connector API used for USB-C drivers
10 * The information in this file was taken from the USB Type-C
18 * @brief USB Type-C
19 * @defgroup usb_type_c USB Type-C
32 * See Table 4-3 VBUS Sink Characteristics
38 * See Table 4-3 VBUS Sink Characteristics
45 * See Table 4-29 VBUS and VCONN Timing Parameters
52 * See Table 4-29 VBUS and VCONN Timing Parameters
58 * See Table 4-29 VBUS and VCONN Timing Parameters
[all …]
Dusbc_pd.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB-C Power Delivery API used for USB-C drivers
18 * @brief USB Power Delivery
19 * @defgroup usb_power_delivery USB Power Delivery
31 * @brief Maximum length of a non-Extended Message in bytes.
32 * See Table 6-75 Value Parameters
39 * See Table 6-75 Value Parameters
51 * See Table 6-75 Value Parameters
57 * @name USB PD 3.1 Rev 1.6, Table 6-70 Counter Parameters
63 * Messages which have been sent by a Source at power up or after a
[all …]
Dusbc_ppc.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB Type-C Power Path Controller device API
23 /** Type of event being notified by Power Path Controller */
25 /** Exit from dead-battery mode failed */
28 /** Overvoltage detected while being in a source role */
30 /** Reverse current detected while being in a source role */
32 /** Overcurrent detected while being in a source role */
34 /** VBUS short detected while being in a source role */
42 /** Reverse current detected while being in a sink role */
44 /** VBUS short detected while being in a sink role */
[all …]
Dusbc_tcpc.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USBC Type-C Port Controller device APIs
10 * This file contains the USB Type-C Port Controller device APIs.
11 * All Type-C Port Controller device drivers should implement the
19 * @brief USB Type-C Port Controller API
20 * @defgroup usb_type_c_port_controller_api USB Type-C Port Controller API
44 /** Power status changed */
59 /** A high-voltage alarm has occurred */
61 /** A low-voltage alarm has occurred */
88 /** The Power Status register */
[all …]
/Zephyr-latest/samples/subsys/usb_c/sink/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
37 /* Power Supply Ready flag */
51 * - Maximum operating current 100mA
52 * - Operating current is 100mA
53 * - Unchunked Extended Messages Not Supported
54 * - No USB Suspend
55 * - Not USB Communications Capable
56 * - No capability mismatch
57 * - Does not Giveback
58 * - Select object position 1 (5V Power Data Object (PDO))
[all …]
/Zephyr-latest/samples/subsys/usb_c/source/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
20 /* A Source power role evauates to 1. See usbc_tc.h: TC_ROLE_SOURCE */
44 /** True if power supply is ready */
46 /** True if power supply should transition to a new level */
91 *rp = dpm_data->rp; in port0_policy_cb_get_src_rp()
98 * Power Supply
114 dpm_data->vconn_pol = pol; in port0_policy_cb_vconn_en()
139 *pdos = dpm_data->src_caps; in port0_policy_cb_get_src_caps()
140 *num_pdos = dpm_data->src_cap_cnt; in port0_policy_cb_get_src_caps()
156 dpm_data->sink_request.raw_value = request_msg; in port0_policy_cb_check_sink_request()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_vendor.h2 * Copyright (c) 2018-2019 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
21 /* Active connection in peripheral role with extended scanning on 1M and Coded
26 /* Active connection in peripheral role with extended scanning on 1M only,
32 /* Active connection in peripheral role with legacy scanning on 1M.
37 /* Active connection in peripheral role with additional advertising state.
42 /* Worst-case time margin needed after event end-time in the air
43 * (done/preempt race margin + power-down/chain delay)
50 /* Inter-Event Space (IES) */
73 /* Sub-microsecond conversion macros. With current timer resolution of ~30 us
[all …]
/Zephyr-latest/subsys/usb/usb_c/
Dusbc_pe_common_internal.h4 * SPDX-License-Identifier: Apache-2.0
18 * @brief Used in sub-machines for message transmit and receive operation
21 /* Wait for a message transmission sub-machine state */
23 /* Wait for a message reception sub-machine state */
28 * @brief Used in sub-machines for message source hard reset operation
31 /* Start the hard-reset sub-machine state */
33 /* Wait for hard-reset to complete sub-machine state */
151 * If this flag is not set the AMS is non-interruptible. This flag must
155 /** Flag to trigger sending a Data Role Swap */
170 * Data Role Swap
[all …]
/Zephyr-latest/dts/bindings/ppc/
Dnxp,nx20p3483.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: NXP NX20P3483 Power path controller chip
8 include: [base.yaml, i2c-device.yaml]
11 irq-gpios:
12 type: phandle-array
15 snk-ovp:
19 Sink high-voltage overvoltage protection threshold in millivolts.
22 src-hv:
25 If set, source role will use high-voltage path instead of 5V.
27 src-hv-ocp:
[all …]
/Zephyr-latest/include/zephyr/dt-bindings/usb-c/
Dpd.h3 * SPDX-License-Identifier: Apache-2.0
6 * https://github.com/torvalds/linux/blob/v5.19/include/dt-bindings/usb/pd.h
11 /* Power delivery Power Data Object definitions */
26 #define PDO_FIXED_DUAL_ROLE (1 << 29) /* Power role swap supported */
31 #define PDO_FIXED_DATA_SWAP (1 << 25) /* Data role swap supported */
70 #define PDO_APDO_TYPE_SHIFT 28 /* Only valid value currently is 0x0 - PPS */
/Zephyr-latest/samples/subsys/usb_c/sink/boards/
Dstm32g081b_eval.overlay4 * SPDX-License-Identifier: Apache-2.0
8 #include <dt-bindings/usb-c/pd.h>
12 usbc-port0 = &port1;
16 compatible = "zephyr,usb-c-vbus-adc";
17 io-channels = <&adc1 9>;
18 output-ohms = <49900>;
19 full-ohms = <(330000 + 49900)>;
22 discharge-gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
26 #address-cells = <1>;
27 #size-cells = <0>;
[all …]
Db_g474e_dpow1.overlay4 * SPDX-License-Identifier: Apache-2.0
8 #include <dt-bindings/usb-c/pd.h>
12 usbc-port0 = &port1;
15 /* usbc.rst vbus-voltage-divider-adc start */
17 compatible = "zephyr,usb-c-vbus-adc";
18 io-channels = <&adc2 8>;
19 output-ohms = <49900>;
20 full-ohms = <(330000 + 49900)>;
22 /* usbc.rst vbus-voltage-divider-adc end */
25 #address-cells = <1>;
[all …]
Dnumaker_m2l31ki.overlay1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <dt-bindings/usb-c/pd.h>
7 usbc-port0 = &port0;
11 #address-cells = <1>;
12 #size-cells = <0>;
14 port0: usbc-port@0 {
15 compatible = "usb-c-connector";
20 power-role = "sink";
21 sink-pdos = <PDO_FIXED(5000, 100, 0)>;
30 digital-path-disable;
[all …]
/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_stm32_priv.h4 * SPDX-License-Identifier: Apache-2.0
17 * @brief The packet type(SOP*) consists of 2-bytes
22 * @brief The message header consists of 2-bytes
98 #define UCPD_ANASUB_TO_RP(r) ((r - 1) & 0x3)
138 /* Request to send a power delivery message */
142 /* Transmission of power delivery message failed */
144 /* Transmission of power delivery message was discarded */
146 /* Transmission of power delivery message was successful */
154 /* A power delivery message was received */
166 /* Power Role */
[all …]
/Zephyr-latest/dts/bindings/i2c/
Dnordic,nrf-twis.yaml2 # SPDX-License-Identifier: Apache-2.0
8 peripheral role, and EasyDMA. TWIS shares resources with TWIM and TWI,
21 bias-pull-up;
29 low-power-enable;
35 compatible = "nordic,nrf-twis";
36 pinctrl-0 = <&i2c2_default>;
37 pinctrl-1 = <&i2c2_sleep>;
38 pinctrl-names = "default", "sleep";
42 compatible: "nordic,nrf-twis"
45 - "nordic,nrf-twi-common.yaml"
[all …]
/Zephyr-latest/samples/subsys/usb_c/source/boards/
Dstm32g081b_eval.overlay4 * SPDX-License-Identifier: Apache-2.0
8 #include <dt-bindings/usb-c/pd.h>
12 usbc-port0 = &port1;
16 compatible = "pwm-leds";
24 compatible = "gpio-leds";
51 /* usbc.rst vbus-voltage-divider-adc start */
53 compatible = "zephyr,usb-c-vbus-adc";
54 io-channels = <&adc1 9>;
55 output-ohms = <49900>;
56 full-ohms = <(330000 + 49900)>;
[all …]
/Zephyr-latest/subsys/bluetooth/host/shell/
Dcs.c9 * SPDX-License-Identifier: Apache-2.0
38 return -EINVAL; in check_cs_sync_antenna_selection_input()
50 return -ENOEXEC; in cmd_read_remote_supported_capabilities()
57 return -ENOEXEC; in cmd_read_remote_supported_capabilities()
72 return -ENOEXEC; in cmd_set_default_settings()
78 shell_error(sh, "Could not parse input 1, Enable initiator role"); in cmd_set_default_settings()
85 shell_error(sh, "Could not parse input 2, Enable reflector role"); in cmd_set_default_settings()
106 shell_error(sh, "Could not parse input 4, Max TX power"); in cmd_set_default_settings()
116 return -ENOEXEC; in cmd_set_default_settings()
128 return -ENOEXEC; in cmd_read_remote_fae_table()
[all …]
/Zephyr-latest/boards/st/stm32g071b_disco/doc/
Dindex.rst5 The STM32G071B-DISCO Discovery board is a demonstration and development platform
6 for the STMicroelectronics Arm® Cortex® -M0+ core-based STM32G071RB USB Type-C™
7 and Power Delivery microcontroller. The STM32G071B-DISCO Discovery board is
9 interoperability with other USB Type-C™ devices. The STM32G071B-DISCO Discovery
10 board is intended for discovery and display of USB Type-C™ port characteristics
11 such as data role, power role, VBUS and IBUS monitoring. It offers an advanced
13 as a USB Type-C™ and Power Delivery analyzer.
15 - STM32G071RBT6 microcontroller featuring 128 Kbytes of Flash memory and
17 - Plastic case
18 - 1” 128 x 64 pixels OLED LCD module with SPI interface
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Dcs.h8 * SPDX-License-Identifier: Apache-2.0
67 /** Enable CS initiator role. */
69 /** Enable CS reflector role. */
74 /** Maximum output power (Effective Isotropic Radiated Power) to be used
112 /** Applicable for mode-2 and mode-3 only:
115 * - @ref BT_LE_CS_TEST_OVERRIDE_3_NO_TONE_EXT
116 * - @ref BT_LE_CS_TEST_OVERRIDE_3_INITIATOR_TONE_EXT_ONLY
117 * - @ref BT_LE_CS_TEST_OVERRIDE_3_REFLECTOR_TONE_EXT_ONLY
118 * - @ref BT_LE_CS_TEST_OVERRIDE_3_INITIATOR_AND_REFLECTOR_TONE_EXT
132 * +--------------------------------+------------------------------------------+
[all …]

1234