Lines Matching refs:transfer
47 static status_t I2S_ValidateBuffer(i2s_handle_t *handle, i2s_transfer_t *transfer);
376 static status_t I2S_ValidateBuffer(i2s_handle_t *handle, i2s_transfer_t *transfer) in I2S_ValidateBuffer() argument
378 assert(transfer->data != NULL); in I2S_ValidateBuffer()
380 if (transfer->data == NULL) in I2S_ValidateBuffer()
385 assert(transfer->dataSize > 0U); in I2S_ValidateBuffer()
386 if (transfer->dataSize <= 0U) in I2S_ValidateBuffer()
397 assert((((uint32_t)transfer->data) % 2U) == 0U); in I2S_ValidateBuffer()
398 if ((((uint32_t)transfer->data) % 2U) != 0U) in I2S_ValidateBuffer()
404 assert((transfer->dataSize % 2U) == 0U); in I2S_ValidateBuffer()
405 if ((transfer->dataSize % 2U) != 0U) in I2S_ValidateBuffer()
413 assert((((uint32_t)transfer->data) % 4U) == 0U); in I2S_ValidateBuffer()
414 if ((((uint32_t)transfer->data) % 4U) != 0U) in I2S_ValidateBuffer()
420 assert((transfer->dataSize % 4U) == 0U); in I2S_ValidateBuffer()
421 if ((transfer->dataSize % 4U) != 0U) in I2S_ValidateBuffer()
429 assert((transfer->dataSize % 6U) == 0U); in I2S_ValidateBuffer()
430 if ((transfer->dataSize % 6U) != 0U) in I2S_ValidateBuffer()
436 assert(!((handle->pack48) && ((((uint32_t)transfer->data) % 4U) != 0U))); in I2S_ValidateBuffer()
437 if ((handle->pack48) && ((((uint32_t)transfer->data) % 4U) != 0U)) in I2S_ValidateBuffer()
445 assert((((uint32_t)transfer->data) % 4U) == 0U); in I2S_ValidateBuffer()
446 if ((((uint32_t)transfer->data) % 4U) != 0U) in I2S_ValidateBuffer()
454 assert((transfer->dataSize % 4U) == 0U); in I2S_ValidateBuffer()
455 if ((transfer->dataSize % 4U) != 0U) in I2S_ValidateBuffer()
463 assert((transfer->dataSize % 8U) == 0U); in I2S_ValidateBuffer()
464 if ((transfer->dataSize % 8U) != 0U) in I2S_ValidateBuffer()
554 status_t I2S_TxTransferNonBlocking(I2S_Type *base, i2s_handle_t *handle, i2s_transfer_t transfer) in I2S_TxTransferNonBlocking() argument
565 result = I2S_ValidateBuffer(handle, &transfer); in I2S_TxTransferNonBlocking()
578 handle->i2sQueue[handle->queueUser].data = transfer.data; in I2S_TxTransferNonBlocking()
579 handle->i2sQueue[handle->queueUser].dataSize = transfer.dataSize; in I2S_TxTransferNonBlocking()
660 status_t I2S_RxTransferNonBlocking(I2S_Type *base, i2s_handle_t *handle, i2s_transfer_t transfer) in I2S_RxTransferNonBlocking() argument
671 result = I2S_ValidateBuffer(handle, &transfer); in I2S_RxTransferNonBlocking()
684 handle->i2sQueue[handle->queueUser].data = transfer.data; in I2S_RxTransferNonBlocking()
685 handle->i2sQueue[handle->queueUser].dataSize = transfer.dataSize; in I2S_RxTransferNonBlocking()