#[repr(transparent)]pub struct Status(pub u32);Expand description
Status register
Tuple Fields§
§0: u32Implementations§
Source§impl Status
impl Status
Sourcepub const fn fifo_rx_watermark(&self) -> bool
pub const fn fifo_rx_watermark(&self) -> bool
FIFO reached Receive watermark level; not qualified with data transfer.
Sourcepub const fn set_fifo_rx_watermark(&mut self, val: bool)
pub const fn set_fifo_rx_watermark(&mut self, val: bool)
FIFO reached Receive watermark level; not qualified with data transfer.
Sourcepub const fn fifo_tx_watermark(&self) -> bool
pub const fn fifo_tx_watermark(&self) -> bool
FIFO reached Transmit watermark level; not qualified with data transfer.
Sourcepub const fn set_fifo_tx_watermark(&mut self, val: bool)
pub const fn set_fifo_tx_watermark(&mut self, val: bool)
FIFO reached Transmit watermark level; not qualified with data transfer.
Sourcepub const fn fifo_empty(&self) -> bool
pub const fn fifo_empty(&self) -> bool
FIFO is empty status.
Sourcepub const fn set_fifo_empty(&mut self, val: bool)
pub const fn set_fifo_empty(&mut self, val: bool)
FIFO is empty status.
Sourcepub const fn set_fifo_full(&mut self, val: bool)
pub const fn set_fifo_full(&mut self, val: bool)
FIFO is full status.
Sourcepub const fn cmdfsmstates(&self) -> u8
pub const fn cmdfsmstates(&self) -> u8
Command FSM states: 0 - Idle 1 - Send init sequence 2 - Tx cmd start bit 3 - Tx cmd tx bit 4 - Tx cmd index + arg 5 - Tx cmd crc7 6 - Tx cmd end bit 7 - Rx resp start bit 8 - Rx resp IRQ response 9 - Rx resp tx bit 10 - Rx resp cmd idx 11 - Rx resp data 12 - Rx resp crc7 13 - Rx resp end bit 14 - Cmd path wait NCC 15 - Wait; CMD-to-response turnaround NOTE: The command FSM state is represented using 19 bits.
Sourcepub const fn set_cmdfsmstates(&mut self, val: u8)
pub const fn set_cmdfsmstates(&mut self, val: u8)
Command FSM states: 0 - Idle 1 - Send init sequence 2 - Tx cmd start bit 3 - Tx cmd tx bit 4 - Tx cmd index + arg 5 - Tx cmd crc7 6 - Tx cmd end bit 7 - Rx resp start bit 8 - Rx resp IRQ response 9 - Rx resp tx bit 10 - Rx resp cmd idx 11 - Rx resp data 12 - Rx resp crc7 13 - Rx resp end bit 14 - Cmd path wait NCC 15 - Wait; CMD-to-response turnaround NOTE: The command FSM state is represented using 19 bits.
Sourcepub const fn data_3_status(&self) -> bool
pub const fn data_3_status(&self) -> bool
Raw selected card_data[3]; checks whether card is present 0 - card not present 1 - card present.
Sourcepub const fn set_data_3_status(&mut self, val: bool)
pub const fn set_data_3_status(&mut self, val: bool)
Raw selected card_data[3]; checks whether card is present 0 - card not present 1 - card present.
Sourcepub const fn data_busy(&self) -> bool
pub const fn data_busy(&self) -> bool
Inverted version of raw selected card_data[0] 0 - card data not busy 1 - card data busy.
Sourcepub const fn set_data_busy(&mut self, val: bool)
pub const fn set_data_busy(&mut self, val: bool)
Inverted version of raw selected card_data[0] 0 - card data not busy 1 - card data busy.
Sourcepub const fn data_state_mc_busy(&self) -> bool
pub const fn data_state_mc_busy(&self) -> bool
Data transmit or receive state-machine is busy.
Sourcepub const fn set_data_state_mc_busy(&mut self, val: bool)
pub const fn set_data_state_mc_busy(&mut self, val: bool)
Data transmit or receive state-machine is busy.
Sourcepub const fn response_index(&self) -> u8
pub const fn response_index(&self) -> u8
Index of previous response, including any auto-stop sent by core.
Sourcepub const fn set_response_index(&mut self, val: u8)
pub const fn set_response_index(&mut self, val: u8)
Index of previous response, including any auto-stop sent by core.
Sourcepub const fn fifo_count(&self) -> u16
pub const fn fifo_count(&self) -> u16
FIFO count - Number of filled locations in FIFO.
Sourcepub const fn set_fifo_count(&mut self, val: u16)
pub const fn set_fifo_count(&mut self, val: u16)
FIFO count - Number of filled locations in FIFO.
Sourcepub const fn set_dma_ack(&mut self, val: bool)
pub const fn set_dma_ack(&mut self, val: bool)
DMA acknowledge signal state.
Sourcepub const fn set_dma_req(&mut self, val: bool)
pub const fn set_dma_req(&mut self, val: bool)
DMA request signal state.