rtic/dev/api/stm32_metapac/sdmmc/regs/index.html
2024-12-06 13:35:18 +00:00

1 line
No EOL
10 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `regs` mod in crate `stm32_metapac`."><title>stm32_metapac::sdmmc::regs - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-b0742ba02757f159.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="stm32_metapac" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0 (90b35a623 2024-11-26)" data-channel="1.83.0" data-search-js="search-f0d225181b97f9a4.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../stm32_metapac/index.html">stm32_<wbr>metapac</a><span class="version">15.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module regs</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In stm32_<wbr>metapac::<wbr>sdmmc</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../../index.html">stm32_metapac</a>::<wbr><a href="../index.html">sdmmc</a></span><h1>Module <span>regs</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Acktimer.html" title="struct stm32_metapac::sdmmc::regs::Acktimer">Acktimer</a></div><div class="desc docblock-short">The SDMMC_ACKTIMER register contains the acknowledgment timeout period, in SDMMC_CK bus clock periods. A counter loads the value from the SDMMC_ACKTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_Ack state. If the timer reaches 0 while the DPSM is in this states, the acknowledgment timeout status flag is set.</div></li><li><div class="item-name"><a class="struct" href="struct.Argr.html" title="struct stm32_metapac::sdmmc::regs::Argr">Argr</a></div><div class="desc docblock-short">The SDMMC_ARGR register contains a 32-bit command argument, which is sent to a card as part of a command message.</div></li><li><div class="item-name"><a class="struct" href="struct.Clkcr.html" title="struct stm32_metapac::sdmmc::regs::Clkcr">Clkcr</a></div><div class="desc docblock-short">The SDMMC_CLKCR register controls the SDMMC_CK output clock, the SDMMC_RX_CLK receive clock, and the bus width.</div></li><li><div class="item-name"><a class="struct" href="struct.Cmdr.html" title="struct stm32_metapac::sdmmc::regs::Cmdr">Cmdr</a></div><div class="desc docblock-short">The SDMMC_CMDR register contains the command index and command type bits. The command index is sent to a card as part of a command message. The command type bits control the command path state machine (CPSM).</div></li><li><div class="item-name"><a class="struct" href="struct.Dcntr.html" title="struct stm32_metapac::sdmmc::regs::Dcntr">Dcntr</a></div><div class="desc docblock-short">The SDMMC_DCNTR register loads the value from the data length register (see SDMMC_DLENR) when the DPSM moves from the Idle state to the Wait_R or Wait_S state. As data is transferred, the counter decrements the value until it reaches 0. The DPSM then moves to the Idle state and when there has been no error, the data status end flag (DATAEND) is set.</div></li><li><div class="item-name"><a class="struct" href="struct.Dctrl.html" title="struct stm32_metapac::sdmmc::regs::Dctrl">Dctrl</a></div><div class="desc docblock-short">The SDMMC_DCTRL register control the data path state machine (DPSM).</div></li><li><div class="item-name"><a class="struct" href="struct.Dlenr.html" title="struct stm32_metapac::sdmmc::regs::Dlenr">Dlenr</a></div><div class="desc docblock-short">The SDMMC_DLENR register contains the number of data bytes to be transferred. The value is loaded into the data counter when data transfer starts.</div></li><li><div class="item-name"><a class="struct" href="struct.Dtimer.html" title="struct stm32_metapac::sdmmc::regs::Dtimer">Dtimer</a></div><div class="desc docblock-short">The SDMMC_DTIMER register contains the data timeout period, in card bus clock periods. A counter loads the value from the SDMMC_DTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_R or Busy state. If the timer reaches 0 while the DPSM is in either of these states, the timeout status flag is set.</div></li><li><div class="item-name"><a class="struct" href="struct.Fifor.html" title="struct stm32_metapac::sdmmc::regs::Fifor">Fifor</a></div><div class="desc docblock-short">The receive and transmit FIFOs can be only read or written as word (32-bit) wide registers. The FIFOs contain 16 entries on sequential addresses. This allows the CPU to use its load and store multiple operands to read from/write to the FIFO.When accessing SDMMC_FIFOR with half word or byte access an AHB bus fault is generated.</div></li><li><div class="item-name"><a class="struct" href="struct.Icr.html" title="struct stm32_metapac::sdmmc::regs::Icr">Icr</a></div><div class="desc docblock-short">The SDMMC_ICR register is a write-only register. Writing a bit with 1 clears the corresponding bit in the SDMMC_STAR status register.</div></li><li><div class="item-name"><a class="struct" href="struct.Id.html" title="struct stm32_metapac::sdmmc::regs::Id">Id</a></div><div class="desc docblock-short">SDMMC IP identification register</div></li><li><div class="item-name"><a class="struct" href="struct.Idmabase0r.html" title="struct stm32_metapac::sdmmc::regs::Idmabase0r">Idmabase0r</a></div><div class="desc docblock-short">The SDMMC_IDMABASE0R register contains the memory buffer base address in single buffer configuration and the buffer 0 base address in double buffer configuration.</div></li><li><div class="item-name"><a class="struct" href="struct.Idmabase1r.html" title="struct stm32_metapac::sdmmc::regs::Idmabase1r">Idmabase1r</a></div><div class="desc docblock-short">The SDMMC_IDMABASE1R register contains the double buffer configuration second buffer memory base address.</div></li><li><div class="item-name"><a class="struct" href="struct.Idmabsizer.html" title="struct stm32_metapac::sdmmc::regs::Idmabsizer">Idmabsizer</a></div><div class="desc docblock-short">The SDMMC_IDMABSIZER register contains the buffers size when in double buffer configuration.</div></li><li><div class="item-name"><a class="struct" href="struct.Idmactrlr.html" title="struct stm32_metapac::sdmmc::regs::Idmactrlr">Idmactrlr</a></div><div class="desc docblock-short">The receive and transmit FIFOs can be read or written as 32-bit wide registers. The FIFOs contain 32 entries on 32 sequential addresses. This allows the CPU to use its load and store multiple operands to read from/write to the FIFO.</div></li><li><div class="item-name"><a class="struct" href="struct.Maskr.html" title="struct stm32_metapac::sdmmc::regs::Maskr">Maskr</a></div><div class="desc docblock-short">The interrupt mask register determines which status flags generate an interrupt request by setting the corresponding bit to 1.</div></li><li><div class="item-name"><a class="struct" href="struct.Power.html" title="struct stm32_metapac::sdmmc::regs::Power">Power</a></div><div class="desc docblock-short">SDMMC power control register</div></li><li><div class="item-name"><a class="struct" href="struct.Respcmdr.html" title="struct stm32_metapac::sdmmc::regs::Respcmdr">Respcmdr</a></div><div class="desc docblock-short">SDMMC command response register</div></li><li><div class="item-name"><a class="struct" href="struct.RespxR.html" title="struct stm32_metapac::sdmmc::regs::RespxR">RespxR</a></div><div class="desc docblock-short">The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response.</div></li><li><div class="item-name"><a class="struct" href="struct.Star.html" title="struct stm32_metapac::sdmmc::regs::Star">Star</a></div><div class="desc docblock-short">The SDMMC_STAR register is a read-only register. It contains two types of flag:Static flags (bits [29,21,11:0]): these bits remain asserted until they are cleared by writing to the SDMMC interrupt Clear register (see SDMMC_ICR)Dynamic flags (bits [20:12]): these bits change state depending on the state of the underlying logic (for example, FIFO full and empty flags are asserted and de-asserted as data while written to the FIFO)</div></li><li><div class="item-name"><a class="struct" href="struct.Ver.html" title="struct stm32_metapac::sdmmc::regs::Ver">Ver</a></div><div class="desc docblock-short">SDMMC IP version register</div></li></ul></section></div></main></body></html>