mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Wed Jan 13 09:48:29 2016 +0000
Revision:
112:6f327212ef96
Child:
122:f9eeca106725
Release 112 of the mbed library

Changes:
- new platforms - STM32 B96B F446, MOTE_L152RC
- nrf51 - fix serial init bug (character sent)
- stm all devices - fix RTC clocking in the init
- stm f0 - SystemInit clock fix, for SetVector()
- RawSerial - fix for microlib (vsnprintf with size 0)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 112:6f327212ef96 1 /**
Kojto 112:6f327212ef96 2 ******************************************************************************
Kojto 112:6f327212ef96 3 * @file stm32f4xx_hal_spdifrx.h
Kojto 112:6f327212ef96 4 * @author MCD Application Team
Kojto 112:6f327212ef96 5 * @version V1.4.1
Kojto 112:6f327212ef96 6 * @date 09-October-2015
Kojto 112:6f327212ef96 7 * @brief Header file of SPDIFRX HAL module.
Kojto 112:6f327212ef96 8 ******************************************************************************
Kojto 112:6f327212ef96 9 * @attention
Kojto 112:6f327212ef96 10 *
Kojto 112:6f327212ef96 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
Kojto 112:6f327212ef96 12 *
Kojto 112:6f327212ef96 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 112:6f327212ef96 14 * are permitted provided that the following conditions are met:
Kojto 112:6f327212ef96 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 112:6f327212ef96 16 * this list of conditions and the following disclaimer.
Kojto 112:6f327212ef96 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 112:6f327212ef96 18 * this list of conditions and the following disclaimer in the documentation
Kojto 112:6f327212ef96 19 * and/or other materials provided with the distribution.
Kojto 112:6f327212ef96 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 112:6f327212ef96 21 * may be used to endorse or promote products derived from this software
Kojto 112:6f327212ef96 22 * without specific prior written permission.
Kojto 112:6f327212ef96 23 *
Kojto 112:6f327212ef96 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 112:6f327212ef96 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 112:6f327212ef96 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 112:6f327212ef96 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 112:6f327212ef96 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 112:6f327212ef96 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 112:6f327212ef96 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 112:6f327212ef96 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 112:6f327212ef96 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 112:6f327212ef96 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 112:6f327212ef96 34 *
Kojto 112:6f327212ef96 35 ******************************************************************************
Kojto 112:6f327212ef96 36 */
Kojto 112:6f327212ef96 37
Kojto 112:6f327212ef96 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 112:6f327212ef96 39 #ifndef __STM32F4xx_HAL_SPDIFRX_H
Kojto 112:6f327212ef96 40 #define __STM32F4xx_HAL_SPDIFRX_H
Kojto 112:6f327212ef96 41
Kojto 112:6f327212ef96 42 #ifdef __cplusplus
Kojto 112:6f327212ef96 43 extern "C" {
Kojto 112:6f327212ef96 44 #endif
Kojto 112:6f327212ef96 45
Kojto 112:6f327212ef96 46 #if defined(STM32F446xx)
Kojto 112:6f327212ef96 47
Kojto 112:6f327212ef96 48 /* Includes ------------------------------------------------------------------*/
Kojto 112:6f327212ef96 49 #include "stm32f4xx_hal_def.h"
Kojto 112:6f327212ef96 50
Kojto 112:6f327212ef96 51 /** @addtogroup STM32F4xx_HAL_Driver
Kojto 112:6f327212ef96 52 * @{
Kojto 112:6f327212ef96 53 */
Kojto 112:6f327212ef96 54
Kojto 112:6f327212ef96 55 /** @addtogroup SPDIFRX
Kojto 112:6f327212ef96 56 * @{
Kojto 112:6f327212ef96 57 */
Kojto 112:6f327212ef96 58
Kojto 112:6f327212ef96 59 /* Exported types ------------------------------------------------------------*/
Kojto 112:6f327212ef96 60 /** @defgroup SPDIFRX_Exported_Types SPDIFRX Exported Types
Kojto 112:6f327212ef96 61 * @{
Kojto 112:6f327212ef96 62 */
Kojto 112:6f327212ef96 63
Kojto 112:6f327212ef96 64 /**
Kojto 112:6f327212ef96 65 * @brief SPDIFRX Init structure definition
Kojto 112:6f327212ef96 66 */
Kojto 112:6f327212ef96 67 typedef struct
Kojto 112:6f327212ef96 68 {
Kojto 112:6f327212ef96 69 uint32_t InputSelection; /*!< Specifies the SPDIF input selection.
Kojto 112:6f327212ef96 70 This parameter can be a value of @ref SPDIFRX_Input_Selection */
Kojto 112:6f327212ef96 71
Kojto 112:6f327212ef96 72 uint32_t Retries; /*!< Specifies the Maximum allowed re-tries during synchronization phase.
Kojto 112:6f327212ef96 73 This parameter can be a value of @ref SPDIFRX_Max_Retries */
Kojto 112:6f327212ef96 74
Kojto 112:6f327212ef96 75 uint32_t WaitForActivity; /*!< Specifies the wait for activity on SPDIF selected input.
Kojto 112:6f327212ef96 76 This parameter can be a value of @ref SPDIFRX_Wait_For_Activity. */
Kojto 112:6f327212ef96 77
Kojto 112:6f327212ef96 78 uint32_t ChannelSelection; /*!< Specifies whether the control flow will take the channel status from channel A or B.
Kojto 112:6f327212ef96 79 This parameter can be a value of @ref SPDIFRX_Channel_Selection */
Kojto 112:6f327212ef96 80
Kojto 112:6f327212ef96 81 uint32_t DataFormat; /*!< Specifies the Data samples format (LSB, MSB, ...).
Kojto 112:6f327212ef96 82 This parameter can be a value of @ref SPDIFRX_Data_Format */
Kojto 112:6f327212ef96 83
Kojto 112:6f327212ef96 84 uint32_t StereoMode; /*!< Specifies whether the peripheral is in stereo or mono mode.
Kojto 112:6f327212ef96 85 This parameter can be a value of @ref SPDIFRX_Stereo_Mode */
Kojto 112:6f327212ef96 86
Kojto 112:6f327212ef96 87 uint32_t PreambleTypeMask; /*!< Specifies whether The preamble type bits are copied or not into the received frame.
Kojto 112:6f327212ef96 88 This parameter can be a value of @ref SPDIFRX_PT_Mask */
Kojto 112:6f327212ef96 89
Kojto 112:6f327212ef96 90 uint32_t ChannelStatusMask; /*!< Specifies whether the channel status and user bits are copied or not into the received frame.
Kojto 112:6f327212ef96 91 This parameter can be a value of @ref SPDIFRX_ChannelStatus_Mask */
Kojto 112:6f327212ef96 92
Kojto 112:6f327212ef96 93 uint32_t ValidityBitMask; /*!< Specifies whether the validity bit is copied or not into the received frame.
Kojto 112:6f327212ef96 94 This parameter can be a value of @ref SPDIFRX_V_Mask */
Kojto 112:6f327212ef96 95
Kojto 112:6f327212ef96 96 uint32_t ParityErrorMask; /*!< Specifies whether the parity error bit is copied or not into the received frame.
Kojto 112:6f327212ef96 97 This parameter can be a value of @ref SPDIFRX_PE_Mask */
Kojto 112:6f327212ef96 98
Kojto 112:6f327212ef96 99 }SPDIFRX_InitTypeDef;
Kojto 112:6f327212ef96 100
Kojto 112:6f327212ef96 101 /**
Kojto 112:6f327212ef96 102 * @brief SPDIFRX SetDataFormat structure definition
Kojto 112:6f327212ef96 103 */
Kojto 112:6f327212ef96 104 typedef struct
Kojto 112:6f327212ef96 105 {
Kojto 112:6f327212ef96 106 uint32_t DataFormat; /*!< Specifies the Data samples format (LSB, MSB, ...).
Kojto 112:6f327212ef96 107 This parameter can be a value of @ref SPDIFRX_Data_Format */
Kojto 112:6f327212ef96 108
Kojto 112:6f327212ef96 109 uint32_t StereoMode; /*!< Specifies whether the peripheral is in stereo or mono mode.
Kojto 112:6f327212ef96 110 This parameter can be a value of @ref SPDIFRX_Stereo_Mode */
Kojto 112:6f327212ef96 111
Kojto 112:6f327212ef96 112 uint32_t PreambleTypeMask; /*!< Specifies whether The preamble type bits are copied or not into the received frame.
Kojto 112:6f327212ef96 113 This parameter can be a value of @ref SPDIFRX_PT_Mask */
Kojto 112:6f327212ef96 114
Kojto 112:6f327212ef96 115 uint32_t ChannelStatusMask; /*!< Specifies whether the channel status and user bits are copied or not into the received frame.
Kojto 112:6f327212ef96 116 This parameter can be a value of @ref SPDIFRX_ChannelStatus_Mask */
Kojto 112:6f327212ef96 117
Kojto 112:6f327212ef96 118 uint32_t ValidityBitMask; /*!< Specifies whether the validity bit is copied or not into the received frame.
Kojto 112:6f327212ef96 119 This parameter can be a value of @ref SPDIFRX_V_Mask */
Kojto 112:6f327212ef96 120
Kojto 112:6f327212ef96 121 uint32_t ParityErrorMask; /*!< Specifies whether the parity error bit is copied or not into the received frame.
Kojto 112:6f327212ef96 122 This parameter can be a value of @ref SPDIFRX_PE_Mask */
Kojto 112:6f327212ef96 123
Kojto 112:6f327212ef96 124 }SPDIFRX_SetDataFormatTypeDef;
Kojto 112:6f327212ef96 125
Kojto 112:6f327212ef96 126 /**
Kojto 112:6f327212ef96 127 * @brief HAL State structures definition
Kojto 112:6f327212ef96 128 */
Kojto 112:6f327212ef96 129 typedef enum
Kojto 112:6f327212ef96 130 {
Kojto 112:6f327212ef96 131 HAL_SPDIFRX_STATE_RESET = 0x00, /*!< SPDIFRX not yet initialized or disabled */
Kojto 112:6f327212ef96 132 HAL_SPDIFRX_STATE_READY = 0x01, /*!< SPDIFRX initialized and ready for use */
Kojto 112:6f327212ef96 133 HAL_SPDIFRX_STATE_BUSY = 0x02, /*!< SPDIFRX internal process is ongoing */
Kojto 112:6f327212ef96 134 HAL_SPDIFRX_STATE_BUSY_RX = 0x03, /*!< SPDIFRX internal Data Flow RX process is ongoing */
Kojto 112:6f327212ef96 135 HAL_SPDIFRX_STATE_BUSY_CX = 0x04, /*!< SPDIFRX internal Control Flow RX process is ongoing */
Kojto 112:6f327212ef96 136 HAL_SPDIFRX_STATE_ERROR = 0x07 /*!< SPDIFRX error state */
Kojto 112:6f327212ef96 137 }HAL_SPDIFRX_StateTypeDef;
Kojto 112:6f327212ef96 138
Kojto 112:6f327212ef96 139 /**
Kojto 112:6f327212ef96 140 * @brief SPDIFRX handle Structure definition
Kojto 112:6f327212ef96 141 */
Kojto 112:6f327212ef96 142 typedef struct
Kojto 112:6f327212ef96 143 {
Kojto 112:6f327212ef96 144 SPDIFRX_TypeDef *Instance; /* SPDIFRX registers base address */
Kojto 112:6f327212ef96 145
Kojto 112:6f327212ef96 146 SPDIFRX_InitTypeDef Init; /* SPDIFRX communication parameters */
Kojto 112:6f327212ef96 147
Kojto 112:6f327212ef96 148 uint32_t *pRxBuffPtr; /* Pointer to SPDIFRX Rx transfer buffer */
Kojto 112:6f327212ef96 149
Kojto 112:6f327212ef96 150 uint32_t *pCsBuffPtr; /* Pointer to SPDIFRX Cx transfer buffer */
Kojto 112:6f327212ef96 151
Kojto 112:6f327212ef96 152 __IO uint16_t RxXferSize; /* SPDIFRX Rx transfer size */
Kojto 112:6f327212ef96 153
Kojto 112:6f327212ef96 154 __IO uint16_t RxXferCount; /* SPDIFRX Rx transfer counter
Kojto 112:6f327212ef96 155 (This field is initialized at the
Kojto 112:6f327212ef96 156 same value as transfer size at the
Kojto 112:6f327212ef96 157 beginning of the transfer and
Kojto 112:6f327212ef96 158 decremented when a sample is received.
Kojto 112:6f327212ef96 159 NbSamplesReceived = RxBufferSize-RxBufferCount) */
Kojto 112:6f327212ef96 160
Kojto 112:6f327212ef96 161 __IO uint16_t CsXferSize; /* SPDIFRX Rx transfer size */
Kojto 112:6f327212ef96 162
Kojto 112:6f327212ef96 163 __IO uint16_t CsXferCount; /* SPDIFRX Rx transfer counter
Kojto 112:6f327212ef96 164 (This field is initialized at the
Kojto 112:6f327212ef96 165 same value as transfer size at the
Kojto 112:6f327212ef96 166 beginning of the transfer and
Kojto 112:6f327212ef96 167 decremented when a sample is received.
Kojto 112:6f327212ef96 168 NbSamplesReceived = RxBufferSize-RxBufferCount) */
Kojto 112:6f327212ef96 169
Kojto 112:6f327212ef96 170 DMA_HandleTypeDef *hdmaCsRx; /* SPDIFRX EC60958_channel_status and user_information DMA handle parameters */
Kojto 112:6f327212ef96 171
Kojto 112:6f327212ef96 172 DMA_HandleTypeDef *hdmaDrRx; /* SPDIFRX Rx DMA handle parameters */
Kojto 112:6f327212ef96 173
Kojto 112:6f327212ef96 174 __IO HAL_LockTypeDef Lock; /* SPDIFRX locking object */
Kojto 112:6f327212ef96 175
Kojto 112:6f327212ef96 176 __IO HAL_SPDIFRX_StateTypeDef State; /* SPDIFRX communication state */
Kojto 112:6f327212ef96 177
Kojto 112:6f327212ef96 178 __IO uint32_t ErrorCode; /* SPDIFRX Error code */
Kojto 112:6f327212ef96 179
Kojto 112:6f327212ef96 180 }SPDIFRX_HandleTypeDef;
Kojto 112:6f327212ef96 181 /**
Kojto 112:6f327212ef96 182 * @}
Kojto 112:6f327212ef96 183 */
Kojto 112:6f327212ef96 184
Kojto 112:6f327212ef96 185 /* Exported constants --------------------------------------------------------*/
Kojto 112:6f327212ef96 186 /** @defgroup SPDIFRX_Exported_Constants SPDIFRX Exported Constants
Kojto 112:6f327212ef96 187 * @{
Kojto 112:6f327212ef96 188 */
Kojto 112:6f327212ef96 189 /** @defgroup SPDIFRX_ErrorCode SPDIFRX Error Code
Kojto 112:6f327212ef96 190 * @{
Kojto 112:6f327212ef96 191 */
Kojto 112:6f327212ef96 192 #define HAL_SPDIFRX_ERROR_NONE ((uint32_t)0x00000000) /*!< No error */
Kojto 112:6f327212ef96 193 #define HAL_SPDIFRX_ERROR_TIMEOUT ((uint32_t)0x00000001) /*!< Timeout error */
Kojto 112:6f327212ef96 194 #define HAL_SPDIFRX_ERROR_OVR ((uint32_t)0x00000002) /*!< OVR error */
Kojto 112:6f327212ef96 195 #define HAL_SPDIFRX_ERROR_PE ((uint32_t)0x00000004) /*!< Parity error */
Kojto 112:6f327212ef96 196 #define HAL_SPDIFRX_ERROR_DMA ((uint32_t)0x00000008) /*!< DMA transfer error */
Kojto 112:6f327212ef96 197 #define HAL_SPDIFRX_ERROR_UNKNOWN ((uint32_t)0x00000010) /*!< Unknown Error error */
Kojto 112:6f327212ef96 198 /**
Kojto 112:6f327212ef96 199 * @}
Kojto 112:6f327212ef96 200 */
Kojto 112:6f327212ef96 201
Kojto 112:6f327212ef96 202 /** @defgroup SPDIFRX_Input_Selection SPDIFRX Input Selection
Kojto 112:6f327212ef96 203 * @{
Kojto 112:6f327212ef96 204 */
Kojto 112:6f327212ef96 205 #define SPDIFRX_INPUT_IN0 ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 206 #define SPDIFRX_INPUT_IN1 ((uint32_t)0x00010000)
Kojto 112:6f327212ef96 207 #define SPDIFRX_INPUT_IN2 ((uint32_t)0x00020000)
Kojto 112:6f327212ef96 208 #define SPDIFRX_INPUT_IN3 ((uint32_t)0x00030000)
Kojto 112:6f327212ef96 209 /**
Kojto 112:6f327212ef96 210 * @}
Kojto 112:6f327212ef96 211 */
Kojto 112:6f327212ef96 212
Kojto 112:6f327212ef96 213 /** @defgroup SPDIFRX_Max_Retries SPDIFRX Maximum Retries
Kojto 112:6f327212ef96 214 * @{
Kojto 112:6f327212ef96 215 */
Kojto 112:6f327212ef96 216 #define SPDIFRX_MAXRETRIES_NONE ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 217 #define SPDIFRX_MAXRETRIES_3 ((uint32_t)0x00001000)
Kojto 112:6f327212ef96 218 #define SPDIFRX_MAXRETRIES_15 ((uint32_t)0x00002000)
Kojto 112:6f327212ef96 219 #define SPDIFRX_MAXRETRIES_63 ((uint32_t)0x00003000)
Kojto 112:6f327212ef96 220 /**
Kojto 112:6f327212ef96 221 * @}
Kojto 112:6f327212ef96 222 */
Kojto 112:6f327212ef96 223
Kojto 112:6f327212ef96 224 /** @defgroup SPDIFRX_Wait_For_Activity SPDIFRX Wait For Activity
Kojto 112:6f327212ef96 225 * @{
Kojto 112:6f327212ef96 226 */
Kojto 112:6f327212ef96 227 #define SPDIFRX_WAITFORACTIVITY_OFF ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 228 #define SPDIFRX_WAITFORACTIVITY_ON ((uint32_t)SPDIFRX_CR_WFA)
Kojto 112:6f327212ef96 229 /**
Kojto 112:6f327212ef96 230 * @}
Kojto 112:6f327212ef96 231 */
Kojto 112:6f327212ef96 232
Kojto 112:6f327212ef96 233 /** @defgroup SPDIFRX_PT_Mask SPDIFRX Preamble Type Mask
Kojto 112:6f327212ef96 234 * @{
Kojto 112:6f327212ef96 235 */
Kojto 112:6f327212ef96 236 #define SPDIFRX_PREAMBLETYPEMASK_OFF ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 237 #define SPDIFRX_PREAMBLETYPEMASK_ON ((uint32_t)SPDIFRX_CR_PTMSK)
Kojto 112:6f327212ef96 238 /**
Kojto 112:6f327212ef96 239 * @}
Kojto 112:6f327212ef96 240 */
Kojto 112:6f327212ef96 241
Kojto 112:6f327212ef96 242 /** @defgroup SPDIFRX_ChannelStatus_Mask SPDIFRX Channel Status Mask
Kojto 112:6f327212ef96 243 * @{
Kojto 112:6f327212ef96 244 */
Kojto 112:6f327212ef96 245 #define SPDIFRX_CHANNELSTATUS_OFF ((uint32_t)0x00000000) /* The channel status and user bits are copied into the SPDIF_DR */
Kojto 112:6f327212ef96 246 #define SPDIFRX_CHANNELSTATUS_ON ((uint32_t)SPDIFRX_CR_CUMSK) /* The channel status and user bits are not copied into the SPDIF_DR, zeros are written instead*/
Kojto 112:6f327212ef96 247 /**
Kojto 112:6f327212ef96 248 * @}
Kojto 112:6f327212ef96 249 */
Kojto 112:6f327212ef96 250
Kojto 112:6f327212ef96 251 /** @defgroup SPDIFRX_V_Mask SPDIFRX Validity Mask
Kojto 112:6f327212ef96 252 * @{
Kojto 112:6f327212ef96 253 */
Kojto 112:6f327212ef96 254 #define SPDIFRX_VALIDITYMASK_OFF ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 255 #define SPDIFRX_VALIDITYMASK_ON ((uint32_t)SPDIFRX_CR_VMSK)
Kojto 112:6f327212ef96 256 /**
Kojto 112:6f327212ef96 257 * @}
Kojto 112:6f327212ef96 258 */
Kojto 112:6f327212ef96 259
Kojto 112:6f327212ef96 260 /** @defgroup SPDIFRX_PE_Mask SPDIFRX Parity Error Mask
Kojto 112:6f327212ef96 261 * @{
Kojto 112:6f327212ef96 262 */
Kojto 112:6f327212ef96 263 #define SPDIFRX_PARITYERRORMASK_OFF ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 264 #define SPDIFRX_PARITYERRORMASK_ON ((uint32_t)SPDIFRX_CR_PMSK)
Kojto 112:6f327212ef96 265 /**
Kojto 112:6f327212ef96 266 * @}
Kojto 112:6f327212ef96 267 */
Kojto 112:6f327212ef96 268
Kojto 112:6f327212ef96 269 /** @defgroup SPDIFRX_Channel_Selection SPDIFRX Channel Selection
Kojto 112:6f327212ef96 270 * @{
Kojto 112:6f327212ef96 271 */
Kojto 112:6f327212ef96 272 #define SPDIFRX_CHANNEL_A ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 273 #define SPDIFRX_CHANNEL_B ((uint32_t)SPDIFRX_CR_CHSEL)
Kojto 112:6f327212ef96 274 /**
Kojto 112:6f327212ef96 275 * @}
Kojto 112:6f327212ef96 276 */
Kojto 112:6f327212ef96 277
Kojto 112:6f327212ef96 278 /** @defgroup SPDIFRX_Data_Format SPDIFRX Data Format
Kojto 112:6f327212ef96 279 * @{
Kojto 112:6f327212ef96 280 */
Kojto 112:6f327212ef96 281 #define SPDIFRX_DATAFORMAT_LSB ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 282 #define SPDIFRX_DATAFORMAT_MSB ((uint32_t)0x00000010)
Kojto 112:6f327212ef96 283 #define SPDIFRX_DATAFORMAT_32BITS ((uint32_t)0x00000020)
Kojto 112:6f327212ef96 284 /**
Kojto 112:6f327212ef96 285 * @}
Kojto 112:6f327212ef96 286 */
Kojto 112:6f327212ef96 287
Kojto 112:6f327212ef96 288 /** @defgroup SPDIFRX_Stereo_Mode SPDIFRX Stereo Mode
Kojto 112:6f327212ef96 289 * @{
Kojto 112:6f327212ef96 290 */
Kojto 112:6f327212ef96 291 #define SPDIFRX_STEREOMODE_DISABLE ((uint32_t)0x00000000)
Kojto 112:6f327212ef96 292 #define SPDIFRX_STEREOMODE_ENABLE ((uint32_t)SPDIFRX_CR_RXSTEO)
Kojto 112:6f327212ef96 293 /**
Kojto 112:6f327212ef96 294 * @}
Kojto 112:6f327212ef96 295 */
Kojto 112:6f327212ef96 296
Kojto 112:6f327212ef96 297 /** @defgroup SPDIFRX_State SPDIFRX State
Kojto 112:6f327212ef96 298 * @{
Kojto 112:6f327212ef96 299 */
Kojto 112:6f327212ef96 300
Kojto 112:6f327212ef96 301 #define SPDIFRX_STATE_IDLE ((uint32_t)0xFFFFFFFC)
Kojto 112:6f327212ef96 302 #define SPDIFRX_STATE_SYNC ((uint32_t)0x00000001)
Kojto 112:6f327212ef96 303 #define SPDIFRX_STATE_RCV ((uint32_t)SPDIFRX_CR_SPDIFEN)
Kojto 112:6f327212ef96 304 /**
Kojto 112:6f327212ef96 305 * @}
Kojto 112:6f327212ef96 306 */
Kojto 112:6f327212ef96 307
Kojto 112:6f327212ef96 308 /** @defgroup SPDIFRX_Interrupts_Definition SPDIFRX Interrupts Definition
Kojto 112:6f327212ef96 309 * @{
Kojto 112:6f327212ef96 310 */
Kojto 112:6f327212ef96 311 #define SPDIFRX_IT_RXNE ((uint32_t)SPDIFRX_IMR_RXNEIE)
Kojto 112:6f327212ef96 312 #define SPDIFRX_IT_CSRNE ((uint32_t)SPDIFRX_IMR_CSRNEIE)
Kojto 112:6f327212ef96 313 #define SPDIFRX_IT_PERRIE ((uint32_t)SPDIFRX_IMR_PERRIE)
Kojto 112:6f327212ef96 314 #define SPDIFRX_IT_OVRIE ((uint32_t)SPDIFRX_IMR_OVRIE)
Kojto 112:6f327212ef96 315 #define SPDIFRX_IT_SBLKIE ((uint32_t)SPDIFRX_IMR_SBLKIE)
Kojto 112:6f327212ef96 316 #define SPDIFRX_IT_SYNCDIE ((uint32_t)SPDIFRX_IMR_SYNCDIE)
Kojto 112:6f327212ef96 317 #define SPDIFRX_IT_IFEIE ((uint32_t)SPDIFRX_IMR_IFEIE )
Kojto 112:6f327212ef96 318 /**
Kojto 112:6f327212ef96 319 * @}
Kojto 112:6f327212ef96 320 */
Kojto 112:6f327212ef96 321
Kojto 112:6f327212ef96 322 /** @defgroup SPDIFRX_Flags_Definition SPDIFRX Flags Definition
Kojto 112:6f327212ef96 323 * @{
Kojto 112:6f327212ef96 324 */
Kojto 112:6f327212ef96 325 #define SPDIFRX_FLAG_RXNE ((uint32_t)SPDIFRX_SR_RXNE)
Kojto 112:6f327212ef96 326 #define SPDIFRX_FLAG_CSRNE ((uint32_t)SPDIFRX_SR_CSRNE)
Kojto 112:6f327212ef96 327 #define SPDIFRX_FLAG_PERR ((uint32_t)SPDIFRX_SR_PERR)
Kojto 112:6f327212ef96 328 #define SPDIFRX_FLAG_OVR ((uint32_t)SPDIFRX_SR_OVR)
Kojto 112:6f327212ef96 329 #define SPDIFRX_FLAG_SBD ((uint32_t)SPDIFRX_SR_SBD)
Kojto 112:6f327212ef96 330 #define SPDIFRX_FLAG_SYNCD ((uint32_t)SPDIFRX_SR_SYNCD)
Kojto 112:6f327212ef96 331 #define SPDIFRX_FLAG_FERR ((uint32_t)SPDIFRX_SR_FERR)
Kojto 112:6f327212ef96 332 #define SPDIFRX_FLAG_SERR ((uint32_t)SPDIFRX_SR_SERR)
Kojto 112:6f327212ef96 333 #define SPDIFRX_FLAG_TERR ((uint32_t)SPDIFRX_SR_TERR)
Kojto 112:6f327212ef96 334 /**
Kojto 112:6f327212ef96 335 * @}
Kojto 112:6f327212ef96 336 */
Kojto 112:6f327212ef96 337
Kojto 112:6f327212ef96 338 /**
Kojto 112:6f327212ef96 339 * @}
Kojto 112:6f327212ef96 340 */
Kojto 112:6f327212ef96 341
Kojto 112:6f327212ef96 342 /* Exported macros -----------------------------------------------------------*/
Kojto 112:6f327212ef96 343 /** @defgroup SPDIFRX_Exported_macros SPDIFRX Exported Macros
Kojto 112:6f327212ef96 344 * @{
Kojto 112:6f327212ef96 345 */
Kojto 112:6f327212ef96 346
Kojto 112:6f327212ef96 347 /** @brief Reset SPDIFRX handle state
Kojto 112:6f327212ef96 348 * @param __HANDLE__: SPDIFRX handle.
Kojto 112:6f327212ef96 349 * @retval None
Kojto 112:6f327212ef96 350 */
Kojto 112:6f327212ef96 351 #define __HAL_SPDIFRX_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = (uint16_t)SPDIFRX_CR_SPDIFEN)
Kojto 112:6f327212ef96 352
Kojto 112:6f327212ef96 353 /** @brief Disable the specified SPDIFRX peripheral (IDLE State).
Kojto 112:6f327212ef96 354 * @param __HANDLE__: specifies the SPDIFRX Handle.
Kojto 112:6f327212ef96 355 * @retval None
Kojto 112:6f327212ef96 356 */
Kojto 112:6f327212ef96 357 #define __HAL_SPDIFRX_IDLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= SPDIFRX_STATE_IDLE)
Kojto 112:6f327212ef96 358
Kojto 112:6f327212ef96 359 /** @brief Enable the specified SPDIFRX peripheral (SYNC State).
Kojto 112:6f327212ef96 360 * @param __HANDLE__: specifies the SPDIFRX Handle.
Kojto 112:6f327212ef96 361 * @retval None
Kojto 112:6f327212ef96 362 */
Kojto 112:6f327212ef96 363 #define __HAL_SPDIFRX_SYNC(__HANDLE__) ((__HANDLE__)->Instance->CR |= SPDIFRX_STATE_SYNC)
Kojto 112:6f327212ef96 364
Kojto 112:6f327212ef96 365
Kojto 112:6f327212ef96 366 /** @brief Enable the specified SPDIFRX peripheral (RCV State).
Kojto 112:6f327212ef96 367 * @param __HANDLE__: specifies the SPDIFRX Handle.
Kojto 112:6f327212ef96 368 * @retval None
Kojto 112:6f327212ef96 369 */
Kojto 112:6f327212ef96 370 #define __HAL_SPDIFRX_RCV(__HANDLE__) ((__HANDLE__)->Instance->CR |= SPDIFRX_STATE_RCV)
Kojto 112:6f327212ef96 371
Kojto 112:6f327212ef96 372
Kojto 112:6f327212ef96 373 /** @brief Enable or disable the specified SPDIFRX interrupts.
Kojto 112:6f327212ef96 374 * @param __HANDLE__: specifies the SPDIFRX Handle.
Kojto 112:6f327212ef96 375 * @param __INTERRUPT__: specifies the interrupt source to enable or disable.
Kojto 112:6f327212ef96 376 * This parameter can be one of the following values:
Kojto 112:6f327212ef96 377 * @arg SPDIFRX_IT_RXNE
Kojto 112:6f327212ef96 378 * @arg SPDIFRX_IT_CSRNE
Kojto 112:6f327212ef96 379 * @arg SPDIFRX_IT_PERRIE
Kojto 112:6f327212ef96 380 * @arg SPDIFRX_IT_OVRIE
Kojto 112:6f327212ef96 381 * @arg SPDIFRX_IT_SBLKIE
Kojto 112:6f327212ef96 382 * @arg SPDIFRX_IT_SYNCDIE
Kojto 112:6f327212ef96 383 * @arg SPDIFRX_IT_IFEIE
Kojto 112:6f327212ef96 384 * @retval None
Kojto 112:6f327212ef96 385 */
Kojto 112:6f327212ef96 386 #define __HAL_SPDIFRX_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->IMR |= (__INTERRUPT__))
Kojto 112:6f327212ef96 387 #define __HAL_SPDIFRX_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->IMR &= (uint16_t)(~(__INTERRUPT__)))
Kojto 112:6f327212ef96 388
Kojto 112:6f327212ef96 389 /** @brief Checks if the specified SPDIFRX interrupt source is enabled or disabled.
Kojto 112:6f327212ef96 390 * @param __HANDLE__: specifies the SPDIFRX Handle.
Kojto 112:6f327212ef96 391 * @param __INTERRUPT__: specifies the SPDIFRX interrupt source to check.
Kojto 112:6f327212ef96 392 * This parameter can be one of the following values:
Kojto 112:6f327212ef96 393 * @arg SPDIFRX_IT_RXNE
Kojto 112:6f327212ef96 394 * @arg SPDIFRX_IT_CSRNE
Kojto 112:6f327212ef96 395 * @arg SPDIFRX_IT_PERRIE
Kojto 112:6f327212ef96 396 * @arg SPDIFRX_IT_OVRIE
Kojto 112:6f327212ef96 397 * @arg SPDIFRX_IT_SBLKIE
Kojto 112:6f327212ef96 398 * @arg SPDIFRX_IT_SYNCDIE
Kojto 112:6f327212ef96 399 * @arg SPDIFRX_IT_IFEIE
Kojto 112:6f327212ef96 400 * @retval The new state of __IT__ (TRUE or FALSE).
Kojto 112:6f327212ef96 401 */
Kojto 112:6f327212ef96 402 #define __HAL_SPDIFRX_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->IMR & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
Kojto 112:6f327212ef96 403
Kojto 112:6f327212ef96 404 /** @brief Checks whether the specified SPDIFRX flag is set or not.
Kojto 112:6f327212ef96 405 * @param __HANDLE__: specifies the SPDIFRX Handle.
Kojto 112:6f327212ef96 406 * @param __FLAG__: specifies the flag to check.
Kojto 112:6f327212ef96 407 * This parameter can be one of the following values:
Kojto 112:6f327212ef96 408 * @arg SPDIFRX_FLAG_RXNE
Kojto 112:6f327212ef96 409 * @arg SPDIFRX_FLAG_CSRNE
Kojto 112:6f327212ef96 410 * @arg SPDIFRX_FLAG_PERR
Kojto 112:6f327212ef96 411 * @arg SPDIFRX_FLAG_OVR
Kojto 112:6f327212ef96 412 * @arg SPDIFRX_FLAG_SBD
Kojto 112:6f327212ef96 413 * @arg SPDIFRX_FLAG_SYNCD
Kojto 112:6f327212ef96 414 * @arg SPDIFRX_FLAG_FERR
Kojto 112:6f327212ef96 415 * @arg SPDIFRX_FLAG_SERR
Kojto 112:6f327212ef96 416 * @arg SPDIFRX_FLAG_TERR
Kojto 112:6f327212ef96 417 * @retval The new state of __FLAG__ (TRUE or FALSE).
Kojto 112:6f327212ef96 418 */
Kojto 112:6f327212ef96 419 #define __HAL_SPDIFRX_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__))
Kojto 112:6f327212ef96 420
Kojto 112:6f327212ef96 421 /** @brief Clears the specified SPDIFRX SR flag, in setting the proper IFCR register bit.
Kojto 112:6f327212ef96 422 * @param __HANDLE__: specifies the USART Handle.
Kojto 112:6f327212ef96 423 * @param __IT_CLEAR__: specifies the interrupt clear register flag that needs to be set
Kojto 112:6f327212ef96 424 * to clear the corresponding interrupt
Kojto 112:6f327212ef96 425 * This parameter can be one of the following values:
Kojto 112:6f327212ef96 426 * @arg SPDIFRX_FLAG_PERR
Kojto 112:6f327212ef96 427 * @arg SPDIFRX_FLAG_OVR
Kojto 112:6f327212ef96 428 * @arg SPDIFRX_SR_SBD
Kojto 112:6f327212ef96 429 * @arg SPDIFRX_SR_SYNCD
Kojto 112:6f327212ef96 430 * @retval None
Kojto 112:6f327212ef96 431 */
Kojto 112:6f327212ef96 432 #define __HAL_SPDIFRX_CLEAR_IT(__HANDLE__, __IT_CLEAR__) ((__HANDLE__)->Instance->IFCR = (uint32_t)(__IT_CLEAR__))
Kojto 112:6f327212ef96 433
Kojto 112:6f327212ef96 434 /**
Kojto 112:6f327212ef96 435 * @}
Kojto 112:6f327212ef96 436 */
Kojto 112:6f327212ef96 437
Kojto 112:6f327212ef96 438 /* Exported functions --------------------------------------------------------*/
Kojto 112:6f327212ef96 439 /** @addtogroup SPDIFRX_Exported_Functions
Kojto 112:6f327212ef96 440 * @{
Kojto 112:6f327212ef96 441 */
Kojto 112:6f327212ef96 442
Kojto 112:6f327212ef96 443 /** @addtogroup SPDIFRX_Exported_Functions_Group1
Kojto 112:6f327212ef96 444 * @{
Kojto 112:6f327212ef96 445 */
Kojto 112:6f327212ef96 446 /* Initialization/de-initialization functions **********************************/
Kojto 112:6f327212ef96 447 HAL_StatusTypeDef HAL_SPDIFRX_Init(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 448 HAL_StatusTypeDef HAL_SPDIFRX_DeInit (SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 449 void HAL_SPDIFRX_MspInit(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 450 void HAL_SPDIFRX_MspDeInit(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 451 HAL_StatusTypeDef HAL_SPDIFRX_SetDataFormat(SPDIFRX_HandleTypeDef *hspdif, SPDIFRX_SetDataFormatTypeDef sDataFormat);
Kojto 112:6f327212ef96 452 /**
Kojto 112:6f327212ef96 453 * @}
Kojto 112:6f327212ef96 454 */
Kojto 112:6f327212ef96 455
Kojto 112:6f327212ef96 456 /** @addtogroup SPDIFRX_Exported_Functions_Group2
Kojto 112:6f327212ef96 457 * @{
Kojto 112:6f327212ef96 458 */
Kojto 112:6f327212ef96 459 /* I/O operation functions ***************************************************/
Kojto 112:6f327212ef96 460 /* Blocking mode: Polling */
Kojto 112:6f327212ef96 461 HAL_StatusTypeDef HAL_SPDIFRX_ReceiveDataFlow(SPDIFRX_HandleTypeDef *hspdif, uint32_t *pData, uint16_t Size, uint32_t Timeout);
Kojto 112:6f327212ef96 462 HAL_StatusTypeDef HAL_SPDIFRX_ReceiveControlFlow(SPDIFRX_HandleTypeDef *hspdif, uint32_t *pData, uint16_t Size, uint32_t Timeout);
Kojto 112:6f327212ef96 463
Kojto 112:6f327212ef96 464 /* Non-Blocking mode: Interrupt */
Kojto 112:6f327212ef96 465 HAL_StatusTypeDef HAL_SPDIFRX_ReceiveControlFlow_IT(SPDIFRX_HandleTypeDef *hspdif, uint32_t *pData, uint16_t Size);
Kojto 112:6f327212ef96 466 HAL_StatusTypeDef HAL_SPDIFRX_ReceiveDataFlow_IT(SPDIFRX_HandleTypeDef *hspdif, uint32_t *pData, uint16_t Size);
Kojto 112:6f327212ef96 467 void HAL_SPDIFRX_IRQHandler(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 468
Kojto 112:6f327212ef96 469 /* Non-Blocking mode: DMA */
Kojto 112:6f327212ef96 470 HAL_StatusTypeDef HAL_SPDIFRX_ReceiveControlFlow_DMA(SPDIFRX_HandleTypeDef *hspdif, uint32_t *pData, uint16_t Size);
Kojto 112:6f327212ef96 471 HAL_StatusTypeDef HAL_SPDIFRX_ReceiveDataFlow_DMA(SPDIFRX_HandleTypeDef *hspdif, uint32_t *pData, uint16_t Size);
Kojto 112:6f327212ef96 472
Kojto 112:6f327212ef96 473 HAL_StatusTypeDef HAL_SPDIFRX_DMAStop(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 474
Kojto 112:6f327212ef96 475 /* Callbacks used in non blocking modes (Interrupt and DMA) *******************/
Kojto 112:6f327212ef96 476 void HAL_SPDIFRX_RxHalfCpltCallback(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 477 void HAL_SPDIFRX_RxCpltCallback(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 478 void HAL_SPDIFRX_ErrorCallback(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 479 void HAL_SPDIFRX_CxHalfCpltCallback(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 480 void HAL_SPDIFRX_CxCpltCallback(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 481 /**
Kojto 112:6f327212ef96 482 * @}
Kojto 112:6f327212ef96 483 */
Kojto 112:6f327212ef96 484
Kojto 112:6f327212ef96 485 /** @addtogroup SPDIFRX_Exported_Functions_Group3
Kojto 112:6f327212ef96 486 * @{
Kojto 112:6f327212ef96 487 */
Kojto 112:6f327212ef96 488 /* Peripheral Control and State functions ************************************/
Kojto 112:6f327212ef96 489 HAL_SPDIFRX_StateTypeDef HAL_SPDIFRX_GetState(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 490 uint32_t HAL_SPDIFRX_GetError(SPDIFRX_HandleTypeDef *hspdif);
Kojto 112:6f327212ef96 491 /**
Kojto 112:6f327212ef96 492 * @}
Kojto 112:6f327212ef96 493 */
Kojto 112:6f327212ef96 494
Kojto 112:6f327212ef96 495 /**
Kojto 112:6f327212ef96 496 * @}
Kojto 112:6f327212ef96 497 */
Kojto 112:6f327212ef96 498 /* Private types -------------------------------------------------------------*/
Kojto 112:6f327212ef96 499 /* Private variables ---------------------------------------------------------*/
Kojto 112:6f327212ef96 500 /* Private constants ---------------------------------------------------------*/
Kojto 112:6f327212ef96 501 /* Private macros ------------------------------------------------------------*/
Kojto 112:6f327212ef96 502 /** @defgroup SPDIFRX_Private_Macros SPDIFRX Private Macros
Kojto 112:6f327212ef96 503 * @{
Kojto 112:6f327212ef96 504 */
Kojto 112:6f327212ef96 505 #define IS_SPDIFRX_INPUT_SELECT(INPUT) (((INPUT) == SPDIFRX_INPUT_IN1) || \
Kojto 112:6f327212ef96 506 ((INPUT) == SPDIFRX_INPUT_IN2) || \
Kojto 112:6f327212ef96 507 ((INPUT) == SPDIFRX_INPUT_IN3) || \
Kojto 112:6f327212ef96 508 ((INPUT) == SPDIFRX_INPUT_IN0))
Kojto 112:6f327212ef96 509 #define IS_SPDIFRX_MAX_RETRIES(RET) (((RET) == SPDIFRX_MAXRETRIES_NONE) || \
Kojto 112:6f327212ef96 510 ((RET) == SPDIFRX_MAXRETRIES_3) || \
Kojto 112:6f327212ef96 511 ((RET) == SPDIFRX_MAXRETRIES_15) || \
Kojto 112:6f327212ef96 512 ((RET) == SPDIFRX_MAXRETRIES_63))
Kojto 112:6f327212ef96 513 #define IS_SPDIFRX_WAIT_FOR_ACTIVITY(VAL) (((VAL) == SPDIFRX_WAITFORACTIVITY_ON) || \
Kojto 112:6f327212ef96 514 ((VAL) == SPDIFRX_WAITFORACTIVITY_OFF))
Kojto 112:6f327212ef96 515 #define IS_PREAMBLE_TYPE_MASK(VAL) (((VAL) == SPDIFRX_PREAMBLETYPEMASK_ON) || \
Kojto 112:6f327212ef96 516 ((VAL) == SPDIFRX_PREAMBLETYPEMASK_OFF))
Kojto 112:6f327212ef96 517 #define IS_VALIDITY_MASK(VAL) (((VAL) == SPDIFRX_VALIDITYMASK_OFF) || \
Kojto 112:6f327212ef96 518 ((VAL) == SPDIFRX_VALIDITYMASK_ON))
Kojto 112:6f327212ef96 519 #define IS_PARITY_ERROR_MASK(VAL) (((VAL) == SPDIFRX_PARITYERRORMASK_OFF) || \
Kojto 112:6f327212ef96 520 ((VAL) == SPDIFRX_PARITYERRORMASK_ON))
Kojto 112:6f327212ef96 521 #define IS_SPDIFRX_CHANNEL(CHANNEL) (((CHANNEL) == SPDIFRX_CHANNEL_A) || \
Kojto 112:6f327212ef96 522 ((CHANNEL) == SPDIFRX_CHANNEL_B))
Kojto 112:6f327212ef96 523 #define IS_SPDIFRX_DATA_FORMAT(FORMAT) (((FORMAT) == SPDIFRX_DATAFORMAT_LSB) || \
Kojto 112:6f327212ef96 524 ((FORMAT) == SPDIFRX_DATAFORMAT_MSB) || \
Kojto 112:6f327212ef96 525 ((FORMAT) == SPDIFRX_DATAFORMAT_32BITS))
Kojto 112:6f327212ef96 526 #define IS_STEREO_MODE(MODE) (((MODE) == SPDIFRX_STEREOMODE_DISABLE) || \
Kojto 112:6f327212ef96 527 ((MODE) == SPDIFRX_STEREOMODE_ENABLE))
Kojto 112:6f327212ef96 528
Kojto 112:6f327212ef96 529 #define IS_CHANNEL_STATUS_MASK(VAL) (((VAL) == SPDIFRX_CHANNELSTATUS_ON) || \
Kojto 112:6f327212ef96 530 ((VAL) == SPDIFRX_CHANNELSTATUS_OFF))
Kojto 112:6f327212ef96 531 /**
Kojto 112:6f327212ef96 532 * @}
Kojto 112:6f327212ef96 533 */
Kojto 112:6f327212ef96 534
Kojto 112:6f327212ef96 535 /* Private functions ---------------------------------------------------------*/
Kojto 112:6f327212ef96 536 /** @defgroup SPDIFRX_Private_Functions SPDIFRX Private Functions
Kojto 112:6f327212ef96 537 * @{
Kojto 112:6f327212ef96 538 */
Kojto 112:6f327212ef96 539 /**
Kojto 112:6f327212ef96 540 * @}
Kojto 112:6f327212ef96 541 */
Kojto 112:6f327212ef96 542
Kojto 112:6f327212ef96 543 /**
Kojto 112:6f327212ef96 544 * @}
Kojto 112:6f327212ef96 545 */
Kojto 112:6f327212ef96 546
Kojto 112:6f327212ef96 547 /**
Kojto 112:6f327212ef96 548 * @}
Kojto 112:6f327212ef96 549 */
Kojto 112:6f327212ef96 550 #endif /* STM32F446xx */
Kojto 112:6f327212ef96 551
Kojto 112:6f327212ef96 552 #ifdef __cplusplus
Kojto 112:6f327212ef96 553 }
Kojto 112:6f327212ef96 554 #endif
Kojto 112:6f327212ef96 555
Kojto 112:6f327212ef96 556
Kojto 112:6f327212ef96 557 #endif /* __STM32F4xx_HAL_SPDIFRX_H */
Kojto 112:6f327212ef96 558
Kojto 112:6f327212ef96 559 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/