pub struct W(_);
Expand description
Register FIFOTH
writer
Implementations
sourceimpl W
impl W
sourcepub fn tx_wmark(&mut self) -> TX_WMARK_W<'_, 0>
pub fn tx_wmark(&mut self) -> TX_WMARK_W<'_, 0>
Bits 0:11 - FIFO threshold watermark level when transmitting data to card. When FIFO data count is less than or equal to this number, DMA/FIFO request is raised. If Interrupt is enabled, then interrupt occurs. During end of packet, request or interrupt is generated, regardless of threshold programming.In non-DMA mode, when transmit FIFO threshold (TXDR) interrupt is enabled, then interrupt is generated instead of DMA request. During end of packet, on last interrupt, host is responsible for filling FIFO with only required remaining bytes (not before FIFO is full or after CIU completes data transfers, because FIFO may not be empty). In DMA mode, at end of packet, if last transfer is less than burst size, DMA controller does single cycles until required bytes are transferred.
sourcepub fn rx_wmark(&mut self) -> RX_WMARK_W<'_, 16>
pub fn rx_wmark(&mut self) -> RX_WMARK_W<'_, 16>
Bits 16:26 - FIFO threshold watermark level when receiving data to card.When FIFO data count reaches greater than this number , DMA/FIFO request is raised. During end of packet, request is generated regardless of threshold programming in order to complete any remaining data.In non-DMA mode, when receiver FIFO threshold (RXDR) interrupt is enabled, then interrupt is generated instead of DMA request.During end of packet, interrupt is not generated if threshold programming is larger than any remaining data. It is responsibility of host to read remaining bytes on seeing Data Transfer Done interrupt.In DMA mode, at end of packet, even if remaining bytes are less than threshold, DMA request does single transfers to flush out any remaining bytes before Data Transfer Done interrupt is set.
sourcepub fn dma_multiple_transaction_size(
&mut self
) -> DMA_MULTIPLE_TRANSACTION_SIZE_W<'_, 28>
pub fn dma_multiple_transaction_size(
&mut self
) -> DMA_MULTIPLE_TRANSACTION_SIZE_W<'_, 28>
Bits 28:30 - Burst size of multiple transaction, should be programmed same as DMA controller multiple-transaction-size SDHOST_SRC/DEST_MSIZE. 000: 1-byte transfer; 001: 4-byte transfer; 010: 8-byte transfer; 011: 16-byte transfer; 100: 32-byte transfer; 101: 64-byte transfer; 110: 128-byte transfer; 111: 256-byte transfer.
Methods from Deref<Target = W<FIFOTH_SPEC>>
Trait Implementations
sourceimpl From<W<FIFOTH_SPEC>> for W
impl From<W<FIFOTH_SPEC>> for W
sourcefn from(writer: W<FIFOTH_SPEC>) -> Self
fn from(writer: W<FIFOTH_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
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