[][src]Type Definition lpc54606_pac::enet::mac_timestamp_ctrl::W

type W = W<u32, MAC_TIMESTAMP_CTRL>;

Writer for register MAC_TIMESTAMP_CTRL

Methods

impl W[src]

pub fn tsena(&mut self) -> TSENA_W[src]

Bit 0 - Enable Timestamp When this bit is set, the timestamp is added for Transmit and Receive packets.

pub fn tscfupdt(&mut self) -> TSCFUPDT_W[src]

Bit 1 - Fine or Coarse Timestamp Update When this bit is set, the Fine method is used to update system timestamp.

pub fn tsinit(&mut self) -> TSINIT_W[src]

Bit 2 - Initialize Timestamp When this bit is set, the system time is initialized (overwritten) with the value specified in the MAC Register 80 (System Time Seconds Update.

pub fn tsupdt(&mut self) -> TSUPDT_W[src]

Bit 3 - Update Timestamp When this bit is set, the system time is updated (added or subtracted) with the value specified in MAC System Time Seconds Update Table 753 and MAC System Time Nanoseconds Update Table 754.

pub fn tstrig(&mut self) -> TSTRIG_W[src]

Bit 4 - Enable Timestamp Interrupt Trigger When this bit is set, the timestamp interrupt is generated when the System Time becomes greater than the value written in the Target Time register.

pub fn taddreg(&mut self) -> TADDREG_W[src]

Bit 5 - Update Addend Register When this bit is set, the content of the Timestamp Addend register is updated in the PTP block for fine correction.

pub fn tsenall(&mut self) -> TSENALL_W[src]

Bit 8 - Enable Timestamp for All Packets When this bit is set, the timestamp snapshot is enabled for all packets received by the MAC.

pub fn tsctrlssr(&mut self) -> TSCTRLSSR_W[src]

Bit 9 - Timestamp Digital or Binary Rollover Control When this bit is set, the Timestamp Low register rolls over after 0x3B9AC9FF value (that is, 1 nanosecond accuracy) and increments the timestamp (High) seconds.

pub fn tsver2ena(&mut self) -> TSVER2ENA_W[src]

Bit 10 - Enable PTP Packet Processing for Version 2 Format When this bit is set, the IEEE 1588 version 2 format is used to process the PTP packets.

pub fn tsipena(&mut self) -> TSIPENA_W[src]

Bit 11 - Enable Processing of PTP over Ethernet Packets When this bit is set, the MAC receiver processes the PTP packets encapsulated directly in the Ethernet packets.

pub fn tsipv6ena(&mut self) -> TSIPV6ENA_W[src]

Bit 12 - Enable Processing of PTP Packets Sent over 1Pv6-UDP When this bit is set, the MAC receiver processes the PTP packets encapsulated in IPv6-UDP packets.

pub fn tsipv4ena(&mut self) -> TSIPV4ENA_W[src]

Bit 13 - Enable Processing of PTP Packets Sent over IPv4-UDP When this bit is set, the MAC receiver processes the PTP packets encapsulated in IPv4-UDP packets.

pub fn tsevtena(&mut self) -> TSEVTENA_W[src]

Bit 14 - Enable Timestamp Snapshot for Event Messages When this bit is set, the timestamp snapshot is taken only for event messages (SYNC, Delay_Req, Pdelay_Req, or Pdelay_Resp).

pub fn tsmstrena(&mut self) -> TSMSTRENA_W[src]

Bit 15 - Enable Snapshot for Messages Relevant to Master When this bit is set, the snapshot is taken only for the messages that are relevant to the master node.

pub fn snaptypsel(&mut self) -> SNAPTYPSEL_W[src]

Bits 16:17 - Select PTP packets for Taking Snapshots These bits, along with Bits 15 and 14, decide the set of PTP packet types for which snapshot needs to be taken.

pub fn tsenmacaddr(&mut self) -> TSENMACADDR_W[src]

Bit 18 - Enable MAC Address for PTP Packet Filtering When this bit is set, the DA MAC address (that matches any MAC Address register) is used to filter the PTP packets when PTP is directly sent over Ethernet.

pub fn txttsstsm(&mut self) -> TXTTSSTSM_W[src]

Bit 24 - Transmit Timestamp Status Mode When this bit is set, the MAC overwrites the earlier transmit timestamp status even if it is not read by the software.

pub fn av8021asmen(&mut self) -> AV8021ASMEN_W[src]

Bit 28 - AV 802.