Type Alias atsame54n::gmac::tsr::W

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

Register TSR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn ubr(&mut self) -> UBR_W<'_, TSR_SPEC, 0>

Bit 0 - Used Bit Read

source

pub fn col(&mut self) -> COL_W<'_, TSR_SPEC, 1>

Bit 1 - Collision Occurred

source

pub fn rle(&mut self) -> RLE_W<'_, TSR_SPEC, 2>

Bit 2 - Retry Limit Exceeded

source

pub fn txgo(&mut self) -> TXGO_W<'_, TSR_SPEC, 3>

Bit 3 - Transmit Go

source

pub fn tfc(&mut self) -> TFC_W<'_, TSR_SPEC, 4>

Bit 4 - Transmit Frame Corruption Due to AHB Error

source

pub fn txcomp(&mut self) -> TXCOMP_W<'_, TSR_SPEC, 5>

Bit 5 - Transmit Complete

source

pub fn und(&mut self) -> UND_W<'_, TSR_SPEC, 6>

Bit 6 - Transmit Underrun

source

pub fn hresp(&mut self) -> HRESP_W<'_, TSR_SPEC, 8>

Bit 8 - HRESP Not OK

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual