mbed library sources

Fork of mbed-src by mbed official

Committer:
HiAlgoBoost
Date:
Sun Aug 09 05:18:54 2015 +0000
Revision:
603:f00c7e78e8b4
Parent:
532:fe11edbda85c
Evening of August 8th version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 87:085cde657901 1 /**
mbed_official 87:085cde657901 2 ******************************************************************************
mbed_official 87:085cde657901 3 * @file stm32f4xx_hal_i2s_ex.h
mbed_official 87:085cde657901 4 * @author MCD Application Team
mbed_official 532:fe11edbda85c 5 * @version V1.3.0
mbed_official 532:fe11edbda85c 6 * @date 09-March-2015
mbed_official 87:085cde657901 7 * @brief Header file of I2S HAL module.
mbed_official 87:085cde657901 8 ******************************************************************************
mbed_official 87:085cde657901 9 * @attention
mbed_official 87:085cde657901 10 *
mbed_official 532:fe11edbda85c 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 87:085cde657901 12 *
mbed_official 87:085cde657901 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 87:085cde657901 14 * are permitted provided that the following conditions are met:
mbed_official 87:085cde657901 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 87:085cde657901 16 * this list of conditions and the following disclaimer.
mbed_official 87:085cde657901 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 87:085cde657901 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 87:085cde657901 19 * and/or other materials provided with the distribution.
mbed_official 87:085cde657901 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 87:085cde657901 21 * may be used to endorse or promote products derived from this software
mbed_official 87:085cde657901 22 * without specific prior written permission.
mbed_official 87:085cde657901 23 *
mbed_official 87:085cde657901 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 87:085cde657901 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 87:085cde657901 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 87:085cde657901 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 87:085cde657901 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 87:085cde657901 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 87:085cde657901 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 87:085cde657901 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 87:085cde657901 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 87:085cde657901 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 87:085cde657901 34 *
mbed_official 87:085cde657901 35 ******************************************************************************
mbed_official 87:085cde657901 36 */
mbed_official 87:085cde657901 37
mbed_official 87:085cde657901 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 87:085cde657901 39 #ifndef __STM32F4xx_HAL_I2S_EX_H
mbed_official 87:085cde657901 40 #define __STM32F4xx_HAL_I2S_EX_H
mbed_official 87:085cde657901 41
mbed_official 87:085cde657901 42 #ifdef __cplusplus
mbed_official 87:085cde657901 43 extern "C" {
mbed_official 87:085cde657901 44 #endif
mbed_official 87:085cde657901 45
mbed_official 87:085cde657901 46 /* Includes ------------------------------------------------------------------*/
mbed_official 87:085cde657901 47 #include "stm32f4xx_hal_def.h"
mbed_official 87:085cde657901 48
mbed_official 87:085cde657901 49 /** @addtogroup STM32F4xx_HAL_Driver
mbed_official 87:085cde657901 50 * @{
mbed_official 87:085cde657901 51 */
mbed_official 87:085cde657901 52
mbed_official 87:085cde657901 53 /** @addtogroup I2SEx
mbed_official 87:085cde657901 54 * @{
mbed_official 87:085cde657901 55 */
mbed_official 87:085cde657901 56
mbed_official 532:fe11edbda85c 57 /* Exported types ------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 58 /** @defgroup I2SEx_Exported_Types I2S Exported Types
mbed_official 532:fe11edbda85c 59 * @{
mbed_official 532:fe11edbda85c 60 */
mbed_official 532:fe11edbda85c 61 /**
mbed_official 532:fe11edbda85c 62 * @}
mbed_official 532:fe11edbda85c 63 */
mbed_official 532:fe11edbda85c 64
mbed_official 532:fe11edbda85c 65 /* Exported constants --------------------------------------------------------*/
mbed_official 532:fe11edbda85c 66 /** @defgroup I2SEx_Exported_Constants I2S Exported Constants
mbed_official 532:fe11edbda85c 67 * @{
mbed_official 532:fe11edbda85c 68 */
mbed_official 532:fe11edbda85c 69 /**
mbed_official 532:fe11edbda85c 70 * @}
mbed_official 532:fe11edbda85c 71 */
mbed_official 532:fe11edbda85c 72
mbed_official 87:085cde657901 73 /* Exported macro ------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 74 /** @defgroup I2SEx_Exported_Macros I2S Exported Macros
mbed_official 532:fe11edbda85c 75 * @{
mbed_official 532:fe11edbda85c 76 */
mbed_official 532:fe11edbda85c 77
mbed_official 532:fe11edbda85c 78 /**
mbed_official 532:fe11edbda85c 79 * @}
mbed_official 532:fe11edbda85c 80 */
mbed_official 532:fe11edbda85c 81
mbed_official 87:085cde657901 82 /* Exported functions --------------------------------------------------------*/
mbed_official 532:fe11edbda85c 83 /** @addtogroup I2SEx_Exported_Functions
mbed_official 532:fe11edbda85c 84 * @{
mbed_official 532:fe11edbda85c 85 */
mbed_official 532:fe11edbda85c 86
mbed_official 532:fe11edbda85c 87 /** @addtogroup I2SEx_Exported_Functions_Group1
mbed_official 532:fe11edbda85c 88 * @{
mbed_official 532:fe11edbda85c 89 */
mbed_official 87:085cde657901 90
mbed_official 87:085cde657901 91 /* Extended features functions **************************************************/
mbed_official 532:fe11edbda85c 92 /* Blocking mode: Polling */
mbed_official 87:085cde657901 93 HAL_StatusTypeDef HAL_I2SEx_TransmitReceive(I2S_HandleTypeDef *hi2s, uint16_t *pTxData, uint16_t *pRxData, uint16_t Size, uint32_t Timeout);
mbed_official 532:fe11edbda85c 94 /* Non-Blocking mode: Interrupt */
mbed_official 87:085cde657901 95 HAL_StatusTypeDef HAL_I2SEx_TransmitReceive_IT(I2S_HandleTypeDef *hi2s, uint16_t *pTxData, uint16_t *pRxData, uint16_t Size);
mbed_official 87:085cde657901 96 /* Non-Blocking mode: DMA */
mbed_official 87:085cde657901 97 HAL_StatusTypeDef HAL_I2SEx_TransmitReceive_DMA(I2S_HandleTypeDef *hi2s, uint16_t *pTxData, uint16_t *pRxData, uint16_t Size);
mbed_official 532:fe11edbda85c 98 /**
mbed_official 532:fe11edbda85c 99 * @}
mbed_official 532:fe11edbda85c 100 */
mbed_official 87:085cde657901 101
mbed_official 532:fe11edbda85c 102 /**
mbed_official 532:fe11edbda85c 103 * @}
mbed_official 532:fe11edbda85c 104 */
mbed_official 532:fe11edbda85c 105 /* Private types -------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 106 /* Private variables ---------------------------------------------------------*/
mbed_official 532:fe11edbda85c 107 /* Private constants ---------------------------------------------------------*/
mbed_official 532:fe11edbda85c 108 /** @defgroup I2SEx_Private_Constants I2S Private Constants
mbed_official 532:fe11edbda85c 109 * @{
mbed_official 532:fe11edbda85c 110 */
mbed_official 532:fe11edbda85c 111 /**
mbed_official 532:fe11edbda85c 112 * @}
mbed_official 532:fe11edbda85c 113 */
mbed_official 532:fe11edbda85c 114
mbed_official 532:fe11edbda85c 115 /* Private macros ------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 116 /** @defgroup I2SEx_Private_Macros I2S Private Macros
mbed_official 532:fe11edbda85c 117 * @{
mbed_official 532:fe11edbda85c 118 */
mbed_official 532:fe11edbda85c 119 /**
mbed_official 532:fe11edbda85c 120 * @}
mbed_official 532:fe11edbda85c 121 */
mbed_official 532:fe11edbda85c 122
mbed_official 532:fe11edbda85c 123 /* Private functions ---------------------------------------------------------*/
mbed_official 532:fe11edbda85c 124 /** @defgroup I2SEx_Private_Functions I2S Private Functions
mbed_official 532:fe11edbda85c 125 * @{
mbed_official 532:fe11edbda85c 126 */
mbed_official 87:085cde657901 127 HAL_StatusTypeDef I2SEx_TransmitReceive_IT(I2S_HandleTypeDef *hi2s);
mbed_official 532:fe11edbda85c 128 uint32_t I2S_GetInputClock(I2S_HandleTypeDef *hi2s);
mbed_official 532:fe11edbda85c 129 /**
mbed_official 532:fe11edbda85c 130 * @}
mbed_official 532:fe11edbda85c 131 */
mbed_official 532:fe11edbda85c 132
mbed_official 87:085cde657901 133 /**
mbed_official 87:085cde657901 134 * @}
mbed_official 87:085cde657901 135 */
mbed_official 87:085cde657901 136
mbed_official 87:085cde657901 137 /**
mbed_official 87:085cde657901 138 * @}
mbed_official 87:085cde657901 139 */
mbed_official 87:085cde657901 140
mbed_official 87:085cde657901 141 #ifdef __cplusplus
mbed_official 87:085cde657901 142 }
mbed_official 87:085cde657901 143 #endif
mbed_official 87:085cde657901 144
mbed_official 87:085cde657901 145
mbed_official 87:085cde657901 146 #endif /* __STM32F4xx_HAL_I2S_EX_H */
mbed_official 87:085cde657901 147
mbed_official 87:085cde657901 148 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/