Module stm32h7xx_hal::stm32::sai4::ch::cr1[][src]

Configuration register 1

Structs

CKSTR_W

Write proxy for field CKSTR

DMAEN_W

Write proxy for field DMAEN

DS_W

Write proxy for field DS

LSBFIRST_W

Write proxy for field LSBFIRST

MCKDIV_W

Write proxy for field MCKDIV

MCKEN_W

Write proxy for field MCKEN

MODE_W

Write proxy for field MODE

MONO_W

Write proxy for field MONO

NODIV_W

Write proxy for field NODIV

OSR_W

Write proxy for field OSR

OUTDRIV_W

Write proxy for field OUTDRIV

PRTCFG_W

Write proxy for field PRTCFG

SAIEN_W

Write proxy for field SAIEN

SYNCEN_W

Write proxy for field SYNCEN

Enums

CKSTR_A

Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol.

DMAEN_A

DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode.

DS_A

Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled.

LSBFIRST_A

Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first.

MODE_A

SAIx audio block mode immediately

MONO_A

Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details.

NODIV_A

No divider

OUTDRIV_A

Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration.

PRTCFG_A

Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled.

SAIEN_A

Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit.

SYNCEN_A

Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled.

Type Definitions

CKSTR_R

Reader of field CKSTR

DMAEN_R

Reader of field DMAEN

DS_R

Reader of field DS

LSBFIRST_R

Reader of field LSBFIRST

MCKDIV_R

Reader of field MCKDIV

MCKEN_R

Reader of field MCKEN

MODE_R

Reader of field MODE

MONO_R

Reader of field MONO

NODIV_R

Reader of field NODIV

OSR_R

Reader of field OSR

OUTDRIV_R

Reader of field OUTDRIV

PRTCFG_R

Reader of field PRTCFG

R

Reader of register CR1

SAIEN_R

Reader of field SAIEN

SYNCEN_R

Reader of field SYNCEN

W

Writer for register CR1