Type Alias gd32f1::W

source ·
pub type W<REG> = W<REG>;
Expand description

Register writer.

Used as an argument to the closures in the write and modify methods of the register.

Aliased Type§

struct W<REG> { /* private fields */ }

Implementations§

source§

impl<REG: Writable> W<REG>

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual

source§

impl<REG> W<REG>
where REG: Writable<Safety = Safe>,

source

pub fn set(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.