/hal_nxp-latest/mcux/mcux-sdk/components/srtm/services/ |
D | srtm_audio_service.c | 88 srtm_sai_adapter_t sai; member 106 …ce_t SRTM_AudioService_FindInterfaceByAdapter(srtm_audio_service_t handle, srtm_sai_adapter_t sai); 228 srtm_sai_adapter_t sai; in SRTM_AudioService_Request() local 279 sai = iface->sai; in SRTM_AudioService_Request() 285 if ((sai != NULL) && (sai->open != NULL)) in SRTM_AudioService_Request() 287 status = sai->open(sai, SRTM_AudioDirTx, iface->index); in SRTM_AudioService_Request() 306 if ((sai != NULL) && (sai->start != NULL)) in SRTM_AudioService_Request() 308 status = sai->start(sai, SRTM_AudioDirTx, iface->index); in SRTM_AudioService_Request() 318 if ((sai != NULL) && (sai->pause != NULL)) in SRTM_AudioService_Request() 320 status = sai->pause(sai, SRTM_AudioDirTx, iface->index); in SRTM_AudioService_Request() [all …]
|
D | srtm_sai_sdma_adapter.c | 101 /* SAI SDMA adapter */ 107 I2S_Type *sai; member 271 status = SAI_TransferSendSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 276 status = SAI_TransferReceiveSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 299 status = SAI_TransferSendSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 304 status = SAI_TransferReceiveSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 325 status = SAI_TransferSendSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 330 status = SAI_TransferReceiveSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 626 static void SRTM_SaiSdmaTxCallback(I2S_Type *sai, sai_sdma_handle_t *sdmaHandle, status_t status, v… in SRTM_SaiSdmaTxCallback() argument 706 static void SRTM_SaiSdmaRxCallback(I2S_Type *sai, sai_sdma_handle_t *sdmaHandle, status_t status, v… in SRTM_SaiSdmaRxCallback() argument [all …]
|
D | srtm_sai_edma_adapter.c | 89 /* SAI EDMA adapter */ 95 I2S_Type *sai; member 275 status = SAI_TransferSendEDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiEdmaAdapter_DmaTransfer() 280 status = SAI_TransferReceiveEDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiEdmaAdapter_DmaTransfer() 546 static void SRTM_SaiEdmaTxCallback(I2S_Type *sai, sai_edma_handle_t *edmaHandle, status_t status, v… in SRTM_SaiEdmaTxCallback() argument 600 static void SRTM_SaiEdmaRxCallback(I2S_Type *sai, sai_edma_handle_t *edmaHandle, status_t status, v… in SRTM_SaiEdmaRxCallback() argument 671 …SAI_TransferTxCreateHandleEDMA(handle->sai, &handle->txRtm.saiHandle, SRTM_SaiEdmaTxCallback, (voi… in SRTM_SaiEdmaAdapter_InitSAI() 678 …SAI_TransferRxCreateHandleEDMA(handle->sai, &handle->rxRtm.saiHandle, SRTM_SaiEdmaRxCallback, (voi… in SRTM_SaiEdmaAdapter_InitSAI() 688 SAI_TxReset(handle->sai); in SRTM_SaiEdmaAdapter_DeinitSAI() 693 SAI_RxReset(handle->sai); in SRTM_SaiEdmaAdapter_DeinitSAI() [all …]
|
D | srtm_sai_edma_adapter.h | 88 * @brief Create SAI EDMA adapter. 90 * @param sai SAI base address. 92 * @param txConfig SAI Tx channel configuration. 93 * @param rxConfig SAI Rx channel configuration. 94 * @return SRTM SAI EDMA adapter on success or NULL on failure. 96 srtm_sai_adapter_t SRTM_SaiEdmaAdapter_Create(I2S_Type *sai, 102 * @brief Destroy SAI EDMA adapter. 104 * @param adapter SAI EDMA adapter to destroy. 115 * @param adapter SAI EDMA adapter to set. 126 * @param adapter SAI EDMA adapter to set. [all …]
|
D | srtm_sai_sdma_adapter.h | 58 …uint8_t dataLine1; /* SAI data line1 number for transaction, use the dataLine1 by default for PCM … 59 …uint8_t dataLine2; /* SAI data line2 number for transaction, use the dataLine2 as the another chan… 101 * @brief Create SAI SDMA adapter. 103 * @param sai SAI base address. 105 * @param txConfig SAI Tx channel configuration. 106 * @param rxConfig SAI Rx channel configuration. 107 * @return SRTM SAI SDMA adapter on success or NULL on failure. 109 srtm_sai_adapter_t SRTM_SaiSdmaAdapter_Create(I2S_Type *sai, 115 * @brief Destroy SAI SDMA adapter. 117 * @param adapter SAI SDMA adapter to destroy. [all …]
|
D | srtm_audio_service.h | 72 * @brief SRTM SAI adapter structure pointer. 82 * @brief SRTM SAI adapter structure 92 /* Interfaces implemented by SAI adapter. */ 170 * @brief Create audio service and register sai/codec adapters as index 0 audio interface. 172 * @param sai digital audio driver adapter. 176 srtm_service_t SRTM_AudioService_Create(srtm_sai_adapter_t sai, srtm_codec_adapter_t codec); 197 * @param sai digital audio driver adapter. 201 srtm_status_t SRTM_AudioService_BindChannel(srtm_service_t service, srtm_sai_adapter_t sai, srtm_ch… 206 * @param sai digital audio driver adapter. 209 srtm_status_t SRTM_AudioService_AddAudioInterface(srtm_service_t service, srtm_sai_adapter_t sai);
|
/hal_nxp-latest/mcux/mcux-sdk/drivers/sai/ |
D | fsl_sai.h | 15 * @addtogroup sai_driver SAI Driver 52 /*! @brief _sai_status_t, SAI return status.*/ 55 kStatus_SAI_TxBusy = MAKE_STATUS(kStatusGroup_SAI, 0), /*!< SAI Tx is busy. */ 56 kStatus_SAI_RxBusy = MAKE_STATUS(kStatusGroup_SAI, 1), /*!< SAI Rx is busy. */ 57 kStatus_SAI_TxError = MAKE_STATUS(kStatusGroup_SAI, 2), /*!< SAI Tx FIFO error. */ 58 kStatus_SAI_RxError = MAKE_STATUS(kStatusGroup_SAI, 3), /*!< SAI Rx FIFO error. */ 59 kStatus_SAI_QueueFull = MAKE_STATUS(kStatusGroup_SAI, 4), /*!< SAI transfer queue is full. */ 60 kStatus_SAI_TxIdle = MAKE_STATUS(kStatusGroup_SAI, 5), /*!< SAI Tx is idle */ 61 kStatus_SAI_RxIdle = MAKE_STATUS(kStatusGroup_SAI, 6) /*!< SAI Rx is idle */ 64 /*! @brief _sai_channel_mask,.sai channel mask value, actual channel numbers is depend soc specific… [all …]
|
D | fsl_sai_edma.h | 15 * @addtogroup sai_edma SAI EDMA Driver 16 * @ingroup sai 31 /*! @brief SAI eDMA transfer callback function for finish and error */ 34 /*!@brief sai interleave type */ 38 0U, /*!< SAI data interleave per channel sample 44 1U, /*!< SAI data interleave per channel block 51 /*! @brief SAI DMA transfer handle, users should not touch the content of the handle.*/ 54 edma_handle_t *dmaHandle; /*!< DMA handler for SAI send */ 61 uint32_t state; /*!< Internal state for SAI eDMA transfer */ 85 * @brief Initializes the SAI eDMA handle. [all …]
|
D | fsl_sai_sdma.h | 15 * @addtogroup sai_sdma SAI SDMA Driver 16 * @ingroup sai 31 /*! @brief SAI SDMA transfer callback function for finish and error */ 34 /*! @brief SAI DMA transfer handle, users should not touch the content of the handle. */ 37 sdma_handle_t *dmaHandle; /*!< DMA handler for SAI send */ 44 uint32_t state; /*!< Internal state for SAI SDMA transfer */ 45 uint32_t eventSource; /*!< SAI event source number */ 67 * @brief Initializes the SAI SDMA handle. 69 …* This function initializes the SAI master DMA handle, which can be used for other SAI master tran… 70 * Usually, for a specified SAI instance, call this API once to get the initialized handle. [all …]
|
D | fsl_sai_edma.c | 33 /*! @brief sai_edma_transfer_state, sai edma transfer state.*/ 36 kSAI_Busy = 0x0U, /*!< SAI is busy */ 37 kSAI_BusyLoopTransfer, /*!< SAI is busy for Loop transfer */ 48 * @brief Get the instance number for SAI. 50 * @param base SAI base pointer. 55 * @brief SAI EDMA callback for send. 65 * @brief SAI EDMA callback for receive. 172 * brief Initializes the SAI eDMA handle. 174 …* This function initializes the SAI master DMA handle, which can be used for other SAI master tran… 175 * Usually, for a specified SAI instance, call this API once to get the initialized handle. [all …]
|
D | fsl_sai_dma.h | 15 * @addtogroup sai_dma SAI DMA Driver 16 * @ingroup sai 31 /*! @brief Define SAI DMA callback */ 34 /*! @brief SAI DMA transfer handle, users should not touch the content of the handle.*/ 37 dma_handle_t *dmaHandle; /*!< DMA handler for SAI send */ 39 uint8_t channel; /*!< Which Data channel SAI use */ 40 uint32_t state; /*!< SAI DMA transfer internal state */ 61 * @brief Initializes the SAI master DMA handle. 63 …* This function initializes the SAI master DMA handle, which can be used for other SAI master tran… 64 * Usually, for a specified SAI instance, call this API once to get the initialized handle. [all …]
|
D | fsl_sai_dma.c | 43 * @brief Get the instance number for SAI. 45 * @param base SAI base pointer. 50 * @brief SAI EDMA callback for send. 58 * @brief SAI EDMA callback for receive. 131 * brief Initializes the SAI master DMA handle. 133 …* This function initializes the SAI master DMA handle, which can be used for other SAI master tran… 134 * Usually, for a specified SAI instance, call this API once to get the initialized handle. 136 * param base SAI base pointer. 137 * param handle SAI DMA handle pointer. 138 * param base SAI peripheral base address. [all …]
|
D | fsl_sai_sdma.c | 29 kSAI_Busy = 0x0U, /*!< SAI is busy */ 42 * @brief Get the instance number for SAI. 44 * @param base SAI base pointer. 49 * @brief SAI SDMA callback for send. 59 * @brief SAI SDMA callback for receive. 142 * brief Initializes the SAI SDMA handle. 144 …* This function initializes the SAI master DMA handle, which can be used for other SAI master tran… 145 * Usually, for a specified SAI instance, call this API once to get the initialized handle. 147 * param base SAI base pointer. 148 * param handle SAI SDMA handle pointer. [all …]
|
D | fsl_sai.c | 13 #define FSL_COMPONENT_ID "platform.drivers.sai" 19 /*! @brief _sai_transfer_state sai transfer state.*/ 22 kSAI_Busy = 0x0U, /*!< SAI is busy */ 27 /*! @brief Typedef for sai tx interrupt handler. */ 30 /*! @brief Typedef for sai rx interrupt handler. */ 43 * @brief sai get rx enabled interrupt status. 46 * @param base SAI base pointer. 53 * @brief sai get tx enabled interrupt status. 56 * @param base SAI base pointer. 68 * @param base SAI base pointer. [all …]
|
D | Kconfig | 12 bool "SAI Driver" 15 SAI Driver 23 bool "SAI EDMA Driver" 26 SAI EDMA Driver 34 bool "SAI SDMA Driver" 37 SAI SDMA Driver
|
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/Driver/Include/ |
D | Driver_SAI.h | 21 * Project: SAI (Serial Audio Interface) Driver definitions 50 /****** SAI Control Codes *****/ 62 /*----- SAI Control Codes: Configuration Parameters: Mode -----*/ 68 /*----- SAI Control Codes: Configuration Parameters: Synchronization -----*/ 74 /*----- SAI Control Codes: Configuration Parameters: Protocol -----*/ 85 /*----- SAI Control Codes: Configuration Parameters: Data Size -----*/ 90 /*----- SAI Control Codes: Configuration Parameters: Bit Order -----*/ 96 /*----- SAI Control Codes: Configuration Parameters: Mono Mode -----*/ 99 /*----- SAI Control Codes:Configuration Parameters: Companding -----*/ 106 /*----- SAI Control Codes: Configuration Parameters: Clock Polarity -----*/ [all …]
|
/hal_nxp-latest/s32/drivers/s32k1/BaseNXP/header/ |
D | S32K148_SAI.h | 63 -- SAI Peripheral Access Layer 67 * @addtogroup SAI_Peripheral_Access_Layer SAI Peripheral Access Layer 71 /** SAI - Size of Registers Arrays */ 77 /** SAI - Register Layout Typedef */ 81 …__IO uint32_t TCSR; /**< SAI Transmit Control Register, offset: 0x8 */ 82 …__IO uint32_t TCR1; /**< SAI Transmit Configuration 1 Register, offse… 83 …__IO uint32_t TCR2; /**< SAI Transmit Configuration 2 Register, offse… 84 …__IO uint32_t TCR3; /**< SAI Transmit Configuration 3 Register, offse… 85 …__IO uint32_t TCR4; /**< SAI Transmit Configuration 4 Register, offse… 86 …__IO uint32_t TCR5; /**< SAI Transmit Configuration 5 Register, offse… [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MCXN236/drivers/ |
D | fsl_clock.c | 68 /*! @brief SAI MCLK clock frequency. */ 70 /*! @brief SAI TX BCLK clock frequency. */ 72 /*! @brief SAI RX BCLK clock frequency. */ 1486 /* Get SAI Clk */ 1487 /*! brief Return Frequency of SAI 1488 * return Frequency of SAI 1522 /* Get SAI MCLK */ 1523 /*! brief Initialize the SAI MCLK to given frequency. 1533 /* Get SAI TX BCLK */ 1534 /*! brief Initialize the SAI TX BCLK to given frequency. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MCXN235/drivers/ |
D | fsl_clock.c | 68 /*! @brief SAI MCLK clock frequency. */ 70 /*! @brief SAI TX BCLK clock frequency. */ 72 /*! @brief SAI RX BCLK clock frequency. */ 1486 /* Get SAI Clk */ 1487 /*! brief Return Frequency of SAI 1488 * return Frequency of SAI 1522 /* Get SAI MCLK */ 1523 /*! brief Initialize the SAI MCLK to given frequency. 1533 /* Get SAI TX BCLK */ 1534 /*! brief Initialize the SAI TX BCLK to given frequency. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/components/audio/ |
D | fsl_adapter_audio.h | 172 /*! @brief Synchronous or asynchronous mode, only for SAI configuration */ 310 /* SAI port use this structure */ 316 hal_audio_sai_sync_mode_t syncMode; /*!< SAI sync mode, control Tx/Rx clock sync */ 317 } sai; member 336 … SAI does not use this field because frameLength can be determined internally 440 * For SAI, 456 * ipConfig.sai.lineMask = 1U << 0U; 457 * ipConfig.sai.syncMode = kHAL_AudioSaiModeAsync; 528 * For SAI, 544 * ipConfig.sai.lineMask = 1U << 0U; [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MCXN546/drivers/ |
D | fsl_clock.c | 68 /*! @brief SAI MCLK clock frequency. */ 70 /*! @brief SAI TX BCLK clock frequency. */ 72 /*! @brief SAI RX BCLK clock frequency. */ 1863 /* Get SAI Clk */ 1864 /*! brief Return Frequency of SAI 1865 * return Frequency of SAI 1899 /* Get SAI MCLK */ 1900 /*! brief Initialize the SAI MCLK to given frequency. 1910 /* Get SAI TX BCLK */ 1911 /*! brief Initialize the SAI TX BCLK to given frequency. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MCXN547/drivers/ |
D | fsl_clock.c | 68 /*! @brief SAI MCLK clock frequency. */ 70 /*! @brief SAI TX BCLK clock frequency. */ 72 /*! @brief SAI RX BCLK clock frequency. */ 1863 /* Get SAI Clk */ 1864 /*! brief Return Frequency of SAI 1865 * return Frequency of SAI 1899 /* Get SAI MCLK */ 1900 /*! brief Initialize the SAI MCLK to given frequency. 1910 /* Get SAI TX BCLK */ 1911 /*! brief Initialize the SAI TX BCLK to given frequency. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MCXN946/drivers/ |
D | fsl_clock.c | 68 /*! @brief SAI MCLK clock frequency. */ 70 /*! @brief SAI TX BCLK clock frequency. */ 72 /*! @brief SAI RX BCLK clock frequency. */ 1863 /* Get SAI Clk */ 1864 /*! brief Return Frequency of SAI 1865 * return Frequency of SAI 1899 /* Get SAI MCLK */ 1900 /*! brief Initialize the SAI MCLK to given frequency. 1910 /* Get SAI TX BCLK */ 1911 /*! brief Initialize the SAI TX BCLK to given frequency. [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MCXN947/drivers/ |
D | fsl_clock.c | 68 /*! @brief SAI MCLK clock frequency. */ 70 /*! @brief SAI TX BCLK clock frequency. */ 72 /*! @brief SAI RX BCLK clock frequency. */ 1863 /* Get SAI Clk */ 1864 /*! brief Return Frequency of SAI 1865 * return Frequency of SAI 1899 /* Get SAI MCLK */ 1900 /*! brief Initialize the SAI MCLK to given frequency. 1910 /* Get SAI TX BCLK */ 1911 /*! brief Initialize the SAI TX BCLK to given frequency. [all …]
|
/hal_nxp-latest/s32/drivers/s32k3/BaseNXP/header/ |
D | S32K344_SAI.h | 63 -- SAI Peripheral Access Layer 67 * @addtogroup SAI_Peripheral_Access_Layer SAI Peripheral Access Layer 71 /** SAI - Size of Registers Arrays */ 77 /** SAI - Register Layout Typedef */ 106 /** Number of instances of the SAI module. */ 109 /* SAI - Peripheral instance base addresses */ 118 /** Array initializer of SAI peripheral base addresses */ 120 /** Array initializer of SAI peripheral base pointers */ 124 -- SAI Register Masks 128 * @addtogroup SAI_Register_Masks SAI Register Masks
|