ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
sdhi_state_t Struct Reference

SDHI model state: register shadow + command + data-phase engine. More...

Data Fields

uint32_t regs [k_sdhi_words]
 0x200-byte window shadow.
uint32_t rsp [4]
 Latched response words.
uint8_t stage [k_sdhi_block_bytes]
 Active 512-byte block buffer.
uint32_t word_idx
 Next SD_BUF0 word in the block.
uint32_t lba
 Current block address.
uint32_t blocks_left
 Remaining blocks in the transfer.
uint8_t app_cmd
 1 => previous command was CMD55.
uint8_t xfer
 sdhi_xfer_t data-phase state.
uint32_t reads
 Block reads served.
uint32_t writes
 Block writes committed.

Detailed Description

SDHI model state: register shadow + command + data-phase engine.

Definition at line 143 of file board_periph_sdhi.c.

Field Documentation

◆ app_cmd

uint8_t sdhi_state_t::app_cmd

1 => previous command was CMD55.

Definition at line 150 of file board_periph_sdhi.c.

◆ blocks_left

uint32_t sdhi_state_t::blocks_left

Remaining blocks in the transfer.

Definition at line 149 of file board_periph_sdhi.c.

◆ lba

uint32_t sdhi_state_t::lba

Current block address.

Definition at line 148 of file board_periph_sdhi.c.

◆ reads

uint32_t sdhi_state_t::reads

Block reads served.

Definition at line 152 of file board_periph_sdhi.c.

◆ regs

uint32_t sdhi_state_t::regs[k_sdhi_words]

0x200-byte window shadow.

Definition at line 144 of file board_periph_sdhi.c.

◆ rsp

uint32_t sdhi_state_t::rsp[4]

Latched response words.

Definition at line 145 of file board_periph_sdhi.c.

◆ stage

uint8_t sdhi_state_t::stage[k_sdhi_block_bytes]

Active 512-byte block buffer.

Definition at line 146 of file board_periph_sdhi.c.

◆ word_idx

uint32_t sdhi_state_t::word_idx

Next SD_BUF0 word in the block.

Definition at line 147 of file board_periph_sdhi.c.

◆ writes

uint32_t sdhi_state_t::writes

Block writes committed.

Definition at line 153 of file board_periph_sdhi.c.

◆ xfer

uint8_t sdhi_state_t::xfer

sdhi_xfer_t data-phase state.

Definition at line 151 of file board_periph_sdhi.c.


The documentation for this struct was generated from the following file: