Rev 56 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 56 | Rev 61 | ||
---|---|---|---|
Line 738... | Line 738... | ||
738 | * @param pData a 16-bit pointer to data buffer. |
738 | * @param pData a 16-bit pointer to data buffer. |
739 | * @param Size number of data sample to be sent: |
739 | * @param Size number of data sample to be sent: |
740 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
740 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
741 | * configuration phase, the Size parameter means the number of 16-bit data length |
741 | * configuration phase, the Size parameter means the number of 16-bit data length |
742 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
742 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
743 | * the Size parameter means the number of 16-bit data length. |
743 | * the Size parameter means the number of 24-bit or 32-bit data length. |
744 | * @param Timeout Timeout duration |
744 | * @param Timeout Timeout duration |
745 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
745 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
746 | * between Master and Slave(example: audio streaming). |
746 | * between Master and Slave(example: audio streaming). |
747 | * @retval HAL status |
747 | * @retval HAL status |
748 | */ |
748 | */ |
Line 855... | Line 855... | ||
855 | * @param pData a 16-bit pointer to data buffer. |
855 | * @param pData a 16-bit pointer to data buffer. |
856 | * @param Size number of data sample to be sent: |
856 | * @param Size number of data sample to be sent: |
857 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
857 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
858 | * configuration phase, the Size parameter means the number of 16-bit data length |
858 | * configuration phase, the Size parameter means the number of 16-bit data length |
859 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
859 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
860 | * the Size parameter means the number of 16-bit data length. |
860 | * the Size parameter means the number of 24-bit or 32-bit data length. |
861 | * @param Timeout Timeout duration |
861 | * @param Timeout Timeout duration |
862 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
862 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
863 | * between Master and Slave(example: audio streaming). |
863 | * between Master and Slave(example: audio streaming). |
864 | * @note In I2S Master Receiver mode, just after enabling the peripheral the clock will be generate |
864 | * @note In I2S Master Receiver mode, just after enabling the peripheral the clock will be generate |
865 | * in continuous way and as the I2S is not disabled at the end of the I2S transaction. |
865 | * in continuous way and as the I2S is not disabled at the end of the I2S transaction. |
Line 956... | Line 956... | ||
956 | * @param pData a 16-bit pointer to data buffer. |
956 | * @param pData a 16-bit pointer to data buffer. |
957 | * @param Size number of data sample to be sent: |
957 | * @param Size number of data sample to be sent: |
958 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
958 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
959 | * configuration phase, the Size parameter means the number of 16-bit data length |
959 | * configuration phase, the Size parameter means the number of 16-bit data length |
960 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
960 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
961 | * the Size parameter means the number of 16-bit data length. |
961 | * the Size parameter means the number of 24-bit or 32-bit data length. |
962 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
962 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
963 | * between Master and Slave(example: audio streaming). |
963 | * between Master and Slave(example: audio streaming). |
964 | * @retval HAL status |
964 | * @retval HAL status |
965 | */ |
965 | */ |
966 | HAL_StatusTypeDef HAL_I2S_Transmit_IT(I2S_HandleTypeDef *hi2s, uint16_t *pData, uint16_t Size) |
966 | HAL_StatusTypeDef HAL_I2S_Transmit_IT(I2S_HandleTypeDef *hi2s, uint16_t *pData, uint16_t Size) |
Line 1020... | Line 1020... | ||
1020 | * @param pData a 16-bit pointer to the Receive data buffer. |
1020 | * @param pData a 16-bit pointer to the Receive data buffer. |
1021 | * @param Size number of data sample to be sent: |
1021 | * @param Size number of data sample to be sent: |
1022 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
1022 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
1023 | * configuration phase, the Size parameter means the number of 16-bit data length |
1023 | * configuration phase, the Size parameter means the number of 16-bit data length |
1024 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
1024 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
1025 | * the Size parameter means the number of 16-bit data length. |
1025 | * the Size parameter means the number of 24-bit or 32-bit data length. |
1026 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
1026 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
1027 | * between Master and Slave(example: audio streaming). |
1027 | * between Master and Slave(example: audio streaming). |
1028 | * @note It is recommended to use DMA for the I2S receiver to avoid de-synchronization |
1028 | * @note It is recommended to use DMA for the I2S receiver to avoid de-synchronization |
1029 | * between Master and Slave otherwise the I2S interrupt should be optimized. |
1029 | * between Master and Slave otherwise the I2S interrupt should be optimized. |
1030 | * @retval HAL status |
1030 | * @retval HAL status |
Line 1086... | Line 1086... | ||
1086 | * @param pData a 16-bit pointer to the Transmit data buffer. |
1086 | * @param pData a 16-bit pointer to the Transmit data buffer. |
1087 | * @param Size number of data sample to be sent: |
1087 | * @param Size number of data sample to be sent: |
1088 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
1088 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
1089 | * configuration phase, the Size parameter means the number of 16-bit data length |
1089 | * configuration phase, the Size parameter means the number of 16-bit data length |
1090 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
1090 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
1091 | * the Size parameter means the number of 16-bit data length. |
1091 | * the Size parameter means the number of 24-bit or 32-bit data length. |
1092 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
1092 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
1093 | * between Master and Slave(example: audio streaming). |
1093 | * between Master and Slave(example: audio streaming). |
1094 | * @retval HAL status |
1094 | * @retval HAL status |
1095 | */ |
1095 | */ |
1096 | HAL_StatusTypeDef HAL_I2S_Transmit_DMA(I2S_HandleTypeDef *hi2s, uint16_t *pData, uint16_t Size) |
1096 | HAL_StatusTypeDef HAL_I2S_Transmit_DMA(I2S_HandleTypeDef *hi2s, uint16_t *pData, uint16_t Size) |
Line 1177... | Line 1177... | ||
1177 | * @param pData a 16-bit pointer to the Receive data buffer. |
1177 | * @param pData a 16-bit pointer to the Receive data buffer. |
1178 | * @param Size number of data sample to be sent: |
1178 | * @param Size number of data sample to be sent: |
1179 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
1179 | * @note When a 16-bit data frame or a 16-bit data frame extended is selected during the I2S |
1180 | * configuration phase, the Size parameter means the number of 16-bit data length |
1180 | * configuration phase, the Size parameter means the number of 16-bit data length |
1181 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
1181 | * in the transaction and when a 24-bit data frame or a 32-bit data frame is selected |
1182 | * the Size parameter means the number of 16-bit data length. |
1182 | * the Size parameter means the number of 24-bit or 32-bit data length. |
1183 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
1183 | * @note The I2S is kept enabled at the end of transaction to avoid the clock de-synchronization |
1184 | * between Master and Slave(example: audio streaming). |
1184 | * between Master and Slave(example: audio streaming). |
1185 | * @retval HAL status |
1185 | * @retval HAL status |
1186 | */ |
1186 | */ |
1187 | HAL_StatusTypeDef HAL_I2S_Receive_DMA(I2S_HandleTypeDef *hi2s, uint16_t *pData, uint16_t Size) |
1187 | HAL_StatusTypeDef HAL_I2S_Receive_DMA(I2S_HandleTypeDef *hi2s, uint16_t *pData, uint16_t Size) |