Home
last modified time | relevance | path

Searched full:device (Results 1 – 25 of 4640) sorted by relevance

12345678910>>...186

/Zephyr-Core-3.7.0/samples/drivers/uart/native_tty/
DREADME.rst55 Device uart sent: "Hello from device uart, num 9"
56 Device uart2 received: "Hello from device uart, num 9"
57 Device uart sent: "Hello from device uart, num 8"
58 Device uart2 received: "Hello from device uart, num 8"
59 Device uart sent: "Hello from device uart, num 7"
60 Device uart2 received: "Hello from device uart, num 7"
61 Device uart sent: "Hello from device uart, num 6"
62 Device uart2 received: "Hello from device uart, num 6"
63 Device uart sent: "Hello from device uart, num 5"
64 Device uart2 received: "Hello from device uart, num 5"
[all …]
/Zephyr-Core-3.7.0/scripts/pylib/pytest-twister-harness/tests/device/
Dbinary_adapter_test.py15 from twister_harness.device.binary_adapter import (
29 @pytest.fixture(name='device')
33device = NativeSimulatorAdapter(DeviceConfig(build_dir=build_dir, type='native', base_timeout=5.0))
35 yield device
37 device.close() # to make sure all running processes are closed
42 device: NativeSimulatorAdapter, script_path: str
44 device.command = ['python3', script_path]
46 device.launch()
47 yield device
49 device.close() # to make sure all running processes are closed
[all …]
Dhardware_adapter_test.py12 from twister_harness.device.hardware_adapter import HardwareAdapter
17 @pytest.fixture(name='device')
33 def test_if_hardware_adapter_raise_exception_when_west_not_found(patched_which, device: HardwareAda…
35 device.generate_command()
39 def test_if_get_command_returns_proper_string_1(patched_which, device: HardwareAdapter) -> None:
40 device.device_config.build_dir = Path('build')
41 device.generate_command()
42 assert isinstance(device.command, list)
43 …assert device.command == ['west', 'flash', '--skip-rebuild', '--build-dir', 'build', '--runner', '…
47 def test_if_get_command_returns_proper_string_2(patched_which, device: HardwareAdapter) -> None:
[all …]
Dqemu_adapter_test.py12 from twister_harness.device.qemu_adapter import QemuAdapter
17 @pytest.fixture(name='device')
21 device = QemuAdapter(DeviceConfig(build_dir=build_dir, type='qemu', base_timeout=5.0))
23 yield device
25 device.close() # to make sure all running processes are closed
29 def test_if_generate_command_creates_proper_command(patched_which, device: QemuAdapter):
30 device.device_config.app_build_dir = Path('build_dir')
31 device.generate_command()
32 assert device.command == ['west', 'build', '-d', 'build_dir', '-t', 'run']
35 def test_if_qemu_adapter_runs_without_errors(resources, device: QemuAdapter) -> None:
[all …]
/Zephyr-Core-3.7.0/include/zephyr/pm/
Ddevice_runtime.h11 #include <zephyr/device.h>
19 * @brief Device Runtime Power Management API
20 * @defgroup subsys_pm_device_runtime Device Runtime
27 * @brief Automatically enable device runtime based on devicetree properties
30 * zephyr,pm-device-runtime-auto property in pm.yaml and z_sys_init_run_level.
32 * @param dev Device instance.
34 * @retval 0 If the device runtime PM is enabled successfully or it has not
35 * been requested for this device in devicetree.
36 * @retval -errno Other negative errno, result of enabled device runtime PM.
38 int pm_device_runtime_auto_enable(const struct device *dev);
[all …]
Ddevice.h10 #include <zephyr/device.h>
20 * @brief Device Power Management API
21 * @defgroup subsys_pm_device Device
28 struct device;
30 /** @brief Device PM flags. */
32 /** Indicate if the device is busy or not. */
34 /** Indicate if the device failed to power up. */
36 /** Indicate if the device has claimed a power domain */
39 * Indicates whether or not the device is capable of waking the system
43 /** Indicates if the device is being used as wakeup source. */
[all …]
/Zephyr-Core-3.7.0/doc/services/pm/
Ddevice_runtime.rst1 .. _pm-device-runtime:
3 Device Runtime Power Management
9 The device runtime power management (PM) framework is an active power management
12 enabled by setting :kconfig:option:`CONFIG_PM_DEVICE_RUNTIME`. In this model the device
13 driver is responsible to indicate when it needs the device and when it does not.
14 This information is used to determine when to suspend or resume a device based
17 When device runtime power management is enabled on a device, its state will be
19 not used. On the first device request, it will be resumed and so put into the
20 :c:enumerator:`PM_DEVICE_STATE_ACTIVE` state. The device will remain in this
21 state until it is no longer used. At this point, the device will be suspended
[all …]
Ddevice.rst1 Device Power Management
7 Device power management (PM) on Zephyr is a feature that enables devices to
10 selected, device drivers implementing power management will be able to take
11 advantage of the device power management subsystem.
13 Zephyr supports two methods of device power management:
15 - :ref:`Device Runtime Power Management <pm-device-runtime-pm>`
16 - :ref:`System-Managed Device Power Management <pm-device-system-pm>`
18 .. _pm-device-runtime-pm:
20 Device Runtime Power Management
23 Device runtime power management involves coordinated interaction between
[all …]
/Zephyr-Core-3.7.0/tests/subsys/shell/shell_device/
Dtestcase.yaml11 shell.device:
16 - "device@0 \\(READY\\)"
17 - "device@1 \\(READY\\)"
18 - "device@2 \\(READY\\)"
19 - "device@3 \\(READY\\)"
20 - "device@4 \\(READY\\)"
28 - "device@0 \\(READY\\)"
29 - "device@1 \\(active\\)"
30 - "device@2 \\(suspended\\)"
31 - "device@3 \\(active\\)"
[all …]
/Zephyr-Core-3.7.0/include/zephyr/
Dshared_irq.h12 #include <zephyr/device.h>
18 typedef int (*isr_t)(const struct device *dev, unsigned int irq_number);
21 typedef int (*shared_irq_register_t)(const struct device *dev,
23 const struct device *isr_dev);
24 typedef int (*shared_irq_enable_t)(const struct device *dev,
25 const struct device *isr_dev);
26 typedef int (*shared_irq_disable_t)(const struct device *dev,
27 const struct device *isr_dev);
36 * @brief Register a device ISR
37 * @param dev Pointer to device structure for SHARED_IRQ driver instance.
[all …]
Ddevice.h26 * @brief Device Model
27 * @defgroup device_model Device Model
36 * @brief Flag value used in lists of device dependencies to separate distinct
42 * @brief Flag value used in lists of device dependencies to indicate the end of
54 * @brief Type used to represent a "handle" for a device.
56 * Every @ref device has an associated handle. You can get a pointer to a
57 * @ref device from its handle and vice versa, but the handle uses less space
58 * than a pointer. The device.h API mainly uses handles to store lists of
62 * identify functionality that does not correspond to a Zephyr device, such as
70 /** @brief Flag value used to identify an unknown device. */
[all …]
/Zephyr-Core-3.7.0/drivers/usb/device/
DKconfig1 # USB device configuration options
7 bool "USB device controller drivers"
9 Enable USB device controller drivers.
14 bool "USB device controller supports high speed"
16 USB device controller supports high speed.
21 USB device controller supports remote wakeup feature.
24 bool "Designware USB Device Controller Driver"
28 Designware USB Device Controller Driver.
37 bool "USB device controller driver for Raspberry Pi Pico devices"
47 bool "USB device controller driver for STM32 devices"
[all …]
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/mesh/tests_scripts/provision/
Dpb_remote_timeout.sh10 # 2. Unprovisioned device with RPR server, provisionee
11 # 3. Unprovisioned device, provisionee
14 # 2. 1st device self provisions and provisions 2nd device over PB-Adv.
15 # 3. 3rd device enables Mesh and starts advertising unprovisioned device beacons.
16 # 4. 3rd device disables Mesh scan while still advertising. Mesh stack remains active.
17 # 5. RPR Client on 1st device requests 2nd device to perform RPR Scan for UUID of 3rd device.
18 # 6. Unprovisioned device beacon of 3rd device gets reported to RPR Client.
19 # 7. RPR Client starts Remote Provisioning procedure for 3rd device.
20 # 8. Remote provisioning timeouts of 10s is reached on RPR Server. 2nd device sends Link Report
21 # with status BT_MESH_RPR_ERR_LINK_OPEN_FAILED to 1st device, which closes provisioning link.
[all …]
Dpb_remote_client_server_same_dev.sh8 # 1. Device (prov_device_pb_remote_client_server_same_dev) provisions it self
9 # and start scanning for an upprovisioned device, and provisions the
10 # second device (prov_device_pb_remote_server_same_dev) with local RPR server.
11 # 2. The first device (prov_device_pb_remote_client_server_same_dev) execute
12 # device key refresh procedure the second device (prov_device_pb_remote_server_same_dev).
13 # 3. The first device (prov_device_pb_remote_client_server_same_dev) execute
14 # composition refresh procedure the second device (prov_device_pb_remote_server_same_dev).
15 # 4. The first device (prov_device_pb_remote_client_server_same_dev) execute
16 # address refresh procedure the second device (prov_device_pb_remote_server_same_dev).
17 # 5. The first device (prov_device_pb_remote_client_server_same_dev) execute
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/ethernet/
Deth_adin2111.h12 #include <zephyr/device.h>
19 * @brief Locks device access
21 * @param[in] dev ADIN2111 device.
22 * @param timeout Waiting period to lock the device,
26 * @retval 0 Device locked.
30 int eth_adin2111_lock(const struct device *dev, k_timeout_t timeout);
33 * @brief Unlocks device access
35 * @param[in] dev ADIN2111 device.
37 * @retval 0 Device unlocked.
38 * @retval -EPERM The current thread does not own the device lock.
[all …]
/Zephyr-Core-3.7.0/tests/kernel/device/src/
Dabstract_driver.h8 #include <zephyr/device.h>
11 typedef int (*subsystem_do_this_t)(const struct device *device, int foo,
13 typedef void (*subsystem_do_that_t)(const struct device *device,
21 static inline int subsystem_do_this(const struct device *device, int foo, in subsystem_do_this() argument
26 api = (struct subsystem_api *)device->api; in subsystem_do_this()
27 return api->do_this(device, foo, bar); in subsystem_do_this()
30 static inline void subsystem_do_that(const struct device *device, in subsystem_do_that() argument
35 api = (struct subsystem_api *)device->api; in subsystem_do_that()
36 api->do_that(device, baz); in subsystem_do_that()
/Zephyr-Core-3.7.0/include/zephyr/drivers/regulator/
Dfake.h16 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *);
17 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_disable, const struct device *);
19 const struct device *);
20 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_list_voltage, const struct device *,
22 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_voltage, const struct device *,
24 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_voltage, const struct device *,
27 const struct device *, int32_t, int32_t);
29 const struct device *, int32_t *);
30 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_mode, const struct device *,
32 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_mode, const struct device *,
[all …]
/Zephyr-Core-3.7.0/drivers/memc/
Dmemc_mcux_flexspi.h7 #include <zephyr/device.h>
23 * @param dev: FlexSPI device
25 void memc_flexspi_wait_bus_idle(const struct device *dev);
33 * @param dev: FlexSPI device
36 bool memc_flexspi_is_running_xip(const struct device *dev);
39 * @brief Update clock selection of the FlexSPI device
43 * @param dev: FlexSPI device
44 * @param device_config: External device configuration.
45 * @param port: FlexSPI port to use for this external device
49 int memc_flexspi_update_clock(const struct device *dev,
[all …]
/Zephyr-Core-3.7.0/drivers/usb_c/tcpc/
Ducpd_numaker.h14 int numaker_tcpc_ppc_is_dead_battery_mode(const struct device *dev);
15 int numaker_tcpc_ppc_exit_dead_battery_mode(const struct device *dev);
16 int numaker_tcpc_ppc_is_vbus_source(const struct device *dev);
17 int numaker_tcpc_ppc_is_vbus_sink(const struct device *dev);
18 int numaker_tcpc_ppc_set_snk_ctrl(const struct device *dev, bool enable);
19 int numaker_tcpc_ppc_set_src_ctrl(const struct device *dev, bool enable);
20 int numaker_tcpc_ppc_set_vbus_discharge(const struct device *dev, bool enable);
21 int numaker_tcpc_ppc_is_vbus_present(const struct device *dev);
22 int numaker_tcpc_ppc_set_event_handler(const struct device *dev, usbc_ppc_event_cb_t handler,
24 int numaker_tcpc_ppc_dump_regs(const struct device *dev);
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/can/
Dcan_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_can_start, const struct device *);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_can_stop, const struct device *);
21 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing, const struct device *, const struct can_timing *);
23 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing_data, const struct device *,
26 DECLARE_FAKE_VALUE_FUNC(int, fake_can_get_capabilities, const struct device *, can_mode_t *);
28 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_mode, const struct device *, can_mode_t);
30 DECLARE_FAKE_VALUE_FUNC(int, fake_can_send, const struct device *, const struct can_frame *,
33 DECLARE_FAKE_VALUE_FUNC(int, fake_can_add_rx_filter, const struct device *, can_rx_callback_t,
36 DECLARE_FAKE_VOID_FUNC(fake_can_remove_rx_filter, const struct device *, int);
38 DECLARE_FAKE_VALUE_FUNC(int, fake_can_recover, const struct device *, k_timeout_t);
[all …]
/Zephyr-Core-3.7.0/subsys/usb/device_next/
DKconfig6 bool "New USB device stack [EXPERIMENTAL]"
11 New experimental USB device stack.
20 bool "USB device shell"
23 Enable USB device shell.
29 USB device thread initialization priority level.
32 int "USB device stack thread stack size"
35 USB device stack thread stack size in bytes.
41 Maximum number of USB device controller events that can be queued.
44 int "Maximum number of USB device notification messages"
48 Maximum number of USB device notification messages that can be queued.
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/tdk/icm42688/
Dicm42688_trigger.h11 #include <zephyr/device.h>
14 int icm42688_trigger_set(const struct device *dev, const struct sensor_trigger *trig,
20 * @param dev icm42688 device pointer
23 int icm42688_trigger_init(const struct device *dev);
28 * @param dev icm42688 device pointer
29 * @param new_cfg New configuration to use for the device
32 int icm42688_trigger_enable_interrupt(const struct device *dev, struct icm42688_cfg *new_cfg);
35 * @brief lock access to the icm42688 device driver
37 * @param dev icm42688 device pointer
39 void icm42688_lock(const struct device *dev);
[all …]
/Zephyr-Core-3.7.0/subsys/bluetooth/services/
DKconfig.dis1 # GATT Device Information service
7 bool "GATT Device Information service"
12 bool "Settings usage in Device Information Service"
15 Enable Settings usage in Device Information Service.
30 The device model inside Device Information Service.
36 The device manufacturer inside Device Information Service.
42 Enable PnP_ID characteristic in Device Information Service.
63 device. This field is used in conjunction with Vendor ID Source field,
65 Note: The Bluetooth Special Interest Group assigns Device ID Vendor ID,
68 Device providers should procure the Vendor ID from the USB Implementers
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/tdk/icm42670/
Dicm42670_trigger.h10 #include <zephyr/device.h>
13 int icm42670_trigger_set(const struct device *dev, const struct sensor_trigger *trig,
19 * @param dev icm42670 device pointer
22 int icm42670_trigger_init(const struct device *dev);
27 * @param dev icm42670 device pointer
30 int icm42670_trigger_enable_interrupt(const struct device *dev);
33 * @brief lock access to the icm42670 device driver
35 * @param dev icm42670 device pointer
37 void icm42670_lock(const struct device *dev);
40 * @brief lock access to the icm42670 device driver
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/usb/
Dudc.h9 * @brief New USB device controller (UDC) driver API
16 #include <zephyr/device.h>
32 * USB device controller capabilities
34 * This structure is mainly intended for the USB device stack.
43 /** Controller expects device address to be set before status stage */
52 * @brief USB device actual speed
55 /** Device is probably not connected */
57 /** Device is connected to a full speed bus */
59 /** Device is connected to a high speed bus */
61 /** Device is connected to a super speed bus */
[all …]

12345678910>>...186