Struct stm32g0::stm32g0c1::usart1::gtpr::PSC_W[][src]

pub struct PSC_W<'a> { /* fields omitted */ }
Expand description

Field PSC writer - Prescaler value In IrDA low-power and normal IrDA mode: PSC[7:0] = IrDA Normal and Low-Power baud rate PSC[7:0] is used to program the prescaler for dividing the USART source clock to achieve the low-power frequency: the source clock is divided by the value given in the register (8 significant bits): In Smartcard mode: PSC[4:0] = Prescaler value PSC[4:0] is used to program the prescaler for dividing the USART source clock to provide the Smartcard clock. The value given in the register (5 significant bits) is multiplied by 2 to give the division factor of the source clock frequency: … 0010 0000: Divides the source clock by 32 (IrDA mode) … 1111 1111: Divides the source clock by 255 (IrDA mode) This bitfield can only be written when the USART is disabled (UE = 0). Note: Bits [7:5] must be kept cleared if Smartcard mode is used. This bitfield is reserved and forced by hardware to ’0’ when the Smartcard and IrDA modes are not supported. Refer to .

Implementations

Writes variant to the field

Reserved - do not program this value

Divides the source clock by 1 (IrDA mode) / by 2 (Smarcard mode)

Divides the source clock by 2 (IrDA mode) / by 4 (Smartcard mode)

Divides the source clock by 3 (IrDA mode) / by 6 (Smartcard mode)

Divides the source clock by 31 (IrDA mode) / by 62 (Smartcard mode)

Writes raw bits to the field

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.