rtic/dev/api/rp2040_pac/struct.CLOCKS.html

86 lines
57 KiB
HTML
Raw Permalink Normal View History

<!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="CLOCKS"><title>CLOCKS in rp2040_pac - 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="rp2040_pac" 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 struct"><!--[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="../rp2040_pac/index.html">rp2040_<wbr>pac</a><span class="version">0.6.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">CLOCKS</a></h2><h3><a href="#implementations">Associated Constants</a></h3><ul class="block associatedconstant"><li><a href="#associatedconstant.PTR" title="PTR">PTR</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.ptr" title="ptr">ptr</a></li><li><a href="#method.steal" title="steal">steal</a></li></ul><h3><a href="#deref-methods-RegisterBlock">Methods from Deref&lt;<wbr>Target=<wbr>Register<wbr>Block&gt;</a></h3><ul class="block deref-methods"><li><a href="#method.clk_adc_ctrl" title="clk_adc_ctrl">clk_adc_ctrl</a></li><li><a href="#method.clk_adc_div" title="clk_adc_div">clk_adc_div</a></li><li><a href="#method.clk_adc_selected" title="clk_adc_selected">clk_adc_selected</a></li><li><a href="#method.clk_gpout0_ctrl" title="clk_gpout0_ctrl">clk_gpout0_ctrl</a></li><li><a href="#method.clk_gpout0_div" title="clk_gpout0_div">clk_gpout0_div</a></li><li><a href="#method.clk_gpout0_selected" title="clk_gpout0_selected">clk_gpout0_selected</a></li><li><a href="#method.clk_gpout1_ctrl" title="clk_gpout1_ctrl">clk_gpout1_ctrl</a></li><li><a href="#method.clk_gpout1_div" title="clk_gpout1_div">clk_gpout1_div</a></li><li><a href="#method.clk_gpout1_selected" title="clk_gpout1_selected">clk_gpout1_selected</a></li><li><a href="#method.clk_gpout2_ctrl" title="clk_gpout2_ctrl">clk_gpout2_ctrl</a></li><li><a href="#method.clk_gpout2_div" title="clk_gpout2_div">clk_gpout2_div</a></li><li><a href="#method.clk_gpout2_selected" title="clk_gpout2_selected">clk_gpout2_selected</a></li><li><a href="#method.clk_gpout3_ctrl" title="clk_gpout3_ctrl">clk_gpout3_ctrl</a></li><li><a href="#method.clk_gpout3_div" title="clk_gpout3_div">clk_gpout3_div</a></li><li><a href="#method.clk_gpout3_selected" title="clk_gpout3_selected">clk_gpout3_selected</a></li><li><a href="#method.clk_peri_ctrl" title="clk_peri_ctrl">clk_peri_ctrl</a></li><li><a href="#method.clk_peri_selected" titl
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-CLOCKS" class="impl"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#461-487">source</a><a href="#impl-CLOCKS" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.CLOCKS.html" title="struct rp2040_pac::CLOCKS">CLOCKS</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.PTR" class="associatedconstant"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#463">source</a><h4 class="code-header">pub const <a href="#associatedconstant.PTR" class="constant">PTR</a>: <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*const </a><a class="struct" href="clocks/struct.RegisterBlock.html" title="struct rp2040_pac::clocks::RegisterBlock">RegisterBlock</a> = {0x40008000 as *const clocks::RegisterBlock}</h4></section></summary><div class="docblock"><p>Pointer to the register block</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.ptr" class="method"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#466-468">source</a><h4 class="code-header">pub const fn <a href="#method.ptr" class="fn">ptr</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*const </a><a class="struct" href="clocks/struct.RegisterBlock.html" title="struct rp2040_pac::clocks::RegisterBlock">RegisterBlock</a></h4></section></summary><div class="docblock"><p>Return the pointer to the register block</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.steal" class="method"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#482-486">source</a><h4 class="code-header">pub unsafe fn <a href="#method.steal" class="fn">steal</a>() -&gt; Self</h4></section></summary><div class="docblock"><p>Steal an instance of this peripheral</p>
<h5 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h5>
<p>Ensure that the new instance of the peripheral cannot be used in a way
that may race with any existing instances, for example by only
accessing read-only or write-only registers, or by consuming the
original peripheral and using critical sections to coordinate
access between multiple new instances.</p>
<p>Additionally, other software such as HALs may rely on only one
peripheral instance existing to ensure memory safety; ensure
no stolen instances are passed to such software.</p>
</div></details></div></details></div><details class="toggle big-toggle" open><summary><h2 id="deref-methods-RegisterBlock" class="section-header"><span>Methods from <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = <a class="struct" href="clocks/struct.RegisterBlock.html" title="struct rp2040_pac::clocks::RegisterBlock">RegisterBlock</a>&gt;</span><a href="#deref-methods-RegisterBlock" class="anchor">§</a></h2></summary><div id="deref-methods-RegisterBlock-1" class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clk_gpout0_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#58-60">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout0_ctrl" class="fn">clk_gpout0_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT0_CTRL.html" title="type rp2040_pac::clocks::CLK_GPOUT0_CTRL">CLK_GPOUT0_CTRL</a></h4></section></summary><div class="docblock"><p>0x00 - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout0_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#63-65">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout0_div" class="fn">clk_gpout0_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT0_DIV.html" title="type rp2040_pac::clocks::CLK_GPOUT0_DIV">CLK_GPOUT0_DIV</a></h4></section></summary><div class="docblock"><p>0x04 - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout0_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#69-71">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout0_selected" class="fn">clk_gpout0_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT0_SELECTED.html" title="type rp2040_pac::clocks::CLK_GPOUT0_SELECTED">CLK_GPOUT0_SELECTED</a></h4></section></summary><div class="docblock"><p>0x08 - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout1_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#74-76">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout1_ctrl" class="fn">clk_gpout1_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT1_CTRL.html" title="type rp2040_pac::clocks::CLK_GPOUT1_CTRL">CLK_GPOUT1_CTRL</a></h4></section></summary><div class="docblock"><p>0x0c - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout1_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#79-81">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout1_div" class="fn">clk_gpout1_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT1_DIV.html" title="type rp2040_pac::clocks::CLK_GPOUT1_DIV">CLK_GPOUT1_DIV</a></h4></section></summary><div class="docblock"><p>0x10 - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout1_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#85-87">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout1_selected" class="fn">clk_gpout1_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT1_SELECTED.html" title="type rp2040_pac::clocks::CLK_GPOUT1_SELECTED">CLK_GPOUT1_SELECTED</a></h4></section></summary><div class="docblock"><p>0x14 - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout2_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#90-92">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout2_ctrl" class="fn">clk_gpout2_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT2_CTRL.html" title="type rp2040_pac::clocks::CLK_GPOUT2_CTRL">CLK_GPOUT2_CTRL</a></h4></section></summary><div class="docblock"><p>0x18 - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout2_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#95-97">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout2_div" class="fn">clk_gpout2_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT2_DIV.html" title="type rp2040_pac::clocks::CLK_GPOUT2_DIV">CLK_GPOUT2_DIV</a></h4></section></summary><div class="docblock"><p>0x1c - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout2_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#101-103">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout2_selected" class="fn">clk_gpout2_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT2_SELECTED.html" title="type rp2040_pac::clocks::CLK_GPOUT2_SELECTED">CLK_GPOUT2_SELECTED</a></h4></section></summary><div class="docblock"><p>0x20 - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout3_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#106-108">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout3_ctrl" class="fn">clk_gpout3_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT3_CTRL.html" title="type rp2040_pac::clocks::CLK_GPOUT3_CTRL">CLK_GPOUT3_CTRL</a></h4></section></summary><div class="docblock"><p>0x24 - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout3_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#111-113">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout3_div" class="fn">clk_gpout3_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT3_DIV.html" title="type rp2040_pac::clocks::CLK_GPOUT3_DIV">CLK_GPOUT3_DIV</a></h4></section></summary><div class="docblock"><p>0x28 - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_gpout3_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#117-119">source</a><h4 class="code-header">pub fn <a href="#method.clk_gpout3_selected" class="fn">clk_gpout3_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_GPOUT3_SELECTED.html" title="type rp2040_pac::clocks::CLK_GPOUT3_SELECTED">CLK_GPOUT3_SELECTED</a></h4></section></summary><div class="docblock"><p>0x2c - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_ref_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#122-124">source</a><h4 class="code-header">pub fn <a href="#method.clk_ref_ctrl" class="fn">clk_ref_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_REF_CTRL.html" title="type rp2040_pac::clocks::CLK_REF_CTRL">CLK_REF_CTRL</a></h4></section></summary><div class="docblock"><p>0x30 - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_ref_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#127-129">source</a><h4 class="code-header">pub fn <a href="#method.clk_ref_div" class="fn">clk_ref_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_REF_DIV.html" title="type rp2040_pac::clocks::CLK_REF_DIV">CLK_REF_DIV</a></h4></section></summary><div class="docblock"><p>0x34 - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_ref_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#133-135">source</a><h4 class="code-header">pub fn <a href="#method.clk_ref_selected" class="fn">clk_ref_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_REF_SELECTED.html" title="type rp2040_pac::clocks::CLK_REF_SELECTED">CLK_REF_SELECTED</a></h4></section></summary><div class="docblock"><p>0x38 - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_sys_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#138-140">source</a><h4 class="code-header">pub fn <a href="#method.clk_sys_ctrl" class="fn">clk_sys_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_SYS_CTRL.html" title="type rp2040_pac::clocks::CLK_SYS_CTRL">CLK_SYS_CTRL</a></h4></section></summary><div class="docblock"><p>0x3c - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_sys_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#143-145">source</a><h4 class="code-header">pub fn <a href="#method.clk_sys_div" class="fn">clk_sys_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_SYS_DIV.html" title="type rp2040_pac::clocks::CLK_SYS_DIV">CLK_SYS_DIV</a></h4></section></summary><div class="docblock"><p>0x40 - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_sys_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#149-151">source</a><h4 class="code-header">pub fn <a href="#method.clk_sys_selected" class="fn">clk_sys_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_SYS_SELECTED.html" title="type rp2040_pac::clocks::CLK_SYS_SELECTED">CLK_SYS_SELECTED</a></h4></section></summary><div class="docblock"><p>0x44 - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_peri_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#154-156">source</a><h4 class="code-header">pub fn <a href="#method.clk_peri_ctrl" class="fn">clk_peri_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_PERI_CTRL.html" title="type rp2040_pac::clocks::CLK_PERI_CTRL">CLK_PERI_CTRL</a></h4></section></summary><div class="docblock"><p>0x48 - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_peri_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#160-162">source</a><h4 class="code-header">pub fn <a href="#method.clk_peri_selected" class="fn">clk_peri_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_PERI_SELECTED.html" title="type rp2040_pac::clocks::CLK_PERI_SELECTED">CLK_PERI_SELECTED</a></h4></section></summary><div class="docblock"><p>0x50 - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_usb_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#165-167">source</a><h4 class="code-header">pub fn <a href="#method.clk_usb_ctrl" class="fn">clk_usb_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_USB_CTRL.html" title="type rp2040_pac::clocks::CLK_USB_CTRL">CLK_USB_CTRL</a></h4></section></summary><div class="docblock"><p>0x54 - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_usb_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#170-172">source</a><h4 class="code-header">pub fn <a href="#method.clk_usb_div" class="fn">clk_usb_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_USB_DIV.html" title="type rp2040_pac::clocks::CLK_USB_DIV">CLK_USB_DIV</a></h4></section></summary><div class="docblock"><p>0x58 - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_usb_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#176-178">source</a><h4 class="code-header">pub fn <a href="#method.clk_usb_selected" class="fn">clk_usb_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_USB_SELECTED.html" title="type rp2040_pac::clocks::CLK_USB_SELECTED">CLK_USB_SELECTED</a></h4></section></summary><div class="docblock"><p>0x5c - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_adc_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#181-183">source</a><h4 class="code-header">pub fn <a href="#method.clk_adc_ctrl" class="fn">clk_adc_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_ADC_CTRL.html" title="type rp2040_pac::clocks::CLK_ADC_CTRL">CLK_ADC_CTRL</a></h4></section></summary><div class="docblock"><p>0x60 - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_adc_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#186-188">source</a><h4 class="code-header">pub fn <a href="#method.clk_adc_div" class="fn">clk_adc_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_ADC_DIV.html" title="type rp2040_pac::clocks::CLK_ADC_DIV">CLK_ADC_DIV</a></h4></section></summary><div class="docblock"><p>0x64 - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_adc_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#192-194">source</a><h4 class="code-header">pub fn <a href="#method.clk_adc_selected" class="fn">clk_adc_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_ADC_SELECTED.html" title="type rp2040_pac::clocks::CLK_ADC_SELECTED">CLK_ADC_SELECTED</a></h4></section></summary><div class="docblock"><p>0x68 - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_rtc_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#197-199">source</a><h4 class="code-header">pub fn <a href="#method.clk_rtc_ctrl" class="fn">clk_rtc_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_RTC_CTRL.html" title="type rp2040_pac::clocks::CLK_RTC_CTRL">CLK_RTC_CTRL</a></h4></section></summary><div class="docblock"><p>0x6c - Clock control, can be changed on-the-fly (except for auxsrc)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_rtc_div" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#202-204">source</a><h4 class="code-header">pub fn <a href="#method.clk_rtc_div" class="fn">clk_rtc_div</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_RTC_DIV.html" title="type rp2040_pac::clocks::CLK_RTC_DIV">CLK_RTC_DIV</a></h4></section></summary><div class="docblock"><p>0x70 - Clock divisor, can be changed on-the-fly</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_rtc_selected" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#208-210">source</a><h4 class="code-header">pub fn <a href="#method.clk_rtc_selected" class="fn">clk_rtc_selected</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_RTC_SELECTED.html" title="type rp2040_pac::clocks::CLK_RTC_SELECTED">CLK_RTC_SELECTED</a></h4></section></summary><div class="docblock"><p>0x74 - Indicates which SRC is currently selected by the glitchless mux (one-hot).<br />
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_sys_resus_ctrl" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#213-215">source</a><h4 class="code-header">pub fn <a href="#method.clk_sys_resus_ctrl" class="fn">clk_sys_resus_ctrl</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_SYS_RESUS_CTRL.html" title="type rp2040_pac::clocks::CLK_SYS_RESUS_CTRL">CLK_SYS_RESUS_CTRL</a></h4></section></summary><div class="docblock"><p>0x78 -</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clk_sys_resus_status" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#218-220">source</a><h4 class="code-header">pub fn <a href="#method.clk_sys_resus_status" class="fn">clk_sys_resus_status</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.CLK_SYS_RESUS_STATUS.html" title="type rp2040_pac::clocks::CLK_SYS_RESUS_STATUS">CLK_SYS_RESUS_STATUS</a></h4></section></summary><div class="docblock"><p>0x7c -</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.fc0_ref_khz" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#223-225">source</a><h4 class="code-header">pub fn <a href="#method.fc0_ref_khz" class="fn">fc0_ref_khz</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.FC0_REF_KHZ.html" title="type rp2040_pac::clocks::FC0_REF_KHZ">FC0_REF_KHZ</a></h4></section></summary><div class="docblock"><p>0x80 - Reference clock frequency in kHz</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.fc0_min_khz" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#228-230">source</a><h4 class="code-header">pub fn <a href="#method.fc0_min_khz" class="fn">fc0_min_khz</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.FC0_MIN_KHZ.html" title="type rp2040_pac::clocks::FC0_MIN_KHZ">FC0_MIN_KHZ</a></h4></section></summary><div class="docblock"><p>0x84 - Minimum pass frequency in kHz. This is optional. Set to 0 if you are not using the pass/fail flags</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.fc0_max_khz" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#233-235">source</a><h4 class="code-header">pub fn <a href="#method.fc0_max_khz" class="fn">fc0_max_khz</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.FC0_MAX_KHZ.html" title="type rp2040_pac::clocks::FC0_MAX_KHZ">FC0_MAX_KHZ</a></h4></section></summary><div class="docblock"><p>0x88 - Maximum pass frequency in kHz. This is optional. Set to 0x1ffffff if you are not using the pass/fail flags</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.fc0_delay" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#239-241">source</a><h4 class="code-header">pub fn <a href="#method.fc0_delay" class="fn">fc0_delay</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.FC0_DELAY.html" title="type rp2040_pac::clocks::FC0_DELAY">FC0_DELAY</a></h4></section></summary><div class="docblock"><p>0x8c - Delays the start of frequency counting to allow the mux to settle<br />
Delay is measured in multiples of the reference clock period</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.fc0_interval" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#245-247">source</a><h4 class="code-header">pub fn <a href="#method.fc0_interval" class="fn">fc0_interval</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.FC0_INTERVAL.html" title="type rp2040_pac::clocks::FC0_INTERVAL">FC0_INTERVAL</a></h4></section></summary><div class="docblock"><p>0x90 - The test interval is 0.98us * 2<strong>interval, but lets call it 1us * 2</strong>interval<br />
The default gives a test interval of 250us</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.fc0_src" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#251-253">source</a><h4 class="code-header">pub fn <a href="#method.fc0_src" class="fn">fc0_src</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.FC0_SRC.html" title="type rp2040_pac::clocks::FC0_SRC">FC0_SRC</a></h4></section></summary><div class="docblock"><p>0x94 - Clock sent to frequency counter, set to 0 when not required<br />
Writing to this register initiates the frequency count</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.fc0_status" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#256-258">source</a><h4 class="code-header">pub fn <a href="#method.fc0_status" class="fn">fc0_status</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.FC0_STATUS.html" title="type rp2040_pac::clocks::FC0_STATUS">FC0_STATUS</a></h4></section></summary><div class="docblock"><p>0x98 - Frequency counter status</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.fc0_result" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#261-263">source</a><h4 class="code-header">pub fn <a href="#method.fc0_result" class="fn">fc0_result</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.FC0_RESULT.html" title="type rp2040_pac::clocks::FC0_RESULT">FC0_RESULT</a></h4></section></summary><div class="docblock"><p>0x9c - Result of frequency measurement, only valid when status_done=1</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.wake_en0" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#266-268">source</a><h4 class="code-header">pub fn <a href="#method.wake_en0" class="fn">wake_en0</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.WAKE_EN0.html" title="type rp2040_pac::clocks::WAKE_EN0">WAKE_EN0</a></h4></section></summary><div class="docblock"><p>0xa0 - enable clock in wake mode</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.wake_en1" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#271-273">source</a><h4 class="code-header">pub fn <a href="#method.wake_en1" class="fn">wake_en1</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.WAKE_EN1.html" title="type rp2040_pac::clocks::WAKE_EN1">WAKE_EN1</a></h4></section></summary><div class="docblock"><p>0xa4 - enable clock in wake mode</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.sleep_en0" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#276-278">source</a><h4 class="code-header">pub fn <a href="#method.sleep_en0" class="fn">sleep_en0</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.SLEEP_EN0.html" title="type rp2040_pac::clocks::SLEEP_EN0">SLEEP_EN0</a></h4></section></summary><div class="docblock"><p>0xa8 - enable clock in sleep mode</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.sleep_en1" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#281-283">source</a><h4 class="code-header">pub fn <a href="#method.sleep_en1" class="fn">sleep_en1</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.SLEEP_EN1.html" title="type rp2040_pac::clocks::SLEEP_EN1">SLEEP_EN1</a></h4></section></summary><div class="docblock"><p>0xac - enable clock in sleep mode</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.enabled0" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#286-288">source</a><h4 class="code-header">pub fn <a href="#method.enabled0" class="fn">enabled0</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.ENABLED0.html" title="type rp2040_pac::clocks::ENABLED0">ENABLED0</a></h4></section></summary><div class="docblock"><p>0xb0 - indicates the state of the clock enable</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.enabled1" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#291-293">source</a><h4 class="code-header">pub fn <a href="#method.enabled1" class="fn">enabled1</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.ENABLED1.html" title="type rp2040_pac::clocks::ENABLED1">ENABLED1</a></h4></section></summary><div class="docblock"><p>0xb4 - indicates the state of the clock enable</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.intr" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#296-298">source</a><h4 class="code-header">pub fn <a href="#method.intr" class="fn">intr</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.INTR.html" title="type rp2040_pac::clocks::INTR">INTR</a></h4></section></summary><div class="docblock"><p>0xb8 - Raw Interrupts</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.inte" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#301-303">source</a><h4 class="code-header">pub fn <a href="#method.inte" class="fn">inte</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.INTE.html" title="type rp2040_pac::clocks::INTE">INTE</a></h4></section></summary><div class="docblock"><p>0xbc - Interrupt Enable</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.intf" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#306-308">source</a><h4 class="code-header">pub fn <a href="#method.intf" class="fn">intf</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.INTF.html" title="type rp2040_pac::clocks::INTF">INTF</a></h4></section></summary><div class="docblock"><p>0xc0 - Interrupt Force</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.ints" class="method"><a class="src rightside" href="../src/rp2040_pac/clocks.rs.html#311-313">source</a><h4 class="code-header">pub fn <a href="#method.ints" class="fn">ints</a>(&amp;self) -&gt; &amp;<a class="type" href="clocks/type.INTS.html" title="type rp2040_pac::clocks::INTS">INTS</a></h4></section></summary><div class="docblock"><p>0xc4 - Interrupt status after masking &amp; forcing</p>
</div></details></div></details><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-CLOCKS" class="impl"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#495-499">source</a><a href="#impl-Debug-for-CLOCKS" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CLOCKS.html" title="struct rp2040_pac::CLOCKS">CLOCKS</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#496-498">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.83.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.83.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.83.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deref-for-CLOCKS" class="impl"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#488-494">source</a><a href="#impl-Deref-for-CLOCKS" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.CLOCKS.html" title="struct rp2040_pac::CLOCKS">CLOCKS</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#489">source</a><a href="#associatedtype.Target" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="struct" href="clocks/struct.RegisterBlock.html" title="struct rp2040_pac::clocks::RegisterBlock">RegisterBlock</a></h4></section></summary><div class='docblock'>The resulting type after dereferencing.</div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#491-493">source</a><a href="#method.deref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html#tymethod.deref" class="fn">deref</a>(&amp;self) -&gt; &amp;Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></h4></section></summary><div class='docblock'>Dereferences the value.</div></details></div></details><section id="impl-Send-for-CLOCKS" class="impl"><a class="src rightside" href="../src/rp2040_pac/lib.rs.html#460">source</a><a href="#impl-Send-for-CLOCKS" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.CLOCKS.html" title="struct rp2040_pac::CLOCKS">CLOCKS</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/any.rs.html#139">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.83.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.83.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/borrow.rs.html#209">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/borrow.rs.html#211">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.83.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/borrow.rs.html#217">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/borrow.rs.html#218">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.83.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#765">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#768">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#748-750">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#758">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#805-807">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#809">source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#812">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#790-792">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#794">source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.83.0/src/core/convert/mod.rs.html#797">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>