Struct stm32mp1::stm32mp157::eth_mac_mmc::eth_macht0r::ETH_MACHT0R_SPEC
source · [−]pub struct ETH_MACHT0R_SPEC;
Expand description
The Hash Table Register 0 contains the first 32 bits of the Hash table (64 bits). For Hash filtering, the content of the destination address in the incoming packet is passed through the CRC logic and the upper six bits of the CRC register are used to index the content of the Hash table. The most significant bits determines the register to be used (Hash Table Register 0 or 1). The Hash value of the destination address is calculated in the following way: Calculate the 32-bit CRC for the DA (See IEEE 802.3, Section 3.2.8 for the steps to calculate CRC32). Perform bitwise reversal for the value obtained in Step 1. Take the upper 7 or 8 bits from the value obtained in Step 2. If the corresponding bit value of the register is 1, the packet is accepted. Otherwise, it is rejected. If the PM bit is set in ETH_MACPFR, all multicast packets are accepted regardless of the multicast Hash values. If the Hash Table register is configured to be double-synchronized to the GMII clock domain, the synchronization is triggered only when Bits[31:24] (in little-endian mode) or Bits[7:0] (in big-endian mode) of the Hash Table Register X registers are written.
This register you can read
, write_with_zero
, reset
, write
, modify
. See API.
For information about available fields see eth_macht0r module
Trait Implementations
sourceimpl Readable for ETH_MACHT0R_SPEC
impl Readable for ETH_MACHT0R_SPEC
read()
method returns eth_macht0r::R reader structure
sourceimpl RegisterSpec for ETH_MACHT0R_SPEC
impl RegisterSpec for ETH_MACHT0R_SPEC
sourceimpl Resettable for ETH_MACHT0R_SPEC
impl Resettable for ETH_MACHT0R_SPEC
reset()
method sets ETH_MACHT0R to value 0
sourcefn reset_value() -> Self::Ux
fn reset_value() -> Self::Ux
Reset value of the register.
sourceimpl Writable for ETH_MACHT0R_SPEC
impl Writable for ETH_MACHT0R_SPEC
write(|w| ..)
method takes eth_macht0r::W writer structure
Auto Trait Implementations
impl RefUnwindSafe for ETH_MACHT0R_SPEC
impl Send for ETH_MACHT0R_SPEC
impl Sync for ETH_MACHT0R_SPEC
impl Unpin for ETH_MACHT0R_SPEC
impl UnwindSafe for ETH_MACHT0R_SPEC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more