Lines Matching refs:transfer
183 handle->transfer = *xfer; in I2C_InitTransferStateMachine()
189 if (handle->transfer.subaddressSize > 0U) in I2C_InitTransferStateMachine()
203 if ((handle->transfer.flags & (uint32_t)kI2C_TransferNoStartFlag) != 0U) in I2C_InitTransferStateMachine()
206 if (handle->transfer.subaddressSize > 0U) in I2C_InitTransferStateMachine()
231 else if ((handle->transfer.flags & (uint32_t)kI2C_TransferRepeatedStartFlag) != 0U) in I2C_InitTransferStateMachine()
233 result = I2C_MasterRepeatedStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachine()
237 result = I2C_MasterStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachine()
278 …bool ignoreNak = ((handle->state == (uint8_t)kSendDataState) && (handle->transfer.dataSize… in I2C_MasterTransferRunStateMachine()
279 … ((handle->state == (uint8_t)kReceiveDataState) && (handle->transfer.dataSize == 1U)); in I2C_MasterTransferRunStateMachine()
303 if (handle->transfer.subaddressSize > 0U) in I2C_MasterTransferRunStateMachine()
309 if (handle->transfer.direction == kI2C_Write) in I2C_MasterTransferRunStateMachine()
333 if (handle->transfer.subaddressSize != 0U) in I2C_MasterTransferRunStateMachine()
335 handle->transfer.subaddressSize--; in I2C_MasterTransferRunStateMachine()
336 … base->I2DR = (uint16_t)((handle->transfer.subaddress) >> (8U * handle->transfer.subaddressSize)); in I2C_MasterTransferRunStateMachine()
340 if (handle->transfer.direction == kI2C_Write) in I2C_MasterTransferRunStateMachine()
343 if (handle->transfer.dataSize > 0U) in I2C_MasterTransferRunStateMachine()
347 base->I2DR = *handle->transfer.data; in I2C_MasterTransferRunStateMachine()
348 handle->transfer.data++; in I2C_MasterTransferRunStateMachine()
349 handle->transfer.dataSize--; in I2C_MasterTransferRunStateMachine()
359 … result = I2C_MasterRepeatedStart(base, handle->transfer.slaveAddress, kI2C_Read); in I2C_MasterTransferRunStateMachine()
370 if (handle->transfer.dataSize > 0U) in I2C_MasterTransferRunStateMachine()
372 base->I2DR = *handle->transfer.data; in I2C_MasterTransferRunStateMachine()
373 handle->transfer.data++; in I2C_MasterTransferRunStateMachine()
374 handle->transfer.dataSize--; in I2C_MasterTransferRunStateMachine()
387 if (handle->transfer.dataSize == 1U) in I2C_MasterTransferRunStateMachine()
402 if (0U != handle->transfer.dataSize--) in I2C_MasterTransferRunStateMachine()
404 if (handle->transfer.dataSize == 0U) in I2C_MasterTransferRunStateMachine()
409 if (0U == (handle->transfer.flags & (uint32_t)kI2C_TransferNoStopFlag)) in I2C_MasterTransferRunStateMachine()
420 if (handle->transfer.dataSize == 1U) in I2C_MasterTransferRunStateMachine()
426 *handle->transfer.data = (uint8_t)base->I2DR; in I2C_MasterTransferRunStateMachine()
427 handle->transfer.data++; in I2C_MasterTransferRunStateMachine()
1151 if (handle->transfer.direction == kI2C_Read) in I2C_MasterTransferAbort()
1194 *count = handle->transferSize - handle->transfer.dataSize; in I2C_MasterTransferGetCount()
1222 …if ((0U == (handle->transfer.flags & (uint32_t)kI2C_TransferNoStopFlag)) || (result == kStatus_I2C… in I2C_MasterTransferHandleIRQ()
1481 (void)memset(&handle->transfer, 0, sizeof(handle->transfer)); in I2C_SlaveTransferNonBlocking()
1517 (void)memset(&handle->transfer, 0, sizeof(handle->transfer)); in I2C_SlaveTransferAbort()
1550 *count = handle->transfer.transferredCount; in I2C_SlaveTransferGetCount()
1575 xfer = &(handle->transfer); in I2C_SlaveTransferHandleIRQ()
1589 if (handle->transfer.dataSize != 0U) in I2C_SlaveTransferHandleIRQ()
1668 if (handle->transfer.dataSize != 0U) in I2C_SlaveTransferHandleIRQ()
1671 *handle->transfer.data++ = data; in I2C_SlaveTransferHandleIRQ()
1672 handle->transfer.dataSize--; in I2C_SlaveTransferHandleIRQ()
1675 if (0U == handle->transfer.dataSize) in I2C_SlaveTransferHandleIRQ()
1713 if (handle->transfer.dataSize != 0U) in I2C_SlaveTransferHandleIRQ()
1716 base->I2DR = *handle->transfer.data++; in I2C_SlaveTransferHandleIRQ()
1717 handle->transfer.dataSize--; in I2C_SlaveTransferHandleIRQ()