/Zephyr-latest/samples/drivers/uart/native_tty/ |
D | README.rst | 55 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-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | binary_adapter_test.py | 15 from twister_harness.device.binary_adapter import ( 29 @pytest.fixture(name='device') 33 …device = 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 …]
|
D | hardware_adapter_test.py | 12 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 …]
|
D | qemu_adapter_test.py | 12 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-latest/include/zephyr/pm/ |
D | device_runtime.h | 11 #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 …]
|
D | device.h | 10 #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-latest/doc/services/pm/ |
D | device_runtime.rst | 1 .. _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 …]
|
D | device.rst | 1 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-latest/tests/subsys/shell/shell_device/ |
D | testcase.yaml | 11 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-latest/include/zephyr/ |
D | shared_irq.h | 12 #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 …]
|
D | device.h | 30 * @brief Device Model 31 * @defgroup device_model Device Model 40 * @brief Flag value used in lists of device dependencies to separate distinct 46 * @brief Flag value used in lists of device dependencies to indicate the end of 58 * @brief Type used to represent a "handle" for a device. 60 * Every @ref device has an associated handle. You can get a pointer to a 61 * @ref device from its handle and vice versa, but the handle uses less space 62 * than a pointer. The device.h API mainly uses handles to store lists of 66 * identify functionality that does not correspond to a Zephyr device, such as 74 /** @brief Flag value used to identify an unknown device. */ [all …]
|
/Zephyr-latest/drivers/usb/device/ |
D | Kconfig | 1 # 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" 48 bool "USB device controller driver for STM32 devices" [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/provision/ |
D | pb_remote_timeout.sh | 10 # 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 …]
|
D | pb_remote_client_server_same_dev.sh | 8 # 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-latest/include/zephyr/drivers/ethernet/ |
D | eth_adin2111.h | 12 #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-latest/subsys/tracing/user/ |
D | tracing_user.c | 28 void __weak sys_trace_gpio_pin_interrupt_configure_enter_user(const struct device *port, in sys_trace_gpio_pin_interrupt_configure_enter_user() 30 void __weak sys_trace_gpio_pin_interrupt_configure_exit_user(const struct device *port, in sys_trace_gpio_pin_interrupt_configure_exit_user() 32 void __weak sys_trace_gpio_pin_configure_enter_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_configure_enter_user() 34 void __weak sys_trace_gpio_pin_configure_exit_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_configure_exit_user() 36 void __weak sys_trace_gpio_port_get_direction_enter_user(const struct device *port, in sys_trace_gpio_port_get_direction_enter_user() 40 void __weak sys_trace_gpio_port_get_direction_exit_user(const struct device *port, int ret) {} in sys_trace_gpio_port_get_direction_exit_user() 41 void __weak sys_trace_gpio_pin_get_config_enter_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_get_config_enter_user() 43 void __weak sys_trace_gpio_pin_get_config_exit_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_get_config_exit_user() 45 void __weak sys_trace_gpio_port_get_raw_enter_user(const struct device *port, in sys_trace_gpio_port_get_raw_enter_user() 47 void __weak sys_trace_gpio_port_get_raw_exit_user(const struct device *port, int ret) {} in sys_trace_gpio_port_get_raw_exit_user() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | haptics.h | 17 #include <zephyr/device.h> 25 * @brief Set the haptic device to stop output 26 * @param dev Pointer to the device structure for haptic device instance 28 typedef int (*haptics_stop_output_t)(const struct device *dev); 32 * @brief Set the haptic device to start output for a playback event 34 typedef int (*haptics_start_output_t)(const struct device *dev); 37 * @brief Haptic device API 45 * @brief Set the haptic device to start output for a playback event 47 * @param dev Pointer to the device structure for haptic device instance 52 __syscall int haptics_start_output(const struct device *dev); [all …]
|
/Zephyr-latest/include/zephyr/drivers/regulator/ |
D | fake.h | 16 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-latest/drivers/usb_c/tcpc/ |
D | ucpd_numaker.h | 14 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-latest/drivers/memc/ |
D | memc_mcux_flexspi.h | 7 #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-latest/subsys/usb/device_next/ |
D | Kconfig | 6 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-latest/include/zephyr/drivers/can/ |
D | can_fake.h | 17 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-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_trigger.h | 11 #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-latest/tests/kernel/device/src/ |
D | main.c | 8 #include <zephyr/device.h> 28 /* A device without init call */ 32 /* To access from userspace, the device needs an API. Use a dummy GPIO one */ 43 * @brief Test cases to verify device objects 45 * Verify zephyr device driver apis with different device types 47 * @defgroup kernel_device_tests Device 55 * @brief Test device object binding 57 * Validates device binding for an existing and a non-existing device object. 58 * It creates a dummy_driver device object with basic init and configuration 62 * 1. A non-existing device object. [all …]
|
/Zephyr-latest/drivers/sensor/tdk/icm42670/ |
D | icm42670_trigger.h | 10 #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 …]
|