Home
last modified time | relevance | path

Searched full:bus (Results 1 – 25 of 1512) sorted by relevance

12345678910>>...61

/Zephyr-Core-3.5.0/samples/subsys/usb/testusb/
DREADME.rst47 $ sudo ./testusb -D /dev/bus/usb/009/016
48 /dev/bus/usb/009/016 test 0, 0.000007 secs
49 /dev/bus/usb/009/016 test 9, 4.994475 secs
50 /dev/bus/usb/009/016 test 10, 11.990054 secs
61 $ sudo sh -c "echo 0x2fe3 0x0009 0 0x0525 0xa4a0 > /sys/bus/usb/drivers/usbtest/new_id"
68 $ sudo ./testusb -v 512 -D /dev/bus/usb/009/016
69 /dev/bus/usb/009/017 test 0, 0.000008 secs
70 /dev/bus/usb/009/017 test 1, 2.000001 secs
71 /dev/bus/usb/009/017 test 2, 2.003058 secs
72 /dev/bus/usb/009/017 test 3, 1.054082 secs
[all …]
/Zephyr-Core-3.5.0/dts/bindings/sound/
Dcirrus,cs47l63.yaml27 GPIO1 input with bus-keeper
32 GPIO2 input with bus-keeper
37 GPIO3 input with bus-keeper
42 GPIO4 input with bus-keeper
47 GPIO5 input with bus-keeper
52 GPIO6 input with bus-keeper
57 GPIO7 input with bus-keeper
62 GPIO8 input with bus-keeper
67 GPIO9 input with bus-keeper
72 GPIO10 input with bus-keeper
[all …]
/Zephyr-Core-3.5.0/drivers/sensor/icm42670/
Dicm42670_spi.c13 static inline int spi_write_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t data) in spi_write_register() argument
31 return spi_write_dt(bus, &tx); in spi_write_register()
34 static inline int spi_read_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t *data, in spi_read_register() argument
65 return spi_transceive_dt(bus, &tx, &rx); in spi_read_register()
68 static inline int spi_read_mreg(const struct spi_dt_spec *bus, uint8_t reg, uint8_t bank, in spi_read_mreg() argument
71 int res = spi_write_register(bus, REG_BLK_SEL_R, bank); in spi_read_mreg()
81 res = spi_write_register(bus, REG_MADDR_R, addr); in spi_read_mreg()
88 res = spi_read_register(bus, REG_M_R, &buf[i], 1); in spi_read_mreg()
100 static inline int spi_write_mreg(const struct spi_dt_spec *bus, uint8_t reg, uint8_t bank, in spi_write_mreg() argument
103 int res = spi_write_register(bus, REG_BLK_SEL_W, bank); in spi_write_mreg()
[all …]
Dicm42670_spi.h20 * @param bus SPI bus pointer
25 int icm42670_spi_single_write(const struct spi_dt_spec *bus, uint16_t reg, uint8_t data);
33 * @param bus SPI bus pointer
39 int icm42670_spi_update_register(const struct spi_dt_spec *bus, uint16_t reg, uint8_t mask,
48 * @param bus SPI bus pointer
54 int icm42670_spi_read(const struct spi_dt_spec *bus, uint16_t reg, uint8_t *data, size_t len);
/Zephyr-Core-3.5.0/drivers/sensor/bmi270/
Dbmi270_i2c.c8 * Bus-specific functionality for BMI270s accessed via I2C.
13 static int bmi270_bus_check_i2c(const union bmi270_bus *bus) in bmi270_bus_check_i2c() argument
15 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in bmi270_bus_check_i2c()
18 static int bmi270_reg_read_i2c(const union bmi270_bus *bus, in bmi270_reg_read_i2c() argument
21 return i2c_burst_read_dt(&bus->i2c, start, data, len); in bmi270_reg_read_i2c()
24 static int bmi270_reg_write_i2c(const union bmi270_bus *bus, uint8_t start, in bmi270_reg_write_i2c() argument
27 return i2c_burst_write_dt(&bus->i2c, start, data, len); in bmi270_reg_write_i2c()
30 static int bmi270_bus_init_i2c(const union bmi270_bus *bus) in bmi270_bus_init_i2c() argument
Dbmi270_spi.c8 * Bus-specific functionality for BMI270s accessed via SPI.
17 static int bmi270_bus_check_spi(const union bmi270_bus *bus) in bmi270_bus_check_spi() argument
19 return spi_is_ready_dt(&bus->spi) ? 0 : -ENODEV; in bmi270_bus_check_spi()
22 static int bmi270_reg_read_spi(const union bmi270_bus *bus, in bmi270_reg_read_spi() argument
50 ret = spi_transceive_dt(&bus->spi, &tx, &rx); in bmi270_reg_read_spi()
60 static int bmi270_reg_write_spi(const union bmi270_bus *bus, uint8_t start, in bmi270_reg_write_spi() argument
76 ret = spi_write_dt(&bus->spi, &tx); in bmi270_reg_write_spi()
86 static int bmi270_bus_init_spi(const union bmi270_bus *bus) in bmi270_bus_init_spi() argument
92 return bmi270_reg_read_spi(bus, BMI270_REG_CHIP_ID, &tmp, 1); in bmi270_bus_init_spi()
/Zephyr-Core-3.5.0/dts/bindings/misc/
Dnxp,s32-emios.yaml8 as a reference timebase (master bus) for other channels.
42 Node for eMIOS master bus. Each channel is capable to become a master bus has
44 the master bus, the devicetree node should be enabled and dts properties
47 For example, to enable bus A of eMIOS instance 0 that can be used as timebase
52 bus-type = "BUS_A";
67 Channel identifier for the master bus.
73 A channel mask for channels that by hardware design can use this master bus
74 as timebase for the operation, lsb is channel 0. The mask bit for this master bus
75 must always 0 because a master bus should not do other thing than a base timer.
85 bus-type:
[all …]
/Zephyr-Core-3.5.0/drivers/sensor/bme280/
Dbme280_i2c.c10 * Bus-specific functionality for BME280s accessed via I2C.
16 static int bme280_bus_check_i2c(const union bme280_bus *bus) in bme280_bus_check_i2c() argument
18 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in bme280_bus_check_i2c()
21 static int bme280_reg_read_i2c(const union bme280_bus *bus, in bme280_reg_read_i2c() argument
24 return i2c_burst_read_dt(&bus->i2c, start, buf, size); in bme280_reg_read_i2c()
27 static int bme280_reg_write_i2c(const union bme280_bus *bus, in bme280_reg_write_i2c() argument
30 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in bme280_reg_write_i2c()
/Zephyr-Core-3.5.0/drivers/sensor/icm42688/
Dicm42688_spi.c11 static inline int spi_write_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t data) in spi_write_register() argument
29 return spi_write_dt(bus, &tx); in spi_write_register()
32 static inline int spi_read_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t *data, in spi_read_register() argument
63 return spi_transceive_dt(bus, &tx, &rx); in spi_read_register()
66 int icm42688_spi_read(const struct spi_dt_spec *bus, uint16_t reg, uint8_t *data, size_t len) in icm42688_spi_read() argument
71 res = spi_read_register(bus, address, data, len); in icm42688_spi_read()
76 int icm42688_spi_update_register(const struct spi_dt_spec *bus, uint16_t reg, uint8_t mask, in icm42688_spi_update_register() argument
80 int res = icm42688_spi_read(bus, reg, &temp, 1); in icm42688_spi_update_register()
89 return icm42688_spi_single_write(bus, reg, temp); in icm42688_spi_update_register()
92 int icm42688_spi_single_write(const struct spi_dt_spec *bus, uint16_t reg, uint8_t data) in icm42688_spi_single_write() argument
[all …]
Dicm42688_spi.h19 * @param bus SPI bus pointer
24 int icm42688_spi_single_write(const struct spi_dt_spec *bus, uint16_t reg, uint8_t data);
32 * @param bus SPI bus pointer
38 int icm42688_spi_update_register(const struct spi_dt_spec *bus, uint16_t reg, uint8_t mask,
47 * @param bus SPI bus pointer
53 int icm42688_spi_read(const struct spi_dt_spec *bus, uint16_t reg, uint8_t *data, size_t len);
/Zephyr-Core-3.5.0/drivers/sensor/ist8310/
Dist8310_i2c.c9 * Bus-specific functionality for IST8310 accessed via I2C.
14 static int ist8310_bus_check_i2c(const union ist8310_bus *bus) in ist8310_bus_check_i2c() argument
16 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in ist8310_bus_check_i2c()
19 static int ist8310_reg_read_i2c(const union ist8310_bus *bus, uint8_t start, uint8_t *buf, int size) in ist8310_reg_read_i2c() argument
21 return i2c_burst_read_dt(&bus->i2c, start, buf, size); in ist8310_reg_read_i2c()
24 static int ist8310_reg_write_i2c(const union ist8310_bus *bus, uint8_t reg, uint8_t val) in ist8310_reg_write_i2c() argument
26 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in ist8310_reg_write_i2c()
/Zephyr-Core-3.5.0/doc/hardware/peripherals/
Dw1.rst3 1-Wire Bus
9 1-Wire is a low speed half-duplex serial bus using only a single wire plus
12 and is a single master multidrop bus. This means one master initiates all data
14 The 1-Wire bus supports longer bus lines than I2C, while it reaches speeds of up
17 over a bus length of 100 meters. Using overdrive speed, 3 nodes on a bus of
19 fewer nodes on the bus may allow to reach larger bus extents.
25 :alt: 1-Wire bus topology
27 A typical 1-Wire bus topology
40 * The link layer handles basic communication functions such as bus reset,
47 * The 1-Wire network layer handles all means for slave identification and bus
[all …]
/Zephyr-Core-3.5.0/drivers/sensor/bmm150/
Dbmm150_i2c.c10 * Bus-specific functionality for BMM150s accessed via I2C.
17 static int bmm150_bus_check_i2c(const union bmm150_bus *bus) in bmm150_bus_check_i2c() argument
19 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmm150_bus_check_i2c()
22 static int bmm150_reg_read_i2c(const union bmm150_bus *bus, in bmm150_reg_read_i2c() argument
25 return i2c_burst_read_dt(&bus->i2c, start, buf, size); in bmm150_reg_read_i2c()
28 static int bmm150_reg_write_i2c(const union bmm150_bus *bus, in bmm150_reg_write_i2c() argument
31 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in bmm150_reg_write_i2c()
/Zephyr-Core-3.5.0/drivers/sensor/bmp388/
Dbmp388_i2c.c10 * Bus-specific functionality for BMP388s accessed via I2C.
16 static int bmp388_bus_check_i2c(const union bmp388_bus *bus) in bmp388_bus_check_i2c() argument
18 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmp388_bus_check_i2c()
21 static int bmp388_reg_read_i2c(const union bmp388_bus *bus, in bmp388_reg_read_i2c() argument
24 return i2c_burst_read_dt(&bus->i2c, start, buf, size); in bmp388_reg_read_i2c()
27 static int bmp388_reg_write_i2c(const union bmp388_bus *bus, in bmp388_reg_write_i2c() argument
30 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in bmp388_reg_write_i2c()
/Zephyr-Core-3.5.0/drivers/sensor/ina23x/
Dina230.c21 /** @brief The LSB value for the bus voltage register, in microvolts/LSB. */
81 ret = ina23x_reg_read_16(&config->bus, INA230_REG_BUS_VOLT, &data->bus_voltage); in ina230_sample_fetch()
83 LOG_ERR("Failed to read bus voltage"); in ina230_sample_fetch()
89 ret = ina23x_reg_read_16(&config->bus, INA230_REG_CURRENT, &data->current); in ina230_sample_fetch()
97 ret = ina23x_reg_read_16(&config->bus, INA230_REG_POWER, &data->power); in ina230_sample_fetch()
115 return ina23x_reg_write(&config->bus, INA230_REG_CONFIG, data); in ina230_attr_set()
117 return ina23x_reg_write(&config->bus, INA230_REG_CALIB, data); in ina230_attr_set()
119 return ina23x_reg_write(&config->bus, INA230_REG_MASK, data); in ina230_attr_set()
121 return ina23x_reg_write(&config->bus, INA230_REG_ALERT, data); in ina230_attr_set()
137 ret = ina23x_reg_read_16(&config->bus, INA230_REG_CONFIG, &data); in ina230_attr_get()
[all …]
Dina23x_common.c11 int ina23x_reg_read_24(const struct i2c_dt_spec *bus, uint8_t reg, uint32_t *val) in ina23x_reg_read_24() argument
16 ret = i2c_burst_read_dt(bus, reg, data, sizeof(data)); in ina23x_reg_read_24()
26 int ina23x_reg_read_16(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t *val) in ina23x_reg_read_16() argument
31 ret = i2c_burst_read_dt(bus, reg, data, sizeof(data)); in ina23x_reg_read_16()
41 int ina23x_reg_write(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t val) in ina23x_reg_write() argument
48 return i2c_write_dt(bus, tx_buf, sizeof(tx_buf)); in ina23x_reg_write()
/Zephyr-Core-3.5.0/drivers/flash/
Dflash_npcx_fiu_qspi.h41 /* QSPI bus configuration for a SPI device */
45 /* Pinctrl for QSPI bus */
56 * @brief Execute UMA transactions on qspi bus
58 * @param dev Pointer to the device structure for qspi bus controller instance.
67 * @brief Lock the mutex of npcx qspi bus controller and apply its configuration
69 * @param dev Pointer to the device structure for qspi bus controller instance.
70 * @param cfg Pointer to the configuration for the device on qspi bus.
71 * @param operation Qspi bus operation for the device.
78 * @brief Unlock the mutex of npcx qspi bus controller.
80 * @param dev Pointer to the device structure for qspi bus controller instance.
/Zephyr-Core-3.5.0/drivers/misc/grove_lcd_rgb/
Dgrove_lcd_rgb.c28 struct i2c_dt_spec bus; member
90 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_print()
110 i2c_write_dt(&config->bus, data, 2); in glcd_cursor_pos_set()
119 i2c_write_dt(&config->bus, clear, sizeof(clear)); in glcd_clear()
134 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_display_state_set()
158 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_input_state_set()
187 rgb_reg_set(config->bus.bus, REGISTER_R, r); in glcd_color_set()
188 rgb_reg_set(config->bus.bus, REGISTER_G, g); in glcd_color_set()
189 rgb_reg_set(config->bus.bus, REGISTER_B, b); in glcd_color_set()
202 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_function_set()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/
Dmdio.h36 /** Enable the MDIO bus device */
39 /** Disable the MDIO bus device */
42 /** Read data from MDIO bus */
46 /** Write data to MDIO bus */
50 /** Read data from MDIO bus using Clause 45 access */
54 /** Write data to MDIO bus using Clause 45 access */
63 * @brief Enable MDIO bus
79 * @brief Disable MDIO bus and tri-state drivers
95 * @brief Read from MDIO Bus
98 * MDIO bus.
[all …]
/Zephyr-Core-3.5.0/dts/bindings/sdhc/
Dsdhc.yaml8 bus: sd
32 max-bus-freq:
36 Maximum bus frequency for SD card. This should be the highest frequency
37 the SDHC is capable of negotiating with cards on the bus.
39 min-bus-freq:
43 Minimum bus frequency for SD card. This should be the frequency that
44 cards first will select when attached to the SDHC bus
/Zephyr-Core-3.5.0/dts/bindings/sensor/
Dti,ina237.yaml24 e.g shunt voltage and bus voltage ADC conversion
50 default: "Temperature, bus, and shunt voltage continuous"
53 - "Bus Voltage single shot"
55 - "Bus and Shunt Voltage single shot"
57 - "Temperature and bus voltage single shot"
59 - "Temperature, bus, and shunt voltage single shot"
61 - "Bus voltage continuous"
63 - "Bus and shunt voltage continuous"
65 - "Temperature and bus voltage continuous"
67 - "Temperature, bus, and shunt voltage continuous"
/Zephyr-Core-3.5.0/include/zephyr/dt-bindings/reset/
Dstm32-common.h17 * @param bus STM32 bus name (expands to STM32_RESET_BUS_{bus})
20 #define STM32_RESET(bus, bit) (((STM32_RESET_BUS_##bus) << 5U) | (bit)) argument
/Zephyr-Core-3.5.0/drivers/sensor/bme680/
Dbme680_i2c.c11 * Bus-specific functionality for BME680s accessed via I2C.
17 static int bme680_bus_check_i2c(const union bme680_bus *bus) in bme680_bus_check_i2c() argument
19 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in bme680_bus_check_i2c()
27 return i2c_burst_read_dt(&config->bus.i2c, start, buf, size); in bme680_reg_read_i2c()
35 return i2c_reg_write_byte_dt(&config->bus.i2c, reg, val); in bme680_reg_write_i2c()
/Zephyr-Core-3.5.0/drivers/watchdog/
Dwdt_npm6001.c39 struct i2c_dt_spec bus; member
55 return i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_disable()
84 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
91 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
99 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
106 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
113 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
120 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
128 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
135 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
[all …]
/Zephyr-Core-3.5.0/boards/shields/x_nucleo_eeprma2/doc/
Dindex.rst42 - `M24C02-F Serial I2C bus EEPROM Datasheet`_
43 - `M24256-DF Serial I2C bus EEPROM Datasheet`_
44 - `M24M01-DF Serial I2C bus EEPROM Datasheet`_
46 - `M95040-R Serial SPI bus EEPROM Datasheet`_
47 - `M95256-DF Serial SPI bus EEPROM Datasheet`_
48 - `M95M04-DR Serial SPI bus EEPROM Datasheet`_
75 .. _M24C02-F Serial I2C bus EEPROM Datasheet:
78 .. _M24256-DF Serial I2C bus EEPROM Datasheet:
81 .. _M24M01-DF Serial I2C bus EEPROM Datasheet:
84 .. _M95040-R Serial SPI bus EEPROM Datasheet:
[all …]

12345678910>>...61