Home
last modified time | relevance | path

Searched refs:device (Results 276 – 300 of 4950) sorted by relevance

1...<<11121314151617181920>>...198

/Zephyr-latest/doc/connectivity/usb/device_next/
Dusb_device.rst3 New USB device support
9 USB device support consists of the USB device controller (UDC) drivers
10 , :ref:`udc_api`, and USB device stack, :ref:`usbd_api`.
12 device controllers, and although, there a is clear separation between these
13 layers, the purpose of :ref:`udc_api` is to serve new Zephyr's USB device stack
16 The new device stack supports multiple device controllers, meaning that if a
18 high-speed device controllers are supported. It also provides support for
23 The new USB device support is considered experimental and will replace
35 Samples ported to new USB device support
38 To build a sample that supports both the old and new USB device stack, set the
[all …]
/Zephyr-latest/drivers/coredump/
DKconfig5 bool "Coredump pseudo-device drivers"
7 Enable support for a pseudo-device to help capturing
13 int "Coredump device init priority"
16 Coredump pseudo-device driver initialization priority.
19 module-str = coredump device
/Zephyr-latest/modules/hal_nordic/nrf_802154/sl_opensource/platform/
Dnrf_802154_temperature_zephyr.c34 static const struct device *const device = DEVICE_DT_GET(DT_NODELABEL(temp)); variable
42 err = sensor_sample_fetch(device); in work_handler()
44 err = sensor_channel_get(device, SENSOR_CHAN_DIE_TEMP, &val); in work_handler()
59 __ASSERT_NO_MSG(device_is_ready(device)); in temperature_update_init()
/Zephyr-latest/drivers/serial/
Duart_numaker.c27 const struct device *clk_dev;
30 void (*irq_config_func)(const struct device *dev);
36 const struct device *clock;
44 static int uart_numaker_poll_in(const struct device *dev, unsigned char *c) in uart_numaker_poll_in()
57 static void uart_numaker_poll_out(const struct device *dev, unsigned char c) in uart_numaker_poll_out()
64 static int uart_numaker_err_check(const struct device *dev) in uart_numaker_err_check()
143 static int uart_numaker_configure(const struct device *dev, const struct uart_config *cfg) in uart_numaker_configure()
177 static int uart_numaker_config_get(const struct device *dev, struct uart_config *cfg) in uart_numaker_config_get()
187 static int uart_numaker_init(const struct device *dev) in uart_numaker_init()
244 static int uart_numaker_fifo_fill(const struct device *dev, const uint8_t *tx_data, int size) in uart_numaker_fifo_fill()
[all …]
Dusart_sam.c46 static int usart_sam_poll_in(const struct device *dev, unsigned char *c) in usart_sam_poll_in()
62 static void usart_sam_poll_out(const struct device *dev, unsigned char c) in usart_sam_poll_out()
76 static int usart_sam_err_check(const struct device *dev) in usart_sam_err_check()
98 static int usart_sam_baudrate_set(const struct device *dev, uint32_t baudrate) in usart_sam_baudrate_set()
142 static uint8_t usart_sam_get_parity(const struct device *dev) in usart_sam_get_parity()
176 static uint8_t usart_sam_get_stop_bits(const struct device *dev) in usart_sam_get_stop_bits()
208 static uint8_t usart_sam_get_data_bits(const struct device *dev) in usart_sam_get_data_bits()
238 static uint8_t usart_sam_get_flow_ctrl(const struct device *dev) in usart_sam_get_flow_ctrl()
253 static int usart_sam_configure(const struct device *dev, in usart_sam_configure()
296 static int usart_sam_config_get(const struct device *dev, in usart_sam_config_get()
[all …]
Duart_neorv32.c48 const struct device *syscon;
52 void (*irq_config_func)(const struct device *dev);
68 static inline uint32_t neorv32_uart_read_ctrl(const struct device *dev) in neorv32_uart_read_ctrl()
75 static inline void neorv32_uart_write_ctrl(const struct device *dev, uint32_t ctrl) in neorv32_uart_write_ctrl()
82 static inline uint32_t neorv32_uart_read_data(const struct device *dev) in neorv32_uart_read_data()
95 static inline void neorv32_uart_write_data(const struct device *dev, uint32_t data) in neorv32_uart_write_data()
102 static int neorv32_uart_poll_in(const struct device *dev, unsigned char *c) in neorv32_uart_poll_in()
116 static void neorv32_uart_poll_out(const struct device *dev, unsigned char c) in neorv32_uart_poll_out()
124 static int neorv32_uart_configure(const struct device *dev, const struct uart_config *cfg) in neorv32_uart_configure()
206 static int neorv32_uart_config_get(const struct device *dev, struct uart_config *cfg) in neorv32_uart_config_get()
[all …]
Duart_bcm2711.c57 void (*irq_config_func)(const struct device *dev);
128 static int uart_bcm2711_init(const struct device *dev) in uart_bcm2711_init()
142 static void uart_bcm2711_poll_out(const struct device *dev, unsigned char c) in uart_bcm2711_poll_out()
149 static int uart_bcm2711_poll_in(const struct device *dev, unsigned char *c) in uart_bcm2711_poll_in()
162 static int uart_bcm2711_fifo_fill(const struct device *dev, in uart_bcm2711_fifo_fill()
178 static int uart_bcm2711_fifo_read(const struct device *dev, uint8_t *rx_data, in uart_bcm2711_fifo_read()
191 static void uart_bcm2711_irq_tx_enable(const struct device *dev) in uart_bcm2711_irq_tx_enable()
198 static void uart_bcm2711_irq_tx_disable(const struct device *dev) in uart_bcm2711_irq_tx_disable()
206 static int uart_bcm2711_irq_tx_ready(const struct device *dev) in uart_bcm2711_irq_tx_ready()
213 static void uart_bcm2711_irq_rx_enable(const struct device *dev) in uart_bcm2711_irq_rx_enable()
[all …]
/Zephyr-latest/drivers/sensor/ams/ccs811/
Dccs811.h53 const struct device *dev;
86 int ccs811_mutate_meas_mode(const struct device *dev,
90 int ccs811_set_thresholds(const struct device *dev);
92 int ccs811_attr_set(const struct device *dev,
97 int ccs811_trigger_set(const struct device *dev,
101 int ccs811_init_interrupt(const struct device *dev);
/Zephyr-latest/include/zephyr/drivers/
Dled_strip.h62 typedef int (*led_api_update_rgb)(const struct device *dev,
72 typedef int (*led_api_update_channels)(const struct device *dev,
82 typedef size_t (*led_api_length)(const struct device *dev);
107 static inline int led_strip_update_rgb(const struct device *dev, in led_strip_update_rgb()
142 static inline int led_strip_update_channels(const struct device *dev, in led_strip_update_channels()
163 static inline size_t led_strip_length(const struct device *dev) in led_strip_length()
Dmipi_dbi.h154 int (*command_write)(const struct device *dev,
157 int (*command_read)(const struct device *dev,
160 int (*write_display)(const struct device *dev,
165 int (*reset)(const struct device *dev, k_timeout_t delay);
166 int (*release)(const struct device *dev,
168 int (*configure_te)(const struct device *dev,
193 static inline int mipi_dbi_command_write(const struct device *dev, in mipi_dbi_command_write()
224 static inline int mipi_dbi_command_read(const struct device *dev, in mipi_dbi_command_read()
257 static inline int mipi_dbi_write_display(const struct device *dev, in mipi_dbi_write_display()
283 static inline int mipi_dbi_reset(const struct device *dev, uint32_t delay_ms) in mipi_dbi_reset()
[all …]
/Zephyr-latest/tests/subsys/pm/device_runtime_api/src/
Dtest_driver.c19 static int test_driver_action(const struct device *dev, in test_driver_action()
40 void test_driver_pm_async(const struct device *dev) in test_driver_pm_async()
47 void test_driver_pm_done(const struct device *dev) in test_driver_pm_done()
54 bool test_driver_pm_ongoing(const struct device *dev) in test_driver_pm_ongoing()
61 size_t test_driver_pm_count(const struct device *dev) in test_driver_pm_count()
68 int test_driver_init(const struct device *dev) in test_driver_init()
/Zephyr-latest/drivers/ipm/
Dipm_mcux.c45 void (*irq_config_func)(const struct device *dev);
54 static void mcux_mailbox_isr(const struct device *dev) in mcux_mailbox_isr()
83 static int mcux_mailbox_ipm_send(const struct device *d, int wait, in mcux_mailbox_ipm_send()
119 static int mcux_mailbox_ipm_max_data_size_get(const struct device *d) in mcux_mailbox_ipm_max_data_size_get()
127 static uint32_t mcux_mailbox_ipm_max_id_val_get(const struct device *d) in mcux_mailbox_ipm_max_id_val_get()
134 static void mcux_mailbox_ipm_register_callback(const struct device *d, in mcux_mailbox_ipm_register_callback()
145 static int mcux_mailbox_ipm_set_enabled(const struct device *d, int enable) in mcux_mailbox_ipm_set_enabled()
151 static inline int mcux_mailbox_reset(const struct device *dev) in mcux_mailbox_reset()
170 static int mcux_mailbox_init(const struct device *dev) in mcux_mailbox_init()
196 static void mcux_mailbox_config_func_0(const struct device *dev);
[all …]
/Zephyr-latest/drivers/counter/
Dcounter_imx_epit.c27 static inline const struct imx_epit_config *get_epit_config(const struct device *dev) in get_epit_config()
33 static void imx_epit_isr(const struct device *dev) in imx_epit_isr()
45 static void imx_epit_init(const struct device *dev) in imx_epit_init()
64 static int imx_epit_start(const struct device *dev) in imx_epit_start()
80 static int imx_epit_stop(const struct device *dev) in imx_epit_stop()
90 static int imx_epit_get_value(const struct device *dev, uint32_t *ticks) in imx_epit_get_value()
99 static int imx_epit_set_top_value(const struct device *dev, in imx_epit_set_top_value()
124 static uint32_t imx_epit_get_pending_int(const struct device *dev) in imx_epit_get_pending_int()
131 static uint32_t imx_epit_get_top_value(const struct device *dev) in imx_epit_get_top_value()
148 static int imx_epit_config_func_##idx(const struct device *dev); \
[all …]
/Zephyr-latest/drivers/audio/
Dcodec_shell.c46 uint8_t device; member
53 .device = 1,
82 const struct device *dev; in cmd_start()
84 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_start()
96 const struct device *dev; in cmd_stop()
98 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_stop()
110 const struct device *dev; in cmd_set_prop()
117 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_set_prop()
160 const struct device *dev; in cmd_apply_prop()
162 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_apply_prop()
[all …]
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/
Ddw_ace.h11 typedef void (*irq_enable_t)(const struct device *dev, uint32_t irq);
12 typedef void (*irq_disable_t)(const struct device *dev, uint32_t irq);
13 typedef int (*irq_is_enabled_t)(const struct device *dev, unsigned int irq);
14 typedef int (*irq_connect_dynamic_t)(const struct device *dev,
/Zephyr-latest/drivers/gpio/
Dgpio_neorv32.c29 const struct device *syscon;
41 static inline uint32_t neorv32_gpio_read(const struct device *dev) in neorv32_gpio_read()
48 static inline void neorv32_gpio_write(const struct device *dev, uint32_t val) in neorv32_gpio_write()
55 static int neorv32_gpio_pin_configure(const struct device *dev, gpio_pin_t pin, in neorv32_gpio_pin_configure()
90 static int neorv32_gpio_port_get_raw(const struct device *dev, in neorv32_gpio_port_get_raw()
97 static int neorv32_gpio_port_set_masked_raw(const struct device *dev, in neorv32_gpio_port_set_masked_raw()
112 static int neorv32_gpio_port_set_bits_raw(const struct device *dev, in neorv32_gpio_port_set_bits_raw()
126 static int neorv32_gpio_port_clear_bits_raw(const struct device *dev, in neorv32_gpio_port_clear_bits_raw()
140 static int neorv32_gpio_port_toggle_bits(const struct device *dev, in neorv32_gpio_port_toggle_bits()
154 static int neorv32_gpio_manage_callback(const struct device *dev, in neorv32_gpio_manage_callback()
[all …]
Dgpio_cc13xx_cc26xx.c47 static int gpio_cc13xx_cc26xx_port_set_bits_raw(const struct device *port,
49 static int gpio_cc13xx_cc26xx_port_clear_bits_raw(const struct device *port,
52 static int gpio_cc13xx_cc26xx_config(const struct device *port, in gpio_cc13xx_cc26xx_config()
126 static int gpio_cc13xx_cc26xx_port_get_raw(const struct device *port, in gpio_cc13xx_cc26xx_port_get_raw()
136 static int gpio_cc13xx_cc26xx_port_set_masked_raw(const struct device *port, in gpio_cc13xx_cc26xx_port_set_masked_raw()
146 static int gpio_cc13xx_cc26xx_port_set_bits_raw(const struct device *port, in gpio_cc13xx_cc26xx_port_set_bits_raw()
154 static int gpio_cc13xx_cc26xx_port_clear_bits_raw(const struct device *port, in gpio_cc13xx_cc26xx_port_clear_bits_raw()
162 static int gpio_cc13xx_cc26xx_port_toggle_bits(const struct device *port, in gpio_cc13xx_cc26xx_port_toggle_bits()
170 static int gpio_cc13xx_cc26xx_pin_interrupt_configure(const struct device *port, in gpio_cc13xx_cc26xx_pin_interrupt_configure()
201 static int gpio_cc13xx_cc26xx_manage_callback(const struct device *port, in gpio_cc13xx_cc26xx_manage_callback()
[all …]
/Zephyr-latest/drivers/espi/
Despi_handlers.c11 static inline int z_vrfy_espi_config(const struct device *dev, in z_vrfy_espi_config()
24 static inline bool z_vrfy_espi_get_channel_status(const struct device *dev, in z_vrfy_espi_get_channel_status()
33 static inline int z_vrfy_espi_read_lpc_request(const struct device *dev, in z_vrfy_espi_read_lpc_request()
49 static inline int z_vrfy_espi_write_lpc_request(const struct device *dev, in z_vrfy_espi_write_lpc_request()
62 static inline int z_vrfy_espi_send_vwire(const struct device *dev, in z_vrfy_espi_send_vwire()
72 static inline int z_vrfy_espi_receive_vwire(const struct device *dev, in z_vrfy_espi_receive_vwire()
88 static inline int z_vrfy_espi_read_request(const struct device *dev, in z_vrfy_espi_read_request()
108 static inline int z_vrfy_espi_write_request(const struct device *dev, in z_vrfy_espi_write_request()
125 static inline int z_vrfy_espi_send_oob(const struct device *dev, in z_vrfy_espi_send_oob()
142 static inline int z_vrfy_espi_receive_oob(const struct device *dev, in z_vrfy_espi_receive_oob()
[all …]
/Zephyr-latest/drivers/dac/
Ddac_handlers.c11 static inline int z_vrfy_dac_channel_setup(const struct device *dev, in z_vrfy_dac_channel_setup()
21 return z_impl_dac_channel_setup((const struct device *)dev, in z_vrfy_dac_channel_setup()
26 static inline int z_vrfy_dac_write_value(const struct device *dev, in z_vrfy_dac_write_value()
31 return z_impl_dac_write_value((const struct device *)dev, channel, in z_vrfy_dac_write_value()
/Zephyr-latest/include/zephyr/drivers/can/
Dtransceiver.h36 typedef int (*can_transceiver_enable_t)(const struct device *dev, can_mode_t mode);
42 typedef int (*can_transceiver_disable_t)(const struct device *dev);
66 static inline int can_transceiver_enable(const struct device *dev, can_mode_t mode) in can_transceiver_enable()
85 static inline int can_transceiver_disable(const struct device *dev) in can_transceiver_disable()
/Zephyr-latest/scripts/west_commands/runners/
Decpprog.py14 def __init__(self, cfg, device=None): argument
16 self.device = device
34 return EcpprogBinaryRunner(cfg, device=args.device)
/Zephyr-latest/samples/subsys/usb/cdc_acm/
DREADME.rst20 This project requires an USB device driver, which is available for multiple
41 Plug the board into a host device, for example, a PC running Linux.
46 usb 9-1: new full-speed USB device number 112 using uhci_hcd
47 usb 9-1: New USB device found, idVendor=8086, idProduct=f8a1
48 usb 9-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
52 cdc_acm 9-1:1.0: ttyACM1: USB ACM device
61 and attach it to detected CDC ACM device:
65 minicom --device /dev/ttyACM1
74 And on ttyACM device, provided by zephyr USB device stack:
78 Send characters to the UART device
[all …]
/Zephyr-latest/include/zephyr/net/
Dcanbus.h34 int (*send)(const struct device *dev, struct net_pkt *pkt);
37 void (*close)(const struct device *dev, int filter_id);
40 int (*setsockopt)(const struct device *dev, void *obj, int level,
45 int (*getsockopt)(const struct device *dev, void *obj, int level,
/Zephyr-latest/drivers/smbus/
Dsmbus_stm32.c22 const struct device *i2c_dev;
27 const struct device *dev;
35 static void smbus_stm32_smbalert_isr(const struct device *dev) in smbus_stm32_smbalert_isr()
45 const struct device *dev = data->dev; in smbus_stm32_smbalert_work()
52 static int smbus_stm32_smbalert_set_cb(const struct device *dev, struct smbus_callback *cb) in smbus_stm32_smbalert_set_cb()
59 static int smbus_stm32_smbalert_remove_cb(const struct device *dev, struct smbus_callback *cb) in smbus_stm32_smbalert_remove_cb()
67 static int smbus_stm32_init(const struct device *dev) in smbus_stm32_init()
95 static int smbus_stm32_configure(const struct device *dev, uint32_t config_value) in smbus_stm32_configure()
130 static int smbus_stm32_get_config(const struct device *dev, uint32_t *config) in smbus_stm32_get_config()
137 static int smbus_stm32_quick(const struct device *dev, uint16_t periph_addr, in smbus_stm32_quick()
[all …]
/Zephyr-latest/drivers/auxdisplay/
Dauxdisplay_pt6314.c69 static int auxdisplay_pt6314_spi_write(const struct device *dev, uint8_t flags, uint8_t val) in auxdisplay_pt6314_spi_write()
81 static inline int auxdisplay_pt6314_inst(const struct device *dev, uint8_t inst) in auxdisplay_pt6314_inst()
86 static inline int auxdisplay_pt6314_data(const struct device *dev, uint8_t data) in auxdisplay_pt6314_data()
91 static int auxdisplay_pt6314_display_on_off(const struct device *dev) in auxdisplay_pt6314_display_on_off()
102 static int auxdisplay_pt6314_function_set(const struct device *dev) in auxdisplay_pt6314_function_set()
115 static int auxdisplay_pt6314_ddram_address_set(const struct device *dev) in auxdisplay_pt6314_ddram_address_set()
125 static int auxdisplay_pt6314_display_on(const struct device *dev) in auxdisplay_pt6314_display_on()
134 static int auxdisplay_pt6314_display_off(const struct device *dev) in auxdisplay_pt6314_display_off()
143 static int auxdisplay_pt6314_cursor_set_enabled(const struct device *dev, bool enable) in auxdisplay_pt6314_cursor_set_enabled()
152 static int auxdisplay_pt6314_position_blinking_set_enabled(const struct device *dev, bool enable) in auxdisplay_pt6314_position_blinking_set_enabled()
[all …]

1...<<11121314151617181920>>...198