Snapshot of the hardware state captured when a transfer fails.

Populated when an SDIO error interrupt or a GPDMA abort occurs, and retrieved with sl_si91x_sdio_secondary_get_last_error. The byte and block counts come from the SDIO error condition state register and indicate how far the transfer had progressed, which distinguishes a FIFO overrun part-way through a block from a CRC or abort at the end of one.

Public Attributes#

uint32_t

Raw function 1 interrupt status at the time of the error. Zero for a GPDMA abort.

uint32_t

SDIO FIFO status register snapshot.

uint32_t

SDIO FIFO occupancy register snapshot.

uint16_t

Byte count when the error condition occurred.

uint8_t

Block count when the error condition occurred.

uint8_t

GPDMA channel that aborted, or 0xFF if the error came from the SDIO interrupt.

Public Attribute Documentation#

intr_status#

uint32_t sl_sdio_secondary_error_info_t::intr_status

Raw function 1 interrupt status at the time of the error. Zero for a GPDMA abort.


fifo_status#

uint32_t sl_sdio_secondary_error_info_t::fifo_status

SDIO FIFO status register snapshot.


fifo_occupancy#

uint32_t sl_sdio_secondary_error_info_t::fifo_occupancy

SDIO FIFO occupancy register snapshot.


error_byte_count#

uint16_t sl_sdio_secondary_error_info_t::error_byte_count

Byte count when the error condition occurred.


error_block_count#

uint8_t sl_sdio_secondary_error_info_t::error_block_count

Block count when the error condition occurred.


dma_channel#

uint8_t sl_sdio_secondary_error_info_t::dma_channel

GPDMA channel that aborted, or 0xFF if the error came from the SDIO interrupt.