atsamd51p::generic

Type Alias 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.