pub struct LinkControl(/* private fields */);Expand description
Link Control Register
Implementations§
Source§impl LinkControl
impl LinkControl
Sourcepub const fn aspm_control(&self) -> u16
pub const fn aspm_control(&self) -> u16
Bits: 0..2
Sourcepub const fn with_aspm_control_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_aspm_control_checked(self, value: u16) -> Result<Self, ()>
Bits: 0..2
Sourcepub const fn with_aspm_control(self, value: u16) -> Self
pub const fn with_aspm_control(self, value: u16) -> Self
Bits: 0..2
Sourcepub const fn set_aspm_control(&mut self, value: u16)
pub const fn set_aspm_control(&mut self, value: u16)
Bits: 0..2
Sourcepub const fn ptm_propagation_delay_adaptation_interpretation_b(&self) -> bool
pub const fn ptm_propagation_delay_adaptation_interpretation_b(&self) -> bool
Bits: 2..3
Sourcepub const fn with_ptm_propagation_delay_adaptation_interpretation_b_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_ptm_propagation_delay_adaptation_interpretation_b_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_ptm_propagation_delay_adaptation_interpretation_b(
self,
value: bool,
) -> Self
pub const fn with_ptm_propagation_delay_adaptation_interpretation_b( self, value: bool, ) -> Self
Bits: 2..3
Sourcepub const fn set_ptm_propagation_delay_adaptation_interpretation_b(
&mut self,
value: bool,
)
pub const fn set_ptm_propagation_delay_adaptation_interpretation_b( &mut self, value: bool, )
Bits: 2..3
Sourcepub const fn set_ptm_propagation_delay_adaptation_interpretation_b_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_ptm_propagation_delay_adaptation_interpretation_b_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 2..3
Sourcepub const fn read_completion_boundary(&self) -> u16
pub const fn read_completion_boundary(&self) -> u16
Bits: 3..4
Sourcepub const fn with_read_completion_boundary_checked(
self,
value: u16,
) -> Result<Self, ()>
pub const fn with_read_completion_boundary_checked( self, value: u16, ) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_read_completion_boundary(self, value: u16) -> Self
pub const fn with_read_completion_boundary(self, value: u16) -> Self
Bits: 3..4
Sourcepub const fn set_read_completion_boundary(&mut self, value: u16)
pub const fn set_read_completion_boundary(&mut self, value: u16)
Bits: 3..4
Sourcepub const fn set_read_completion_boundary_checked(
&mut self,
value: u16,
) -> Result<(), ()>
pub const fn set_read_completion_boundary_checked( &mut self, value: u16, ) -> Result<(), ()>
Bits: 3..4
Sourcepub const fn link_disable(&self) -> bool
pub const fn link_disable(&self) -> bool
Bits: 4..5
Sourcepub const fn with_link_disable_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_link_disable_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_link_disable(self, value: bool) -> Self
pub const fn with_link_disable(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_link_disable(&mut self, value: bool)
pub const fn set_link_disable(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn retrain_link(&self) -> bool
pub const fn retrain_link(&self) -> bool
Bits: 5..6
Sourcepub const fn with_retrain_link_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_retrain_link_checked(self, value: bool) -> Result<Self, ()>
Bits: 5..6
Sourcepub const fn with_retrain_link(self, value: bool) -> Self
pub const fn with_retrain_link(self, value: bool) -> Self
Bits: 5..6
Sourcepub const fn set_retrain_link(&mut self, value: bool)
pub const fn set_retrain_link(&mut self, value: bool)
Bits: 5..6
Sourcepub const fn common_clock_configuration(&self) -> bool
pub const fn common_clock_configuration(&self) -> bool
Bits: 6..7
Sourcepub const fn with_common_clock_configuration_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_common_clock_configuration_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_common_clock_configuration(self, value: bool) -> Self
pub const fn with_common_clock_configuration(self, value: bool) -> Self
Bits: 6..7
Sourcepub const fn set_common_clock_configuration(&mut self, value: bool)
pub const fn set_common_clock_configuration(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn set_common_clock_configuration_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_common_clock_configuration_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 6..7
Sourcepub const fn extended_synch(&self) -> bool
pub const fn extended_synch(&self) -> bool
Bits: 7..8
Sourcepub const fn with_extended_synch_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_extended_synch_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_extended_synch(self, value: bool) -> Self
pub const fn with_extended_synch(self, value: bool) -> Self
Bits: 7..8
Sourcepub const fn set_extended_synch(&mut self, value: bool)
pub const fn set_extended_synch(&mut self, value: bool)
Bits: 7..8
Sourcepub const fn set_extended_synch_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_extended_synch_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 7..8
Sourcepub const fn enable_clock_power_management(&self) -> bool
pub const fn enable_clock_power_management(&self) -> bool
Bits: 8..9
Sourcepub const fn with_enable_clock_power_management_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_enable_clock_power_management_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 8..9
Sourcepub const fn with_enable_clock_power_management(self, value: bool) -> Self
pub const fn with_enable_clock_power_management(self, value: bool) -> Self
Bits: 8..9
Sourcepub const fn set_enable_clock_power_management(&mut self, value: bool)
pub const fn set_enable_clock_power_management(&mut self, value: bool)
Bits: 8..9
Sourcepub const fn set_enable_clock_power_management_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_enable_clock_power_management_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 8..9
Sourcepub const fn hardware_autonomous_width_disable(&self) -> bool
pub const fn hardware_autonomous_width_disable(&self) -> bool
Bits: 9..10
Sourcepub const fn with_hardware_autonomous_width_disable_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_hardware_autonomous_width_disable_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 9..10
Sourcepub const fn with_hardware_autonomous_width_disable(self, value: bool) -> Self
pub const fn with_hardware_autonomous_width_disable(self, value: bool) -> Self
Bits: 9..10
Sourcepub const fn set_hardware_autonomous_width_disable(&mut self, value: bool)
pub const fn set_hardware_autonomous_width_disable(&mut self, value: bool)
Bits: 9..10
Sourcepub const fn set_hardware_autonomous_width_disable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_hardware_autonomous_width_disable_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 9..10
Sourcepub const fn link_bandwidth_management_interrupt_enable(&self) -> bool
pub const fn link_bandwidth_management_interrupt_enable(&self) -> bool
Bits: 10..11
Sourcepub const fn with_link_bandwidth_management_interrupt_enable_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_link_bandwidth_management_interrupt_enable_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 10..11
Sourcepub const fn with_link_bandwidth_management_interrupt_enable(
self,
value: bool,
) -> Self
pub const fn with_link_bandwidth_management_interrupt_enable( self, value: bool, ) -> Self
Bits: 10..11
Sourcepub const fn set_link_bandwidth_management_interrupt_enable(
&mut self,
value: bool,
)
pub const fn set_link_bandwidth_management_interrupt_enable( &mut self, value: bool, )
Bits: 10..11
Sourcepub const fn set_link_bandwidth_management_interrupt_enable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_link_bandwidth_management_interrupt_enable_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 10..11
Sourcepub const fn link_autonomous_bandwidth_interrupt_enable(&self) -> bool
pub const fn link_autonomous_bandwidth_interrupt_enable(&self) -> bool
Bits: 11..12
Sourcepub const fn with_link_autonomous_bandwidth_interrupt_enable_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_link_autonomous_bandwidth_interrupt_enable_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 11..12
Sourcepub const fn with_link_autonomous_bandwidth_interrupt_enable(
self,
value: bool,
) -> Self
pub const fn with_link_autonomous_bandwidth_interrupt_enable( self, value: bool, ) -> Self
Bits: 11..12
Sourcepub const fn set_link_autonomous_bandwidth_interrupt_enable(
&mut self,
value: bool,
)
pub const fn set_link_autonomous_bandwidth_interrupt_enable( &mut self, value: bool, )
Bits: 11..12
Sourcepub const fn set_link_autonomous_bandwidth_interrupt_enable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_link_autonomous_bandwidth_interrupt_enable_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 11..12
Sourcepub const fn sris_clocking(&self) -> u16
pub const fn sris_clocking(&self) -> u16
Bits: 12..13
Sourcepub const fn with_sris_clocking_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_sris_clocking_checked(self, value: u16) -> Result<Self, ()>
Bits: 12..13
Sourcepub const fn with_sris_clocking(self, value: u16) -> Self
pub const fn with_sris_clocking(self, value: u16) -> Self
Bits: 12..13
Sourcepub const fn set_sris_clocking(&mut self, value: u16)
pub const fn set_sris_clocking(&mut self, value: u16)
Bits: 12..13
Sourcepub const fn flit_mode_disable(&self) -> bool
pub const fn flit_mode_disable(&self) -> bool
Bits: 13..14
Sourcepub const fn with_flit_mode_disable_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_flit_mode_disable_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 13..14
Sourcepub const fn with_flit_mode_disable(self, value: bool) -> Self
pub const fn with_flit_mode_disable(self, value: bool) -> Self
Bits: 13..14
Sourcepub const fn set_flit_mode_disable(&mut self, value: bool)
pub const fn set_flit_mode_disable(&mut self, value: bool)
Bits: 13..14
Sourcepub const fn set_flit_mode_disable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_flit_mode_disable_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 13..14
Sourcepub const fn drs_signaling_control(&self) -> u16
pub const fn drs_signaling_control(&self) -> u16
Bits: 14..16
Sourcepub const fn with_drs_signaling_control_checked(
self,
value: u16,
) -> Result<Self, ()>
pub const fn with_drs_signaling_control_checked( self, value: u16, ) -> Result<Self, ()>
Bits: 14..16
Sourcepub const fn with_drs_signaling_control(self, value: u16) -> Self
pub const fn with_drs_signaling_control(self, value: u16) -> Self
Bits: 14..16
Sourcepub const fn set_drs_signaling_control(&mut self, value: u16)
pub const fn set_drs_signaling_control(&mut self, value: u16)
Bits: 14..16
Trait Implementations§
Source§impl Clone for LinkControl
impl Clone for LinkControl
Source§fn clone(&self) -> LinkControl
fn clone(&self) -> LinkControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinkControl
impl Debug for LinkControl
Source§impl Default for LinkControl
impl Default for LinkControl
Source§impl From<LinkControl> for u16
impl From<LinkControl> for u16
Source§fn from(v: LinkControl) -> u16
fn from(v: LinkControl) -> u16
Converts to this type from the input type.
Source§impl From<u16> for LinkControl
impl From<u16> for LinkControl
Source§impl FromBytes for LinkControlwhere
u16: FromBytes,
impl FromBytes for LinkControlwhere
u16: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
Interprets the suffix of the given bytes as a
&Self. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl FromZeros for LinkControlwhere
u16: FromZeros,
impl FromZeros for LinkControlwhere
u16: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Creates a
Vec<Self> from zeroed bytes. Read moreSource§impl IntoBytes for LinkControlwhere
u16: IntoBytes,
impl IntoBytes for LinkControlwhere
u16: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for LinkControlwhere
Self: Sized,
impl KnownLayout for LinkControlwhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
The type of metadata stored in a pointer to
Self. Read moreSource§impl TryFromBytes for LinkControlwhere
u16: TryFromBytes,
impl TryFromBytes for LinkControlwhere
u16: TryFromBytes,
§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for LinkControl
impl Immutable for LinkControlwhere
u16: Immutable,
Auto Trait Implementations§
impl Freeze for LinkControl
impl RefUnwindSafe for LinkControl
impl Send for LinkControl
impl Sync for LinkControl
impl Unpin for LinkControl
impl UnwindSafe for LinkControl
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