Home
last modified time | relevance | path

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

12345678910>>...140

/Zephyr-Core-3.4.0/scripts/pylib/pytest-twister-harness/tests/device/
Dhardware_adapter_test.py11 from twister_harness.device.hardware_adapter import HardwareAdapter
17 @pytest.fixture(name='device')
28 @mock.patch('twister_harness.device.hardware_adapter.shutil.which')
29 def test_if_get_command_returns_proper_string_1(patched_which, device: HardwareAdapter) -> None:
31 device.generate_command()
32 assert isinstance(device.command, list)
33 …assert device.command == ['west', 'flash', '--skip-rebuild', '--build-dir', 'build', '--runner', '…
36 @mock.patch('twister_harness.device.hardware_adapter.shutil.which')
37 def test_if_get_command_returns_proper_string_2(patched_which, device: HardwareAdapter) -> None:
39 device.device_config.runner = 'pyocd'
[all …]
Dsimulator_adapter_test.py12 from twister_harness.device.simulator_adapter import (
22 @pytest.fixture(name='device')
28 device: NativeSimulatorAdapter, resources: Path
30 device.device_config.build_dir = resources
31 device.generate_command()
32 assert isinstance(device.command, list)
33 assert device.command == [str(resources.joinpath('zephyr', 'zephyr.exe'))]
37 resources: Path, device: NativeSimulatorAdapter
45 device.command = ['python3', str(script_path)]
46 device.initialize_log_files()
[all …]
Dqemu_adapter_test.py13 from twister_harness.device.qemu_adapter import QemuAdapter
19 @pytest.fixture(name='device')
44 def test_if_qemu_adapter_raises_exception_for_empty_command(device) -> None: argument
45 device.command = []
48 device.flash_and_run(timeout=0.1)
51 def test_if_qemu_adapter_raises_exception_file_not_found(device) -> None: argument
52 device.command = ['dummy']
54 device.flash_and_run(timeout=0.1)
55 device.stop()
56 assert device._exc is not None
[all …]
/Zephyr-Core-3.4.0/include/zephyr/pm/
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 …]
Ddevice_runtime.h11 #include <zephyr/device.h>
18 * @brief Device Runtime Power Management API
19 * @defgroup subsys_pm_device_runtime Device Runtime
26 * @brief Automatically enable device runtime based on devicetree properties
29 * zephyr,pm-device-runtime-auto property in pm.yaml and z_sys_init_run_level.
31 * @param dev Device instance.
33 * @retval 0 If the device runtime PM is enabled successfully or it has not
34 * been requested for this device in devicetree.
35 * @retval -errno Other negative errno, result of enabled device runtime PM.
37 int pm_device_runtime_auto_enable(const struct device *dev);
[all …]
/Zephyr-Core-3.4.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 types of device power management:
15 - :ref:`Device Runtime Power Management <pm-device-runtime-pm>`
16 - :ref:`System Power Management <pm-device-system-pm>`
18 .. _pm-device-runtime-pm:
20 Device Runtime Power Management
24 and has the best knowledge of their use, performs the device power management. This
[all …]
/Zephyr-Core-3.4.0/include/zephyr/
Ddevice.h25 * @brief Device Model
26 * @defgroup device_model Device Model
31 * @brief Type used to represent a "handle" for a device.
33 * Every @ref device has an associated handle. You can get a pointer to a
34 * @ref device from its handle and vice versa, but the handle uses less space
35 * than a pointer. The device.h API mainly uses handles to store lists of
39 * identify functionality that does not correspond to a Zephyr device, such as
48 * @brief Flag value used in lists of device handles to separate distinct
56 * @brief Flag value used in lists of device handles to indicate the end of the
63 /** @brief Flag value used to identify an unknown device. */
[all …]
Dshared_irq.h17 typedef int (*isr_t)(const struct device *dev);
20 typedef int (*shared_irq_register_t)(const struct device *dev,
22 const struct device *isr_dev);
23 typedef int (*shared_irq_enable_t)(const struct device *dev,
24 const struct device *isr_dev);
25 typedef int (*shared_irq_disable_t)(const struct device *dev,
26 const struct device *isr_dev);
35 * @brief Register a device ISR
36 * @param dev Pointer to device structure for SHARED_IRQ driver instance.
37 * @param isr_func Pointer to the ISR function for the device.
[all …]
/Zephyr-Core-3.4.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.4.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 …]
/Zephyr-Core-3.4.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()
Dmain.c8 #include <zephyr/device.h>
24 /* A device without init call */
29 * @brief Test cases to verify device objects
31 * Verify zephyr device driver apis with different device types
33 * @defgroup kernel_device_tests Device
41 * @brief Test device object binding
43 * Validates device binding for an existing and a non-existing device object.
44 * It creates a dummy_driver device object with basic init and configuration
48 * 1. A non-existing device object.
49 * 2. An existing device object with basic init and configuration information.
[all …]
/Zephyr-Core-3.4.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.4.0/drivers/counter/
Dcounter_handlers.c14 static inline int z_vrfy_counter_##name(const struct device *dev) \
17 return z_impl_counter_ ## name((const struct device *)dev); \
28 static inline bool z_vrfy_counter_is_counting_up(const struct device *dev) in COUNTER_HANDLER()
31 return z_impl_counter_is_counting_up((const struct device *)dev); in COUNTER_HANDLER()
35 static inline uint8_t z_vrfy_counter_get_num_of_channels(const struct device *dev) in z_vrfy_counter_get_num_of_channels()
38 return z_impl_counter_get_num_of_channels((const struct device *)dev); in z_vrfy_counter_get_num_of_channels()
42 static inline uint32_t z_vrfy_counter_get_frequency(const struct device *dev) in z_vrfy_counter_get_frequency()
45 return z_impl_counter_get_frequency((const struct device *)dev); in z_vrfy_counter_get_frequency()
49 static inline uint32_t z_vrfy_counter_us_to_ticks(const struct device *dev, in z_vrfy_counter_us_to_ticks()
53 return z_impl_counter_us_to_ticks((const struct device *)dev, in z_vrfy_counter_us_to_ticks()
[all …]
/Zephyr-Core-3.4.0/scripts/pylib/pytest-twister-harness/src/twister_harness/fixtures/
Ddut.py10 from twister_harness.device.device_abstract import DeviceAbstract
11 from twister_harness.device.factory import DeviceFactory
19 """Return device instance."""
26 device = device_class(device_config)
29 device.connect()
30 device.generate_command()
31 device.initialize_log_files()
32 device.flash_and_run()
33 device.connect()
34 yield device
[all …]
/Zephyr-Core-3.4.0/subsys/usb/device_next/
Dusbd_device.h13 * @brief Get device descriptor bNumConfigurations value
15 * @param[in] uds_ctx Pointer to a device context
28 * @brief Set device descriptor bNumConfigurations value
30 * @param[in] uds_ctx Pointer to a device context
42 * @brief Check whether USB device is enabled
44 * @param[in] node Pointer to a device context
46 * @return true if USB device is in enabled, false otherwise
54 * @brief Check whether USB device is enabled
56 * @param[in] node Pointer to a device context
58 * @return true if USB device is in enabled, false otherwise
[all …]
/Zephyr-Core-3.4.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.4.0/drivers/sensor/vl53l1x/
Dvl53l1_platform.h22 * Writes the supplied byte buffer to the device
23 * @param pdev Pointer to device structure (device handle)
34 * Reads the requested number of bytes from the device
35 * @param pdev Pointer to device structure (device handle)
46 * Writes a single byte to the device
47 * @param pdev Pointer to device structure (device handle)
56 * Writes a single word (16-bit unsigned) to the device
57 * @param pdev Pointer to device structure (device handle)
66 * Writes a single dword (32-bit unsigned) to the device
67 * @param pdev Pointer to device structure (device handle)
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/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.4.0/include/zephyr/drivers/virtualization/
Divshmem.h19 #include <zephyr/device.h>
29 typedef size_t (*ivshmem_get_mem_f)(const struct device *dev,
32 typedef uint32_t (*ivshmem_get_id_f)(const struct device *dev);
34 typedef uint16_t (*ivshmem_get_vectors_f)(const struct device *dev);
36 typedef int (*ivshmem_int_peer_f)(const struct device *dev,
39 typedef int (*ivshmem_register_handler_f)(const struct device *dev,
45 typedef size_t (*ivshmem_get_rw_mem_section_f)(const struct device *dev,
48 typedef size_t (*ivshmem_get_output_mem_section_f)(const struct device *dev,
52 typedef uint32_t (*ivshmem_get_state_f)(const struct device *dev,
55 typedef int (*ivshmem_set_state_f)(const struct device *dev,
[all …]
/Zephyr-Core-3.4.0/drivers/dma/
Ddma_intel_adsp_hda.h13 #include <zephyr/pm/device.h>
29 int intel_adsp_hda_dma_host_in_config(const struct device *dev,
33 int intel_adsp_hda_dma_host_out_config(const struct device *dev,
37 int intel_adsp_hda_dma_link_in_config(const struct device *dev,
41 int intel_adsp_hda_dma_link_out_config(const struct device *dev,
45 int intel_adsp_hda_dma_link_reload(const struct device *dev, uint32_t channel,
48 int intel_adsp_hda_dma_host_reload(const struct device *dev, uint32_t channel,
51 int intel_adsp_hda_dma_status(const struct device *dev, uint32_t channel,
54 bool intel_adsp_hda_dma_chan_filter(const struct device *dev, int channel,
57 int intel_adsp_hda_dma_start(const struct device *dev, uint32_t channel);
[all …]
/Zephyr-Core-3.4.0/drivers/i2c/
Di2c_npcx_controller.h10 #include <zephyr/device.h>
19 * @param i2c_dev Pointer to the device structure for i2c controller instance.
21 void npcx_i2c_ctrl_mutex_lock(const struct device *i2c_dev);
26 * @param i2c_dev Pointer to the device structure for i2c controller instance.
28 void npcx_i2c_ctrl_mutex_unlock(const struct device *i2c_dev);
33 * @param i2c_dev Pointer to the device structure for i2c controller instance.
34 * @param dev_config Bit-packed 32-bit value to the device runtime configuration
38 * @retval -EIO General input / output error, failed to configure device.
41 int npcx_i2c_ctrl_configure(const struct device *i2c_dev, uint32_t dev_config);
46 * @param i2c_dev Pointer to the device structure for i2c controller instance.
[all …]
/Zephyr-Core-3.4.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.
48 * @brief USB device actual speed
51 /** Device is probably not connected */
53 /** Device is connected to a full speed bus */
55 /** Device is connected to a high speed bus */
57 /** Device is connected to a super speed bus */
62 * USB device controller endpoint capabilities
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/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
31 int icm42688_trigger_enable_interrupt(const struct device *dev);
34 * @brief lock access to the icm42688 device driver
36 * @param dev icm42688 device pointer
38 void icm42688_lock(const struct device *dev);
41 * @brief lock access to the icm42688 device driver
[all …]

12345678910>>...140