Home
last modified time | relevance | path

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

1234

/hal_espressif-3.5.0/docs/en/api-reference/protocols/
Desp_serial_slave_link.rst7 Espressif provides several chips that can work as slaves. These slave devices rely on some
9 designed for the master to communicate with ESP slave devices through those protocols over the
13 slave devices conveniently.
33 - ESSL device: a virtual device on the master associated with an ESP slave device. The device
34 context has the knowledge of the slave protocol above the bus, relying on some bus drivers to
35 communicate with the slave.
39 communication state, data shared by master and slave, etc.
44 - ESP slave: the slave device connected to the bus, which ESSL component is designed to
47 - Bus: The bus over which the master and the slave communicate with each other.
51 - TX buffer num: a counter, which is on the slave and can be read by the master, indicates the
[all …]
Desp_spi_slave_protocol.rst33 In the half duplex mode, the master has to use the protocol defined by the slave to communicate
34 with the slave. Each transaction may consist of the following phases (list by the order they
37 - Command: 8-bit, master to slave
41 - Address: 8-bit, master to slave, optional
49 This phase is the turn around time between the master and the slave on the bus, and also
50 provides enough time for the slave to prepare the data to send to master.
54 This may be a data OUT phase, in which the direction is slave to master, or a data IN phase,
55 in which the direction is master to slave.
57 The *direction* means which side (master or slave) controls the MOSI, MISO, WP and HD pins.
65 the modes supported by ESP32-S2 SPI slave and the wire number used in corresponding modes.
[all …]
Desp_sdio_slave_protocol.rst4 … protocol - a non-standard protocol that allows an SDIO Host to communicate with an ESP SDIO slave.
6 The ESP SDIO Slave protocol was created to implement the communication between SDIO host and slave,…
21 * - SDIO slave
42slave according to the standard SDIO initialization process (Section 3.1.2 of `SDIO Simplified Spe…
110 - 52 8-bit R/W registers shared by host and slave (For details, see *{IDF_TARGET_NAME} Technical Re…
111 - 16 general purpose interrupt sources, 8 from host to slave and 8 from slave to host
113 To begin communication, the host needs to enable the I/O Function 1 in the slave and access its reg…
117 …lements the logic of this protocol for ESP32 SDIO Host when communicating with an ESP32 SDIO slave.
128 - 0x058 (INT_ST): holds the interrupt source bits from slave to host.
131 - 0x0DC (INT_ENA): mask bits for interrupts from slave to host.
[all …]
Dmodbus.rst20slave devices (multiple masters are allowed on using Modbus TCP/IP). The slave devices listen for …
32 …gister map of each slave device is usually part of its device manual. A Slave device usually permi…
44 …sections cover initialization of a Modbus port, and the setup a master or slave device accordingly:
55 … create and then initialize Modbus controller interface (either master or slave) over a particular…
74 This example code to initialize slave port:
79 // Initialization of Modbus slave for TCP
94 2. :ref:`modbus_api_master_configure_descriptor` - Configure data descriptors to access slave param…
106 …ts device physical parameter (such as temperature, humidity, etc.) in specific Modbus slave device.
109 …onding Modbus registers representation using Register Mapping table of the Modbus slave being used.
164 .. list-table:: Table 2 Example Register mapping table of Modbus slave
[all …]
/hal_espressif-3.5.0/examples/peripherals/sdio/host/main/
DKconfig.projbuild4 bool "Host use SPI bus to communicate with slave"
7 If this is set, the host tries using SPI bus to communicate with slave.
11 bool "Host tries using 4-bit mode to communicate with slave"
16 slave. If failed, the communication falls back to 1-bit mode.
21 Note that 4-bit mode is not compatible (by default) if the slave is
25 bool "Host tries using HS mode to communicate with slave"
29 with slave. If the slave doesn't support high-speed mode, the
36 bool "The host is not connected to the interrupt line (DAT1) of slave"
39 If this is set, the host example will not check the interrupt line but poll slave
40 registers to see whether the slave has interrupts for the host.
[all …]
/hal_espressif-3.5.0/examples/protocols/modbus/tcp/
DREADME.md5 These two projects illustrate the communication between Modbus master and slave device in the segme…
6 Master initializes Modbus interface driver and then reads parameters from slave device in the segme…
7 After several successful read attempts slave sets the alarm relay (end of test condition).
13 * `examples/protocols/modbus/tcp/mb_tcp_slave` - Modbus TCP slave
22slave boards should be connected to the same network (see the README.md file in example folder) an…
27 This example test requires communication mode setting for master and slave be the same and slave ad…
28 …xample uses the default option `CONFIG_MB_SLAVE_IP_FROM_STDIN` to resolve slave IP address and sup…
32 …e level above includes definitions of parameter structures for master and slave device (both proje…
37 …E.md file in the appropriate example folder for more information about master and slave log output.
41 If the examples do not work as expected and slave and master boards are not able to communicate cor…
[all …]
/hal_espressif-3.5.0/examples/protocols/modbus/serial/mb_master/
DREADME.md7 This implementation is able to read/write values of slave devices connected into Modbus segment. Al…
8 …s with its name and characteristic CID which are linked into registers of slave devices connected …
9 … simple control algorithm and checks parameters from slave device and gets alarm (relay in the sla…
10 The instances for the modbus parameters are common for master and slave examples and located in `ex…
26 …e Kconfig ```Modbus slave address``` - CONFIG_MB_SLAVE_ADDR parameter in slave example can be conf…
37 Modbus multi slave segment connection schematic:
64 …_slave example software to represent slave device with specific slave address (See CONFIG_MB_SLAVE…
68 RS485 example circuit schematic for connection of master and slave devices into segment:
77 … RTS --+--->| DE | / \ | DE|---+ ESP32 WROVER KIT 2 (slave)
95 …ication mode parameter for master and slave in Kconfig - CONFIG_MB_COMM_MODE (must be the same for…
[all …]
/hal_espressif-3.5.0/examples/protocols/modbus/tcp/mb_tcp_master/
DREADME.md4 This implementation is able to read/write values of slave devices connected into Modbus segment. Al…
5 …s with its name and characteristic CID which are linked into registers of slave devices connected …
6 … simple control algorithm and checks parameters from slave device and gets alarm (relay in the sla…
7 The instances for the modbus parameters are common for master and slave examples and located in `ex…
23 …e Kconfig ```Modbus slave address``` - CONFIG_MB_SLAVE_ADDR parameter in slave example can be conf…
34 Modbus multi slave segment connection schematic:
61 …ds flashed with modbus_tcp_slave example software to represent slave devices. The IP slave address…
74 There are three ways to configure how the master example will obtain slave IP addresses in the netw…
75 …IP table. This requires to activate the same option for each slave with unique modbus slave addres…
76 …m stdin:", then enter the IP address of the slave to connect: "IPN=192.168.1.21", where N = (confi…
[all …]
/hal_espressif-3.5.0/examples/cxx/experimental/experimental_cpp_component/test/
Dtest_i2c.cpp87 I2CSlave slave(I2C_SLAVE_NUM, I2C_SLAVE_SCL_IO, I2C_SLAVE_SDA_IO, ADDR, 512, 512); in i2c_slave_read_raw_byte() local
93 TEST_ASSERT_EQUAL(1, slave.read_raw(&buffer, 1, chrono::milliseconds(1000))); in i2c_slave_read_raw_byte()
100 I2CSlave slave(I2C_SLAVE_NUM, I2C_SLAVE_SCL_IO, I2C_SLAVE_SDA_IO, ADDR, 512, 512); in i2c_slave_write_raw_byte() local
105 TEST_ASSERT_EQUAL(1, slave.write_raw(&WRITE_BUFFER, 1, chrono::milliseconds(1000))); in i2c_slave_write_raw_byte()
116 I2CSlave slave(I2C_SLAVE_NUM, I2C_SLAVE_SCL_IO, I2C_SLAVE_SDA_IO, ADDR, 512, 512); in i2c_slave_read_multiple_raw_bytes() local
122 TEST_ASSERT_EQUAL(8, slave.read_raw(buffer, 8, chrono::milliseconds(1000))); in i2c_slave_read_multiple_raw_bytes()
131 I2CSlave slave(I2C_SLAVE_NUM, I2C_SLAVE_SCL_IO, I2C_SLAVE_SDA_IO, ADDR, 512, 512); in i2c_slave_write_multiple_raw_bytes() local
136 TEST_ASSERT_EQUAL(8, slave.write_raw(WRITE_BUFFER, 8, chrono::milliseconds(1000))); in i2c_slave_write_multiple_raw_bytes()
144 I2CSlave slave(I2C_SLAVE_NUM, I2C_SLAVE_SCL_IO, I2C_SLAVE_SDA_IO, ADDR, 512, 512); in i2c_slave_composed_trans() local
151 …TEST_ASSERT_EQUAL(BUF_SIZE, slave.write_raw(SLAVE_WRITE_BUFFER, BUF_SIZE, chrono::milliseconds(100… in i2c_slave_composed_trans()
[all …]
/hal_espressif-3.5.0/examples/peripherals/sdio/
DREADME.md8 These two projects illustrate the SDIO driver (host and slave). The host
9 example shows how to initialize a SDIO card, respond to a slave interrupt, as
10 well as reading and writing registers and buffers. The slave is a dedicated
15 The host first tell the slave to write the registers to a specified value,
16 then reads and prints the value from the slave. Then tell the slave to send 8
17 interrupts to the host. Then the host start sending data to the slave FIFO
18 and then reads from the slave FIFO in loops.
25 to host), or required by the slave as mode detect in 1-bit mode (pull up). It
28 Please run wires between the slave and master to make the example function
29 (pins are the same for the host and the slave):
[all …]
/hal_espressif-3.5.0/docs/en/api-reference/peripherals/
Dsdio_slave.rst9 …This means SDIO slave driver can only runs on the second set of pins while SDIO host is not using …
11 The SDIO slave can run under 3 modes: SPI, 1-bit SD and 4-bit SD modes, which
49 SDIO slave function. If you are using a ESP32 module with 3.3 V flash
73 The host initialize the slave into SD mode by first sending CMD0 with DAT3
79 slave peripheral.
81 The host has to communicate with the slave by an ESP-slave-specific protocol.
82 The slave driver offers 3 services over Function 1 access by CMD52 and CMD53:
84 host and slave, (3) 16 interrupt sources (8 from host to slave, and 8 from
85 slave to host).
90 The SDIO slave driver uses the following terms:
[all …]
Di2c.rst15 …ponsible for handling communications on I2C bus. The I2C controller can operate as master or slave.
19 …controller can operate as master or slave. As an example, one controller can act as a master and t…
36 1. :ref:`i2c-api-configure-driver` - set the initialization parameters (master or slave mode, GPIO …
37 …i2c-api-install-driver`- activate the driver on one of the two I2C controllers as a master or slave
38 3. Depending on whether you configure the driver for a master or slave, choose the appropriate item
41 b) :ref:`i2c-api-slave-mode` - respond to messages from the master (slave)
56 - Set I2C **mode of operation** - slave or master from :cpp:type:`i2c_mode_t`
66 * Define **slave address**
85 Configuration example (slave):
96 .slave.addr_10bit_en = 0,
[all …]
/hal_espressif-3.5.0/examples/protocols/modbus/serial/
DREADME.md5 These two projects illustrate the communication between Modbus master and slave device in the segme…
6 Master initializes Modbus interface driver and then reads parameters from slave device in the segme…
7 After several successful read attempts slave sets the alarm relay (end of test condition).
13 * `examples/protocols/modbus/serial/mb_slave` - Modbus serial slave ASCII/RTU
22 The master and slave boards should be connected to each other through the RS485 interface line driv…
27 This example test requires communication mode setting for master and slave be the same and slave ad…
32 The folder "mb_example_common" includes definitions of parameter structures for master and slave de…
40 I (343) SLAVE_TEST: Modbus slave stack initialized.
68 If the examples do not work as expected and slave and master boards are not able to communicate cor…
75 ESP_ERR_TIMEOUT (0x107) - Modbus slave device does not respond during configured timeout. Check the…
[all …]
/hal_espressif-3.5.0/examples/peripherals/spi_slave_hd/segment_mode/
DREADME.md7 …unicate with SPI Slave Halfduplex driver. It receives/sends transactions from/to slave a few times.
43 Transaction No.0 from slave, length: 4640
46 Transaction No.1 from slave, length: 3299
49 Transaction No.2 from slave, length: 4836
52 Transaction No.3 from slave, length: 3333
55 Transaction No.4 from slave, length: 4965
58 Transaction No.5 from slave, length: 3042
61 Transaction No.6 from slave, length: 4892
64 Transaction No.7 from slave, length: 3585
67 Transaction No.8 from slave, length: 3348
[all …]
/hal_espressif-3.5.0/components/hal/esp32s2/include/hal/
Dspi_ll.h107 hw->slave.val &= ~SPI_LL_UNUSED_INT_MASK; in FLAG_ATTR()
126 hw->slave.slave_mode = 1; in spi_ll_slave_init()
127 hw->slave.soft_reset = 1; in spi_ll_slave_init()
128 hw->slave.soft_reset = 0; in spi_ll_slave_init()
137 hw->slave.val &= ~SPI_LL_UNUSED_INT_MASK; in spi_ll_slave_init()
147 hw->slave.soft_reset = 1; in spi_ll_slave_hd_init()
148 hw->slave.soft_reset = 0; in spi_ll_slave_hd_init()
151 hw->slave.slave_mode = 1; in spi_ll_slave_hd_init()
163 return hw->slave.trans_done; in spi_ll_usr_is_done()
935 hw->slave.soft_reset = 1; in spi_ll_slave_reset()
[all …]
/hal_espressif-3.5.0/components/hal/esp32c3/include/hal/
Dspi_ll.h98 hw->slave.val = 0; in FLAG_ATTR()
124 hw->slave.slave_mode = 1; in spi_ll_slave_init()
125 hw->slave.soft_reset = 1; in spi_ll_slave_init()
126 hw->slave.soft_reset = 0; in spi_ll_slave_init()
152 hw->slave.soft_reset = 1; in spi_ll_slave_hd_init()
153 hw->slave.soft_reset = 0; in spi_ll_slave_hd_init()
154 hw->slave.slave_mode = 1; in spi_ll_slave_hd_init()
211 hw->slave.soft_reset = 1; in spi_ll_slave_reset()
212 hw->slave.soft_reset = 0; in spi_ll_slave_reset()
496 hw->slave.clk_mode_13 = 0; in spi_ll_slave_set_mode()
[all …]
/hal_espressif-3.5.0/components/hal/esp32h2/include/hal/
Dspi_ll.h102 hw->slave.val = 0; in FLAG_ATTR()
128 hw->slave.slave_mode = 1; in spi_ll_slave_init()
129 hw->slave.soft_reset = 1; in spi_ll_slave_init()
130 hw->slave.soft_reset = 0; in spi_ll_slave_init()
154 hw->slave.soft_reset = 1; in spi_ll_slave_hd_init()
155 hw->slave.soft_reset = 0; in spi_ll_slave_hd_init()
156 hw->slave.slave_mode = 1; in spi_ll_slave_hd_init()
213 hw->slave.soft_reset = 1; in spi_ll_slave_reset()
214 hw->slave.soft_reset = 0; in spi_ll_slave_reset()
498 hw->slave.clk_mode_13 = 0; in spi_ll_slave_set_mode()
[all …]
/hal_espressif-3.5.0/components/hal/esp32s3/include/hal/
Dspi_ll.h96 hw->slave.val = 0; in FLAG_ATTR()
122 hw->slave.slave_mode = 1; in spi_ll_slave_init()
123 hw->slave.soft_reset = 1; in spi_ll_slave_init()
124 hw->slave.soft_reset = 0; in spi_ll_slave_init()
150 hw->slave.soft_reset = 1; in spi_ll_slave_hd_init()
151 hw->slave.soft_reset = 0; in spi_ll_slave_hd_init()
152 hw->slave.slave_mode = 1; in spi_ll_slave_hd_init()
209 hw->slave.soft_reset = 1; in spi_ll_slave_reset()
210 hw->slave.soft_reset = 0; in spi_ll_slave_reset()
494 hw->slave.clk_mode_13 = 0; in spi_ll_slave_set_mode()
[all …]
/hal_espressif-3.5.0/examples/peripherals/spi_slave_hd/append_mode/
DREADME.md10 * Master will receive a bunch of packets from the slave for a fixed number of iterations, then send…
87 I (6343) slave RX:: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
89 I (6523) slave RX:: 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10
91 I (6703) slave RX:: 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
93 I (6883) slave RX:: 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12
95 I (7063) slave RX:: 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13
97 I (7243) slave RX:: 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14
99 I (7473) slave RX:: 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15
101 I (7653) slave RX:: 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16
103 I (7833) slave RX:: 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17
[all …]
/hal_espressif-3.5.0/examples/protocols/modbus/tcp/mb_tcp_master/main/
DKconfig.projbuild4 prompt "Select method to resolve slave IP addresses"
6 Select method which is used to resolve slave IP addresses
10 bool "Resolve Modbus slave addresses using mDNS service."
13 bool "Configure Modbus slave addresses from stdin"
/hal_espressif-3.5.0/examples/peripherals/twai/twai_network/
DREADME.md7 Note that concept of master/slave in this example refers to which node initiates
148 I (1866) TWAI Listen Only: Received slave ping response
154 I (4606) TWAI Listen Only: Received slave stop response
157 I (5856) TWAI Listen Only: Received slave ping response
163 I (8596) TWAI Listen Only: Received slave stop response
166 I (9846) TWAI Listen Only: Received slave ping response
172 I (12586) TWAI Listen Only: Received slave stop response
182 1. Both master and slave go through install and start their TWAI drivers independently.
183 … until it receives a **PING_RESP** (ping response message) from the slave. The slave will only sen…
184 … master has received the **PING_RESP** from the slave, it will send a **START_CMD** message to the…
[all …]
/hal_espressif-3.5.0/examples/protocols/modbus/tcp/mb_tcp_slave/main/
DKconfig.projbuild4 int "Modbus slave address"
8 This is the Modbus slave address in the network.
9 The address is used as an index to resolve slave ip address.
12 bool "Resolve slave addresses using mDNS service"
/hal_espressif-3.5.0/examples/peripherals/spi_slave/
DREADME.md1 ## SPI slave example
3 …r and spi slave driver to communicate with eachother. The example also includes a handshaking line…
16 Please run wires between the following GPIOs between the slave and master to make the example funct…
26 …o change the GPIO settings by editing defines in the top of main.c in the master/slave source code.
/hal_espressif-3.5.0/components/hal/esp32/include/hal/
Dspi_ll.h84 hw->slave.val &= ~SPI_LL_UNUSED_INT_MASK; in spi_ll_master_init()
98 hw->slave.wr_rd_buf_en = 1; //no sure if needed in spi_ll_slave_init()
101 hw->slave.slave_mode = 1; in spi_ll_slave_init()
102 hw->slave.sync_reset = 1; in spi_ll_slave_init()
103 hw->slave.sync_reset = 0; in spi_ll_slave_init()
109 hw->slave.val &= ~SPI_LL_UNUSED_INT_MASK; in spi_ll_slave_init()
121 return hw->slave.trans_done; in spi_ll_usr_is_done()
906 hw->slave.sync_reset = 1; in spi_ll_slave_reset()
907 hw->slave.sync_reset = 0; in spi_ll_slave_reset()
932 hw->slave.trans_inten = 0; in spi_ll_disable_int()
[all …]
/hal_espressif-3.5.0/components/freemodbus/
DKconfig24 This is used by Modbus master and slave port layer to establish connections.
36 and Modbus slave will be waiting for new connection to accept.
55 … If master sends a frame which is not broadcast, it has to wait sometime for slave response.
56 if slave is not respond in this time, the master will process timeout error.
105 … This option defines response timeout of slave in milliseconds for ASCII communication mode.
140 bool "Modbus controller slave ID support"
143 Modbus slave ID support enable.
147 hex "Modbus controller slave ID"
152 Modbus slave ID value to identify modbus device
201 Modbus slave Timer group number that is used for timeout measurement.
[all …]

1234