Struct stm32_hal2::pac::ethernet_mac::mactscr::W
source · [−]pub struct W(_);
Expand description
Register MACTSCR
writer
Implementations
sourceimpl W
impl W
sourcepub fn tsena(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 0>
pub fn tsena(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 0>
Bit 0 - Enable Timestamp
sourcepub fn tscfupdt(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 1>
pub fn tscfupdt(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 1>
Bit 1 - Fine or Coarse Timestamp Update
sourcepub fn tsinit(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 2>
pub fn tsinit(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 2>
Bit 2 - Initialize Timestamp
sourcepub fn tsupdt(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 3>
pub fn tsupdt(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 3>
Bit 3 - Update Timestamp
sourcepub fn tsaddreg(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 5>
pub fn tsaddreg(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 5>
Bit 5 - Update Addend Register
sourcepub fn tsenall(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 8>
pub fn tsenall(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 8>
Bit 8 - Enable Timestamp for All Packets
sourcepub fn tsctrlssr(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 9>
pub fn tsctrlssr(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 9>
Bit 9 - Timestamp Digital or Binary Rollover Control
sourcepub fn tsver2ena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 10>
pub fn tsver2ena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 10>
Bit 10 - Enable PTP Packet Processing for Version 2 Format
sourcepub fn tsipena(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 11>
pub fn tsipena(&mut self) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 11>
Bit 11 - Enable Processing of PTP over Ethernet Packets
sourcepub fn tsipv6ena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 12>
pub fn tsipv6ena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 12>
Bit 12 - Enable Processing of PTP Packets Sent over IPv6-UDP
sourcepub fn tsipv4ena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 13>
pub fn tsipv4ena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 13>
Bit 13 - Enable Processing of PTP Packets Sent over IPv4-UDP
sourcepub fn tsevntena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 14>
pub fn tsevntena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 14>
Bit 14 - Enable Timestamp Snapshot for Event Messages
sourcepub fn tsmstrena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 15>
pub fn tsmstrena(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 15>
Bit 15 - Enable Snapshot for Messages Relevant to Master
sourcepub fn snaptypsel(
&mut self
) -> FieldWriterRaw<'_, u32, MACTSCR_SPEC, u8, u8, Unsafe, 2, 16>
pub fn snaptypsel(
&mut self
) -> FieldWriterRaw<'_, u32, MACTSCR_SPEC, u8, u8, Unsafe, 2, 16>
Bits 16:17 - Select PTP packets for Taking Snapshots
sourcepub fn tsenmacaddr(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 18>
pub fn tsenmacaddr(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 18>
Bit 18 - Enable MAC Address for PTP Packet Filtering
sourcepub fn txtsstsm(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 24>
pub fn txtsstsm(
&mut self
) -> BitWriterRaw<'_, u32, MACTSCR_SPEC, bool, BitM, 24>
Bit 24 - Transmit Timestamp Status Mode
Methods from Deref<Target = W<MACTSCR_SPEC>>
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.