Type Alias atsamd51n::sdhc0::cr::W

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

Register CR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn resptyp(&mut self) -> RESPTYP_W<'_, CR_SPEC, 0>

Bits 0:1 - Response Type

source

pub fn cmdccen(&mut self) -> CMDCCEN_W<'_, CR_SPEC, 3>

Bit 3 - Command CRC Check Enable

source

pub fn cmdicen(&mut self) -> CMDICEN_W<'_, CR_SPEC, 4>

Bit 4 - Command Index Check Enable

source

pub fn dpsel(&mut self) -> DPSEL_W<'_, CR_SPEC, 5>

Bit 5 - Data Present Select

source

pub fn cmdtyp(&mut self) -> CMDTYP_W<'_, CR_SPEC, 6>

Bits 6:7 - Command Type

source

pub fn cmdidx(&mut self) -> CMDIDX_W<'_, CR_SPEC, 8>

Bits 8:13 - Command Index

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual