#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
Control register
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn controller_reset(&self) -> bool
pub const fn controller_reset(&self) -> bool
Controller reset.
Sourcepub const fn set_controller_reset(&mut self, val: bool)
pub const fn set_controller_reset(&mut self, val: bool)
Controller reset.
Sourcepub const fn fifo_reset(&self) -> bool
pub const fn fifo_reset(&self) -> bool
Fifo reset.
Sourcepub const fn set_fifo_reset(&mut self, val: bool)
pub const fn set_fifo_reset(&mut self, val: bool)
Fifo reset.
Sourcepub const fn set_dma_reset(&mut self, val: bool)
pub const fn set_dma_reset(&mut self, val: bool)
DMA reset.
Sourcepub const fn int_enable(&self) -> bool
pub const fn int_enable(&self) -> bool
Global interrupt enable/disable bit.
Sourcepub const fn set_int_enable(&mut self, val: bool)
pub const fn set_int_enable(&mut self, val: bool)
Global interrupt enable/disable bit.
Sourcepub const fn set_read_wait(&mut self, val: bool)
pub const fn set_read_wait(&mut self, val: bool)
Read/wait.
Sourcepub const fn send_irq_response(&self) -> bool
pub const fn send_irq_response(&self) -> bool
Send irq response.
Sourcepub const fn set_send_irq_response(&mut self, val: bool)
pub const fn set_send_irq_response(&mut self, val: bool)
Send irq response.
Sourcepub const fn abort_read_data(&self) -> bool
pub const fn abort_read_data(&self) -> bool
Abort read data.
Sourcepub const fn set_abort_read_data(&mut self, val: bool)
pub const fn set_abort_read_data(&mut self, val: bool)
Abort read data.
Sourcepub const fn set_send_ccsd(&mut self, val: bool)
pub const fn set_send_ccsd(&mut self, val: bool)
Send ccsd.
Sourcepub const fn send_auto_stop_ccsd(&self) -> bool
pub const fn send_auto_stop_ccsd(&self) -> bool
Send auto stop ccsd.
Sourcepub const fn set_send_auto_stop_ccsd(&mut self, val: bool)
pub const fn set_send_auto_stop_ccsd(&mut self, val: bool)
Send auto stop ccsd.
Sourcepub const fn ceata_device_interrupt_status(&self) -> bool
pub const fn ceata_device_interrupt_status(&self) -> bool
CEATA device interrupt status.
Sourcepub const fn set_ceata_device_interrupt_status(&mut self, val: bool)
pub const fn set_ceata_device_interrupt_status(&mut self, val: bool)
CEATA device interrupt status.
Sourcepub const fn card_voltage_a0(&self) -> bool
pub const fn card_voltage_a0(&self) -> bool
Controls the state of the SD_VOLT0 pin.
Sourcepub const fn set_card_voltage_a0(&mut self, val: bool)
pub const fn set_card_voltage_a0(&mut self, val: bool)
Controls the state of the SD_VOLT0 pin.
Sourcepub const fn card_voltage_a1(&self) -> bool
pub const fn card_voltage_a1(&self) -> bool
Controls the state of the SD_VOLT1 pin.
Sourcepub const fn set_card_voltage_a1(&mut self, val: bool)
pub const fn set_card_voltage_a1(&mut self, val: bool)
Controls the state of the SD_VOLT1 pin.
Sourcepub const fn card_voltage_a2(&self) -> bool
pub const fn card_voltage_a2(&self) -> bool
Controls the state of the SD_VOLT2 pin.
Sourcepub const fn set_card_voltage_a2(&mut self, val: bool)
pub const fn set_card_voltage_a2(&mut self, val: bool)
Controls the state of the SD_VOLT2 pin.
Sourcepub const fn use_internal_dmac(&self) -> bool
pub const fn use_internal_dmac(&self) -> bool
SD/MMC DMA use.
Sourcepub const fn set_use_internal_dmac(&mut self, val: bool)
pub const fn set_use_internal_dmac(&mut self, val: bool)
SD/MMC DMA use.
Trait Implementations§
impl Copy for Ctrl
impl Eq for Ctrl
impl StructuralPartialEq for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
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