Type Alias gd32f1::gd32f190::spi0::ctl0::PscW

source ·
pub type PscW<'a, REG> = FieldWriterSafe<'a, REG, 3, Psc>;
Expand description

Field PSC writer - Master Clock Prescaler Selection

Aliased Type§

struct PscW<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> PscW<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

pub fn div2(self) -> &'a mut W<REG>

PCLK / 2

source

pub fn div4(self) -> &'a mut W<REG>

PCLK / 4

source

pub fn div8(self) -> &'a mut W<REG>

PCLK / 8

source

pub fn div16(self) -> &'a mut W<REG>

PCLK / 16

source

pub fn div32(self) -> &'a mut W<REG>

PCLK / 32

source

pub fn div64(self) -> &'a mut W<REG>

PCLK / 64

source

pub fn div128(self) -> &'a mut W<REG>

PCLK / 128

source

pub fn div256(self) -> &'a mut W<REG>

PCLK / 256