/Zephyr-Core-2.7.6/include/pm/ |
D | device_runtime.h | 10 #include <device.h> 29 * @brief Enable device runtime PM 31 * Called by a device driver to enable device runtime power management. 32 * The device might be asynchronously suspended if runtime PM is enabled 33 * when the device is not use. 37 * @param dev Pointer to device structure of the specific device driver 40 void pm_device_enable(const struct device *dev); 43 * @brief Disable device runtime PM 45 * Called by a device driver to disable device runtime power management. 46 * The device might be asynchronously resumed if runtime PM is disabled [all …]
|
D | device.h | 18 * @brief Device Power Management API 20 * @defgroup device_power_management_api Device Power Management API 25 struct device; 27 /** @brief Device power states. */ 29 /** Device is in active or regular state. */ 32 * Device is in low power state. 35 * Device context is preserved. 39 * Device is suspended. 42 * Device context may be lost. 46 * Device is turned off (power removed). [all …]
|
/Zephyr-Core-2.7.6/drivers/usb/device/ |
D | Kconfig | 1 # USB device configuration options 7 bool "Enable USB device controller drivers" 9 Enable USB device controller drivers. 14 bool "Designware USB Device Controller Driver" 16 Designware USB Device Controller Driver. 25 bool "USB device controller driver for STM32 devices" 42 bool "SAM0 series USB Device Controller driver" 46 SAM0 family USB device controller Driver. 51 bool "SAM4L USBC Device Controller driver" 55 SAM4L family USBC device controller Driver. [all …]
|
/Zephyr-Core-2.7.6/include/ |
D | shared_irq.h | 18 typedef int (*isr_t)(const struct device *dev); 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. 38 * @param isr_func Pointer to the ISR function for the device. [all …]
|
D | device.h | 11 * @brief Device Driver APIs 12 * @defgroup io_interfaces Device Driver APIs 24 * @brief Device Model APIs 25 * @defgroup device_model Device Model APIs 31 #include <pm/device.h> 43 * device, such as the system clock or a SYS_INIT() function. 47 /** @brief Flag value used in lists of device handles to separate 54 /** @brief Flag value used in lists of device handles to indicate the 61 /** @brief Flag value used to identify an unknown device. */ 69 * @brief Expands to the full name of a global device object [all …]
|
/Zephyr-Core-2.7.6/doc/reference/power_management/ |
D | index.rst | 27 SOC Power State describes processor and device power states implemented at 31 :dfn:`Device Runtime Power Management` 32 Device Runtime Power Management (PM) refers the capability of 54 * Device Power Management 140 Information about states can be found in the device tree, see 147 power savings, and with a minimum residency value (in device tree, see 178 Device Power Management Infrastructure 181 The device power management infrastructure consists of interfaces to the 182 :ref:`device_model_api`. These APIs send control commands to the device driver 185 Zephyr RTOS supports two methods of doing device power management. [all …]
|
/Zephyr-Core-2.7.6/tests/kernel/device/src/ |
D | abstract_driver.h | 8 #include <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()
|
D | main.c | 8 #include <device.h> 30 * @brief Test cases to verify device objects 32 * Verify zephyr device driver apis with different device types 34 * @defgroup kernel_device_tests Device 42 * @brief Test device object binding 44 * Validates device binding for an existing and a non-existing device object. 45 * It creates a dummy_driver device object with basic init and configuration 49 * 1. A non-existing device object. 50 * 2. An existing device object with basic init and configuration information. 51 * 3. A failed init device object. [all …]
|
/Zephyr-Core-2.7.6/drivers/counter/ |
D | counter_handlers.c | 14 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-2.7.6/subsys/bluetooth/services/ |
D | Kconfig.dis | 1 # GATT Device Information service 7 bool "Enable GATT Device Information service" 12 bool "Enable 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-2.7.6/include/drivers/ |
D | ps2.h | 19 #include <device.h> 35 * @param dev Pointer to the device structure for the driver instance. 38 typedef void (*ps2_callback_t)(const struct device *dev, uint8_t data); 47 typedef int (*ps2_config_t)(const struct device *dev, 49 typedef int (*ps2_read_t)(const struct device *dev, uint8_t *value); 50 typedef int (*ps2_write_t)(const struct device *dev, uint8_t value); 51 typedef int (*ps2_disable_callback_t)(const struct device *dev); 52 typedef int (*ps2_enable_callback_t)(const struct device *dev); 68 * @param dev Pointer to the device structure for the driver instance. 75 __syscall int ps2_config(const struct device *dev, [all …]
|
D | edac.h | 17 typedef void (*edac_notify_callback_f)(const struct device *dev, void *data); 42 int (*inject_set_param1)(const struct device *dev, uint64_t value); 43 int (*inject_get_param1)(const struct device *dev, uint64_t *value); 44 int (*inject_set_param2)(const struct device *dev, uint64_t value); 45 int (*inject_get_param2)(const struct device *dev, uint64_t *value); 46 int (*inject_set_error_type)(const struct device *dev, uint32_t value); 47 int (*inject_get_error_type)(const struct device *dev, uint32_t *value); 48 int (*inject_error_trigger)(const struct device *dev); 51 int (*ecc_error_log_get)(const struct device *dev, uint64_t *value); 52 int (*ecc_error_log_clear)(const struct device *dev); [all …]
|
D | counter.h | 25 #include <device.h> 32 /**@defgroup COUNTER_FLAGS Counter device capabilities 103 * @param dev Pointer to the device structure for the driver instance. 108 typedef void (*counter_alarm_callback_t)(const struct device *dev, 135 * @param dev Pointer to the device structure for the driver instance. 138 typedef void (*counter_top_callback_t)(const struct device *dev, 173 typedef int (*counter_api_start)(const struct device *dev); 174 typedef int (*counter_api_stop)(const struct device *dev); 175 typedef int (*counter_api_get_value)(const struct device *dev, 177 typedef int (*counter_api_set_alarm)(const struct device *dev, [all …]
|
D | mdio.h | 22 #include <device.h> 43 /** Enable the MDIO bus device */ 44 void (*bus_enable)(const struct device *dev); 46 /** Disable the MDIO bus device */ 47 void (*bus_disable)(const struct device *dev); 50 int (*read)(const struct device *dev, uint8_t prtad, uint8_t devad, 54 int (*write)(const struct device *dev, uint8_t prtad, uint8_t devad, 64 * @param[in] dev Pointer to the device structure for the controller 67 __syscall void mdio_bus_enable(const struct device *dev); 69 static inline void z_impl_mdio_bus_enable(const struct device *dev) in z_impl_mdio_bus_enable() [all …]
|
D | bbram.h | 10 #include <device.h> 21 typedef int (*bbram_api_check_invalid)(const struct device *dev); 28 typedef int (*bbram_api_check_standby_power)(const struct device *dev); 35 typedef int (*bbram_api_check_power)(const struct device *dev); 42 typedef int (*bbram_api_get_size)(const struct device *dev, size_t *size); 49 typedef int (*bbram_api_read)(const struct device *dev, size_t offset, size_t size, 57 typedef int (*bbram_api_write)(const struct device *dev, size_t offset, size_t size, 75 * @param dev BBRAM device pointer. 78 __syscall int bbram_check_invalid(const struct device *dev); 80 static inline int z_impl_bbram_check_invalid(const struct device *dev) in z_impl_bbram_check_invalid() [all …]
|
D | fpga.h | 12 #include <device.h> 29 typedef enum FPGA_status (*fpga_api_get_status)(const struct device *dev); 30 typedef int (*fpga_api_load)(const struct device *dev, uint32_t *image_ptr, 32 typedef int (*fpga_api_reset)(const struct device *dev); 33 typedef int (*fpga_api_on)(const struct device *dev); 34 typedef int (*fpga_api_off)(const struct device *dev); 35 typedef const char *(*fpga_api_get_info)(const struct device *dev); 49 * @param dev FPGA device structure. 54 static inline enum FPGA_status fpga_get_status(const struct device *dev) in fpga_get_status() 65 * @param dev FPGA device structure. [all …]
|
D | i2c.h | 23 #include <device.h> 68 const struct device *bus; 79 * @param node_id Devicetree node identifier for the I2C device whose 164 typedef int (*i2c_api_configure_t)(const struct device *dev, 166 typedef int (*i2c_api_full_io_t)(const struct device *dev, 170 typedef int (*i2c_api_slave_register_t)(const struct device *dev, 172 typedef int (*i2c_api_slave_unregister_t)(const struct device *dev, 174 typedef int (*i2c_api_recover_bus_t)(const struct device *dev); 184 typedef int (*i2c_slave_api_register_t)(const struct device *dev); 185 typedef int (*i2c_slave_api_unregister_t)(const struct device *dev); [all …]
|
/Zephyr-Core-2.7.6/include/drivers/console/ |
D | uart_mux.h | 22 #include <device.h> 37 * @param mux UART mux device 42 typedef void (*uart_mux_attach_cb_t)(const struct device *mux, 59 int (*attach)(const struct device *mux, const struct device *uart, 65 * @brief Attach physical/real UART to UART muxing device. 67 * @param mux UART mux device structure. 68 * @param uart Real UART device structure. 76 static inline int uart_mux_attach(const struct device *mux, in uart_mux_attach() 77 const struct device *uart, in uart_mux_attach() 92 * @return UART device if found, NULL otherwise [all …]
|
/Zephyr-Core-2.7.6/drivers/gpio/ |
D | gpio_handlers.c | 10 static inline int z_vrfy_gpio_pin_configure(const struct device *port, in z_vrfy_gpio_pin_configure() 15 return z_impl_gpio_pin_configure((const struct device *)port, in z_vrfy_gpio_pin_configure() 21 static inline int z_vrfy_gpio_port_get_raw(const struct device *port, in z_vrfy_gpio_port_get_raw() 26 return z_impl_gpio_port_get_raw((const struct device *)port, in z_vrfy_gpio_port_get_raw() 31 static inline int z_vrfy_gpio_port_set_masked_raw(const struct device *port, in z_vrfy_gpio_port_set_masked_raw() 36 return z_impl_gpio_port_set_masked_raw((const struct device *)port, in z_vrfy_gpio_port_set_masked_raw() 42 static inline int z_vrfy_gpio_port_set_bits_raw(const struct device *port, in z_vrfy_gpio_port_set_bits_raw() 46 return z_impl_gpio_port_set_bits_raw((const struct device *)port, in z_vrfy_gpio_port_set_bits_raw() 51 static inline int z_vrfy_gpio_port_clear_bits_raw(const struct device *port, in z_vrfy_gpio_port_clear_bits_raw() 55 return z_impl_gpio_port_clear_bits_raw((const struct device *)port, in z_vrfy_gpio_port_clear_bits_raw() [all …]
|
/Zephyr-Core-2.7.6/include/display/ |
D | grove_lcd.h | 1 /* grove_lcd.h - Public API for the Grove RGB LCD device */ 33 * @param port Pointer to device structure for driver instance. 37 void glcd_print(const struct device *port, char *data, uint32_t size); 43 * @param port Pointer to device structure for driver instance. 47 void glcd_cursor_pos_set(const struct device *port, uint8_t col, uint8_t row); 52 * @param port Pointer to device structure for driver instance. 54 void glcd_clear(const struct device *port); 70 * @param port Pointer to device structure for driver instance. 74 void glcd_display_state_set(const struct device *port, uint8_t opt); 77 * @brief return the display feature set associated with the device [all …]
|
/Zephyr-Core-2.7.6/include/drivers/adc/ |
D | lmp90xxx.h | 10 #include <device.h> 16 int lmp90xxx_gpio_set_output(const struct device *dev, uint8_t pin); 18 int lmp90xxx_gpio_set_input(const struct device *dev, uint8_t pin); 20 int lmp90xxx_gpio_set_pin_value(const struct device *dev, uint8_t pin, 23 int lmp90xxx_gpio_get_pin_value(const struct device *dev, uint8_t pin, 26 int lmp90xxx_gpio_port_get_raw(const struct device *dev, 29 int lmp90xxx_gpio_port_set_masked_raw(const struct device *dev, 33 int lmp90xxx_gpio_port_set_bits_raw(const struct device *dev, 36 int lmp90xxx_gpio_port_clear_bits_raw(const struct device *dev, 39 int lmp90xxx_gpio_port_toggle_bits(const struct device *dev,
|
/Zephyr-Core-2.7.6/include/drivers/virtualization/ |
D | ivshmem.h | 18 #include <device.h> 24 typedef size_t (*ivshmem_get_mem_f)(const struct device *dev, 27 typedef uint32_t (*ivshmem_get_id_f)(const struct device *dev); 29 typedef uint16_t (*ivshmem_get_vectors_f)(const struct device *dev); 31 typedef int (*ivshmem_int_peer_f)(const struct device *dev, 34 typedef int (*ivshmem_register_handler_f)(const struct device *dev, 49 * @param dev Pointer to the device structure for the driver instance 54 __syscall size_t ivshmem_get_mem(const struct device *dev, 57 static inline size_t z_impl_ivshmem_get_mem(const struct device *dev, in z_impl_ivshmem_get_mem() 69 * @param dev Pointer to the device structure for the driver instance [all …]
|
/Zephyr-Core-2.7.6/drivers/serial/ |
D | uart_liteuart.c | 13 #include <device.h> 53 * @param dev UART device struct 56 static void uart_liteuart_poll_out(const struct device *dev, unsigned char c) in uart_liteuart_poll_out() 66 * @brief Poll the device for input. 68 * @param dev UART device struct 73 static int uart_liteuart_poll_in(const struct device *dev, unsigned char *c) in uart_liteuart_poll_in() 92 * @param dev UART device struct 96 static void uart_liteuart_irq_tx_enable(const struct device *dev) in uart_liteuart_irq_tx_enable() 106 * @param dev UART device struct 110 static void uart_liteuart_irq_tx_disable(const struct device *dev) in uart_liteuart_irq_tx_disable() [all …]
|
/Zephyr-Core-2.7.6/subsys/usb/class/hid/ |
D | Kconfig | 7 bool "USB Human Interface Device support" 9 Enables USB Human Interface Device support. Default device name 15 string "USB HID device name template" 18 Device name template for the HID Devices. First device would have 30 bool "Enable USB HID Device Interrupt OUT Endpoint" 32 Enable USB HID Device Interrupt OUT Endpoint. 35 int "USB HID Device Interrupt Endpoint size" 38 USB HID Device interrupt endpoint size 44 Polling interval in ms selected by the USB HID Device. 65 See Chapter 4.2 of Device Class Definition for Human Interface Devices 1.11
|
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm/ |
D | README.rst | 9 This sample app demonstrates use of a USB Communication Device Class (CDC) 19 This project requires an USB device driver, which is available for multiple 40 Plug the board into a host device, for example, a PC running Linux. 45 usb 9-1: new full-speed USB device number 112 using uhci_hcd 46 usb 9-1: New USB device found, idVendor=8086, idProduct=f8a1 47 usb 9-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 51 cdc_acm 9-1:1.0: ttyACM1: USB ACM device 60 and attach it to detected CDC ACM device: 64 minicom --device /dev/ttyACM1 73 And on ttyACM device, provided by zephyr USB device stack: [all …]
|