Skip to main content

cmd52

Function cmd52 

Source
pub unsafe fn cmd52(fn_num: u8, write: bool, addr: u32, data: u8) -> Option<u8>
Expand description

SDIO CMD52: Single byte read/write (no data transfer, uses SDHCI response) fn=function, write=true for write, addr=register address, data=byte to write Returns read byte on success.

§Safety

SDHCI MMIO レジスタへ直接アクセスする。SDIO コントローラが初期化済みで、 同時に他コア/割り込みから SDHCI を操作していない状態で呼ぶこと。