Home
last modified time | relevance | path

Searched refs:composed_transfer (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/examples/cxx/experimental/experimental_cpp_component/test/
Dtest_i2c.cpp330 std::shared_ptr<I2CComposed> composed_transfer(new I2CComposed); in i2c_master_composed_trans() local
331 composed_transfer->add_write({47u}); in i2c_master_composed_trans()
332 composed_transfer->add_read(BUF_SIZE); in i2c_master_composed_trans()
336 future<vector<vector<uint8_t> > > result = fix.master->transfer(composed_transfer, ADDR); in i2c_master_composed_trans()
482 std::shared_ptr<I2CComposed> composed_transfer(new I2CComposed); in i2c_master_reuse_composed_trans() local
483 composed_transfer->add_write({47u}); in i2c_master_reuse_composed_trans()
485 composed_transfer->add_read(BUF_SIZE); in i2c_master_reuse_composed_trans()
489 vector<vector<uint8_t> > read_data1 = fix.master->transfer(composed_transfer, ADDR).get(); in i2c_master_reuse_composed_trans()
491 vector<vector<uint8_t> > read_data2 = fix.master->transfer(composed_transfer, ADDR).get(); in i2c_master_reuse_composed_trans()
505 composed_transfer->add_read(BUF_SIZE * 2); in i2c_master_reuse_composed_trans()
[all …]
/hal_espressif-3.6.0/examples/cxx/experimental/experimental_cpp_component/
Di2c_cxx.cpp77 I2CComposed composed_transfer; in sync_transfer() local
78 composed_transfer.add_write(write_data); in sync_transfer()
79 composed_transfer.add_read(read_n_bytes); in sync_transfer()
81 return composed_transfer.do_transfer(i2c_num, i2c_addr)[0]; in sync_transfer()