Searched refs:ESP_SLAVE_ADDR (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_self_test/main/ |
D | i2c_example_main.c | 43 #define ESP_SLAVE_ADDR CONFIG_I2C_SLAVE_ADDRESS /*!< ESP32 slave address, you can set any 7bit valu… macro 70 i2c_master_write_byte(cmd, (ESP_SLAVE_ADDR << 1) | READ_BIT, ACK_CHECK_EN); in i2c_master_read_slave() 97 i2c_master_write_byte(cmd, (ESP_SLAVE_ADDR << 1) | WRITE_BIT, ACK_CHECK_EN); in i2c_master_write_slave() 179 .slave.slave_addr = ESP_SLAVE_ADDR, in i2c_slave_init()
|
/hal_espressif-3.6.0/docs/zh_CN/api-reference/peripherals/ |
D | i2c.rst | 97 .slave.slave_addr = ESP_SLAVE_ADDR, // address of your project 272 因此,为了将数据写入从机,主机发送的命令链接应包含地址 ``(ESP_SLAVE_ADDR << 1) | I2C_MASTER_WRITE``,如下所示: 276 i2c_master_write_byte(cmd, (ESP_SLAVE_ADDR << 1) | I2C_MASTER_WRITE, ACK_EN); 282 i2c_master_write_byte(cmd, (ESP_SLAVE_ADDR << 1) | I2C_MASTER_READ, ACK_EN);
|
/hal_espressif-3.6.0/components/driver/test/ |
D | test_i2c.c | 61 #define ESP_SLAVE_ADDR 0x28 /*!< ESP32 slave address, you can set any 7bit value */ macro 87 TEST_ESP_OK(i2c_master_write_byte(cmd, ( ESP_SLAVE_ADDR << 1 ) | WRITE_BIT, ACK_CHECK_EN)); in i2c_master_write_slave() 118 .slave.slave_addr = ESP_SLAVE_ADDR, in i2c_slave_init() 363 i2c_master_write_byte(cmd, ( ESP_SLAVE_ADDR << 1 ) | READ_BIT, ACK_CHECK_EN); in master_read_slave_test() 424 i2c_master_write_byte(cmd, ( ESP_SLAVE_ADDR << 1 ) | READ_BIT, ACK_CHECK_EN); in i2c_master_write_read_test()
|
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/ |
D | i2c.rst | 97 .slave.slave_addr = ESP_SLAVE_ADDR, // address of your project 272 …ent by the master to write data to the slave contains the address ``(ESP_SLAVE_ADDR << 1) | I2C_MA… 276 i2c_master_write_byte(cmd, (ESP_SLAVE_ADDR << 1) | I2C_MASTER_WRITE, ACK_EN); 282 i2c_master_write_byte(cmd, (ESP_SLAVE_ADDR << 1) | I2C_MASTER_READ, ACK_EN);
|