/Zephyr-latest/samples/subsys/usb/testusb/ |
D | README.rst | 47 $ 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-latest/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_i2c.c | 7 * Bus-specific functionality for MMC56X3s accessed via I2C. 12 static int mmc56x3_bus_check_i2c(const union mmc56x3_bus *bus) in mmc56x3_bus_check_i2c() argument 14 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in mmc56x3_bus_check_i2c() 17 static int mmc56x3_reg_read_i2c(const union mmc56x3_bus *bus, uint8_t reg, uint8_t *buf, int size) in mmc56x3_reg_read_i2c() argument 19 return i2c_burst_read_dt(&bus->i2c, reg, buf, size); in mmc56x3_reg_read_i2c() 22 static int mmc56x3_reg_write_i2c(const union mmc56x3_bus *bus, uint8_t reg, uint8_t val) in mmc56x3_reg_write_i2c() argument 24 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in mmc56x3_reg_write_i2c() 27 static int mmc56x3_raw_read_i2c(const union mmc56x3_bus *bus, uint8_t *buf, size_t size) in mmc56x3_raw_read_i2c() argument 29 return i2c_read_dt(&bus->i2c, buf, size); in mmc56x3_raw_read_i2c() 32 static int mmc56x3_raw_write_i2c(const union mmc56x3_bus *bus, uint8_t *buf, size_t size) in mmc56x3_raw_write_i2c() argument [all …]
|
/Zephyr-latest/dts/bindings/sound/ |
D | cirrus,cs47l63.yaml | 27 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-latest/drivers/sensor/bosch/bmi270/ |
D | bmi270_i2c.c | 8 * 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
|
/Zephyr-latest/dts/bindings/misc/ |
D | nxp,s32-emios.yaml | 8 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-latest/drivers/sensor/tdk/icm42670/ |
D | icm42670_i2c.c | 9 * Bus-specific functionality for ICM42670 accessed via I2C. 15 static int icm42670_bus_check_i2c(const union icm42670_bus *bus) in icm42670_bus_check_i2c() argument 17 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in icm42670_bus_check_i2c() 20 static int icm42670_reg_read_i2c(const union icm42670_bus *bus, uint8_t reg, uint8_t *buf, in icm42670_reg_read_i2c() argument 23 return i2c_burst_read_dt(&bus->i2c, reg, buf, size); in icm42670_reg_read_i2c() 26 static int icm42670_reg_write_i2c(const union icm42670_bus *bus, uint8_t reg, uint8_t *buf, in icm42670_reg_write_i2c() argument 29 return i2c_burst_write_dt(&bus->i2c, reg, buf, size); in icm42670_reg_write_i2c()
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280_i2c.c | 10 * 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-latest/drivers/stepper/adi_tmc/ |
D | adi_tmc_spi.h | 4 * @brief Private API for Trinamic SPI bus 30 * @brief Read a register from the TMC module using the SPI Bus. 32 * @param bus SPI DT information of the bus. 39 int tmc_spi_read_register(const struct spi_dt_spec *bus, const uint8_t read_address_mask, 43 * @brief Write into a register in the TMC module using the SPI Bus. 45 * @param bus SPI DT information of the bus. 52 int tmc_spi_write_register(const struct spi_dt_spec *bus, const uint8_t write_bit,
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_npcm.c | 44 /* 0x010: HFCG Bus Clock Dividers */ 47 /* 0x012: HFCG Bus Clock Dividers */ 50 /* 0x014: HFCG Bus Clock Dividers */ 53 /* 0x01d: HFCG Bus Clock Dividers */ 57 /* clock bus references */ 139 uint16_t bus; member 143 {.clock_id = NPCM_CLOCK_PWM_I, .bus = NPCM_CLOCK_BUS_LFCLK}, 144 {.clock_id = NPCM_CLOCK_PWM_J, .bus = NPCM_CLOCK_BUS_LFCLK}, 145 {.clock_id = NPCM_CLOCK_I3CI, .bus = NPCM_CLOCK_BUS_APB3}, 146 {.clock_id = NPCM_CLOCK_UART3, .bus = NPCM_CLOCK_BUS_APB2}, [all …]
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_spi.c | 11 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 …]
|
D | icm42688_spi.h | 19 * @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-latest/include/zephyr/drivers/usb_c/ |
D | tcpci_priv.h | 47 * @param bus I2C bus 52 int tcpci_read_reg8(const struct i2c_dt_spec *bus, uint8_t reg, uint8_t *value); 57 * @param bus I2C bus 62 int tcpci_write_reg8(const struct i2c_dt_spec *bus, uint8_t reg, uint8_t value); 68 * @param bus I2C bus 74 int tcpci_update_reg8(const struct i2c_dt_spec *bus, uint8_t reg, uint8_t mask, uint8_t value); 79 * @param bus I2C bus 84 int tcpci_read_reg16(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t *value); 89 * @param bus I2C bus 94 int tcpci_write_reg16(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t value); [all …]
|
/Zephyr-latest/drivers/sensor/ist8310/ |
D | ist8310_i2c.c | 9 * 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-latest/drivers/sensor/bosch/bmm150/ |
D | bmm150_i2c.c | 10 * 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-latest/drivers/sensor/bosch/bmp388/ |
D | bmp388_i2c.c | 10 * 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-latest/doc/hardware/peripherals/ |
D | w1.rst | 3 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-latest/tests/drivers/can/host/pytest/ |
D | conftest.py | 13 from can import Bus, BusABC 56 """Return DUT CAN bus.""" 57 bus = CanShellBus(dut, shell, chosen) 58 yield bus 59 bus.shutdown() 64 """Return host CAN bus.""" 65 bus = Bus(config_context = context) 66 yield bus 67 bus.shutdown()
|
/Zephyr-latest/drivers/flash/ |
D | flash_npcx_fiu_qspi.h | 41 /* 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-latest/drivers/usb_c/tcpc/ |
D | ps8xxx.c | 59 /** I2C bus and address used for communication */ 60 const struct i2c_dt_spec bus; member 76 ret = tcpci_write_reg16(&cfg->bus, TCPC_REG_ALERT_MASK, mask); in tcpci_init_alert_mask() 121 ret = tcpci_tcpm_get_cc(&cfg->bus, cc1, cc2); in ps8xxx_tcpc_get_cc() 139 return tcpci_update_reg8(&cfg->bus, TCPC_REG_ROLE_CTRL, TCPC_REG_ROLE_CTRL_RP_MASK, in ps8xxx_tcpc_select_rp_value() 149 ret = tcpci_read_reg8(&cfg->bus, TCPC_REG_ROLE_CTRL, ®_value); in ps8xxx_tcpc_get_rp_value() 166 return tcpci_update_reg8(&cfg->bus, TCPC_REG_ROLE_CTRL, in ps8xxx_tcpc_set_cc() 189 return tcpci_update_reg8(&cfg->bus, TCPC_REG_POWER_CTRL, in ps8xxx_tcpc_vconn_discharge() 205 ret = tcpci_update_reg8(&cfg->bus, TCPC_REG_POWER_CTRL, TCPC_REG_POWER_CTRL_VCONN_EN, in ps8xxx_tcpc_set_vconn() 224 return tcpci_update_reg8(&cfg->bus, TCPC_REG_MSG_HDR_INFO, TCPC_REG_MSG_HDR_INFO_ROLES_MASK, in ps8xxx_tcpc_set_roles() [all …]
|
/Zephyr-latest/drivers/misc/grove_lcd_rgb/ |
D | grove_lcd_rgb.c | 28 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-latest/dts/bindings/sdhc/ |
D | sdhc.yaml | 8 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-latest/subsys/emul/ |
D | emul.c | 50 emul->bus.i2c->target = emul; in emul_init_for_bus() 53 emul->bus.espi->target = emul; in emul_init_for_bus() 56 emul->bus.spi->target = emul; in emul_init_for_bus() 59 emul->bus.mspi->target = emul; in emul_init_for_bus() 62 emul->bus.uart->target = emul; in emul_init_for_bus() 77 rc = i2c_emul_register(dev, emul->bus.i2c); in emul_init_for_bus() 82 rc = espi_emul_register(dev, emul->bus.espi); in emul_init_for_bus() 87 rc = spi_emul_register(dev, emul->bus.spi); in emul_init_for_bus() 92 rc = mspi_emul_register(dev, emul->bus.mspi); in emul_init_for_bus() 97 rc = uart_emul_register(dev, emul->bus.uart); in emul_init_for_bus() [all …]
|
/Zephyr-latest/drivers/sensor/ti/ina23x/ |
D | ina230.c | 19 /** @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 …]
|
D | ina23x_common.c | 11 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-latest/dts/bindings/sensor/ |
D | ti,ina237.yaml | 24 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"
|