Struct xhci::registers::operational::CommandRingControlRegister
source · #[repr(transparent)]pub struct CommandRingControlRegister(_);
Expand description
Command Ring Controller Register
Implementations§
source§impl CommandRingControlRegister
impl CommandRingControlRegister
sourcepub fn set_ring_cycle_state(&mut self) -> &mut Self
pub fn set_ring_cycle_state(&mut self) -> &mut Self
Sets the Ring Cycle State bit.
sourcepub fn clear_ring_cycle_state(&mut self) -> &mut Self
pub fn clear_ring_cycle_state(&mut self) -> &mut Self
Clears the Ring Cycle State bit.
sourcepub fn set_command_stop(&mut self) -> &mut Self
pub fn set_command_stop(&mut self) -> &mut Self
Sets the Command Stop bit.
sourcepub fn set_command_abort(&mut self) -> &mut Self
pub fn set_command_abort(&mut self) -> &mut Self
Sets the Command Abort bit.
sourcepub fn command_ring_running(self) -> bool
pub fn command_ring_running(self) -> bool
Returns the Command Ring Running bit.
sourcepub fn set_command_ring_pointer(&mut self, p: u64)
pub fn set_command_ring_pointer(&mut self, p: u64)
Sets the value of the Command Ring Pointer field. It must be 64 byte aligned.
Panics
This method panics if the given pointer is not 64 byte aligned.
Trait Implementations§
source§impl Clone for CommandRingControlRegister
impl Clone for CommandRingControlRegister
source§fn clone(&self) -> CommandRingControlRegister
fn clone(&self) -> CommandRingControlRegister
Returns a copy 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 CommandRingControlRegister
impl Debug for CommandRingControlRegister
impl Copy for CommandRingControlRegister
Auto Trait Implementations§
impl RefUnwindSafe for CommandRingControlRegister
impl Send for CommandRingControlRegister
impl Sync for CommandRingControlRegister
impl Unpin for CommandRingControlRegister
impl UnwindSafe for CommandRingControlRegister
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