Home
last modified time | relevance | path

Searched refs:pdmHandle (Results 1 – 4 of 4) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pdm/
Dfsl_pdm_edma.c90 pdm_edma_handle_t *pdmHandle = privHandle->handle; in PDM_EDMACallback() local
92 if (!(pdmHandle->isLoopTransfer)) in PDM_EDMACallback()
94 (void)memset(&pdmHandle->tcd[pdmHandle->tcdDriver], 0, sizeof(edma_tcd_t)); in PDM_EDMACallback()
95 pdmHandle->tcdDriver = (pdmHandle->tcdDriver + 1U) % pdmHandle->tcdNum; in PDM_EDMACallback()
98 pdmHandle->receivedBytes += in PDM_EDMACallback()
99pdmHandle->tcd[pdmHandle->tcdDriver].BITER * (pdmHandle->tcd[pdmHandle->tcdDriver].NBYTES & 0x3FFU… in PDM_EDMACallback()
102 if (pdmHandle->callback != NULL) in PDM_EDMACallback()
104 (pdmHandle->callback)(privHandle->base, pdmHandle, kStatus_PDM_Idle, pdmHandle->userData); in PDM_EDMACallback()
107 pdmHandle->tcdUsedNum--; in PDM_EDMACallback()
109 if ((pdmHandle->tcdUsedNum == 0U) && !(pdmHandle->isLoopTransfer)) in PDM_EDMACallback()
Dfsl_pdm_sdma.c50 pdm_sdma_handle_t *pdmHandle = privHandle->handle; in PDM_SDMACallback() local
53 (void)memset(&pdmHandle->pdmQueue[pdmHandle->queueDriver], 0, sizeof(pdm_transfer_t)); in PDM_SDMACallback()
54 pdmHandle->queueDriver = (pdmHandle->queueDriver + 1U) % PDM_XFER_QUEUE_SIZE; in PDM_SDMACallback()
55 if (pdmHandle->callback != NULL) in PDM_SDMACallback()
57 (pdmHandle->callback)(privHandle->base, pdmHandle, kStatus_PDM_Idle, pdmHandle->userData); in PDM_SDMACallback()
61 if (pdmHandle->pdmQueue[pdmHandle->queueDriver].data == NULL) in PDM_SDMACallback()
63 PDM_TransferAbortReceiveSDMA(privHandle->base, pdmHandle); in PDM_SDMACallback()
Dfsl_pdm.c19 typedef void (*pdm_isr_t)(PDM_Type *base, pdm_handle_t *pdmHandle);
/hal_nxp-3.5.0/mcux/mcux-sdk/components/srtm/services/
Dsrtm_pdm_sdma_adapter.c65 pdm_sdma_handle_t pdmHandle; member
228 status = PDM_TransferReceiveSDMA(handle->pdm, &rtm->pdmHandle, &xfer); in SRTM_PdmSdmaAdapter_PeriodReceiveSDMA()
247 status = PDM_TransferReceiveSDMA(handle->pdm, &rtm->pdmHandle, &xfer); in SRTM_PdmSdmaAdapter_PeriodReceiveSDMA()
262 status = PDM_TransferReceiveSDMA(handle->pdm, &rtm->pdmHandle, &xfer); in SRTM_PdmSdmaAdapter_PeriodReceiveSDMA()
704 …PDM_TransferCreateHandleSDMA(handle->pdm, &handle->rxRtm.pdmHandle, SRTM_PdmSdmaRxCallback, (void … in SRTM_PdmSdmaAdapter_InitPDM()
718 PDM_SetChannelConfigSDMA(handle->pdm, &rtm->pdmHandle, ch, &handle->rxConfig.channelConfig); in SRTM_PdmSdmaAdapter_SetConfig()
859 PDM_TransferTerminateReceiveSDMA(handle->pdm, &thisRtm->pdmHandle); in SRTM_PdmSdmaAdapter_End()