Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 25 of 119) sorted by relevance

12345

/Zephyr-latest/drivers/i2c/
Di2c_lpc11u6x.c110 if (data->slave) { in lpc11u6x_i2c_transfer()
134 if (data->slave) { in lpc11u6x_i2c_slave_register()
139 data->slave = cfg; in lpc11u6x_i2c_slave_register()
161 if (data->slave != cfg) { in lpc11u6x_i2c_slave_unregister()
166 data->slave = NULL; in lpc11u6x_i2c_slave_unregister()
239 if (data->slave->callbacks->write_requested(data->slave)) { in lpc11u6x_i2c_isr()
247 if (data->slave->callbacks->write_received(data->slave, val)) { in lpc11u6x_i2c_isr()
255 data->slave->callbacks->write_received(data->slave, val); in lpc11u6x_i2c_isr()
256 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
261 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
[all …]
Di2c_ll_stm32_v1.c148 uint8_t *next_msg_flags, uint16_t slave, in msg_init() argument
173 data->slave_address = slave; in msg_init()
238 uint8_t slave; in handle_sb() local
241 slave = (((saddr & 0x0300) >> 7) & 0xFF); in handle_sb()
242 uint8_t header = slave | HEADER; in handle_sb()
254 slave = (saddr << 1) & 0xFF; in handle_sb()
256 LL_I2C_TransmitData8(i2c, slave | I2C_REQUEST_WRITE); in handle_sb()
258 LL_I2C_TransmitData8(i2c, slave | I2C_REQUEST_READ); in handle_sb()
759 uint8_t slave = (((saddr & 0x0300) >> 7) & 0xFF); in stm32_i2c_msg_write() local
760 uint8_t header = slave | HEADER; in stm32_i2c_msg_write()
[all …]
Di2c_ll_stm32_v2.c121 uint8_t *next_msg_flags, uint16_t slave, in msg_init() argument
134 LL_I2C_SetSlaveAddr(i2c, (uint32_t) slave); in msg_init()
138 LL_I2C_SetSlaveAddr(i2c, (uint32_t) slave << 1); in msg_init()
589 uint8_t *next_msg_flags, uint16_t slave) in stm32_i2c_msg_write() argument
603 msg_init(dev, msg, next_msg_flags, slave, LL_I2C_REQUEST_WRITE); in stm32_i2c_msg_write()
647 uint8_t *next_msg_flags, uint16_t slave) in stm32_i2c_msg_read() argument
662 msg_init(dev, msg, next_msg_flags, slave, LL_I2C_REQUEST_READ); in stm32_i2c_msg_read()
769 uint8_t *next_msg_flags, uint16_t slave) in stm32_i2c_msg_write() argument
776 msg_init(dev, msg, next_msg_flags, slave, LL_I2C_REQUEST_WRITE); in stm32_i2c_msg_write()
799 uint8_t *next_msg_flags, uint16_t slave) in stm32_i2c_msg_read() argument
[all …]
Di2c_lpc11u6x.h89 struct i2c_target_config *slave; member
/Zephyr-latest/tests/drivers/w1/w1_api/
Dw1_devices.dtsi8 slave_1: dummy-slave-1 {
15 slave_2: dummy-slave-2 {
/Zephyr-latest/samples/subsys/modbus/tcp_server/
DREADME.rst53 > client.write_coil address=0 value=1 slave=1
68 > client.write_coils address=0 values=0,1,1 slave=1
74 > client.read_coils address=0 count=3 slave=1
96 > client.write_register address=0 value=42 slave=1
102 > client.write_registers address=0 values=42,42,42 slave=1
108 > client.read_holding_registers address=0 count=3 slave=1
/Zephyr-latest/samples/net/dsa/src/
Dmain.c28 struct net_if *slave = dsa_get_slave_port(iface, i); in iface_cb() local
30 if (slave == NULL) { in iface_cb()
35 ifaces->lan[i] = slave; in iface_cb()
/Zephyr-latest/drivers/ethernet/
Ddsa_ksz8xxx.c1065 #define NET_SLAVE_DEVICE_INIT_INSTANCE(slave, n) \ argument
1066 const struct dsa_slave_config dsa_0_slave_##slave##_config = { \
1067 .mac_addr = DT_PROP_OR(slave, local_mac_address, {0}) \
1069 NET_DEVICE_INIT_INSTANCE(CONCAT(dsa_slave_port_, slave), \
1075 &dsa_0_slave_##slave##_config, \
1082 #define NET_SLAVE_DEVICE_0_INIT_INSTANCE(slave) \ argument
1083 NET_SLAVE_DEVICE_INIT_INSTANCE(slave, 0)
1084 #define NET_SLAVE_DEVICE_1_INIT_INSTANCE(slave) \ argument
1085 NET_SLAVE_DEVICE_INIT_INSTANCE(slave, 1)
1086 #define NET_SLAVE_DEVICE_2_INIT_INSTANCE(slave) \ argument
[all …]
/Zephyr-latest/samples/subsys/modbus/tcp_gateway/
DREADME.rst57 > client.write_coil address=0 value=1 slave=1
72 > client.write_coils address=0 values=0,1,1 slave=1
78 > client.read_coils address=0 count=3 slave=1
100 > client.write_register address=0 value=42 slave=1
106 > client.write_registers address=0 values=42,42,42 slave=1
112 > client.read_holding_registers address=0 count=3 slave=1
/Zephyr-latest/samples/drivers/spi_bitbang/src/
Dmain.c29 config.slave = 0; in test_basic_write_9bit_words()
56 config.slave = 0; in test_9bit_loopback_partial()
95 config.slave = 0; in test_8bit_xfer()
/Zephyr-latest/samples/bluetooth/hci_spi/
DREADME.rst16 A board with SPI slave, GPIO and Bluetooth Low Energy support.
22 for the HCI SPI slave device with compatible
23 :dtcompatible:`zephyr,bt-hci-spi-slave`. This node sets an interrupt line to
/Zephyr-latest/doc/hardware/peripherals/
Dw1.rst13 exchanges with the slave devices.
35 Zephyr's 1-Wire Master API is used to interact with 1-Wire slave devices like
47 * The 1-Wire network layer handles all means for slave identification and bus
51 * All slave devices have a unique 64-bit identification number, which
58 generic 1-Wire driver and therefore must be handled in individual slave drivers.
/Zephyr-latest/boards/shields/mikroe_eth3_click/
DKconfig.defconfig8 # LAN9250 is L2 chip slave on SPI
/Zephyr-latest/boards/shields/mikroe_eth_click/
DKconfig.defconfig8 # ENC28J60 is L2 chip slave on SPI
/Zephyr-latest/drivers/spi/
Dspi_b91.c87 if (config->slave >= CHIP_SELECT_COUNT) { in spi_b91_config_cs()
88 LOG_ERR("Slave %d not supported (max. %d)", config->slave, CHIP_SELECT_COUNT - 1); in spi_b91_config_cs()
98 if ((cs_pin == 0) && (cs_id == config->slave)) { in spi_b91_config_cs()
99 LOG_ERR("cs%d-pin is not defined in device tree", config->slave); in spi_b91_config_cs()
104 if ((cs_pin != 0) && (cs_id != config->slave)) { in spi_b91_config_cs()
113 if ((cs_pin != 0) && (cs_id == config->slave)) { in spi_b91_config_cs()
Dspi_mcux_ecspi.c70 transfer.channel = ctx->config->slave; in spi_mcux_transfer_next_packet()
166 if (spi_cfg->slave > kECSPI_Channel3) { in spi_mcux_configure()
167 LOG_ERR("Slave %d is greater than %d", spi_cfg->slave, kECSPI_Channel3); in spi_mcux_configure()
184 master_config.channel = (ecspi_channel_source_t)spi_cfg->slave; in spi_mcux_configure()
Dspi_litex_litespi.c63 if (config->slave != 0) { in spi_config()
64 if (config->slave >= SPI_MAX_CS_SIZE) { in spi_config()
152 litex_write32(BIT(config->slave), dev_config->core_master_cs_addr); in spi_litex_xfer()
/Zephyr-latest/samples/subsys/modbus/rtu_server/
DREADME.rst88 > client.write_coil address=0 value=1 slave=1
103 > client.write_coils address=0 values=0,1,1 slave=1
109 > client.read_coils address=0 count=3 slave=1
131 > client.write_register address=0 value=42 slave=1
137 > client.write_registers address=0 values=42,42,42 slave=1
143 > client.read_holding_registers address=0 count=3 slave=1
/Zephyr-latest/tests/drivers/build_all/ethernet/
Dapp.overlay41 master-slave = "slave";
/Zephyr-latest/drivers/i2s/
DKconfig.sam_ssc32 in master or slave mode.
43 in master or slave mode.
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl_shub.c355 uint8_t slave[3]; in lsm6dsl_shub_read_slave_reg() local
357 slave[0] = (slv_addr << 1) | LSM6DSL_EMBEDDED_SLVX_READ; in lsm6dsl_shub_read_slave_reg()
358 slave[1] = slv_reg; in lsm6dsl_shub_read_slave_reg()
359 slave[2] = (len & 0x7); in lsm6dsl_shub_read_slave_reg()
362 slave, 3) < 0) { in lsm6dsl_shub_read_slave_reg()
/Zephyr-latest/samples/bluetooth/hci_spi/boards/
Dnrf51dk_nrf51822.overlay27 compatible = "zephyr,bt-hci-spi-slave";
/Zephyr-latest/drivers/w1/
DKconfig62 slave devices defined in the DTS. Specifically,
65 1-Wire slave on the bus. In most cases, enabling
/Zephyr-latest/samples/drivers/espi/
DREADME.rst5 Use eSPI to connect to a slave device and exchange virtual wire packets.
38 eSPI slave configured successfully!
/Zephyr-latest/tests/boards/nrf/i2c/i2c_slave/boards/
Dnrf52840dk_nrf52840.overlay3 i2c-slave = &i2c1;

12345