38
38
* @{
39
39
*/
40
40
41
-
42
41
/*******************************************************************************
43
42
* Definitions
44
43
******************************************************************************/
@@ -65,6 +64,7 @@ typedef void (*flexio_spi_slave_edma_transfer_callback_t)(FLEXIO_SPI_Type *base,
65
64
struct _flexio_spi_master_edma_handle
66
65
{
67
66
size_t transferSize ; /*!< Total bytes to be transferred. */
67
+ uint8_t nbytes ; /*!< eDMA minor byte transfer count initially configured. */
68
68
bool txInProgress ; /*!< Send transfer in progress */
69
69
bool rxInProgress ; /*!< Receive transfer in progress */
70
70
edma_handle_t * txHandle ; /*!< DMA handler for SPI send */
@@ -86,14 +86,14 @@ extern "C" {
86
86
*/
87
87
88
88
/*!
89
- * @brief Initializes the FLEXO SPI master eDMA handle.
89
+ * @brief Initializes the FlexIO SPI master eDMA handle.
90
90
*
91
- * This function initializes the FLEXO SPI master eDMA handle which can be used for other FLEXO SPI master transactional
91
+ * This function initializes the FlexIO SPI master eDMA handle which can be used for other FlexIO SPI master transactional
92
92
* APIs.
93
- * For a specified FLEXO SPI instance, call this API once to get the initialized handle.
93
+ * For a specified FlexIO SPI instance, call this API once to get the initialized handle.
94
94
*
95
- * @param base pointer to FLEXIO_SPI_Type structure.
96
- * @param handle pointer to flexio_spi_master_edma_handle_t structure to store the transfer state.
95
+ * @param base Pointer to FLEXIO_SPI_Type structure.
96
+ * @param handle Pointer to flexio_spi_master_edma_handle_t structure to store the transfer state.
97
97
* @param callback SPI callback, NULL means no callback.
98
98
* @param userData callback function parameter.
99
99
* @param txHandle User requested eDMA handle for FlexIO SPI RX eDMA transfer.
@@ -112,11 +112,11 @@ status_t FLEXIO_SPI_MasterTransferCreateHandleEDMA(FLEXIO_SPI_Type *base,
112
112
* @brief Performs a non-blocking FlexIO SPI transfer using eDMA.
113
113
*
114
114
* @note This interface returns immediately after transfer initiates. Call
115
- * FLEXIO_SPI_MasterGetTransferCountEDMA to poll the transfer status to check
116
- * whether FlexIO SPI transfer finished.
115
+ * FLEXIO_SPI_MasterGetTransferCountEDMA to poll the transfer status and check
116
+ * whether the FlexIO SPI transfer is finished.
117
117
*
118
- * @param base pointer to FLEXIO_SPI_Type structure.
119
- * @param handle pointer to flexio_spi_master_edma_handle_t structure to store the transfer state.
118
+ * @param base Pointer to FLEXIO_SPI_Type structure.
119
+ * @param handle Pointer to flexio_spi_master_edma_handle_t structure to store the transfer state.
120
120
* @param xfer Pointer to FlexIO SPI transfer structure.
121
121
* @retval kStatus_Success Successfully start a transfer.
122
122
* @retval kStatus_InvalidArgument Input argument is invalid.
@@ -129,15 +129,15 @@ status_t FLEXIO_SPI_MasterTransferEDMA(FLEXIO_SPI_Type *base,
129
129
/*!
130
130
* @brief Aborts a FlexIO SPI transfer using eDMA.
131
131
*
132
- * @param base pointer to FLEXIO_SPI_Type structure.
132
+ * @param base Pointer to FLEXIO_SPI_Type structure.
133
133
* @param handle FlexIO SPI eDMA handle pointer.
134
134
*/
135
135
void FLEXIO_SPI_MasterTransferAbortEDMA (FLEXIO_SPI_Type * base , flexio_spi_master_edma_handle_t * handle );
136
136
137
137
/*!
138
138
* @brief Gets the remaining bytes for FlexIO SPI eDMA transfer.
139
139
*
140
- * @param base pointer to FLEXIO_SPI_Type structure.
140
+ * @param base Pointer to FLEXIO_SPI_Type structure.
141
141
* @param handle FlexIO SPI eDMA handle pointer.
142
142
* @param count Number of bytes transferred so far by the non-blocking transaction.
143
143
*/
@@ -150,8 +150,8 @@ status_t FLEXIO_SPI_MasterTransferGetCountEDMA(FLEXIO_SPI_Type *base,
150
150
*
151
151
* This function initializes the FlexIO SPI slave eDMA handle.
152
152
*
153
- * @param base pointer to FLEXIO_SPI_Type structure.
154
- * @param handle pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.
153
+ * @param base Pointer to FLEXIO_SPI_Type structure.
154
+ * @param handle Pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.
155
155
* @param callback SPI callback, NULL means no callback.
156
156
* @param userData callback function parameter.
157
157
* @param txHandle User requested eDMA handle for FlexIO SPI TX eDMA transfer.
@@ -171,11 +171,11 @@ static inline void FLEXIO_SPI_SlaveTransferCreateHandleEDMA(FLEXIO_SPI_Type *bas
171
171
* @brief Performs a non-blocking FlexIO SPI transfer using eDMA.
172
172
*
173
173
* @note This interface returns immediately after transfer initiates. Call
174
- * FLEXIO_SPI_SlaveGetTransferCountEDMA to poll the transfer status to
175
- * check whether FlexIO SPI transfer finished.
174
+ * FLEXIO_SPI_SlaveGetTransferCountEDMA to poll the transfer status and
175
+ * check whether the FlexIO SPI transfer is finished.
176
176
*
177
- * @param base pointer to FLEXIO_SPI_Type structure.
178
- * @param handle pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.
177
+ * @param base Pointer to FLEXIO_SPI_Type structure.
178
+ * @param handle Pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.
179
179
* @param xfer Pointer to FlexIO SPI transfer structure.
180
180
* @retval kStatus_Success Successfully start a transfer.
181
181
* @retval kStatus_InvalidArgument Input argument is invalid.
@@ -188,8 +188,8 @@ status_t FLEXIO_SPI_SlaveTransferEDMA(FLEXIO_SPI_Type *base,
188
188
/*!
189
189
* @brief Aborts a FlexIO SPI transfer using eDMA.
190
190
*
191
- * @param base pointer to FLEXIO_SPI_Type structure.
192
- * @param handle pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.
191
+ * @param base Pointer to FLEXIO_SPI_Type structure.
192
+ * @param handle Pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.
193
193
*/
194
194
static inline void FLEXIO_SPI_SlaveTransferAbortEDMA (FLEXIO_SPI_Type * base , flexio_spi_slave_edma_handle_t * handle )
195
195
{
@@ -199,7 +199,7 @@ static inline void FLEXIO_SPI_SlaveTransferAbortEDMA(FLEXIO_SPI_Type *base, flex
199
199
/*!
200
200
* @brief Gets the remaining bytes to be transferred for FlexIO SPI eDMA.
201
201
*
202
- * @param base pointer to FLEXIO_SPI_Type structure.
202
+ * @param base Pointer to FLEXIO_SPI_Type structure.
203
203
* @param handle FlexIO SPI eDMA handle pointer.
204
204
* @param count Number of bytes transferred so far by the non-blocking transaction.
205
205
*/
0 commit comments