rtic/stable/api/nrf52840_pac/qdec/index.html
github-merge-queue[bot] e04fb16c1b deploy: bbc37ca3fe
2025-11-12 19:06:49 +00:00

3 lines
No EOL
13 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="Quadrature Decoder"><title>nrf52840_pac::qdec - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-e56847b5.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="nrf52840_pac" data-themes="" data-resource-suffix="" data-rustdoc-version="1.91.1 (ed61e7d7e 2025-11-07)" data-channel="1.91.1" data-search-js="search-e256b49e.js" data-stringdex-js="stringdex-c3e638e9.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-6dc2a7f3.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.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]--><rustdoc-topbar><h2><a href="#">Module qdec</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../nrf52840_pac/index.html">nrf52840_<wbr>pac</a><span class="version">0.12.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module qdec</a></h2><h3><a href="#reexports">Module Items</a></h3><ul class="block"><li><a href="#reexports" title="Re-exports">Re-exports</a></li><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate nrf52840_<wbr>pac</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">nrf52840_pac</a></div><h1>Module <span>qdec</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/nrf52840_pac/qdec.rs.html#1-160">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Quadrature Decoder</p>
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><dl class="item-table reexports"><dt id="reexport.PSEL"><code>pub use psel::<a class="struct" href="psel/struct.PSEL.html" title="struct nrf52840_pac::qdec::psel::PSEL">PSEL</a>;</code></dt></dl><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="acc/index.html" title="mod nrf52840_pac::qdec::acc">acc</a></dt><dd>Register accumulating the valid transitions</dd><dt><a class="mod" href="accdbl/index.html" title="mod nrf52840_pac::qdec::accdbl">accdbl</a></dt><dd>Register accumulating the number of detected double transitions</dd><dt><a class="mod" href="accdblread/index.html" title="mod nrf52840_pac::qdec::accdblread">accdblread</a></dt><dd>Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task</dd><dt><a class="mod" href="accread/index.html" title="mod nrf52840_pac::qdec::accread">accread</a></dt><dd>Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task</dd><dt><a class="mod" href="dbfen/index.html" title="mod nrf52840_pac::qdec::dbfen">dbfen</a></dt><dd>Enable input debounce filters</dd><dt><a class="mod" href="enable/index.html" title="mod nrf52840_pac::qdec::enable">enable</a></dt><dd>Enable the quadrature decoder</dd><dt><a class="mod" href="events_accof/index.html" title="mod nrf52840_pac::qdec::events_accof">events_<wbr>accof</a></dt><dd>ACC or ACCDBL register overflow</dd><dt><a class="mod" href="events_dblrdy/index.html" title="mod nrf52840_pac::qdec::events_dblrdy">events_<wbr>dblrdy</a></dt><dd>Double displacement(s) detected</dd><dt><a class="mod" href="events_reportrdy/index.html" title="mod nrf52840_pac::qdec::events_reportrdy">events_<wbr>reportrdy</a></dt><dd>Non-null report ready</dd><dt><a class="mod" href="events_samplerdy/index.html" title="mod nrf52840_pac::qdec::events_samplerdy">events_<wbr>samplerdy</a></dt><dd>Event being generated for every new sample value written to the SAMPLE register</dd><dt><a class="mod" href="events_stopped/index.html" title="mod nrf52840_pac::qdec::events_stopped">events_<wbr>stopped</a></dt><dd>QDEC has been stopped</dd><dt><a class="mod" href="intenclr/index.html" title="mod nrf52840_pac::qdec::intenclr">intenclr</a></dt><dd>Disable interrupt</dd><dt><a class="mod" href="intenset/index.html" title="mod nrf52840_pac::qdec::intenset">intenset</a></dt><dd>Enable interrupt</dd><dt><a class="mod" href="ledpol/index.html" title="mod nrf52840_pac::qdec::ledpol">ledpol</a></dt><dd>LED output pin polarity</dd><dt><a class="mod" href="ledpre/index.html" title="mod nrf52840_pac::qdec::ledpre">ledpre</a></dt><dd>Time period the LED is switched ON prior to sampling</dd><dt><a class="mod" href="psel/index.html" title="mod nrf52840_pac::qdec::psel">psel</a></dt><dd>Cluster
Unspecified</dd><dt><a class="mod" href="reportper/index.html" title="mod nrf52840_pac::qdec::reportper">reportper</a></dt><dd>Number of samples to be taken before REPORTRDY and DBLRDY events can be generated</dd><dt><a class="mod" href="sample/index.html" title="mod nrf52840_pac::qdec::sample">sample</a></dt><dd>Motion sample value</dd><dt><a class="mod" href="sampleper/index.html" title="mod nrf52840_pac::qdec::sampleper">sampleper</a></dt><dd>Sample period</dd><dt><a class="mod" href="shorts/index.html" title="mod nrf52840_pac::qdec::shorts">shorts</a></dt><dd>Shortcut register</dd><dt><a class="mod" href="tasks_rdclracc/index.html" title="mod nrf52840_pac::qdec::tasks_rdclracc">tasks_<wbr>rdclracc</a></dt><dd>Read and clear ACC</dd><dt><a class="mod" href="tasks_rdclrdbl/index.html" title="mod nrf52840_pac::qdec::tasks_rdclrdbl">tasks_<wbr>rdclrdbl</a></dt><dd>Read and clear ACCDBL</dd><dt><a class="mod" href="tasks_readclracc/index.html" title="mod nrf52840_pac::qdec::tasks_readclracc">tasks_<wbr>readclracc</a></dt><dd>Read and clear ACC and ACCDBL</dd><dt><a class="mod" href="tasks_start/index.html" title="mod nrf52840_pac::qdec::tasks_start">tasks_<wbr>start</a></dt><dd>Task starting the quadrature decoder</dd><dt><a class="mod" href="tasks_stop/index.html" title="mod nrf52840_pac::qdec::tasks_stop">tasks_<wbr>stop</a></dt><dd>Task stopping the quadrature decoder</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.RegisterBlock.html" title="struct nrf52840_pac::qdec::RegisterBlock">Register<wbr>Block</a></dt><dd>Register block</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.ACC.html" title="type nrf52840_pac::qdec::ACC">ACC</a></dt><dd>ACC (r) register accessor: an alias for <code>Reg&lt;ACC_SPEC&gt;</code></dd><dt><a class="type" href="type.ACCDBL.html" title="type nrf52840_pac::qdec::ACCDBL">ACCDBL</a></dt><dd>ACCDBL (r) register accessor: an alias for <code>Reg&lt;ACCDBL_SPEC&gt;</code></dd><dt><a class="type" href="type.ACCDBLREAD.html" title="type nrf52840_pac::qdec::ACCDBLREAD">ACCDBLREAD</a></dt><dd>ACCDBLREAD (r) register accessor: an alias for <code>Reg&lt;ACCDBLREAD_SPEC&gt;</code></dd><dt><a class="type" href="type.ACCREAD.html" title="type nrf52840_pac::qdec::ACCREAD">ACCREAD</a></dt><dd>ACCREAD (r) register accessor: an alias for <code>Reg&lt;ACCREAD_SPEC&gt;</code></dd><dt><a class="type" href="type.DBFEN.html" title="type nrf52840_pac::qdec::DBFEN">DBFEN</a></dt><dd>DBFEN (rw) register accessor: an alias for <code>Reg&lt;DBFEN_SPEC&gt;</code></dd><dt><a class="type" href="type.ENABLE.html" title="type nrf52840_pac::qdec::ENABLE">ENABLE</a></dt><dd>ENABLE (rw) register accessor: an alias for <code>Reg&lt;ENABLE_SPEC&gt;</code></dd><dt><a class="type" href="type.EVENTS_ACCOF.html" title="type nrf52840_pac::qdec::EVENTS_ACCOF">EVENTS_<wbr>ACCOF</a></dt><dd>EVENTS_ACCOF (rw) register accessor: an alias for <code>Reg&lt;EVENTS_ACCOF_SPEC&gt;</code></dd><dt><a class="type" href="type.EVENTS_DBLRDY.html" title="type nrf52840_pac::qdec::EVENTS_DBLRDY">EVENTS_<wbr>DBLRDY</a></dt><dd>EVENTS_DBLRDY (rw) register accessor: an alias for <code>Reg&lt;EVENTS_DBLRDY_SPEC&gt;</code></dd><dt><a class="type" href="type.EVENTS_REPORTRDY.html" title="type nrf52840_pac::qdec::EVENTS_REPORTRDY">EVENTS_<wbr>REPORTRDY</a></dt><dd>EVENTS_REPORTRDY (rw) register accessor: an alias for <code>Reg&lt;EVENTS_REPORTRDY_SPEC&gt;</code></dd><dt><a class="type" href="type.EVENTS_SAMPLERDY.html" title="type nrf52840_pac::qdec::EVENTS_SAMPLERDY">EVENTS_<wbr>SAMPLERDY</a></dt><dd>EVENTS_SAMPLERDY (rw) register accessor: an alias for <code>Reg&lt;EVENTS_SAMPLERDY_SPEC&gt;</code></dd><dt><a class="type" href="type.EVENTS_STOPPED.html" title="type nrf52840_pac::qdec::EVENTS_STOPPED">EVENTS_<wbr>STOPPED</a></dt><dd>EVENTS_STOPPED (rw) register accessor: an alias for <code>Reg&lt;EVENTS_STOPPED_SPEC&gt;</code></dd><dt><a class="type" href="type.INTENCLR.html" title="type nrf52840_pac::qdec::INTENCLR">INTENCLR</a></dt><dd>INTENCLR (rw) register accessor: an alias for <code>Reg&lt;INTENCLR_SPEC&gt;</code></dd><dt><a class="type" href="type.INTENSET.html" title="type nrf52840_pac::qdec::INTENSET">INTENSET</a></dt><dd>INTENSET (rw) register accessor: an alias for <code>Reg&lt;INTENSET_SPEC&gt;</code></dd><dt><a class="type" href="type.LEDPOL.html" title="type nrf52840_pac::qdec::LEDPOL">LEDPOL</a></dt><dd>LEDPOL (rw) register accessor: an alias for <code>Reg&lt;LEDPOL_SPEC&gt;</code></dd><dt><a class="type" href="type.LEDPRE.html" title="type nrf52840_pac::qdec::LEDPRE">LEDPRE</a></dt><dd>LEDPRE (rw) register accessor: an alias for <code>Reg&lt;LEDPRE_SPEC&gt;</code></dd><dt><a class="type" href="type.REPORTPER.html" title="type nrf52840_pac::qdec::REPORTPER">REPORTPER</a></dt><dd>REPORTPER (rw) register accessor: an alias for <code>Reg&lt;REPORTPER_SPEC&gt;</code></dd><dt><a class="type" href="type.SAMPLE.html" title="type nrf52840_pac::qdec::SAMPLE">SAMPLE</a></dt><dd>SAMPLE (r) register accessor: an alias for <code>Reg&lt;SAMPLE_SPEC&gt;</code></dd><dt><a class="type" href="type.SAMPLEPER.html" title="type nrf52840_pac::qdec::SAMPLEPER">SAMPLEPER</a></dt><dd>SAMPLEPER (rw) register accessor: an alias for <code>Reg&lt;SAMPLEPER_SPEC&gt;</code></dd><dt><a class="type" href="type.SHORTS.html" title="type nrf52840_pac::qdec::SHORTS">SHORTS</a></dt><dd>SHORTS (rw) register accessor: an alias for <code>Reg&lt;SHORTS_SPEC&gt;</code></dd><dt><a class="type" href="type.TASKS_RDCLRACC.html" title="type nrf52840_pac::qdec::TASKS_RDCLRACC">TASKS_<wbr>RDCLRACC</a></dt><dd>TASKS_RDCLRACC (w) register accessor: an alias for <code>Reg&lt;TASKS_RDCLRACC_SPEC&gt;</code></dd><dt><a class="type" href="type.TASKS_RDCLRDBL.html" title="type nrf52840_pac::qdec::TASKS_RDCLRDBL">TASKS_<wbr>RDCLRDBL</a></dt><dd>TASKS_RDCLRDBL (w) register accessor: an alias for <code>Reg&lt;TASKS_RDCLRDBL_SPEC&gt;</code></dd><dt><a class="type" href="type.TASKS_READCLRACC.html" title="type nrf52840_pac::qdec::TASKS_READCLRACC">TASKS_<wbr>READCLRACC</a></dt><dd>TASKS_READCLRACC (w) register accessor: an alias for <code>Reg&lt;TASKS_READCLRACC_SPEC&gt;</code></dd><dt><a class="type" href="type.TASKS_START.html" title="type nrf52840_pac::qdec::TASKS_START">TASKS_<wbr>START</a></dt><dd>TASKS_START (w) register accessor: an alias for <code>Reg&lt;TASKS_START_SPEC&gt;</code></dd><dt><a class="type" href="type.TASKS_STOP.html" title="type nrf52840_pac::qdec::TASKS_STOP">TASKS_<wbr>STOP</a></dt><dd>TASKS_STOP (w) register accessor: an alias for <code>Reg&lt;TASKS_STOP_SPEC&gt;</code></dd></dl></section></div></main></body></html>