Home
last modified time | relevance | path

Searched +full:slave +full:- +full:mode (Results 1 – 25 of 138) sorted by relevance

123456

/Zephyr-Core-3.5.0/drivers/spi/
DKconfig.stm323 # Copyright (c) 2015-2016 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
26 Enable the SPI DMA mode for SPI instances
30 bool "STM32 Hardware Slave Select support"
33 Use Slave Select pin instead of software Slave Select.
Dspi_b91.c4 * SPDX-License-Identifier: Apache-2.0
37 #define SPI_CFG(dev) ((struct spi_b91_cfg *) ((dev)->config))
43 #define SPI_DATA(dev) ((struct spi_b91_data *) ((dev)->data))
54 pin = config->cs_pin[i]; in spi_b91_hw_cs_disable()
58 if (config->peripheral_id == PSPI_MODULE) { in spi_b91_hw_cs_disable()
85 /* check for correct slave id */ in spi_b91_config_cs()
86 if (config->slave >= CHIP_SELECT_COUNT) { in spi_b91_config_cs()
87 LOG_ERR("Slave %d not supported (max. %d)", config->slave, CHIP_SELECT_COUNT - 1); in spi_b91_config_cs()
94 cs_pin = b91_config->cs_pin[cs_id]; in spi_b91_config_cs()
96 /* if cs pin is not defined for the selected slave, return error */ in spi_b91_config_cs()
[all …]
DKconfig3 # Copyright (c) 2015-2016 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
31 bool "Slave support [EXPERIMENTAL]"
34 Enables Driver SPI slave operations. Slave support depends
42 enables the possibility to select the line mode (single/dual/
43 quad/octal), though none of these mode are really supported as
65 module-str = spi
Dspi_litespi.c4 * SPDX-License-Identifier: Apache-2.0
20 if (config->slave != 0) { in spi_config()
21 if (config->slave >= SPI_MAX_CS_SIZE) { in spi_config()
23 return -ENOTSUP; in spi_config()
25 cs = (uint8_t)(config->slave); in spi_config()
28 if (config->operation & SPI_HALF_DUPLEX) { in spi_config()
29 LOG_ERR("Half-duplex not supported"); in spi_config()
30 return -ENOTSUP; in spi_config()
33 if (SPI_WORD_SIZE_GET(config->operation) != 8) { in spi_config()
35 return -ENOTSUP; in spi_config()
[all …]
Dspi_xlnx_axi_quadspi.c4 * SPDX-License-Identifier: Apache-2.0
98 const struct xlnx_quadspi_config *config = dev->config; in xlnx_quadspi_read32()
100 return sys_read32(config->base + offset); in xlnx_quadspi_read32()
107 const struct xlnx_quadspi_config *config = dev->config; in xlnx_quadspi_write32()
109 sys_write32(value, config->base + offset); in xlnx_quadspi_write32()
114 const struct xlnx_quadspi_config *config = dev->config; in xlnx_quadspi_cs_control()
115 struct xlnx_quadspi_data *data = dev->data; in xlnx_quadspi_cs_control()
116 struct spi_context *ctx = &data->ctx; in xlnx_quadspi_cs_control()
117 uint32_t spissr = BIT_MASK(config->num_ss_bits); in xlnx_quadspi_cs_control()
120 /* Skip slave select assert/de-assert in slave mode */ in xlnx_quadspi_cs_control()
[all …]
Dspi_nxp_s32.c2 * Copyright 2022-2023 NXP
4 * SPDX-License-Identifier: Apache-2.0
15 struct spi_context *ctx = &data->ctx; in spi_nxp_s32_last_packet()
17 if (ctx->tx_count <= 1U && ctx->rx_count <= 1U) { in spi_nxp_s32_last_packet()
18 if (!spi_context_tx_on(ctx) && (data->transfer_len == ctx->rx_len)) { in spi_nxp_s32_last_packet()
22 if (!spi_context_rx_on(ctx) && (data->transfer_len == ctx->tx_len)) { in spi_nxp_s32_last_packet()
26 if ((ctx->rx_len == ctx->tx_len) && (data->transfer_len == ctx->tx_len)) { in spi_nxp_s32_last_packet()
41 const struct spi_nxp_s32_config *config = dev->config; in spi_nxp_s32_transfer_next_packet()
42 struct spi_nxp_s32_data *data = dev->data; in spi_nxp_s32_transfer_next_packet()
48 data_cb = config->cb; in spi_nxp_s32_transfer_next_packet()
[all …]
Dspi_oc_simple.c4 * SPDX-License-Identifier: Apache-2.0
40 if (spi_context_configured(&spi->ctx, config)) { in spi_oc_simple_configure()
45 if (config->operation & SPI_HALF_DUPLEX) { in spi_oc_simple_configure()
46 LOG_ERR("Half-duplex not supported"); in spi_oc_simple_configure()
47 return -ENOTSUP; in spi_oc_simple_configure()
50 /* Simple SPI only supports master mode */ in spi_oc_simple_configure()
51 if (spi_context_is_slave(&spi->ctx)) { in spi_oc_simple_configure()
52 LOG_ERR("Slave mode not supported"); in spi_oc_simple_configure()
53 return -ENOTSUP; in spi_oc_simple_configure()
56 if ((config->operation & (SPI_MODE_LOOP | SPI_TRANSFER_LSB)) || in spi_oc_simple_configure()
[all …]
/Zephyr-Core-3.5.0/dts/bindings/pwm/
Dst,stm32-pwm.yaml3 compatible: "st,stm32-pwm"
5 include: [pwm-controller.yaml, base.yaml, pinctrl-device.yaml]
8 pinctrl-0:
11 pinctrl-names:
14 four-channel-capture-support:
19 interrupt instead of slave-mode controller. This option can also
20 be used as alternative for timers that does not support slave mode.
22 "#pwm-cells":
26 - channel of the timer used for PWM
27 - period to set in ns
[all …]
/Zephyr-Core-3.5.0/include/zephyr/dt-bindings/pinctrl/
Dnrf-pinctrl.h3 * SPDX-License-Identifier: Apache-2.0
10 * The whole nRF pin configuration information is encoded in a 32-bit bitfield
13 * - 31..16: Pin function.
14 * - 15: Reserved.
15 * - 14: Pin inversion mode.
16 * - 13: Pin low power mode.
17 * - 12..9: Pin output drive configuration.
18 * - 8..7: Pin pull configuration.
19 * - 6..0: Pin number (combination of port and pin).
73 /** SPI slave SCK */
[all …]
/Zephyr-Core-3.5.0/drivers/i2s/
DKconfig.sam_ssc4 # SPDX-License-Identifier: Apache-2.0
31 in master or slave mode.
42 in master or slave mode.
/Zephyr-Core-3.5.0/drivers/sensor/mpu9250/
Dak8963.c4 * SPDX-License-Identifier: Apache-2.0
72 /* The sensor device returns 10^-9 Teslas after scaling. in ak8963_convert_magn()
80 return -EOVERFLOW; in ak8963_convert_magn()
85 val->val1 = scaled_val / 1000000; in ak8963_convert_magn()
86 val->val2 = scaled_val % 1000000; in ak8963_convert_magn()
96 const struct mpu9250_config *cfg = dev->config; in ak8963_execute_rw()
106 ret = i2c_reg_write_byte_dt(&cfg->i2c, in ak8963_execute_rw()
110 LOG_ERR("Failed to write i2c target slave address."); in ak8963_execute_rw()
115 ret = i2c_reg_write_byte_dt(&cfg->i2c, in ak8963_execute_rw()
119 LOG_ERR("Failed to write i2c target slave register."); in ak8963_execute_rw()
[all …]
/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
11 Similarly to I2C, 1-Wire uses a bidirectional open-collector data line,
13 exchanges with the slave devices.
14 The 1-Wire bus supports longer bus lines than I2C, while it reaches speeds of up
15 to 15.4 kbps in standard mode and up to 125 kbps in overdrive mode.
23 .. figure:: 1-Wire_bus_topology.drawio.svg
25 :alt: 1-Wire bus topology
27 A typical 1-Wire bus topology
30 .. _w1-master-api:
[all …]
/Zephyr-Core-3.5.0/dts/bindings/led/
Dissi,is31fl3733.yaml2 # SPDX-License-Identifier: Apache-2.0
7 include: "i2c-device.yaml"
10 sdb-gpios:
11 type: phandle-array
17 current-limit:
23 formula: (840/R_ISET) * (current-limit/256). Defaults to max value
27 sync-mode:
31 - "none"
32 - "master"
33 - "slave"
[all …]
/Zephyr-Core-3.5.0/drivers/i2c/
Di2c_lpc11u6x.h4 * SPDX-License-Identifier: Apache-2.0
60 volatile uint32_t addr0; /* Slave address 0 */
64 volatile uint32_t mm_ctrl; /* Monitor mode control */
65 volatile uint32_t addr[3]; /* Slave address {1,2,3} */
67 volatile uint32_t mask[4]; /* Slave address mask */
89 struct i2c_target_config *slave; member
Di2c_rcar.c4 * SPDX-License-Identifier: Apache-2.0
20 #include "i2c-priv.h"
38 #define RCAR_I2C_ICSCR 0x00 /* Slave Control Register */
40 #define RCAR_I2C_ICSIER 0x10 /* Slave IRQ Enable */
42 #define RCAR_I2C_ICSSR 0x08 /* Slave Status */
45 #define RCAR_I2C_ICSAR 0x1c /* Slave Address Register */
81 return sys_read32(config->reg_addr + offs); in i2c_rcar_read()
87 sys_write32(value, config->reg_addr + offs); in i2c_rcar_write()
92 const struct i2c_rcar_cfg *config = dev->config; in i2c_rcar_isr()
93 struct i2c_rcar_data *data = dev->data; in i2c_rcar_isr()
[all …]
Di2c_lpc11u6x.c4 * SPDX-License-Identifier: Apache-2.0
15 #define DEV_BASE(dev) (((struct lpc11u6x_i2c_config *)(dev->config))->base)
23 clock_control_get_rate(clk_dev, (clock_control_subsys_t) cfg->clkid, in lpc11u6x_i2c_set_bus_speed()
27 cfg->base->sclh = div / 2; in lpc11u6x_i2c_set_bus_speed()
28 cfg->base->scll = div - (div / 2); in lpc11u6x_i2c_set_bus_speed()
34 const struct lpc11u6x_i2c_config *cfg = dev->config; in lpc11u6x_i2c_configure()
35 struct lpc11u6x_i2c_data *data = dev->data; in lpc11u6x_i2c_configure()
53 return -ENOTSUP; in lpc11u6x_i2c_configure()
55 return -EINVAL; in lpc11u6x_i2c_configure()
59 return -ENOTSUP; in lpc11u6x_i2c_configure()
[all …]
/Zephyr-Core-3.5.0/dts/bindings/w1/
Dmaxim,ds2477_85_common.yaml2 # SPDX-License-Identifier: Apache-2.0
4 # Common Properties for the DS2477 and DS2485 I2C 1-Wire masters:
6 include: [w1-master.yaml, i2c-device.yaml]
9 switching-threshold:
13 - "low"
14 - "medium"
15 - "high"
16 - "off"
18 Default Low-to-High Switching Threshold.
26 active-pull-threshold:
[all …]
/Zephyr-Core-3.5.0/boards/arc/em_starterkit/
Dpmodmux.c4 * SPDX-License-Identifier: Apache-2.0
12 * 32-bits, offset 0x0, This register controls mapping of the peripheral device
16 /* 32-bits, offset 0x4 */
20 * 32-bits, offset 0x8, SPI_MAP_CTRL[0] selects the mode of operation of the SPI
21 * Slave: Normal operation, SPI_MAP_CTRL[0]=0: SPI Slave is connected to Pmod1
22 * at connector J1. Loop-back mode, SPI_MAP_CTRL[0]=1: SPI Slave is connected to
27 * 32-bits, offset 0x8, This register controls the mapping of the UART signals
60 /* normal SPI mode */
72 /* Pmod1[10:7] are connected to DW SPI Slave signals */
135 * information -> Appendix: A Hardware Functional Description -> in pmod_mux_init()
[all …]
/Zephyr-Core-3.5.0/drivers/espi/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
22 module-str = espi
26 bool "ESPI slave driver"
29 Enables eSPI driver in slave mode.
55 Enable automatic acknowledgment from eSPI slave towards eSPI host
61 bool "Automatic acknowledge slave boot status"
66 Enable automatic acknowledgment from slave basic configuration been
73 bool "eSPI Out-of-band channel"
173 bool "OOB host-initiated traffic handling"
176 Enables asynchronous handling for host-initiated OOB traffic.
[all …]
/Zephyr-Core-3.5.0/dts/bindings/spi/
Dnxp,s32-spi.yaml1 # Copyright 2022-2023 NXP
2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,s32-spi"
8 include: [spi-controller.yaml, pinctrl-device.yaml]
17 num-cs:
26 pinctrl-0:
29 pinctrl-names:
32 slave:
35 Select if the SPI module is intended to be used in slave mode.
37 spi-sck-cs-delay:
[all …]
Dnxp,kinetis-dspi.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,kinetis-dspi"
8 include: ["spi-controller.yaml", "pinctrl-device.yaml"]
20 pcs-sck-delay:
26 sck-pcs-delay:
32 transfer-delay:
38 pinctrl-0:
41 nxp,rx-tx-chn-share:
48 ctar register selection range form 0-1 for master mode, 0 for slave mode
50 sample-point:
[all …]
/Zephyr-Core-3.5.0/drivers/serial/
Duart_native_ptty_bottom.c5 * SPDX-License-Identifier: Apache-2.0
31 * @retval -1 If no character was available to read
32 * @retval -2 if the stdin is disconnected
41 return -2; in np_uart_stdin_poll_in_bottom()
44 int n = -1; in np_uart_stdin_poll_in_bottom()
56 return -1; in np_uart_stdin_poll_in_bottom()
57 } else if (ready == -1) { in np_uart_stdin_poll_in_bottom()
62 if ((n == -1) || (n == 0)) { in np_uart_stdin_poll_in_bottom()
63 return -1; in np_uart_stdin_poll_in_bottom()
70 * @brief Check if the output descriptor has something connected to the slave side
[all …]
/Zephyr-Core-3.5.0/samples/shields/x_nucleo_iks01a2/sensorhub/
DREADME.rst1 .. zephyr:code-sample:: x-nucleo-iks01a2-shub
2 :name: X-NUCLEO-IKS01A2 shield - SensorHub (Mode 2)
3 :relevant-api: sensor_interface
5 Interact with all the sensors of an X-NUCLEO-IKS01A2 shield using Sensor Hub mode.
9 This sample is provided as an example to test the X-NUCLEO-IKS01A2 shield
10 configured in Sensor Hub mode (Mode 2).
11 Please refer to :ref:`x-nucleo-iks01a2` for more info on this configuration.
15 mode (CONFIG_LSM6DSL_SENSORHUB=y) with a selection of one slave only
20 - LSM6DSL 6-Axis acceleration and angular velocity
21 - LSM6DSL 3-Axis magnetic field intensity (from LSM303AGR mag) - Primary option
[all …]
/Zephyr-Core-3.5.0/samples/shields/x_nucleo_iks02a1/sensorhub/
DREADME.rst1 .. zephyr:code-sample:: x-nucleo-iks02a1-shub
2 :name: X-NUCLEO-IKS02A1 shield - SensorHub (Mode 2)
3 :relevant-api: sensor_interface
5 Interact with all the sensors of an X-NUCLEO-IKS02A1 shield using Sensor Hub mode.
9 This sample is provided as an example to test the X-NUCLEO-IKS02A1 shield
10 configured in Sensor Hub mode (Mode 2).
11 Please refer to :ref:`x-nucleo-iks02a1` for more info on this configuration.
15 mode (CONFIG_ISM330DHCX_SENSORHUB=y) with the IIS2MDC magnetometer as external
16 slave.
20 - IIS2DLPC 3-Axis acceleration
[all …]
/Zephyr-Core-3.5.0/drivers/w1/
Dw1_net.c4 * SPDX-License-Identifier: Apache-2.0
8 * @brief 1-Wire network related functions.
11 * from user mode as well as supervisor mode, therefore _ZEPHYR_SUPERVISOR__
25 /* @brief Search bus for next slave.
27 * This function searches the next 1-Wire slave on the bus.
29 * slave took part in the search.
30 * In case only one slave took part in the search, the discrepancy is set to
31 * W1_SEARCH_LAST_SLAVE, and in case no slave participated in the search,
39 * their own addresses' bit. This allows the master to branch through 64-bit
45 * bytes (big-endian) stored in rom_inv_64 are in inverse byte order.
[all …]

123456