Lines Matching refs:transfer

854 status_t LPI2C_MasterTransferBlocking(LPI2C_Type *base, lpi2c_master_transfer_t *transfer)  in LPI2C_MasterTransferBlocking()  argument
860 assert(NULL != transfer); in LPI2C_MasterTransferBlocking()
861 assert(transfer->subaddressSize <= sizeof(transfer->subaddress)); in LPI2C_MasterTransferBlocking()
876 …lpi2c_direction_t direction = (0U != transfer->subaddressSize) ? kLPI2C_Write : transfer->directio… in LPI2C_MasterTransferBlocking()
877 if (0U == (transfer->flags & (uint32_t)kLPI2C_TransferNoStartFlag)) in LPI2C_MasterTransferBlocking()
880 …(uint16_t)kStartCmd | (uint16_t)((uint16_t)((uint16_t)transfer->slaveAddress << 1U) | (uint16_t)di… in LPI2C_MasterTransferBlocking()
884 if (0U != transfer->subaddressSize) in LPI2C_MasterTransferBlocking()
886 uint32_t subaddressRemaining = transfer->subaddressSize; in LPI2C_MasterTransferBlocking()
889 …uint8_t subaddressByte = (uint8_t)((transfer->subaddress >> (8U * subaddressRemaining)) & 0xffU… in LPI2C_MasterTransferBlocking()
895 if ((0U != transfer->dataSize) && (transfer->direction == kLPI2C_Read)) in LPI2C_MasterTransferBlocking()
902 … (uint16_t)((uint16_t)((uint16_t)transfer->slaveAddress << 1U) | (uint16_t)kLPI2C_Read); in LPI2C_MasterTransferBlocking()
923 if ((transfer->direction == kLPI2C_Write) && (transfer->dataSize > 0U)) in LPI2C_MasterTransferBlocking()
926 result = LPI2C_MasterSend(base, transfer->data, transfer->dataSize); in LPI2C_MasterTransferBlocking()
930 if ((transfer->direction == kLPI2C_Read) && (transfer->dataSize > 0U)) in LPI2C_MasterTransferBlocking()
932 result = LPI2C_MasterReceive(base, transfer->data, transfer->dataSize); in LPI2C_MasterTransferBlocking()
940 if ((transfer->flags & (uint32_t)kLPI2C_TransferNoStopFlag) == 0U) in LPI2C_MasterTransferBlocking()
1039 xfer = &handle->transfer; in LPI2C_RunTransferStateMachine()
1190 lpi2c_master_transfer_t *xfer = &handle->transfer; in LPI2C_InitTransferStateMachine()
1266 lpi2c_master_transfer_t *transfer) in LPI2C_MasterTransferNonBlocking() argument
1271 assert(NULL != transfer); in LPI2C_MasterTransferNonBlocking()
1272 assert(transfer->subaddressSize <= sizeof(transfer->subaddress)); in LPI2C_MasterTransferNonBlocking()
1294 handle->transfer = *transfer; in LPI2C_MasterTransferNonBlocking()
1345 dataSize = handle->transfer.dataSize; in LPI2C_MasterTransferGetCount()
1898 (void)memset(&handle->transfer, 0, sizeof(handle->transfer)); in LPI2C_SlaveTransferNonBlocking()
1971 (void)memset(&handle->transfer, 0, sizeof(handle->transfer)); in LPI2C_SlaveTransferAbort()
1996 xfer = &handle->transfer; in LPI2C_SlaveTransferHandleIRQ()
2047 (void)memset(&handle->transfer, 0, sizeof(handle->transfer)); in LPI2C_SlaveTransferHandleIRQ()