Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

UM1725

HAL SPDIFRX Generic Driver

55 HAL SPDIFRX Generic Driver

55.1SPDIFRX Firmware driver registers structures

55.1.1SPDIFRX_InitTypeDef

Data Fields

uint32_t InputSelection

uint32_t Retries

uint32_t WaitForActivity

uint32_t ChannelSelection

uint32_t DataFormat

uint32_t StereoMode

uint32_t PreambleTypeMask

uint32_t ChannelStatusMask

uint32_t ValidityBitMask

uint32_t ParityErrorMask

Field Documentation

uint32_t SPDIFRX_InitTypeDef::InputSelection

Specifies the SPDIF input selection. This parameter can be a value of

SPDIFRX_Input_Selection

uint32_t SPDIFRX_InitTypeDef::Retries

Specifies the Maximum allowed re-tries during synchronization phase. This parameter can be a value of SPDIFRX_Max_Retries

uint32_t SPDIFRX_InitTypeDef::WaitForActivity

Specifies the wait for activity on SPDIF selected input. This parameter can be a value of SPDIFRX_Wait_For_Activity.

uint32_t SPDIFRX_InitTypeDef::ChannelSelection

Specifies whether the control flow will take the channel status from channel A or B. This parameter can be a value of SPDIFRX_Channel_Selection

uint32_t SPDIFRX_InitTypeDef::DataFormat

Specifies the Data samples format (LSB, MSB, ...). This parameter can be a value of

SPDIFRX_Data_Format

uint32_t SPDIFRX_InitTypeDef::StereoMode

Specifies whether the peripheral is in stereo or mono mode. This parameter can be a value of SPDIFRX_Stereo_Mode

uint32_t SPDIFRX_InitTypeDef::PreambleTypeMask

Specifies whether The preamble type bits are copied or not into the received frame. This parameter can be a value of SPDIFRX_PT_Mask

uint32_t SPDIFRX_InitTypeDef::ChannelStatusMask

Specifies whether the channel status and user bits are copied or not into the received frame. This parameter can be a value of SPDIFRX_ChannelStatus_Mask

uint32_t SPDIFRX_InitTypeDef::ValidityBitMask

Specifies whether the validity bit is copied or not into the received frame. This parameter can be a value of SPDIFRX_V_Mask

DOCID025834 Rev 2

741/900

HAL SPDIFRX Generic Driver

UM1725

uint32_t SPDIFRX_InitTypeDef::ParityErrorMask

Specifies whether the parity error bit is copied or not into the received frame. This parameter can be a value of SPDIFRX_PE_Mask

55.1.2SPDIFRX_SetDataFormatTypeDef

Data Fields

uint32_t DataFormat

uint32_t StereoMode

uint32_t PreambleTypeMask

uint32_t ChannelStatusMask

uint32_t ValidityBitMask

uint32_t ParityErrorMask

Field Documentation

uint32_t SPDIFRX_SetDataFormatTypeDef::DataFormat

Specifies the Data samples format (LSB, MSB, ...). This parameter can be a value of

SPDIFRX_Data_Format

uint32_t SPDIFRX_SetDataFormatTypeDef::StereoMode

Specifies whether the peripheral is in stereo or mono mode. This parameter can be a value of SPDIFRX_Stereo_Mode

uint32_t SPDIFRX_SetDataFormatTypeDef::PreambleTypeMask

Specifies whether The preamble type bits are copied or not into the received frame. This parameter can be a value of SPDIFRX_PT_Mask

uint32_t SPDIFRX_SetDataFormatTypeDef::ChannelStatusMask

Specifies whether the channel status and user bits are copied or not into the received frame. This parameter can be a value of SPDIFRX_ChannelStatus_Mask

uint32_t SPDIFRX_SetDataFormatTypeDef::ValidityBitMask

Specifies whether the validity bit is copied or not into the received frame. This parameter can be a value of SPDIFRX_V_Mask

uint32_t SPDIFRX_SetDataFormatTypeDef::ParityErrorMask

Specifies whether the parity error bit is copied or not into the received frame. This parameter can be a value of SPDIFRX_PE_Mask

55.1.3SPDIFRX_HandleTypeDef

Data Fields

SPDIFRX_TypeDef * Instance

SPDIFRX_InitTypeDef Init

uint32_t * pRxBuffPtr

uint32_t * pCsBuffPtr

__IO uint16_t RxXferSize

__IO uint16_t RxXferCount

__IO uint16_t CsXferSize

__IO uint16_t CsXferCount

DMA_HandleTypeDef * hdmaCsRx

742/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]