Module stm32h7xx_hal::stm32::sai4::ch::cr1 [−][src]
Configuration register 1
Structs
CKSTR_W | Write proxy for field |
DMAEN_W | Write proxy for field |
DS_W | Write proxy for field |
LSBFIRST_W | Write proxy for field |
MCKDIV_W | Write proxy for field |
MCKEN_W | Write proxy for field |
MODE_W | Write proxy for field |
MONO_W | Write proxy for field |
NODIV_W | Write proxy for field |
OSR_W | Write proxy for field |
OUTDRIV_W | Write proxy for field |
PRTCFG_W | Write proxy for field |
SAIEN_W | Write proxy for field |
SYNCEN_W | Write proxy for field |
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 |
DMAEN_R | Reader of field |
DS_R | Reader of field |
LSBFIRST_R | Reader of field |
MCKDIV_R | Reader of field |
MCKEN_R | Reader of field |
MODE_R | Reader of field |
MONO_R | Reader of field |
NODIV_R | Reader of field |
OSR_R | Reader of field |
OUTDRIV_R | Reader of field |
PRTCFG_R | Reader of field |
R | Reader of register CR1 |
SAIEN_R | Reader of field |
SYNCEN_R | Reader of field |
W | Writer for register CR1 |