Lines Matching refs:transfer

89     struct _i2c_master_transfer *transfer;  in I2C_InitTransferStateMachineDMA()  local
91 handle->transfer = *xfer; in I2C_InitTransferStateMachineDMA()
92 transfer = &(handle->transfer); in I2C_InitTransferStateMachineDMA()
96 handle->buf = (uint8_t *)transfer->data; in I2C_InitTransferStateMachineDMA()
99 if ((transfer->flags & (uint32_t)kI2C_TransferNoStartFlag) != 0U) in I2C_InitTransferStateMachineDMA()
103 if (transfer->dataSize == 0U) in I2C_InitTransferStateMachineDMA()
107 else if (handle->transfer.direction == kI2C_Write) in I2C_InitTransferStateMachineDMA()
111 else if (handle->transfer.direction == kI2C_Read) in I2C_InitTransferStateMachineDMA()
122 if (transfer->subaddressSize != 0U) in I2C_InitTransferStateMachineDMA()
127 if (transfer->subaddressSize > sizeof(handle->subaddrBuf)) in I2C_InitTransferStateMachineDMA()
139 handle->remainingSubaddr = transfer->subaddressSize; in I2C_InitTransferStateMachineDMA()
157 int32_t count = handle->buf - (uint8_t *)handle->transfer.data; in I2C_RunDMATransfer()
176 switch (handle->transfer.direction) in I2C_RunDMATransfer()
206 struct _i2c_master_transfer *transfer; in I2C_RunTransferStateMachineDMA() local
213 transfer = &(handle->transfer); in I2C_RunTransferStateMachineDMA()
289 base->MSTDAT = (uint32_t)transfer->slaveAddress << 1; in I2C_RunTransferStateMachineDMA()
292 else if (transfer->direction == kI2C_Write) in I2C_RunTransferStateMachineDMA()
294 base->MSTDAT = (uint32_t)transfer->slaveAddress << 1; in I2C_RunTransferStateMachineDMA()
295 if (transfer->dataSize == 0U) in I2C_RunTransferStateMachineDMA()
304 else if ((transfer->direction == kI2C_Read) && (transfer->dataSize > 0U)) in I2C_RunTransferStateMachineDMA()
306 base->MSTDAT = ((uint32_t)transfer->slaveAddress << 1) | 1u; in I2C_RunTransferStateMachineDMA()
307 if (transfer->dataSize == 1U) in I2C_RunTransferStateMachineDMA()
340 if (transfer->dataSize != 0U) in I2C_RunTransferStateMachineDMA()
344 …handle->state = (transfer->direction == kI2C_Read) ? (uint8_t)kStartState : (uint8_t)kTransmitData… in I2C_RunTransferStateMachineDMA()
360 handle->remainingBytesDMA = handle->transfer.dataSize; in I2C_RunTransferStateMachineDMA()
372 if (0U == (transfer->flags & (uint32_t)kI2C_TransferNoStartFlag)) in I2C_RunTransferStateMachineDMA()
379 handle->remainingBytesDMA = handle->transfer.dataSize - 1U; in I2C_RunTransferStateMachineDMA()
381 if ((transfer->flags & (uint32_t)kI2C_TransferNoStartFlag) != 0U) in I2C_RunTransferStateMachineDMA()
399 ((uint8_t *)transfer->data)[transfer->dataSize - 1U] = (uint8_t)base->MSTDAT; in I2C_RunTransferStateMachineDMA()
403 if (0U == (transfer->flags & (uint32_t)kI2C_TransferNoStopFlag)) in I2C_RunTransferStateMachineDMA()
411 if ((transfer->flags & (uint32_t)kI2C_TransferNoStopFlag) != 0U) in I2C_RunTransferStateMachineDMA()