Home
last modified time | relevance | path

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

123

/Zephyr-Core-3.6.0/drivers/sensor/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/drivers/sensor/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-Core-3.6.0/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-Core-3.6.0/tests/drivers/sensor/ina230/src/
Dina230_emul.c88 if (msgs[0].flags & I2C_MSG_READ) { in ina230_emul_transfer_i2c()
114 if ((msgs[1].flags & I2C_MSG_READ) == I2C_MSG_WRITE) { in ina230_emul_transfer_i2c()
/Zephyr-Core-3.6.0/drivers/i2c/
Di2c_nrfx_twim.c84 && ((msgs[i].flags & I2C_MSG_READ) in i2c_nrfx_twim_transfer()
85 == (msgs[i + 1].flags & I2C_MSG_READ)); in i2c_nrfx_twim_transfer()
106 if (!(msgs[i].flags & I2C_MSG_READ)) { in i2c_nrfx_twim_transfer()
125 cur_xfer.type = (msgs[i].flags & I2C_MSG_READ) ? in i2c_nrfx_twim_transfer()
184 if ((msgs[i].flags & I2C_MSG_READ) in i2c_nrfx_twim_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()
473 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_transfer()
Di2c_rtio.c33 if (msgs[i].flags & I2C_MSG_READ) { in i2c_rtio_copy()
Di2c_smartbond.c210 const bool rw = ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in i2c_smartbond_tx()
300 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_smartbond_transfer()
337 if ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_smartbond_enable_msg_interrupts()
390 const bool rw = ((data->msgs->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in isr_tx()
457 if ((data->msgs->flags & I2C_MSG_RW_MASK) != I2C_MSG_READ) { in i2c_smartbond_isr()
Di2c_bitbang.c225 byte0 |= (flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_bitbang_transfer()
235 if ((flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in i2c_bitbang_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_mchp_mss.c172 data->dir = I2C_MSG_READ; in mss_i2c_read()
223 if ((current->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) { in mss_i2c_transfer()
290 data->dir = I2C_MSG_READ; in mss_i2c_irq_handler()
Di2c_nrfx_twi.c65 .type = (msgs[i].flags & I2C_MSG_READ) ? in i2c_nrfx_twi_transfer()
91 } else if (msgs[i].flags & I2C_MSG_READ) { in i2c_nrfx_twi_transfer()
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/include/zephyr/drivers/
Di2c.h145 #define I2C_MSG_READ BIT(0) macro
480 return (msg->flags & I2C_MSG_READ) == I2C_MSG_READ; in i2c_is_read_op()
581 if (msgs[i].flags & I2C_MSG_READ) { in i2c_xfer_stats()
895 msgs[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP; in i2c_write_read_cb()
1255 msg.flags = I2C_MSG_READ | I2C_MSG_STOP; in i2c_read()
1309 msg[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP; in i2c_write_read()
/Zephyr-Core-3.6.0/drivers/sensor/ams_iAQcore/
DiAQcore.c35 msg.flags = I2C_MSG_READ | I2C_MSG_STOP; in iaqcore_sample_fetch()

123