pub struct RegisterBlock { /* private fields */ }Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn interrupt_source(&self) -> &INTERRUPT_SOURCE
pub const fn interrupt_source(&self) -> &INTERRUPT_SOURCE
0x04 - Interrupt source register
Sourcepub const fn interrupt_mask(&self) -> &INTERRUPT_MASK
pub const fn interrupt_mask(&self) -> &INTERRUPT_MASK
0x08 - Interrupt mask register
Sourcepub const fn backed_gap(&self) -> &BACKED_GAP
pub const fn backed_gap(&self) -> &BACKED_GAP
0x0c - Back-to-back inter-packet gap register
Sourcepub const fn non_backed_gap_1(&self) -> &NON_BACKED_GAP_1
pub const fn non_backed_gap_1(&self) -> &NON_BACKED_GAP_1
0x10 - Non back-to-back inter-packet gap register 1
Sourcepub const fn non_backed_gap_2(&self) -> &NON_BACKED_GAP_2
pub const fn non_backed_gap_2(&self) -> &NON_BACKED_GAP_2
0x14 - Non back-to-back inter-packet gap register 2
Sourcepub const fn frame_length(&self) -> &FRAME_LENGTH
pub const fn frame_length(&self) -> &FRAME_LENGTH
0x18 - Minimum and maximum ethernet frame length
Sourcepub const fn transmit_buffer(&self) -> &TRANSMIT_BUFFER
pub const fn transmit_buffer(&self) -> &TRANSMIT_BUFFER
0x20 - Transmit buffer descriptor
Sourcepub const fn flow_control(&self) -> &FLOW_CONTROL
pub const fn flow_control(&self) -> &FLOW_CONTROL
0x24 - Control frame function register
Sourcepub const fn mii_command(&self) -> &MII_COMMAND
pub const fn mii_command(&self) -> &MII_COMMAND
0x2c - MII control data, read and scan state
Sourcepub const fn mii_address(&self) -> &MII_ADDRESS
pub const fn mii_address(&self) -> &MII_ADDRESS
0x30 - Physical layer bus address
Sourcepub const fn control_write(&self) -> &CONTROL_WRITE
pub const fn control_write(&self) -> &CONTROL_WRITE
0x34 - Write data to MII physcial layer
Sourcepub const fn control_read(&self) -> &CONTROL_READ
pub const fn control_read(&self) -> &CONTROL_READ
0x38 - Read data from MII physcial layer
Sourcepub const fn mac_address(&self, n: usize) -> &MAC_ADDRESS
pub const fn mac_address(&self, n: usize) -> &MAC_ADDRESS
0x40..0x48 - Media Access Control address
Sourcepub fn mac_address_iter(&self) -> impl Iterator<Item = &MAC_ADDRESS>
pub fn mac_address_iter(&self) -> impl Iterator<Item = &MAC_ADDRESS>
Iterator for array of: 0x40..0x48 - Media Access Control address
Sourcepub fn hash_iter(&self) -> impl Iterator<Item = &HASH>
pub fn hash_iter(&self) -> impl Iterator<Item = &HASH>
Iterator for array of: 0x48..0x50 - Hash register
Sourcepub const fn transmit_control(&self) -> &TRANSMIT_CONTROL
pub const fn transmit_control(&self) -> &TRANSMIT_CONTROL
0x50 - Transmit control register
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more