Home
last modified time | relevance | path

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

12345678910>>...154

/Zephyr-Core-3.5.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.5.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.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.5.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.5.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.5.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.5.0/include/zephyr/
Ddevice.h25 * @brief Device Model
26 * @defgroup device_model Device Model
33 * @brief Flag value used in lists of device dependencies to separate distinct
39 * @brief Flag value used in lists of device dependencies to indicate the end of
47 * @brief Type used to represent a "handle" for a device.
49 * Every @ref device has an associated handle. You can get a pointer to a
50 * @ref device from its handle and vice versa, but the handle uses less space
51 * than a pointer. The device.h API mainly uses handles to store lists of
55 * identify functionality that does not correspond to a Zephyr device, such as
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.5.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 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.5.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.5.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.5.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.5.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.5.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.5.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.5.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.5.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.5.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.5.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.5.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>>...154