Home
last modified time | relevance | path

Searched refs:I2C_MSG_READ (Results 1 – 25 of 76) sorted by relevance

1234

/Zephyr-latest/drivers/sensor/adi/adltc2990/
Dadltc2990_emul.c84 if (FIELD_GET(I2C_MSG_READ, msgs->flags)) { in adltc2990_emul_transfer_i2c()
94 bool is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in adltc2990_emul_transfer_i2c()
100 is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in adltc2990_emul_transfer_i2c()
/Zephyr-latest/drivers/eeprom/
Deeprom_at2x_emul.c87 if (msgs->flags & I2C_MSG_READ) { in at24_emul_transfer()
96 if (msgs->flags & I2C_MSG_READ) { in at24_emul_transfer()
104 if (!(msgs->flags & I2C_MSG_READ)) { in at24_emul_transfer()
/Zephyr-latest/drivers/bbram/
Dbbram_microchip_mcp7940n_emul.c49 if (FIELD_GET(I2C_MSG_READ, msgs->flags)) { in mcp7940n_emul_transfer_i2c()
59 bool is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in mcp7940n_emul_transfer_i2c()
65 is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in mcp7940n_emul_transfer_i2c()
/Zephyr-latest/drivers/fuel_gauge/max17048/
Demul_max17048.c81 if (msgs->flags & I2C_MSG_READ) { in max17048_emul_transfer_i2c()
93 if (msgs->flags & I2C_MSG_READ) { in max17048_emul_transfer_i2c()
/Zephyr-latest/drivers/w1/
Dw1_ds2485.c41 .flags = I2C_MSG_READ, in ds2485_w1_script_cmd()
46 .flags = (I2C_MSG_READ | I2C_MSG_STOP), in ds2485_w1_script_cmd()
/Zephyr-latest/drivers/charger/
Demul_sbs_charger.c83 if (msgs->flags & I2C_MSG_READ) { in sbs_charger_emul_transfer_i2c()
95 if (msgs->flags & I2C_MSG_READ) { in sbs_charger_emul_transfer_i2c()
/Zephyr-latest/drivers/i2c/
Di2c_nrfx_twim.c73 && ((msgs[i].flags & I2C_MSG_READ) in i2c_nrfx_twim_transfer()
74 == (msgs[i + 1].flags & I2C_MSG_READ)); in i2c_nrfx_twim_transfer()
95 if (!(msgs[i].flags & I2C_MSG_READ)) { in i2c_nrfx_twim_transfer()
151 if ((msgs[i].flags & I2C_MSG_READ) && (buf == msg_buf)) { in i2c_nrfx_twim_transfer()
Di2c_nrfx_twi_common.c82 .type = (flags & I2C_MSG_READ) ? in i2c_nrfx_twi_msg_transfer()
105 } else if (flags & I2C_MSG_READ) { in i2c_nrfx_twi_msg_transfer()
Di2c_gd32.c167 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_handle_btc()
205 if ((data->current->flags & I2C_MSG_READ) && (data->xfer_len <= 2U)) { in i2c_gd32_handle_addsend()
216 data->current->flags |= I2C_MSG_READ; in i2c_gd32_handle_addsend()
223 if ((data->current->flags & I2C_MSG_READ) && (data->xfer_len == 1U)) { in i2c_gd32_handle_addsend()
238 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_event_isr()
323 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_xfer_begin()
470 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_transfer()
Di2c_common.c64 const bool is_read = msg->flags & I2C_MSG_READ; in i2c_dump_msgs_rw()
Di2c_numaker.c103 __ASSERT_NO_MSG((data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in m_numaker_i2c_master_xfer_msg_read_last_byte()
116 bool is_read_next = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_read_last_byte()
197 bool is_read_prev = (data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_end()
207 bool is_read_next = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_end()
372 is_read = (data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_numaker_transfer()
545 bool is_read = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_numaker_isr()
Di2c_handlers.c45 copy[i].flags & I2C_MSG_READ)); in copy_msgs_and_transfer()
Di2c_smartbond.c282 const bool rw = ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in i2c_smartbond_tx()
360 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_smartbond_transfer()
401 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_smartbond_enable_msg_interrupts()
457 const bool rw = ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in isr_tx()
521 if ((data->msgs->flags & I2C_MSG_RW_MASK) != I2C_MSG_READ) { in i2c_smartbond_isr()
Di2c_bitbang.c238 byte0 |= (flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_bitbang_transfer()
248 if ((flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_bitbang_transfer()
/Zephyr-latest/drivers/fuel_gauge/bq27z746/
Demul_bq27z746.c285 if (msgs->flags & I2C_MSG_READ) { in bq27z746_emul_transfer_i2c()
292 if (msgs->flags & I2C_MSG_READ) { in bq27z746_emul_transfer_i2c()
304 if (msgs->flags & I2C_MSG_READ) { in bq27z746_emul_transfer_i2c()
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c_emul.c85 if (FIELD_GET(I2C_MSG_READ, msgs->flags)) { in akm09918c_emul_transfer_i2c()
95 bool is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in akm09918c_emul_transfer_i2c()
101 is_read = FIELD_GET(I2C_MSG_READ, msgs->flags) == 1; in akm09918c_emul_transfer_i2c()
/Zephyr-latest/tests/drivers/i2c/i2c_ram/src/
Dtest_i2c_ram.c107 msgs[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP; in ZTEST()
161 msgs[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP; in ZTEST()
201 msgs[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP; in ZTEST()
258 msgs[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP; in ram_rtio_isr()
/Zephyr-latest/drivers/sensor/amd_sb_tsi/
Dsb_tsi_emul.c59 if (msgs->flags & I2C_MSG_READ) { in sb_tsi_emul_transfer_i2c()
71 if (msgs->flags & I2C_MSG_READ) { in sb_tsi_emul_transfer_i2c()
/Zephyr-latest/tests/drivers/sensor/ina237/src/
Dina237_emul.c82 if (msgs[0].flags & I2C_MSG_READ) { in ina237_emul_transfer_i2c()
108 if ((msgs[1].flags & I2C_MSG_READ) == I2C_MSG_WRITE) { in ina237_emul_transfer_i2c()
/Zephyr-latest/drivers/sensor/f75303/
Df75303_emul.c63 if (msgs->flags & I2C_MSG_READ) { in f75303_emul_transfer_i2c()
75 if (msgs->flags & I2C_MSG_READ) { in f75303_emul_transfer_i2c()
/Zephyr-latest/tests/drivers/sensor/ina230/src/
Dina230_emul.c93 if (msgs[0].flags & I2C_MSG_READ) { in ina230_emul_transfer_i2c()
119 if ((msgs[1].flags & I2C_MSG_READ) == I2C_MSG_WRITE) { in ina230_emul_transfer_i2c()
/Zephyr-latest/tests/boards/frdm_k64f/i2c/src/
Di2c.c94 .flags = I2C_MSG_READ | I2C_MSG_RESTART | I2C_MSG_STOP } };
194 .flags = I2C_MSG_READ | I2C_MSG_RESTART | I2C_MSG_STOP } }; in test_i2c_fxos8700_transfer_signal()
/Zephyr-latest/include/zephyr/drivers/
Di2c.h147 #define I2C_MSG_READ BIT(0) macro
482 return (msg->flags & I2C_MSG_READ) == I2C_MSG_READ; in i2c_is_read_op()
595 if (msgs[i].flags & I2C_MSG_READ) { in i2c_xfer_stats()
931 msgs[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP; in i2c_write_read_cb()
1324 msg.flags = I2C_MSG_READ | I2C_MSG_STOP; in i2c_read()
1378 msg[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP; in i2c_write_read()
/Zephyr-latest/tests/subsys/rtio/rtio_i2c/src/
Dmain.cpp127 .flags = I2C_MSG_READ | I2C_MSG_STOP, in ZTEST()
237 .flags = I2C_MSG_READ | I2C_MSG_STOP, in ZTEST()
242 .flags = I2C_MSG_READ | I2C_MSG_ADDR_10_BITS | I2C_MSG_STOP, in ZTEST()
/Zephyr-latest/drivers/sensor/ams/ams_iAQcore/
DiAQcore.c35 msg.flags = I2C_MSG_READ | I2C_MSG_STOP; in iaqcore_sample_fetch()

1234