RTEMS 6.1-rc4
|
Data Structures | |
struct | _pdm_sdma_handle |
PDM DMA transfer handle, users should not touch the content of the handle. More... | |
Driver version | |
typedef struct _pdm_sdma_handle | pdm_sdma_handle_t |
typedef void(* | pdm_sdma_callback_t) (PDM_Type *base, pdm_sdma_handle_t *handle, status_t status, void *userData) |
PDM eDMA transfer callback function for finish and error. | |
#define | FSL_PDM_SDMA_DRIVER_VERSION (MAKE_VERSION(2, 7, 0)) |
eDMA Transactional | |
void | PDM_TransferCreateHandleSDMA (PDM_Type *base, pdm_sdma_handle_t *handle, pdm_sdma_callback_t callback, void *userData, sdma_handle_t *dmaHandle, uint32_t eventSource) |
Initializes the PDM eDMA handle. | |
status_t | PDM_TransferReceiveSDMA (PDM_Type *base, pdm_sdma_handle_t *handle, pdm_transfer_t *xfer) |
Performs a non-blocking PDM receive using eDMA. | |
void | PDM_TransferAbortReceiveSDMA (PDM_Type *base, pdm_sdma_handle_t *handle) |
Aborts a PDM receive using eDMA. | |
void | PDM_SetChannelConfigSDMA (PDM_Type *base, pdm_sdma_handle_t *handle, uint32_t channel, const pdm_channel_config_t *config) |
PDM channel configurations. | |
void | PDM_TransferTerminateReceiveSDMA (PDM_Type *base, pdm_sdma_handle_t *handle) |
Terminate all the PDM sdma receive transfer. | |
#define FSL_PDM_SDMA_DRIVER_VERSION (MAKE_VERSION(2, 7, 0)) |
Version 2.7.0
void PDM_SetChannelConfigSDMA | ( | PDM_Type * | base, |
pdm_sdma_handle_t * | handle, | ||
uint32_t | channel, | ||
const pdm_channel_config_t * | config | ||
) |
PDM channel configurations.
base | PDM base pointer. |
handle | PDM eDMA handle pointer. |
channel | channel number. |
config | channel configurations. |
void PDM_TransferAbortReceiveSDMA | ( | PDM_Type * | base, |
pdm_sdma_handle_t * | handle | ||
) |
Aborts a PDM receive using eDMA.
base | PDM base pointer |
handle | PDM eDMA handle pointer. |
void PDM_TransferCreateHandleSDMA | ( | PDM_Type * | base, |
pdm_sdma_handle_t * | handle, | ||
pdm_sdma_callback_t | callback, | ||
void * | userData, | ||
sdma_handle_t * | dmaHandle, | ||
uint32_t | eventSource | ||
) |
Initializes the PDM eDMA handle.
This function initializes the PDM DMA handle, which can be used for other PDM master transactional APIs. Usually, for a specified PDM instance, call this API once to get the initialized handle.
base | PDM base pointer. |
handle | PDM eDMA handle pointer. |
callback | Pointer to user callback function. |
userData | User parameter passed to the callback function. |
dmaHandle | eDMA handle pointer, this handle shall be static allocated by users. |
eventSource | PDM event source number. |
status_t PDM_TransferReceiveSDMA | ( | PDM_Type * | base, |
pdm_sdma_handle_t * | handle, | ||
pdm_transfer_t * | xfer | ||
) |
Performs a non-blocking PDM receive using eDMA.
base | PDM base pointer |
handle | PDM eDMA handle pointer. |
xfer | Pointer to DMA transfer structure. |
kStatus_Success | Start a PDM eDMA receive successfully. |
kStatus_InvalidArgument | The input argument is invalid. |
kStatus_RxBusy | PDM is busy receiving data. |
void PDM_TransferTerminateReceiveSDMA | ( | PDM_Type * | base, |
pdm_sdma_handle_t * | handle | ||
) |
Terminate all the PDM sdma receive transfer.
base | PDM base pointer. |
handle | PDM SDMA handle pointer. |