Type Alias atsame54n::gmac::wol::W

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

Register WOL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn ip(&mut self) -> IP_W<'_, WOL_SPEC, 0>

Bits 0:15 - IP address

source

pub fn mag(&mut self) -> MAG_W<'_, WOL_SPEC, 16>

Bit 16 - Event enable

source

pub fn arp(&mut self) -> ARP_W<'_, WOL_SPEC, 17>

Bit 17 - LAN ARP req

source

pub fn sa1(&mut self) -> SA1_W<'_, WOL_SPEC, 18>

Bit 18 - WOL specific address reg 1

source

pub fn mti(&mut self) -> MTI_W<'_, WOL_SPEC, 19>

Bit 19 - WOL LAN multicast

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