Lines Matching full:transfer
132 lpi2c_master_transfer_t transfer; in rv32m1_lpi2c_transfer() local
145 /* Initialize the transfer descriptor */ in rv32m1_lpi2c_transfer()
146 transfer.flags = rv32m1_lpi2c_convert_flags(msgs->flags); in rv32m1_lpi2c_transfer()
152 transfer.flags |= kLPI2C_TransferNoStartFlag; in rv32m1_lpi2c_transfer()
155 transfer.slaveAddress = addr; in rv32m1_lpi2c_transfer()
156 transfer.direction = (msgs->flags & I2C_MSG_READ) in rv32m1_lpi2c_transfer()
158 transfer.subaddress = 0; in rv32m1_lpi2c_transfer()
159 transfer.subaddressSize = 0; in rv32m1_lpi2c_transfer()
160 transfer.data = msgs->buf; in rv32m1_lpi2c_transfer()
161 transfer.dataSize = msgs->len; in rv32m1_lpi2c_transfer()
163 /* Start the transfer */ in rv32m1_lpi2c_transfer()
166 &transfer); in rv32m1_lpi2c_transfer()
168 /* Return an error if the transfer didn't start successfully in rv32m1_lpi2c_transfer()
172 LOG_DBG("Could not start transfer (status %d)", status); in rv32m1_lpi2c_transfer()
177 /* Wait for the transfer to complete */ in rv32m1_lpi2c_transfer()
180 /* Return an error if the transfer didn't complete in rv32m1_lpi2c_transfer()
184 LOG_DBG("Transfer failed (status %d)", in rv32m1_lpi2c_transfer()
260 .transfer = rv32m1_lpi2c_transfer,