| /Zephyr-latest/drivers/i2c/ |
| D | i2c_lpc11u6x.c | 110 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 …]
|
| D | i2c_ll_stm32_v1.c | 148 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 …]
|
| /Zephyr-latest/drivers/ethernet/nxp_imx_netc/ |
| D | dsa_nxp_imx_netc.c | 248 #define DSA_NETC_SLAVE_DEVICE_INIT_INSTANCE(slave, n) \ argument 249 PINCTRL_DT_DEFINE(slave); \ 250 const struct dsa_netc_slave_config dsa_netc_##n##_slave_##slave##_config = { \ 251 .mac_addr = DT_PROP_OR(slave, local_mac_address, {0}), \ 252 .phy_dev = (COND_CODE_1(DT_NODE_HAS_PROP(slave, phy_handle), \ 253 DEVICE_DT_GET(DT_PHANDLE_BY_IDX(slave, phy_handle, 0)), \ 255 .phy_mode = NETC_PHY_MODE(slave), \ 256 .pseudo_mac = DT_ENUM_HAS_VALUE(slave, phy_connection_type, internal), \ 257 .pincfg = PINCTRL_DT_DEV_CONFIG_GET(slave), \ 258 .port_idx = DT_REG_ADDR_BY_IDX(slave, 0), \ [all …]
|
| /Zephyr-latest/samples/net/dsa/src/ |
| D | main.c | 33 struct net_if *slave = dsa_get_slave_port(iface, i); in dsa_iface_find_cb() local 35 if (slave == NULL) { in dsa_iface_find_cb() 40 ifaces->lan[i] = slave; in dsa_iface_find_cb()
|
| /Zephyr-latest/tests/drivers/w1/w1_api/ |
| D | w1_devices.dtsi | 8 slave_1: dummy-slave-1 { 15 slave_2: dummy-slave-2 {
|
| /Zephyr-latest/samples/net/dsa/ |
| D | Kconfig | 11 int "DSA slave ports maximum number" 15 DSA slave ports maximum number.
|
| /Zephyr-latest/samples/subsys/modbus/tcp_server/ |
| D | README.rst | 53 > 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/subsys/modbus/tcp_gateway/ |
| D | README.rst | 57 > 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/drivers/ethernet/ |
| D | dsa_ksz8xxx.c | 1162 #define NET_SLAVE_DEVICE_INIT_INSTANCE(slave, n) \ argument 1163 const struct dsa_slave_config dsa_0_slave_##slave##_config = { \ 1164 .mac_addr = DT_PROP_OR(slave, local_mac_address, {0}) \ 1166 NET_DEVICE_INIT_INSTANCE(CONCAT(dsa_slave_port_, slave), \ 1172 &dsa_0_slave_##slave##_config, \ 1179 #define NET_SLAVE_DEVICE_0_INIT_INSTANCE(slave) \ argument 1180 NET_SLAVE_DEVICE_INIT_INSTANCE(slave, 0) 1181 #define NET_SLAVE_DEVICE_1_INIT_INSTANCE(slave) \ argument 1182 NET_SLAVE_DEVICE_INIT_INSTANCE(slave, 1) 1183 #define NET_SLAVE_DEVICE_2_INIT_INSTANCE(slave) \ argument [all …]
|
| /Zephyr-latest/samples/drivers/spi_bitbang/src/ |
| D | main.c | 29 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/ |
| D | README.rst | 16 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/ |
| D | w1.rst | 13 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/drivers/spi/spi_nxp_lpspi/ |
| D | spi_nxp_lpspi_common.c | 67 if (spi_cfg->slave > (LPSPI_CHIP_SELECT_COUNT - 1)) { in spi_mcux_configure() 68 LOG_ERR("Peripheral %d select exceeds max %d", spi_cfg->slave, in spi_mcux_configure() 114 master_config.whichPcs = spi_cfg->slave + kLPSPI_Pcs0; in spi_mcux_configure()
|
| D | spi_nxp_lpspi_priv.h | 32 #define LPSPI_MASTER_XFER_CFG_FLAGS(slave) \ argument 33 kLPSPI_MasterPcsContinuous | (slave << LPSPI_MASTER_PCS_SHIFT)
|
| /Zephyr-latest/boards/shields/mikroe_eth3_click/ |
| D | Kconfig.defconfig | 8 # LAN9250 is L2 chip slave on SPI
|
| /Zephyr-latest/boards/shields/mikroe_eth_click/ |
| D | Kconfig.defconfig | 8 # ENC28J60 is L2 chip slave on SPI
|
| /Zephyr-latest/drivers/spi/ |
| D | spi_b91.c | 87 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()
|
| D | spi_mcux_ecspi.c | 70 transfer.channel = ctx->config->slave; in spi_mcux_transfer_next_packet() 167 if (!spi_cs_is_gpio(spi_cfg) && spi_cfg->slave > kECSPI_Channel3) { in spi_mcux_configure() 168 LOG_ERR("Slave %d is greater than %d", spi_cfg->slave, kECSPI_Channel3); in spi_mcux_configure() 186 spi_cs_is_gpio(spi_cfg) ? kECSPI_Channel0 : (ecspi_channel_source_t)spi_cfg->slave; in spi_mcux_configure()
|
| /Zephyr-latest/samples/subsys/modbus/rtu_server/ |
| D | README.rst | 88 > 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/drivers/i2s/ |
| D | Kconfig.sam_ssc | 32 in master or slave mode. 43 in master or slave mode.
|
| /Zephyr-latest/tests/drivers/build_all/ethernet/ |
| D | app.overlay | 41 master-slave = "slave";
|
| /Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
| D | lsm6dsl_shub.c | 355 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/ |
| D | nrf51dk_nrf51822.overlay | 27 compatible = "zephyr,bt-hci-spi-slave";
|
| /Zephyr-latest/drivers/w1/ |
| D | Kconfig | 62 slave devices defined in the DTS. Specifically, 65 1-Wire slave on the bus. In most cases, enabling
|
| /Zephyr-latest/samples/drivers/espi/ |
| D | README.rst | 5 Use eSPI to connect to a slave device and exchange virtual wire packets. 38 eSPI slave configured successfully!
|