diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000000..f17311098f --- /dev/null +++ b/.nojekyll @@ -0,0 +1 @@ +This file makes sure that Github Pages doesn't process mdBook's output. diff --git a/404.html b/404.html new file mode 100644 index 0000000000..36f9920830 --- /dev/null +++ b/404.html @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + +
+
+

Document not found (404)

+

This URL is invalid, sorry. Please use the navigation bar or search to continue.

+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + diff --git a/FontAwesome/css/font-awesome.css b/FontAwesome/css/font-awesome.css new file mode 100644 index 0000000000..540440ce89 --- /dev/null +++ b/FontAwesome/css/font-awesome.css @@ -0,0 +1,4 @@ +/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.7.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} diff --git a/FontAwesome/fonts/FontAwesome.ttf b/FontAwesome/fonts/FontAwesome.ttf new file mode 100644 index 0000000000..35acda2fa1 Binary files /dev/null and b/FontAwesome/fonts/FontAwesome.ttf differ diff --git a/FontAwesome/fonts/fontawesome-webfont.eot b/FontAwesome/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000000..e9f60ca953 Binary files /dev/null and b/FontAwesome/fonts/fontawesome-webfont.eot differ diff --git a/FontAwesome/fonts/fontawesome-webfont.svg b/FontAwesome/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000000..855c845e53 --- /dev/null +++ b/FontAwesome/fonts/fontawesome-webfont.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/FontAwesome/fonts/fontawesome-webfont.ttf b/FontAwesome/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000000..35acda2fa1 Binary files /dev/null and b/FontAwesome/fonts/fontawesome-webfont.ttf differ diff --git a/FontAwesome/fonts/fontawesome-webfont.woff b/FontAwesome/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000000..400014a4b0 Binary files /dev/null and b/FontAwesome/fonts/fontawesome-webfont.woff differ diff --git a/FontAwesome/fonts/fontawesome-webfont.woff2 b/FontAwesome/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000000..4d13fc6040 Binary files /dev/null and b/FontAwesome/fonts/fontawesome-webfont.woff2 differ diff --git a/assets/mqtt-explorer.png b/assets/mqtt-explorer.png new file mode 100644 index 0000000000..9ffe74c7bb Binary files /dev/null and b/assets/mqtt-explorer.png differ diff --git a/assets/stabilizer-jtag.jpg b/assets/stabilizer-jtag.jpg new file mode 100644 index 0000000000..6535fdaf37 Binary files /dev/null and b/assets/stabilizer-jtag.jpg differ diff --git a/assets/stabilizer-logo.png b/assets/stabilizer-logo.png new file mode 100644 index 0000000000..a5cfb76d70 Binary files /dev/null and b/assets/stabilizer-logo.png differ diff --git a/assets/stabilizer_pid.svg b/assets/stabilizer_pid.svg new file mode 100644 index 0000000000..06278eca32 --- /dev/null +++ b/assets/stabilizer_pid.svg @@ -0,0 +1,2 @@ + +
500 kHz
500 kHz
1 MHz
1 MHz
1, 2, 5, 10x
1, 2, 5, 10x
16 bit
2 MS/s
[Not supported by viewer]
500 kHz, biquad IIR, PID, anti windup, anti derivative kick, configurable limiter
500 kHz, biquad IIR, PID, anti windup, anti derivative kick, configurable limiter<br>
16 bit
2 MS/s
[Not supported by viewer]
±10 V
[Not supported by viewer]
±10 V
[Not supported by viewer]
500 kHz
500 kHz
1 MHz
1 MHz
1, 2, 5, 10x
1, 2, 5, 10x
16 bit
2 MS/s
[Not supported by viewer]
500 kHz, biquad IIR, PID, anti windup, anti derivative kick, configurable limiter
500 kHz, biquad IIR, PID, anti windup, anti derivative kick, configurable limiter<br>
16 bit
2 MS/s
[Not supported by viewer]
±10 V
[Not supported by viewer]
±10 V
[Not supported by viewer]
\ No newline at end of file diff --git a/ayu-highlight.css b/ayu-highlight.css new file mode 100644 index 0000000000..0c45c6f146 --- /dev/null +++ b/ayu-highlight.css @@ -0,0 +1,79 @@ +/* +Based off of the Ayu theme +Original by Dempfi (https://github.com/dempfi/ayu) +*/ + +.hljs { + display: block; + overflow-x: auto; + background: #191f26; + color: #e6e1cf; + padding: 0.5em; +} + +.hljs-comment, +.hljs-quote { + color: #5c6773; + font-style: italic; +} + +.hljs-variable, +.hljs-template-variable, +.hljs-attribute, +.hljs-attr, +.hljs-regexp, +.hljs-link, +.hljs-selector-id, +.hljs-selector-class { + color: #ff7733; +} + +.hljs-number, +.hljs-meta, +.hljs-builtin-name, +.hljs-literal, +.hljs-type, +.hljs-params { + color: #ffee99; +} + +.hljs-string, +.hljs-bullet { + color: #b8cc52; +} + +.hljs-title, +.hljs-built_in, +.hljs-section { + color: #ffb454; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-symbol { + color: #ff7733; +} + +.hljs-name { + color: #36a3d9; +} + +.hljs-tag { + color: #00568d; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} + +.hljs-addition { + color: #91b362; +} + +.hljs-deletion { + color: #d96c75; +} diff --git a/book.js b/book.js new file mode 100644 index 0000000000..79d40354b6 --- /dev/null +++ b/book.js @@ -0,0 +1,672 @@ +"use strict"; + +// Fix back button cache problem +window.onunload = function () { }; + +// Global variable, shared between modules +function playground_text(playground) { + let code_block = playground.querySelector("code"); + + if (window.ace && code_block.classList.contains("editable")) { + let editor = window.ace.edit(code_block); + return editor.getValue(); + } else { + return code_block.textContent; + } +} + +(function codeSnippets() { + function fetch_with_timeout(url, options, timeout = 6000) { + return Promise.race([ + fetch(url, options), + new Promise((_, reject) => setTimeout(() => reject(new Error('timeout')), timeout)) + ]); + } + + var playgrounds = Array.from(document.querySelectorAll(".playground")); + if (playgrounds.length > 0) { + fetch_with_timeout("https://play.rust-lang.org/meta/crates", { + headers: { + 'Content-Type': "application/json", + }, + method: 'POST', + mode: 'cors', + }) + .then(response => response.json()) + .then(response => { + // get list of crates available in the rust playground + let playground_crates = response.crates.map(item => item["id"]); + playgrounds.forEach(block => handle_crate_list_update(block, playground_crates)); + }); + } + + function handle_crate_list_update(playground_block, playground_crates) { + // update the play buttons after receiving the response + update_play_button(playground_block, playground_crates); + + // and install on change listener to dynamically update ACE editors + if (window.ace) { + let code_block = playground_block.querySelector("code"); + if (code_block.classList.contains("editable")) { + let editor = window.ace.edit(code_block); + editor.addEventListener("change", function (e) { + update_play_button(playground_block, playground_crates); + }); + // add Ctrl-Enter command to execute rust code + editor.commands.addCommand({ + name: "run", + bindKey: { + win: "Ctrl-Enter", + mac: "Ctrl-Enter" + }, + exec: _editor => run_rust_code(playground_block) + }); + } + } + } + + // updates the visibility of play button based on `no_run` class and + // used crates vs ones available on http://play.rust-lang.org + function update_play_button(pre_block, playground_crates) { + var play_button = pre_block.querySelector(".play-button"); + + // skip if code is `no_run` + if (pre_block.querySelector('code').classList.contains("no_run")) { + play_button.classList.add("hidden"); + return; + } + + // get list of `extern crate`'s from snippet + var txt = playground_text(pre_block); + var re = /extern\s+crate\s+([a-zA-Z_0-9]+)\s*;/g; + var snippet_crates = []; + var item; + while (item = re.exec(txt)) { + snippet_crates.push(item[1]); + } + + // check if all used crates are available on play.rust-lang.org + var all_available = snippet_crates.every(function (elem) { + return playground_crates.indexOf(elem) > -1; + }); + + if (all_available) { + play_button.classList.remove("hidden"); + } else { + play_button.classList.add("hidden"); + } + } + + function run_rust_code(code_block) { + var result_block = code_block.querySelector(".result"); + if (!result_block) { + result_block = document.createElement('code'); + result_block.className = 'result hljs language-bash'; + + code_block.append(result_block); + } + + let text = playground_text(code_block); + let classes = code_block.querySelector('code').classList; + let edition = "2015"; + if(classes.contains("edition2018")) { + edition = "2018"; + } else if(classes.contains("edition2021")) { + edition = "2021"; + } + var params = { + version: "stable", + optimize: "0", + code: text, + edition: edition + }; + + if (text.indexOf("#![feature") !== -1) { + params.version = "nightly"; + } + + result_block.innerText = "Running..."; + + fetch_with_timeout("https://play.rust-lang.org/evaluate.json", { + headers: { + 'Content-Type': "application/json", + }, + method: 'POST', + mode: 'cors', + body: JSON.stringify(params) + }) + .then(response => response.json()) + .then(response => { + if (response.result.trim() === '') { + result_block.innerText = "No output"; + result_block.classList.add("result-no-output"); + } else { + result_block.innerText = response.result; + result_block.classList.remove("result-no-output"); + } + }) + .catch(error => result_block.innerText = "Playground Communication: " + error.message); + } + + // Syntax highlighting Configuration + hljs.configure({ + tabReplace: ' ', // 4 spaces + languages: [], // Languages used for auto-detection + }); + + let code_nodes = Array + .from(document.querySelectorAll('code')) + // Don't highlight `inline code` blocks in headers. + .filter(function (node) {return !node.parentElement.classList.contains("header"); }); + + if (window.ace) { + // language-rust class needs to be removed for editable + // blocks or highlightjs will capture events + code_nodes + .filter(function (node) {return node.classList.contains("editable"); }) + .forEach(function (block) { block.classList.remove('language-rust'); }); + + Array + code_nodes + .filter(function (node) {return !node.classList.contains("editable"); }) + .forEach(function (block) { hljs.highlightBlock(block); }); + } else { + code_nodes.forEach(function (block) { hljs.highlightBlock(block); }); + } + + // Adding the hljs class gives code blocks the color css + // even if highlighting doesn't apply + code_nodes.forEach(function (block) { block.classList.add('hljs'); }); + + Array.from(document.querySelectorAll("code.language-rust")).forEach(function (block) { + + var lines = Array.from(block.querySelectorAll('.boring')); + // If no lines were hidden, return + if (!lines.length) { return; } + block.classList.add("hide-boring"); + + var buttons = document.createElement('div'); + buttons.className = 'buttons'; + buttons.innerHTML = ""; + + // add expand button + var pre_block = block.parentNode; + pre_block.insertBefore(buttons, pre_block.firstChild); + + pre_block.querySelector('.buttons').addEventListener('click', function (e) { + if (e.target.classList.contains('fa-eye')) { + e.target.classList.remove('fa-eye'); + e.target.classList.add('fa-eye-slash'); + e.target.title = 'Hide lines'; + e.target.setAttribute('aria-label', e.target.title); + + block.classList.remove('hide-boring'); + } else if (e.target.classList.contains('fa-eye-slash')) { + e.target.classList.remove('fa-eye-slash'); + e.target.classList.add('fa-eye'); + e.target.title = 'Show hidden lines'; + e.target.setAttribute('aria-label', e.target.title); + + block.classList.add('hide-boring'); + } + }); + }); + + if (window.playground_copyable) { + Array.from(document.querySelectorAll('pre code')).forEach(function (block) { + var pre_block = block.parentNode; + if (!pre_block.classList.contains('playground')) { + var buttons = pre_block.querySelector(".buttons"); + if (!buttons) { + buttons = document.createElement('div'); + buttons.className = 'buttons'; + pre_block.insertBefore(buttons, pre_block.firstChild); + } + + var clipButton = document.createElement('button'); + clipButton.className = 'fa fa-copy clip-button'; + clipButton.title = 'Copy to clipboard'; + clipButton.setAttribute('aria-label', clipButton.title); + clipButton.innerHTML = ''; + + buttons.insertBefore(clipButton, buttons.firstChild); + } + }); + } + + // Process playground code blocks + Array.from(document.querySelectorAll(".playground")).forEach(function (pre_block) { + // Add play button + var buttons = pre_block.querySelector(".buttons"); + if (!buttons) { + buttons = document.createElement('div'); + buttons.className = 'buttons'; + pre_block.insertBefore(buttons, pre_block.firstChild); + } + + var runCodeButton = document.createElement('button'); + runCodeButton.className = 'fa fa-play play-button'; + runCodeButton.hidden = true; + runCodeButton.title = 'Run this code'; + runCodeButton.setAttribute('aria-label', runCodeButton.title); + + buttons.insertBefore(runCodeButton, buttons.firstChild); + runCodeButton.addEventListener('click', function (e) { + run_rust_code(pre_block); + }); + + if (window.playground_copyable) { + var copyCodeClipboardButton = document.createElement('button'); + copyCodeClipboardButton.className = 'fa fa-copy clip-button'; + copyCodeClipboardButton.innerHTML = ''; + copyCodeClipboardButton.title = 'Copy to clipboard'; + copyCodeClipboardButton.setAttribute('aria-label', copyCodeClipboardButton.title); + + buttons.insertBefore(copyCodeClipboardButton, buttons.firstChild); + } + + let code_block = pre_block.querySelector("code"); + if (window.ace && code_block.classList.contains("editable")) { + var undoChangesButton = document.createElement('button'); + undoChangesButton.className = 'fa fa-history reset-button'; + undoChangesButton.title = 'Undo changes'; + undoChangesButton.setAttribute('aria-label', undoChangesButton.title); + + buttons.insertBefore(undoChangesButton, buttons.firstChild); + + undoChangesButton.addEventListener('click', function () { + let editor = window.ace.edit(code_block); + editor.setValue(editor.originalCode); + editor.clearSelection(); + }); + } + }); +})(); + +(function themes() { + var html = document.querySelector('html'); + var themeToggleButton = document.getElementById('theme-toggle'); + var themePopup = document.getElementById('theme-list'); + var themeColorMetaTag = document.querySelector('meta[name="theme-color"]'); + var stylesheets = { + ayuHighlight: document.querySelector("[href$='ayu-highlight.css']"), + tomorrowNight: document.querySelector("[href$='tomorrow-night.css']"), + highlight: document.querySelector("[href$='highlight.css']"), + }; + + function showThemes() { + themePopup.style.display = 'block'; + themeToggleButton.setAttribute('aria-expanded', true); + themePopup.querySelector("button#" + get_theme()).focus(); + } + + function hideThemes() { + themePopup.style.display = 'none'; + themeToggleButton.setAttribute('aria-expanded', false); + themeToggleButton.focus(); + } + + function get_theme() { + var theme; + try { theme = localStorage.getItem('mdbook-theme'); } catch (e) { } + if (theme === null || theme === undefined) { + return default_theme; + } else { + return theme; + } + } + + function set_theme(theme, store = true) { + let ace_theme; + + if (theme == 'coal' || theme == 'navy') { + stylesheets.ayuHighlight.disabled = true; + stylesheets.tomorrowNight.disabled = false; + stylesheets.highlight.disabled = true; + + ace_theme = "ace/theme/tomorrow_night"; + } else if (theme == 'ayu') { + stylesheets.ayuHighlight.disabled = false; + stylesheets.tomorrowNight.disabled = true; + stylesheets.highlight.disabled = true; + ace_theme = "ace/theme/tomorrow_night"; + } else { + stylesheets.ayuHighlight.disabled = true; + stylesheets.tomorrowNight.disabled = true; + stylesheets.highlight.disabled = false; + ace_theme = "ace/theme/dawn"; + } + + setTimeout(function () { + themeColorMetaTag.content = getComputedStyle(document.body).backgroundColor; + }, 1); + + if (window.ace && window.editors) { + window.editors.forEach(function (editor) { + editor.setTheme(ace_theme); + }); + } + + var previousTheme = get_theme(); + + if (store) { + try { localStorage.setItem('mdbook-theme', theme); } catch (e) { } + } + + html.classList.remove(previousTheme); + html.classList.add(theme); + } + + // Set theme + var theme = get_theme(); + + set_theme(theme, false); + + themeToggleButton.addEventListener('click', function () { + if (themePopup.style.display === 'block') { + hideThemes(); + } else { + showThemes(); + } + }); + + themePopup.addEventListener('click', function (e) { + var theme = e.target.id || e.target.parentElement.id; + set_theme(theme); + }); + + themePopup.addEventListener('focusout', function(e) { + // e.relatedTarget is null in Safari and Firefox on macOS (see workaround below) + if (!!e.relatedTarget && !themeToggleButton.contains(e.relatedTarget) && !themePopup.contains(e.relatedTarget)) { + hideThemes(); + } + }); + + // Should not be needed, but it works around an issue on macOS & iOS: https://github.com/rust-lang/mdBook/issues/628 + document.addEventListener('click', function(e) { + if (themePopup.style.display === 'block' && !themeToggleButton.contains(e.target) && !themePopup.contains(e.target)) { + hideThemes(); + } + }); + + document.addEventListener('keydown', function (e) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { return; } + if (!themePopup.contains(e.target)) { return; } + + switch (e.key) { + case 'Escape': + e.preventDefault(); + hideThemes(); + break; + case 'ArrowUp': + e.preventDefault(); + var li = document.activeElement.parentElement; + if (li && li.previousElementSibling) { + li.previousElementSibling.querySelector('button').focus(); + } + break; + case 'ArrowDown': + e.preventDefault(); + var li = document.activeElement.parentElement; + if (li && li.nextElementSibling) { + li.nextElementSibling.querySelector('button').focus(); + } + break; + case 'Home': + e.preventDefault(); + themePopup.querySelector('li:first-child button').focus(); + break; + case 'End': + e.preventDefault(); + themePopup.querySelector('li:last-child button').focus(); + break; + } + }); +})(); + +(function sidebar() { + var html = document.querySelector("html"); + var sidebar = document.getElementById("sidebar"); + var sidebarLinks = document.querySelectorAll('#sidebar a'); + var sidebarToggleButton = document.getElementById("sidebar-toggle"); + var sidebarResizeHandle = document.getElementById("sidebar-resize-handle"); + var firstContact = null; + + function showSidebar() { + html.classList.remove('sidebar-hidden') + html.classList.add('sidebar-visible'); + Array.from(sidebarLinks).forEach(function (link) { + link.setAttribute('tabIndex', 0); + }); + sidebarToggleButton.setAttribute('aria-expanded', true); + sidebar.setAttribute('aria-hidden', false); + try { localStorage.setItem('mdbook-sidebar', 'visible'); } catch (e) { } + } + + + var sidebarAnchorToggles = document.querySelectorAll('#sidebar a.toggle'); + + function toggleSection(ev) { + ev.currentTarget.parentElement.classList.toggle('expanded'); + } + + Array.from(sidebarAnchorToggles).forEach(function (el) { + el.addEventListener('click', toggleSection); + }); + + function hideSidebar() { + html.classList.remove('sidebar-visible') + html.classList.add('sidebar-hidden'); + Array.from(sidebarLinks).forEach(function (link) { + link.setAttribute('tabIndex', -1); + }); + sidebarToggleButton.setAttribute('aria-expanded', false); + sidebar.setAttribute('aria-hidden', true); + try { localStorage.setItem('mdbook-sidebar', 'hidden'); } catch (e) { } + } + + // Toggle sidebar + sidebarToggleButton.addEventListener('click', function sidebarToggle() { + if (html.classList.contains("sidebar-hidden")) { + var current_width = parseInt( + document.documentElement.style.getPropertyValue('--sidebar-width'), 10); + if (current_width < 150) { + document.documentElement.style.setProperty('--sidebar-width', '150px'); + } + showSidebar(); + } else if (html.classList.contains("sidebar-visible")) { + hideSidebar(); + } else { + if (getComputedStyle(sidebar)['transform'] === 'none') { + hideSidebar(); + } else { + showSidebar(); + } + } + }); + + sidebarResizeHandle.addEventListener('mousedown', initResize, false); + + function initResize(e) { + window.addEventListener('mousemove', resize, false); + window.addEventListener('mouseup', stopResize, false); + html.classList.add('sidebar-resizing'); + } + function resize(e) { + var pos = (e.clientX - sidebar.offsetLeft); + if (pos < 20) { + hideSidebar(); + } else { + if (html.classList.contains("sidebar-hidden")) { + showSidebar(); + } + pos = Math.min(pos, window.innerWidth - 100); + document.documentElement.style.setProperty('--sidebar-width', pos + 'px'); + } + } + //on mouseup remove windows functions mousemove & mouseup + function stopResize(e) { + html.classList.remove('sidebar-resizing'); + window.removeEventListener('mousemove', resize, false); + window.removeEventListener('mouseup', stopResize, false); + } + + document.addEventListener('touchstart', function (e) { + firstContact = { + x: e.touches[0].clientX, + time: Date.now() + }; + }, { passive: true }); + + document.addEventListener('touchmove', function (e) { + if (!firstContact) + return; + + var curX = e.touches[0].clientX; + var xDiff = curX - firstContact.x, + tDiff = Date.now() - firstContact.time; + + if (tDiff < 250 && Math.abs(xDiff) >= 150) { + if (xDiff >= 0 && firstContact.x < Math.min(document.body.clientWidth * 0.25, 300)) + showSidebar(); + else if (xDiff < 0 && curX < 300) + hideSidebar(); + + firstContact = null; + } + }, { passive: true }); + + // Scroll sidebar to current active section + var activeSection = document.getElementById("sidebar").querySelector(".active"); + if (activeSection) { + // https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView + activeSection.scrollIntoView({ block: 'center' }); + } +})(); + +(function chapterNavigation() { + document.addEventListener('keydown', function (e) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { return; } + if (window.search && window.search.hasFocus()) { return; } + + switch (e.key) { + case 'ArrowRight': + e.preventDefault(); + var nextButton = document.querySelector('.nav-chapters.next'); + if (nextButton) { + window.location.href = nextButton.href; + } + break; + case 'ArrowLeft': + e.preventDefault(); + var previousButton = document.querySelector('.nav-chapters.previous'); + if (previousButton) { + window.location.href = previousButton.href; + } + break; + } + }); +})(); + +(function clipboard() { + var clipButtons = document.querySelectorAll('.clip-button'); + + function hideTooltip(elem) { + elem.firstChild.innerText = ""; + elem.className = 'fa fa-copy clip-button'; + } + + function showTooltip(elem, msg) { + elem.firstChild.innerText = msg; + elem.className = 'fa fa-copy tooltipped'; + } + + var clipboardSnippets = new ClipboardJS('.clip-button', { + text: function (trigger) { + hideTooltip(trigger); + let playground = trigger.closest("pre"); + return playground_text(playground); + } + }); + + Array.from(clipButtons).forEach(function (clipButton) { + clipButton.addEventListener('mouseout', function (e) { + hideTooltip(e.currentTarget); + }); + }); + + clipboardSnippets.on('success', function (e) { + e.clearSelection(); + showTooltip(e.trigger, "Copied!"); + }); + + clipboardSnippets.on('error', function (e) { + showTooltip(e.trigger, "Clipboard error!"); + }); +})(); + +(function scrollToTop () { + var menuTitle = document.querySelector('.menu-title'); + + menuTitle.addEventListener('click', function () { + document.scrollingElement.scrollTo({ top: 0, behavior: 'smooth' }); + }); +})(); + +(function controllMenu() { + var menu = document.getElementById('menu-bar'); + + (function controllPosition() { + var scrollTop = document.scrollingElement.scrollTop; + var prevScrollTop = scrollTop; + var minMenuY = -menu.clientHeight - 50; + // When the script loads, the page can be at any scroll (e.g. if you reforesh it). + menu.style.top = scrollTop + 'px'; + // Same as parseInt(menu.style.top.slice(0, -2), but faster + var topCache = menu.style.top.slice(0, -2); + menu.classList.remove('sticky'); + var stickyCache = false; // Same as menu.classList.contains('sticky'), but faster + document.addEventListener('scroll', function () { + scrollTop = Math.max(document.scrollingElement.scrollTop, 0); + // `null` means that it doesn't need to be updated + var nextSticky = null; + var nextTop = null; + var scrollDown = scrollTop > prevScrollTop; + var menuPosAbsoluteY = topCache - scrollTop; + if (scrollDown) { + nextSticky = false; + if (menuPosAbsoluteY > 0) { + nextTop = prevScrollTop; + } + } else { + if (menuPosAbsoluteY > 0) { + nextSticky = true; + } else if (menuPosAbsoluteY < minMenuY) { + nextTop = prevScrollTop + minMenuY; + } + } + if (nextSticky === true && stickyCache === false) { + menu.classList.add('sticky'); + stickyCache = true; + } else if (nextSticky === false && stickyCache === true) { + menu.classList.remove('sticky'); + stickyCache = false; + } + if (nextTop !== null) { + menu.style.top = nextTop + 'px'; + topCache = nextTop; + } + prevScrollTop = scrollTop; + }, { passive: true }); + })(); + (function controllBorder() { + menu.classList.remove('bordered'); + document.addEventListener('scroll', function () { + if (menu.offsetTop === 0) { + menu.classList.remove('bordered'); + } else { + menu.classList.add('bordered'); + } + }, { passive: true }); + })(); +})(); diff --git a/clipboard.min.js b/clipboard.min.js new file mode 100644 index 0000000000..02c549e35c --- /dev/null +++ b/clipboard.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v2.0.4 + * https://zenorocha.github.io/clipboard.js + * + * Licensed MIT © Zeno Rocha + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n .hljs { + color: var(--links); +} + +/* Menu Bar */ + +#menu-bar, +#menu-bar-hover-placeholder { + z-index: 101; + margin: auto calc(0px - var(--page-padding)); +} +#menu-bar { + position: relative; + display: flex; + flex-wrap: wrap; + background-color: var(--bg); + border-bottom-color: var(--bg); + border-bottom-width: 1px; + border-bottom-style: solid; +} +#menu-bar.sticky, +.js #menu-bar-hover-placeholder:hover + #menu-bar, +.js #menu-bar:hover, +.js.sidebar-visible #menu-bar { + position: -webkit-sticky; + position: sticky; + top: 0 !important; +} +#menu-bar-hover-placeholder { + position: sticky; + position: -webkit-sticky; + top: 0; + height: var(--menu-bar-height); +} +#menu-bar.bordered { + border-bottom-color: var(--table-border-color); +} +#menu-bar i, #menu-bar .icon-button { + position: relative; + padding: 0 8px; + z-index: 10; + line-height: var(--menu-bar-height); + cursor: pointer; + transition: color 0.5s; +} +@media only screen and (max-width: 420px) { + #menu-bar i, #menu-bar .icon-button { + padding: 0 5px; + } +} + +.icon-button { + border: none; + background: none; + padding: 0; + color: inherit; +} +.icon-button i { + margin: 0; +} + +.right-buttons { + margin: 0 15px; +} +.right-buttons a { + text-decoration: none; +} + +.left-buttons { + display: flex; + margin: 0 5px; +} +.no-js .left-buttons { + display: none; +} + +.menu-title { + display: inline-block; + font-weight: 200; + font-size: 2.4rem; + line-height: var(--menu-bar-height); + text-align: center; + margin: 0; + flex: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.js .menu-title { + cursor: pointer; +} + +.menu-bar, +.menu-bar:visited, +.nav-chapters, +.nav-chapters:visited, +.mobile-nav-chapters, +.mobile-nav-chapters:visited, +.menu-bar .icon-button, +.menu-bar a i { + color: var(--icons); +} + +.menu-bar i:hover, +.menu-bar .icon-button:hover, +.nav-chapters:hover, +.mobile-nav-chapters i:hover { + color: var(--icons-hover); +} + +/* Nav Icons */ + +.nav-chapters { + font-size: 2.5em; + text-align: center; + text-decoration: none; + + position: fixed; + top: 0; + bottom: 0; + margin: 0; + max-width: 150px; + min-width: 90px; + + display: flex; + justify-content: center; + align-content: center; + flex-direction: column; + + transition: color 0.5s, background-color 0.5s; +} + +.nav-chapters:hover { + text-decoration: none; + background-color: var(--theme-hover); + transition: background-color 0.15s, color 0.15s; +} + +.nav-wrapper { + margin-top: 50px; + display: none; +} + +.mobile-nav-chapters { + font-size: 2.5em; + text-align: center; + text-decoration: none; + width: 90px; + border-radius: 5px; + background-color: var(--sidebar-bg); +} + +.previous { + float: left; +} + +.next { + float: right; + right: var(--page-padding); +} + +@media only screen and (max-width: 1080px) { + .nav-wide-wrapper { display: none; } + .nav-wrapper { display: block; } +} + +@media only screen and (max-width: 1380px) { + .sidebar-visible .nav-wide-wrapper { display: none; } + .sidebar-visible .nav-wrapper { display: block; } +} + +/* Inline code */ + +:not(pre) > .hljs { + display: inline; + padding: 0.1em 0.3em; + border-radius: 3px; +} + +:not(pre):not(a) > .hljs { + color: var(--inline-code-color); + overflow-x: initial; +} + +a:hover > .hljs { + text-decoration: underline; +} + +pre { + position: relative; +} +pre > .buttons { + position: absolute; + z-index: 100; + right: 5px; + top: 5px; + + color: var(--sidebar-fg); + cursor: pointer; +} +pre > .buttons :hover { + color: var(--sidebar-active); +} +pre > .buttons i { + margin-left: 8px; +} +pre > .buttons button { + color: inherit; + background: transparent; + border: none; + cursor: inherit; +} +pre > .result { + margin-top: 10px; +} + +/* Search */ + +#searchresults a { + text-decoration: none; +} + +mark { + border-radius: 2px; + padding: 0 3px 1px 3px; + margin: 0 -3px -1px -3px; + background-color: var(--search-mark-bg); + transition: background-color 300ms linear; + cursor: pointer; +} + +mark.fade-out { + background-color: rgba(0,0,0,0) !important; + cursor: auto; +} + +.searchbar-outer { + margin-left: auto; + margin-right: auto; + max-width: var(--content-max-width); +} + +#searchbar { + width: 100%; + margin: 5px auto 0px auto; + padding: 10px 16px; + transition: box-shadow 300ms ease-in-out; + border: 1px solid var(--searchbar-border-color); + border-radius: 3px; + background-color: var(--searchbar-bg); + color: var(--searchbar-fg); +} +#searchbar:focus, +#searchbar.active { + box-shadow: 0 0 3px var(--searchbar-shadow-color); +} + +.searchresults-header { + font-weight: bold; + font-size: 1em; + padding: 18px 0 0 5px; + color: var(--searchresults-header-fg); +} + +.searchresults-outer { + margin-left: auto; + margin-right: auto; + max-width: var(--content-max-width); + border-bottom: 1px dashed var(--searchresults-border-color); +} + +ul#searchresults { + list-style: none; + padding-left: 20px; +} +ul#searchresults li { + margin: 10px 0px; + padding: 2px; + border-radius: 2px; +} +ul#searchresults li.focus { + background-color: var(--searchresults-li-bg); +} +ul#searchresults span.teaser { + display: block; + clear: both; + margin: 5px 0 0 20px; + font-size: 0.8em; +} +ul#searchresults span.teaser em { + font-weight: bold; + font-style: normal; +} + +/* Sidebar */ + +.sidebar { + position: fixed; + left: 0; + top: 0; + bottom: 0; + width: var(--sidebar-width); + font-size: 0.875em; + box-sizing: border-box; + -webkit-overflow-scrolling: touch; + overscroll-behavior-y: contain; + background-color: var(--sidebar-bg); + color: var(--sidebar-fg); +} +.sidebar-resizing { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} +.js:not(.sidebar-resizing) .sidebar { + transition: transform 0.3s; /* Animation: slide away */ +} +.sidebar code { + line-height: 2em; +} +.sidebar .sidebar-scrollbox { + overflow-y: auto; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + padding: 10px 10px; +} +.sidebar .sidebar-resize-handle { + position: absolute; + cursor: col-resize; + width: 0; + right: 0; + top: 0; + bottom: 0; +} +.js .sidebar .sidebar-resize-handle { + cursor: col-resize; + width: 5px; +} +.sidebar-hidden .sidebar { + transform: translateX(calc(0px - var(--sidebar-width))); +} +.sidebar::-webkit-scrollbar { + background: var(--sidebar-bg); +} +.sidebar::-webkit-scrollbar-thumb { + background: var(--scrollbar); +} + +.sidebar-visible .page-wrapper { + transform: translateX(var(--sidebar-width)); +} +@media only screen and (min-width: 620px) { + .sidebar-visible .page-wrapper { + transform: none; + margin-left: var(--sidebar-width); + } +} + +.chapter { + list-style: none outside none; + padding-left: 0; + line-height: 2.2em; +} + +.chapter ol { + width: 100%; +} + +.chapter li { + display: flex; + color: var(--sidebar-non-existant); +} +.chapter li a { + display: block; + padding: 0; + text-decoration: none; + color: var(--sidebar-fg); +} + +.chapter li a:hover { + color: var(--sidebar-active); +} + +.chapter li a.active { + color: var(--sidebar-active); +} + +.chapter li > a.toggle { + cursor: pointer; + display: block; + margin-left: auto; + padding: 0 10px; + user-select: none; + opacity: 0.68; +} + +.chapter li > a.toggle div { + transition: transform 0.5s; +} + +/* collapse the section */ +.chapter li:not(.expanded) + li > ol { + display: none; +} + +.chapter li.chapter-item { + line-height: 1.5em; + margin-top: 0.6em; +} + +.chapter li.expanded > a.toggle div { + transform: rotate(90deg); +} + +.spacer { + width: 100%; + height: 3px; + margin: 5px 0px; +} +.chapter .spacer { + background-color: var(--sidebar-spacer); +} + +@media (-moz-touch-enabled: 1), (pointer: coarse) { + .chapter li a { padding: 5px 0; } + .spacer { margin: 10px 0; } +} + +.section { + list-style: none outside none; + padding-left: 20px; + line-height: 1.9em; +} + +/* Theme Menu Popup */ + +.theme-popup { + position: absolute; + left: 10px; + top: var(--menu-bar-height); + z-index: 1000; + border-radius: 4px; + font-size: 0.7em; + color: var(--fg); + background: var(--theme-popup-bg); + border: 1px solid var(--theme-popup-border); + margin: 0; + padding: 0; + list-style: none; + display: none; +} +.theme-popup .default { + color: var(--icons); +} +.theme-popup .theme { + width: 100%; + border: 0; + margin: 0; + padding: 2px 10px; + line-height: 25px; + white-space: nowrap; + text-align: left; + cursor: pointer; + color: inherit; + background: inherit; + font-size: inherit; +} +.theme-popup .theme:hover { + background-color: var(--theme-hover); +} +.theme-popup .theme:hover:first-child, +.theme-popup .theme:hover:last-child { + border-top-left-radius: inherit; + border-top-right-radius: inherit; +} diff --git a/css/general.css b/css/general.css new file mode 100644 index 0000000000..63317b39bd --- /dev/null +++ b/css/general.css @@ -0,0 +1,181 @@ +/* Base styles and content styles */ + +@import 'variables.css'; + +:root { + /* Browser default font-size is 16px, this way 1 rem = 10px */ + font-size: 62.5%; +} + +html { + font-family: "Open Sans", sans-serif; + color: var(--fg); + background-color: var(--bg); + text-size-adjust: none; +} + +body { + margin: 0; + font-size: 1.6rem; + overflow-x: hidden; +} + +code { + font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace !important; + font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ +} + +/* Don't change font size in headers. */ +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + font-size: unset; +} + +.left { float: left; } +.right { float: right; } +.boring { opacity: 0.6; } +.hide-boring .boring { display: none; } +.hidden { display: none !important; } + +h2, h3 { margin-top: 2.5em; } +h4, h5 { margin-top: 2em; } + +.header + .header h3, +.header + .header h4, +.header + .header h5 { + margin-top: 1em; +} + +h1:target::before, +h2:target::before, +h3:target::before, +h4:target::before, +h5:target::before, +h6:target::before { + display: inline-block; + content: "»"; + margin-left: -30px; + width: 30px; +} + +/* This is broken on Safari as of version 14, but is fixed + in Safari Technology Preview 117 which I think will be Safari 14.2. + https://bugs.webkit.org/show_bug.cgi?id=218076 +*/ +:target { + scroll-margin-top: calc(var(--menu-bar-height) + 0.5em); +} + +.page { + outline: 0; + padding: 0 var(--page-padding); + margin-top: calc(0px - var(--menu-bar-height)); /* Compensate for the #menu-bar-hover-placeholder */ +} +.page-wrapper { + box-sizing: border-box; +} +.js:not(.sidebar-resizing) .page-wrapper { + transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */ +} + +.content { + overflow-y: auto; + padding: 0 15px; + padding-bottom: 50px; +} +.content main { + margin-left: auto; + margin-right: auto; + max-width: var(--content-max-width); +} +.content p { line-height: 1.45em; } +.content ol { line-height: 1.45em; } +.content ul { line-height: 1.45em; } +.content a { text-decoration: none; } +.content a:hover { text-decoration: underline; } +.content img, .content video { max-width: 100%; } +.content .header:link, +.content .header:visited { + color: var(--fg); +} +.content .header:link, +.content .header:visited:hover { + text-decoration: none; +} + +table { + margin: 0 auto; + border-collapse: collapse; +} +table td { + padding: 3px 20px; + border: 1px var(--table-border-color) solid; +} +table thead { + background: var(--table-header-bg); +} +table thead td { + font-weight: 700; + border: none; +} +table thead th { + padding: 3px 20px; +} +table thead tr { + border: 1px var(--table-header-bg) solid; +} +/* Alternate background colors for rows */ +table tbody tr:nth-child(2n) { + background: var(--table-alternate-bg); +} + + +blockquote { + margin: 20px 0; + padding: 0 20px; + color: var(--fg); + background-color: var(--quote-bg); + border-top: .1em solid var(--quote-border); + border-bottom: .1em solid var(--quote-border); +} + + +:not(.footnote-definition) + .footnote-definition, +.footnote-definition + :not(.footnote-definition) { + margin-top: 2em; +} +.footnote-definition { + font-size: 0.9em; + margin: 0.5em 0; +} +.footnote-definition p { + display: inline; +} + +.tooltiptext { + position: absolute; + visibility: hidden; + color: #fff; + background-color: #333; + transform: translateX(-50%); /* Center by moving tooltip 50% of its width left */ + left: -8px; /* Half of the width of the icon */ + top: -35px; + font-size: 0.8em; + text-align: center; + border-radius: 6px; + padding: 5px 8px; + margin: 5px; + z-index: 1000; +} +.tooltipped .tooltiptext { + visibility: visible; +} + +.chapter li.part-title { + color: var(--sidebar-fg); + margin: 5px 0px; + font-weight: bold; +} + +.result-no-output { + font-style: italic; +} diff --git a/css/print.css b/css/print.css new file mode 100644 index 0000000000..5e690f7559 --- /dev/null +++ b/css/print.css @@ -0,0 +1,54 @@ + +#sidebar, +#menu-bar, +.nav-chapters, +.mobile-nav-chapters { + display: none; +} + +#page-wrapper.page-wrapper { + transform: none; + margin-left: 0px; + overflow-y: initial; +} + +#content { + max-width: none; + margin: 0; + padding: 0; +} + +.page { + overflow-y: initial; +} + +code { + background-color: #666666; + border-radius: 5px; + + /* Force background to be printed in Chrome */ + -webkit-print-color-adjust: exact; +} + +pre > .buttons { + z-index: 2; +} + +a, a:visited, a:active, a:hover { + color: #4183c4; + text-decoration: none; +} + +h1, h2, h3, h4, h5, h6 { + page-break-inside: avoid; + page-break-after: avoid; +} + +pre, code { + page-break-inside: avoid; + white-space: pre-wrap; +} + +.fa { + display: none !important; +} diff --git a/css/variables.css b/css/variables.css new file mode 100644 index 0000000000..9ff64d6b3b --- /dev/null +++ b/css/variables.css @@ -0,0 +1,253 @@ + +/* Globals */ + +:root { + --sidebar-width: 300px; + --page-padding: 15px; + --content-max-width: 750px; + --menu-bar-height: 50px; +} + +/* Themes */ + +.ayu { + --bg: hsl(210, 25%, 8%); + --fg: #c5c5c5; + + --sidebar-bg: #14191f; + --sidebar-fg: #c8c9db; + --sidebar-non-existant: #5c6773; + --sidebar-active: #ffb454; + --sidebar-spacer: #2d334f; + + --scrollbar: var(--sidebar-fg); + + --icons: #737480; + --icons-hover: #b7b9cc; + + --links: #0096cf; + + --inline-code-color: #ffb454; + + --theme-popup-bg: #14191f; + --theme-popup-border: #5c6773; + --theme-hover: #191f26; + + --quote-bg: hsl(226, 15%, 17%); + --quote-border: hsl(226, 15%, 22%); + + --table-border-color: hsl(210, 25%, 13%); + --table-header-bg: hsl(210, 25%, 28%); + --table-alternate-bg: hsl(210, 25%, 11%); + + --searchbar-border-color: #848484; + --searchbar-bg: #424242; + --searchbar-fg: #fff; + --searchbar-shadow-color: #d4c89f; + --searchresults-header-fg: #666; + --searchresults-border-color: #888; + --searchresults-li-bg: #252932; + --search-mark-bg: #e3b171; +} + +.coal { + --bg: hsl(200, 7%, 8%); + --fg: #98a3ad; + + --sidebar-bg: #292c2f; + --sidebar-fg: #a1adb8; + --sidebar-non-existant: #505254; + --sidebar-active: #3473ad; + --sidebar-spacer: #393939; + + --scrollbar: var(--sidebar-fg); + + --icons: #43484d; + --icons-hover: #b3c0cc; + + --links: #2b79a2; + + --inline-code-color: #c5c8c6;; + + --theme-popup-bg: #141617; + --theme-popup-border: #43484d; + --theme-hover: #1f2124; + + --quote-bg: hsl(234, 21%, 18%); + --quote-border: hsl(234, 21%, 23%); + + --table-border-color: hsl(200, 7%, 13%); + --table-header-bg: hsl(200, 7%, 28%); + --table-alternate-bg: hsl(200, 7%, 11%); + + --searchbar-border-color: #aaa; + --searchbar-bg: #b7b7b7; + --searchbar-fg: #000; + --searchbar-shadow-color: #aaa; + --searchresults-header-fg: #666; + --searchresults-border-color: #98a3ad; + --searchresults-li-bg: #2b2b2f; + --search-mark-bg: #355c7d; +} + +.light { + --bg: hsl(0, 0%, 100%); + --fg: hsl(0, 0%, 0%); + + --sidebar-bg: #fafafa; + --sidebar-fg: hsl(0, 0%, 0%); + --sidebar-non-existant: #aaaaaa; + --sidebar-active: #1f1fff; + --sidebar-spacer: #f4f4f4; + + --scrollbar: #8F8F8F; + + --icons: #747474; + --icons-hover: #000000; + + --links: #20609f; + + --inline-code-color: #301900; + + --theme-popup-bg: #fafafa; + --theme-popup-border: #cccccc; + --theme-hover: #e6e6e6; + + --quote-bg: hsl(197, 37%, 96%); + --quote-border: hsl(197, 37%, 91%); + + --table-border-color: hsl(0, 0%, 95%); + --table-header-bg: hsl(0, 0%, 80%); + --table-alternate-bg: hsl(0, 0%, 97%); + + --searchbar-border-color: #aaa; + --searchbar-bg: #fafafa; + --searchbar-fg: #000; + --searchbar-shadow-color: #aaa; + --searchresults-header-fg: #666; + --searchresults-border-color: #888; + --searchresults-li-bg: #e4f2fe; + --search-mark-bg: #a2cff5; +} + +.navy { + --bg: hsl(226, 23%, 11%); + --fg: #bcbdd0; + + --sidebar-bg: #282d3f; + --sidebar-fg: #c8c9db; + --sidebar-non-existant: #505274; + --sidebar-active: #2b79a2; + --sidebar-spacer: #2d334f; + + --scrollbar: var(--sidebar-fg); + + --icons: #737480; + --icons-hover: #b7b9cc; + + --links: #2b79a2; + + --inline-code-color: #c5c8c6;; + + --theme-popup-bg: #161923; + --theme-popup-border: #737480; + --theme-hover: #282e40; + + --quote-bg: hsl(226, 15%, 17%); + --quote-border: hsl(226, 15%, 22%); + + --table-border-color: hsl(226, 23%, 16%); + --table-header-bg: hsl(226, 23%, 31%); + --table-alternate-bg: hsl(226, 23%, 14%); + + --searchbar-border-color: #aaa; + --searchbar-bg: #aeaec6; + --searchbar-fg: #000; + --searchbar-shadow-color: #aaa; + --searchresults-header-fg: #5f5f71; + --searchresults-border-color: #5c5c68; + --searchresults-li-bg: #242430; + --search-mark-bg: #a2cff5; +} + +.rust { + --bg: hsl(60, 9%, 87%); + --fg: #262625; + + --sidebar-bg: #3b2e2a; + --sidebar-fg: #c8c9db; + --sidebar-non-existant: #505254; + --sidebar-active: #e69f67; + --sidebar-spacer: #45373a; + + --scrollbar: var(--sidebar-fg); + + --icons: #737480; + --icons-hover: #262625; + + --links: #2b79a2; + + --inline-code-color: #6e6b5e; + + --theme-popup-bg: #e1e1db; + --theme-popup-border: #b38f6b; + --theme-hover: #99908a; + + --quote-bg: hsl(60, 5%, 75%); + --quote-border: hsl(60, 5%, 70%); + + --table-border-color: hsl(60, 9%, 82%); + --table-header-bg: #b3a497; + --table-alternate-bg: hsl(60, 9%, 84%); + + --searchbar-border-color: #aaa; + --searchbar-bg: #fafafa; + --searchbar-fg: #000; + --searchbar-shadow-color: #aaa; + --searchresults-header-fg: #666; + --searchresults-border-color: #888; + --searchresults-li-bg: #dec2a2; + --search-mark-bg: #e69f67; +} + +@media (prefers-color-scheme: dark) { + .light.no-js { + --bg: hsl(200, 7%, 8%); + --fg: #98a3ad; + + --sidebar-bg: #292c2f; + --sidebar-fg: #a1adb8; + --sidebar-non-existant: #505254; + --sidebar-active: #3473ad; + --sidebar-spacer: #393939; + + --scrollbar: var(--sidebar-fg); + + --icons: #43484d; + --icons-hover: #b3c0cc; + + --links: #2b79a2; + + --inline-code-color: #c5c8c6;; + + --theme-popup-bg: #141617; + --theme-popup-border: #43484d; + --theme-hover: #1f2124; + + --quote-bg: hsl(234, 21%, 18%); + --quote-border: hsl(234, 21%, 23%); + + --table-border-color: hsl(200, 7%, 13%); + --table-header-bg: hsl(200, 7%, 28%); + --table-alternate-bg: hsl(200, 7%, 11%); + + --searchbar-border-color: #aaa; + --searchbar-bg: #b7b7b7; + --searchbar-fg: #000; + --searchbar-shadow-color: #aaa; + --searchresults-header-fg: #666; + --searchresults-border-color: #98a3ad; + --searchresults-li-bg: #2b2b2f; + --search-mark-bg: #355c7d; + } +} diff --git a/elasticlunr.min.js b/elasticlunr.min.js new file mode 100644 index 0000000000..94b20dd2ef --- /dev/null +++ b/elasticlunr.min.js @@ -0,0 +1,10 @@ +/** + * elasticlunr - http://weixsong.github.io + * Lightweight full-text search engine in Javascript for browser search and offline search. - 0.9.5 + * + * Copyright (C) 2017 Oliver Nightingale + * Copyright (C) 2017 Wei Song + * MIT Licensed + * @license + */ +!function(){function e(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.9.5",lunr=t,t.utils={},t.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),t.utils.toString=function(e){return void 0===e||null===e?"":e.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},t.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);-1!==n&&(this.events[e].splice(n,1),0==this.events[e].length&&delete this.events[e])}},t.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)},this)}},t.EventEmitter.prototype.hasHandler=function(e){return e in this.events},t.tokenizer=function(e){if(!arguments.length||null===e||void 0===e)return[];if(Array.isArray(e)){var n=e.filter(function(e){return null===e||void 0===e?!1:!0});n=n.map(function(e){return t.utils.toString(e).toLowerCase()});var i=[];return n.forEach(function(e){var n=e.split(t.tokenizer.seperator);i=i.concat(n)},this),i}return e.toString().trim().toLowerCase().split(t.tokenizer.seperator)},t.tokenizer.defaultSeperator=/[\s\-]+/,t.tokenizer.seperator=t.tokenizer.defaultSeperator,t.tokenizer.setSeperator=function(e){null!==e&&void 0!==e&&"object"==typeof e&&(t.tokenizer.seperator=e)},t.tokenizer.resetSeperator=function(){t.tokenizer.seperator=t.tokenizer.defaultSeperator},t.tokenizer.getSeperator=function(){return t.tokenizer.seperator},t.Pipeline=function(){this._queue=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in t.Pipeline.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[n]=e},t.Pipeline.getRegisteredFunction=function(e){return e in t.Pipeline.registeredFunctions!=!0?null:t.Pipeline.registeredFunctions[e]},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.getRegisteredFunction(e);if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i+1,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i,0,n)},t.Pipeline.prototype.remove=function(e){var t=this._queue.indexOf(e);-1!==t&&this._queue.splice(t,1)},t.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,i=this._queue.length,o=0;n>o;o++){for(var r=e[o],s=0;i>s&&(r=this._queue[s](r,o,e),void 0!==r&&null!==r);s++);void 0!==r&&null!==r&&t.push(r)}return t},t.Pipeline.prototype.reset=function(){this._queue=[]},t.Pipeline.prototype.get=function(){return this._queue},t.Pipeline.prototype.toJSON=function(){return this._queue.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.DocumentStore,this.index={},this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},t.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;n._fields=e.fields,n._ref=e.ref,n.documentStore=t.DocumentStore.load(e.documentStore),n.pipeline=t.Pipeline.load(e.pipeline),n.index={};for(var i in e.index)n.index[i]=t.InvertedIndex.load(e.index[i]);return n},t.Index.prototype.addField=function(e){return this._fields.push(e),this.index[e]=new t.InvertedIndex,this},t.Index.prototype.setRef=function(e){return this._ref=e,this},t.Index.prototype.saveDocument=function(e){return this.documentStore=new t.DocumentStore(e),this},t.Index.prototype.addDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.addDoc(i,e),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));this.documentStore.addFieldLength(i,n,o.length);var r={};o.forEach(function(e){e in r?r[e]+=1:r[e]=1},this);for(var s in r){var u=r[s];u=Math.sqrt(u),this.index[n].addToken(s,{ref:i,tf:u})}},this),n&&this.eventEmitter.emit("add",e,this)}},t.Index.prototype.removeDocByRef=function(e){if(e&&this.documentStore.isDocStored()!==!1&&this.documentStore.hasDoc(e)){var t=this.documentStore.getDoc(e);this.removeDoc(t,!1)}},t.Index.prototype.removeDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.hasDoc(i)&&(this.documentStore.removeDoc(i),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));o.forEach(function(e){this.index[n].removeToken(e,i)},this)},this),n&&this.eventEmitter.emit("remove",e,this))}},t.Index.prototype.updateDoc=function(e,t){var t=void 0===t?!0:t;this.removeDocByRef(e[this._ref],!1),this.addDoc(e,!1),t&&this.eventEmitter.emit("update",e,this)},t.Index.prototype.idf=function(e,t){var n="@"+t+"/"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,n))return this._idfCache[n];var i=this.index[t].getDocFreq(e),o=1+Math.log(this.documentStore.length/(i+1));return this._idfCache[n]=o,o},t.Index.prototype.getFields=function(){return this._fields.slice()},t.Index.prototype.search=function(e,n){if(!e)return[];e="string"==typeof e?{any:e}:JSON.parse(JSON.stringify(e));var i=null;null!=n&&(i=JSON.stringify(n));for(var o=new t.Configuration(i,this.getFields()).get(),r={},s=Object.keys(e),u=0;u0&&t.push(e);for(var i in n)"docs"!==i&&"df"!==i&&this.expandToken(e+i,t,n[i]);return t},t.InvertedIndex.prototype.toJSON=function(){return{root:this.root}},t.Configuration=function(e,n){var e=e||"";if(void 0==n||null==n)throw new Error("fields should not be null");this.config={};var i;try{i=JSON.parse(e),this.buildUserConfig(i,n)}catch(o){t.utils.warn("user configuration parse failed, will use default configuration"),this.buildDefaultConfig(n)}},t.Configuration.prototype.buildDefaultConfig=function(e){this.reset(),e.forEach(function(e){this.config[e]={boost:1,bool:"OR",expand:!1}},this)},t.Configuration.prototype.buildUserConfig=function(e,n){var i="OR",o=!1;if(this.reset(),"bool"in e&&(i=e.bool||i),"expand"in e&&(o=e.expand||o),"fields"in e)for(var r in e.fields)if(n.indexOf(r)>-1){var s=e.fields[r],u=o;void 0!=s.expand&&(u=s.expand),this.config[r]={boost:s.boost||0===s.boost?s.boost:1,bool:s.bool||i,expand:u}}else t.utils.warn("field name in user configuration not found in index instance fields");else this.addAllFields2UserConfig(i,o,n)},t.Configuration.prototype.addAllFields2UserConfig=function(e,t,n){n.forEach(function(n){this.config[n]={boost:1,bool:e,expand:t}},this)},t.Configuration.prototype.get=function(){return this.config},t.Configuration.prototype.reset=function(){this.config={}},lunr.SortedSet=function(){this.length=0,this.elements=[]},lunr.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},lunr.SortedSet.prototype.add=function(){var e,t;for(e=0;e1;){if(r===e)return o;e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o]}return r===e?o:-1},lunr.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;)e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o];return r>e?o:e>r?o+1:void 0},lunr.SortedSet.prototype.intersect=function(e){for(var t=new lunr.SortedSet,n=0,i=0,o=this.length,r=e.length,s=this.elements,u=e.elements;;){if(n>o-1||i>r-1)break;s[n]!==u[i]?s[n]u[i]&&i++:(t.add(s[n]),n++,i++)}return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){var t,n,i;this.length>=e.length?(t=this,n=e):(t=e,n=this),i=t.clone();for(var o=0,r=n.toArray();oList of all items in this crate
\ No newline at end of file diff --git a/firmware/ad9959/enum.Error.html b/firmware/ad9959/enum.Error.html new file mode 100644 index 0000000000..32ba1b7726 --- /dev/null +++ b/firmware/ad9959/enum.Error.html @@ -0,0 +1,18 @@ +Error in ad9959 - Rust

Enum ad9959::Error

source ·
pub enum Error {
+    Interface,
+    Check,
+    Bounds,
+    Pin,
+    Frequency,
+}
Expand description

Possible errors generated by the AD9959 driver.

+

Variants§

§

Interface

§

Check

§

Bounds

§

Pin

§

Frequency

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/ad9959/enum.Mode.html b/firmware/ad9959/enum.Mode.html new file mode 100644 index 0000000000..9c1d32ef64 --- /dev/null +++ b/firmware/ad9959/enum.Mode.html @@ -0,0 +1,21 @@ +Mode in ad9959 - Rust

Enum ad9959::Mode

source ·
#[repr(u8)]
+pub enum Mode {
+    SingleBitTwoWire,
+    SingleBitThreeWire,
+    TwoBitSerial,
+    FourBitSerial,
+}
Expand description

Indicates various communication modes of the DDS. The value of this enumeration is equivalent to +the configuration bits of the DDS CSR register.

+

Variants§

§

SingleBitTwoWire

§

SingleBitThreeWire

§

TwoBitSerial

§

FourBitSerial

Trait Implementations§

source§

impl Clone for Mode

source§

fn clone(&self) -> Mode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<Mode> for Mode

source§

fn eq(&self, other: &Mode) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl Copy for Mode

source§

impl Eq for Mode

source§

impl StructuralEq for Mode

source§

impl StructuralPartialEq for Mode

Auto Trait Implementations§

§

impl RefUnwindSafe for Mode

§

impl Send for Mode

§

impl Sync for Mode

§

impl Unpin for Mode

§

impl UnwindSafe for Mode

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/ad9959/enum.Register.html b/firmware/ad9959/enum.Register.html new file mode 100644 index 0000000000..203e66d0de --- /dev/null +++ b/firmware/ad9959/enum.Register.html @@ -0,0 +1,40 @@ +Register in ad9959 - Rust

Enum ad9959::Register

source ·
#[repr(u8)]
+pub enum Register {
+
Show 25 variants CSR, + FR1, + FR2, + CFR, + CFTW0, + CPOW0, + ACR, + LSRR, + RDW, + FDW, + CW1, + CW2, + CW3, + CW4, + CW5, + CW6, + CW7, + CW8, + CW9, + CW10, + CW11, + CW12, + CW13, + CW14, + CW15, +
}
Expand description

The configuration registers within the AD9959 DDS device. The values of each register are +equivalent to the address.

+

Variants§

§

CSR

§

FR1

§

FR2

§

CFR

§

CFTW0

§

CPOW0

§

ACR

§

LSRR

§

RDW

§

FDW

§

CW1

§

CW2

§

CW3

§

CW4

§

CW5

§

CW6

§

CW7

§

CW8

§

CW9

§

CW10

§

CW11

§

CW12

§

CW13

§

CW14

§

CW15

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/ad9959/index.html b/firmware/ad9959/index.html new file mode 100644 index 0000000000..1749fcf01b --- /dev/null +++ b/firmware/ad9959/index.html @@ -0,0 +1,3 @@ +ad9959 - Rust

Crate ad9959

source ·

Structs

  • A device driver for the AD9959 direct digital synthesis (DDS) chip.
  • Specifies an output channel of the AD9959 DDS chip.
  • Represents a means of serializing a DDS profile for writing to a stream.

Enums

  • Possible errors generated by the AD9959 driver.
  • Indicates various communication modes of the DDS. The value of this enumeration is equivalent to +the configuration bits of the DDS CSR register.
  • The configuration registers within the AD9959 DDS device. The values of each register are +equivalent to the address.

Traits

  • A trait that allows a HAL to provide a means of communicating with the AD9959.
\ No newline at end of file diff --git a/firmware/ad9959/sidebar-items.js b/firmware/ad9959/sidebar-items.js new file mode 100644 index 0000000000..378647b8d4 --- /dev/null +++ b/firmware/ad9959/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["Error","Mode","Register"],"struct":["Ad9959","Channel","ProfileSerializer"],"trait":["Interface"]}; \ No newline at end of file diff --git a/firmware/ad9959/struct.Ad9959.html b/firmware/ad9959/struct.Ad9959.html new file mode 100644 index 0000000000..7abd521488 --- /dev/null +++ b/firmware/ad9959/struct.Ad9959.html @@ -0,0 +1,112 @@ +Ad9959 in ad9959 - Rust

Struct ad9959::Ad9959

source ·
pub struct Ad9959<INTERFACE> { /* private fields */ }
Expand description

A device driver for the AD9959 direct digital synthesis (DDS) chip.

+

This chip provides four independently controllable digital-to-analog output sinusoids with +configurable phase, amplitude, and frequency. All channels are inherently synchronized as they +are derived off a common system clock.

+

The chip contains a configurable PLL and supports system clock frequencies up to 500 MHz.

+

The chip supports a number of serial interfaces to improve data throughput, including normal, +dual, and quad SPI configurations.

+

Implementations§

source§

impl<I: Interface> Ad9959<I>

source

pub fn new( + interface: I, + reset_pin: impl OutputPin, + io_update: &mut impl OutputPin, + delay: &mut impl DelayUs<u8>, + desired_mode: Mode, + clock_frequency: f32, + multiplier: u8 +) -> Result<Self, Error>

Construct and initialize the DDS.

+

Args:

+
    +
  • interface - An interface to the DDS.
  • +
  • reset_pin - A pin connected to the DDS reset input.
  • +
  • io_update - A pin connected to the DDS io_update input.
  • +
  • delay - A delay implementation for blocking operation for specific amounts of time.
  • +
  • desired_mode - The desired communication mode of the interface to the DDS.
  • +
  • clock_frequency - The clock frequency of the reference clock input.
  • +
  • multiplier - The desired clock multiplier for the system clock. This multiplies +clock_frequency to generate the system clock.
  • +
+
source

pub fn get_reference_clock_frequency(&self) -> f32

Get the current reference clock frequency in Hz.

+
source

pub fn get_reference_clock_multiplier(&mut self) -> Result<u8, Error>

Get the current reference clock multiplier.

+
source

pub fn self_test(&mut self) -> Result<bool, Error>

Perform a self-test of the communication interface.

+

Note: +This modifies the existing channel enables. They are restored upon exit.

+

Returns: +True if the self test succeeded. False otherwise.

+
source

pub fn set_phase( + &mut self, + channel: Channel, + phase_turns: f32 +) -> Result<f32, Error>

Configure the phase of a specified channel.

+

Arguments:

+
    +
  • channel - The channel to configure the frequency of.
  • +
  • phase_turns - The desired phase offset in turns.
  • +
+

Returns: +The actual programmed phase offset of the channel in turns.

+
source

pub fn get_phase(&mut self, channel: Channel) -> Result<f32, Error>

Get the current phase of a specified channel.

+

Args:

+
    +
  • channel - The channel to get the phase of.
  • +
+

Returns: +The phase of the channel in turns.

+
source

pub fn set_amplitude( + &mut self, + channel: Channel, + amplitude: f32 +) -> Result<f32, Error>

Configure the amplitude of a specified channel.

+

Arguments:

+
    +
  • channel - The channel to configure the frequency of.
  • +
  • amplitude - A normalized amplitude setting [0, 1].
  • +
+

Returns: +The actual normalized amplitude of the channel relative to full-scale range.

+
source

pub fn get_amplitude(&mut self, channel: Channel) -> Result<f32, Error>

Get the configured amplitude of a channel.

+

Args:

+
    +
  • channel - The channel to get the amplitude of.
  • +
+

Returns: +The normalized amplitude of the channel.

+
source

pub fn set_frequency( + &mut self, + channel: Channel, + frequency: f32 +) -> Result<f32, Error>

Configure the frequency of a specified channel.

+

Arguments:

+
    +
  • channel - The channel to configure the frequency of.
  • +
  • frequency - The desired output frequency in Hz.
  • +
+

Returns: +The actual programmed frequency of the channel.

+
source

pub fn get_frequency(&mut self, channel: Channel) -> Result<f32, Error>

Get the frequency of a channel.

+

Arguments:

+
    +
  • channel - The channel to get the frequency of.
  • +
+

Returns: +The frequency of the channel in Hz.

+
source

pub fn freeze(self) -> (I, Mode)

Finalize DDS configuration

+
Note
+

This is intended for when the DDS profiles will be written as a stream of data to the DDS.

+
Returns
+

(i, mode) where i is the interface to the DDS and mode is the frozen Mode.

+

Auto Trait Implementations§

§

impl<INTERFACE> RefUnwindSafe for Ad9959<INTERFACE>where + INTERFACE: RefUnwindSafe,

§

impl<INTERFACE> Send for Ad9959<INTERFACE>where + INTERFACE: Send,

§

impl<INTERFACE> Sync for Ad9959<INTERFACE>where + INTERFACE: Sync,

§

impl<INTERFACE> Unpin for Ad9959<INTERFACE>where + INTERFACE: Unpin,

§

impl<INTERFACE> UnwindSafe for Ad9959<INTERFACE>where + INTERFACE: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/ad9959/struct.Channel.html b/firmware/ad9959/struct.Channel.html new file mode 100644 index 0000000000..d21cef9b66 --- /dev/null +++ b/firmware/ad9959/struct.Channel.html @@ -0,0 +1,78 @@ +Channel in ad9959 - Rust

Struct ad9959::Channel

source ·
pub struct Channel(_);
Expand description

Specifies an output channel of the AD9959 DDS chip.

+

Implementations§

source§

impl Channel

source

pub const ONE: Self = _

source

pub const TWO: Self = _

source

pub const THREE: Self = _

source

pub const FOUR: Self = _

source

pub const ALL: Self = _

source§

impl Channel

source

pub const fn empty() -> Self

Returns an empty set of flags.

+
source

pub const fn all() -> Self

Returns the set containing all flags.

+
source

pub const fn bits(&self) -> u8

Returns the raw value of the flags currently stored.

+
source

pub const fn from_bits(bits: u8) -> Option<Self>

Convert from underlying bit representation, unless that +representation contains bits that do not correspond to a flag.

+
source

pub const fn from_bits_truncate(bits: u8) -> Self

Convert from underlying bit representation, dropping any bits +that do not correspond to flags.

+
source

pub const fn from_bits_retain(bits: u8) -> Self

Convert from underlying bit representation, preserving all +bits (even those not corresponding to a defined flag).

+
source

pub fn from_name(name: &str) -> Option<Self>

Get the value for a flag from its stringified name.

+

Names are case-sensitive, so must correspond exactly to +the identifier given to the flag.

+
source

pub const fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

+
source

pub const fn is_all(&self) -> bool

Returns true if all flags are currently set.

+
source

pub const fn intersects(&self, other: Self) -> bool

Returns true if there are flags common to both self and other.

+
source

pub const fn contains(&self, other: Self) -> bool

Returns true if all of the flags in other are contained within self.

+
source

pub fn insert(&mut self, other: Self)

Inserts the specified flags in-place.

+

This method is equivalent to union.

+
source

pub fn remove(&mut self, other: Self)

Removes the specified flags in-place.

+

This method is equivalent to difference.

+
source

pub fn toggle(&mut self, other: Self)

Toggles the specified flags in-place.

+

This method is equivalent to symmetric_difference.

+
source

pub fn set(&mut self, other: Self, value: bool)

Inserts or removes the specified flags depending on the passed value.

+
source

pub const fn intersection(self, other: Self) -> Self

Returns the intersection between the flags in self and +other.

+

Calculating self bitwise and (&) other, including +any bits that don’t correspond to a defined flag.

+
source

pub const fn union(self, other: Self) -> Self

Returns the union of between the flags in self and other.

+

Calculates self bitwise or (|) other, including +any bits that don’t correspond to a defined flag.

+
source

pub const fn difference(self, other: Self) -> Self

Returns the difference between the flags in self and other.

+

Calculates self bitwise and (&!) the bitwise negation of other, +including any bits that don’t correspond to a defined flag.

+

This method is not equivalent to a & !b when there are bits set that +don’t correspond to a defined flag. The ! operator will unset any +bits that don’t correspond to a flag, so they’ll always be unset by a &! b, +but respected by a.difference(b).

+
source

pub const fn symmetric_difference(self, other: Self) -> Self

Returns the symmetric difference between the flags +in self and other.

+

Calculates self bitwise exclusive or (^) other, +including any bits that don’t correspond to a defined flag.

+
source

pub const fn complement(self) -> Self

Returns the complement of this set of flags.

+

Calculates the bitwise negation (!) of self, +unsetting any bits that don’t correspond to a defined flag.

+
source§

impl Channel

source

pub const fn iter(&self) -> Iter<Channel>

Iterate over enabled flag values.

+
source

pub const fn iter_names(&self) -> IterNames<Channel>

Iterate over enabled flag values with their stringified names.

+

Trait Implementations§

source§

impl Binary for Channel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd<Channel> for Channel

source§

fn bitand(self, other: Self) -> Self

Returns the intersection between the two sets of flags.

+
§

type Output = Channel

The resulting type after applying the & operator.
source§

impl BitAndAssign<Channel> for Channel

source§

fn bitand_assign(&mut self, other: Self)

Disables all flags disabled in the set.

+
source§

impl BitOr<Channel> for Channel

source§

fn bitor(self, other: Channel) -> Self

Returns the union of the two sets of flags.

+
§

type Output = Channel

The resulting type after applying the | operator.
source§

impl BitOrAssign<Channel> for Channel

source§

fn bitor_assign(&mut self, other: Self)

Adds the set of flags.

+
source§

impl BitXor<Channel> for Channel

source§

fn bitxor(self, other: Self) -> Self

Returns the left flags, but with all the right flags toggled.

+
§

type Output = Channel

The resulting type after applying the ^ operator.
source§

impl BitXorAssign<Channel> for Channel

source§

fn bitxor_assign(&mut self, other: Self)

Toggles the set of flags.

+
source§

impl Extend<Channel> for Channel

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for Channel

source§

const FLAGS: &'static [Flag<Channel>] = _

The set of available flags and their names.
§

type Bits = u8

The underlying storage type.
source§

fn bits(&self) -> u8

Returns the raw value of the flags currently stored.
source§

fn from_bits_retain(bits: u8) -> Channel

Convert from underlying bit representation, preserving all +bits (even those not corresponding to a defined flag).
source§

fn empty() -> Self

Returns an empty set of flags.
source§

fn all() -> Self

Returns the set containing all flags.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from underlying bit representation, unless that +representation contains bits that do not correspond to a flag. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from underlying bit representation, dropping any bits +that do not correspond to flags. Read more
source§

fn from_name(name: &str) -> Option<Self>

Get the flag for a particular name.
source§

fn iter(&self) -> Iter<Self>

Iterate over enabled flag values.
source§

fn iter_names(&self) -> IterNames<Self>

Iterate over the raw names and bits for enabled flag values.
source§

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.
source§

fn is_all(&self) -> bool

Returns true if all flags are currently set.
source§

fn intersects(&self, other: Self) -> boolwhere + Self: Sized,

Returns true if there are flags common to both self and other.
source§

fn contains(&self, other: Self) -> boolwhere + Self: Sized,

Returns true if all of the flags in other are contained within self.
source§

fn insert(&mut self, other: Self)where + Self: Sized,

Inserts the specified flags in-place. Read more
source§

fn remove(&mut self, other: Self)where + Self: Sized,

Removes the specified flags in-place. Read more
source§

fn toggle(&mut self, other: Self)where + Self: Sized,

Toggles the specified flags in-place. Read more
source§

fn set(&mut self, other: Self, value: bool)where + Self: Sized,

Inserts or removes the specified flags depending on the passed value.
source§

fn intersection(self, other: Self) -> Self

Returns the intersection between the flags in self and other.
source§

fn union(self, other: Self) -> Self

Returns the union of between the flags in self and other.
source§

fn difference(self, other: Self) -> Self

Returns the difference between the flags in self and other.
source§

fn symmetric_difference(self, other: Self) -> Self

Returns the symmetric difference between the flags +in self and other.
source§

fn complement(self) -> Self

Returns the complement of this set of flags.
source§

impl FromIterator<Channel> for Channel

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

Creates a value from an iterator. Read more
source§

impl IntoIterator for Channel

§

type Item = Channel

The type of the elements being iterated over.
§

type IntoIter = Iter<Channel>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for Channel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for Channel

source§

fn not(self) -> Self

Returns the complement of this set of flags.

+
§

type Output = Channel

The resulting type after applying the ! operator.
source§

impl Octal for Channel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PublicFlags for Channel

§

type Primitive = u8

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub<Channel> for Channel

source§

fn sub(self, other: Self) -> Self

Returns the set difference of the two sets of flags.

+
§

type Output = Channel

The resulting type after applying the - operator.
source§

impl SubAssign<Channel> for Channel

source§

fn sub_assign(&mut self, other: Self)

Disables all flags enabled in the set.

+
source§

impl UpperHex for Channel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<B> BitFlags for Bwhere + B: Flags,

§

type Iter = Iter<B>

👎Deprecated: use the Flags trait instead
An iterator over enabled flags in an instance of the type.
§

type IterNames = IterNames<B>

👎Deprecated: use the Flags trait instead
An iterator over the raw names and bits for enabled flags in an instance of the type.
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/ad9959/struct.ProfileSerializer.html b/firmware/ad9959/struct.ProfileSerializer.html new file mode 100644 index 0000000000..5f72c5406a --- /dev/null +++ b/firmware/ad9959/struct.ProfileSerializer.html @@ -0,0 +1,39 @@ +ProfileSerializer in ad9959 - Rust
pub struct ProfileSerializer { /* private fields */ }
Expand description

Represents a means of serializing a DDS profile for writing to a stream.

+

Implementations§

source§

impl ProfileSerializer

source

pub fn new(mode: Mode) -> Self

Construct a new serializer.

+
Args
+
    +
  • mode - The communication mode of the DDS.
  • +
+
source

pub fn update_channels( + &mut self, + channels: Channel, + ftw: Option<u32>, + pow: Option<u16>, + acr: Option<u32> +)

Update a number of channels with the requested profile.

+
Args
+
    +
  • channels - A set of channels to apply the configuration to.
  • +
  • ftw - If provided, indicates a frequency tuning word for the channels.
  • +
  • pow - If provided, indicates a phase offset word for the channels.
  • +
  • acr - If provided, indicates the amplitude control register for the channels. The ACR +should be stored in the 3 LSB of the word. Note that if amplitude scaling is to be used, +the “Amplitude multiplier enable” bit must be set.
  • +
+
source

pub fn finalize(&mut self) -> &[u32]

Get the serialized profile as a slice of 32-bit words.

+
Note
+

The serialized profile will be padded to the next 32-bit word boundary by adding dummy +writes to the CSR or LSRR registers.

+
Returns
+

A slice of u32 words representing the serialized profile.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/ad9959/trait.Interface.html b/firmware/ad9959/trait.Interface.html new file mode 100644 index 0000000000..aadec729b5 --- /dev/null +++ b/firmware/ad9959/trait.Interface.html @@ -0,0 +1,9 @@ +Interface in ad9959 - Rust

Trait ad9959::Interface

source ·
pub trait Interface {
+    type Error;
+
+    // Required methods
+    fn configure_mode(&mut self, mode: Mode) -> Result<(), Self::Error>;
+    fn write(&mut self, addr: u8, data: &[u8]) -> Result<(), Self::Error>;
+    fn read(&mut self, addr: u8, dest: &mut [u8]) -> Result<(), Self::Error>;
+}
Expand description

A trait that allows a HAL to provide a means of communicating with the AD9959.

+

Required Associated Types§

Required Methods§

source

fn configure_mode(&mut self, mode: Mode) -> Result<(), Self::Error>

source

fn write(&mut self, addr: u8, data: &[u8]) -> Result<(), Self::Error>

source

fn read(&mut self, addr: u8, dest: &mut [u8]) -> Result<(), Self::Error>

Implementors§

\ No newline at end of file diff --git a/firmware/crates.js b/firmware/crates.js new file mode 100644 index 0000000000..36793fffe3 --- /dev/null +++ b/firmware/crates.js @@ -0,0 +1 @@ +window.ALL_CRATES = ["ad9959","dual_iir","idsp","lockin","miniconf","stabilizer"]; \ No newline at end of file diff --git a/firmware/dual_iir/all.html b/firmware/dual_iir/all.html new file mode 100644 index 0000000000..2555cf7fe0 --- /dev/null +++ b/firmware/dual_iir/all.html @@ -0,0 +1 @@ +List of all items in this crate

List of all items

Structs

Functions

Type Definitions

Constants

\ No newline at end of file diff --git a/firmware/dual_iir/app/constant.CEILING.html b/firmware/dual_iir/app/constant.CEILING.html new file mode 100644 index 0000000000..c48d7034b2 --- /dev/null +++ b/firmware/dual_iir/app/constant.CEILING.html @@ -0,0 +1,2 @@ +CEILING in dual_iir::app - Rust

Constant dual_iir::app::CEILING

source ·
const CEILING: u8 = _;
Expand description

Priority ceiling

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/constant.N.html b/firmware/dual_iir/app/constant.N.html new file mode 100644 index 0000000000..1f3364e4f5 --- /dev/null +++ b/firmware/dual_iir/app/constant.N.html @@ -0,0 +1 @@ +N in dual_iir::app - Rust

Constant dual_iir::app::N

source ·
const N: usize = _; // 16usize
\ No newline at end of file diff --git a/firmware/dual_iir/app/constant.PRIORITY.html b/firmware/dual_iir/app/constant.PRIORITY.html new file mode 100644 index 0000000000..d76812dea3 --- /dev/null +++ b/firmware/dual_iir/app/constant.PRIORITY.html @@ -0,0 +1 @@ +PRIORITY in dual_iir::app - Rust

Constant dual_iir::app::PRIORITY

source ·
const PRIORITY: u8 = _;
\ No newline at end of file diff --git a/firmware/dual_iir/app/eth/index.html b/firmware/dual_iir/app/eth/index.html new file mode 100644 index 0000000000..98673cf8ae --- /dev/null +++ b/firmware/dual_iir/app/eth/index.html @@ -0,0 +1,2 @@ +dual_iir::app::eth - Rust

Module dual_iir::app::eth

source ·
Expand description

Hardware task

+

Structs

\ No newline at end of file diff --git a/firmware/dual_iir/app/eth/sidebar-items.js b/firmware/dual_iir/app/eth/sidebar-items.js new file mode 100644 index 0000000000..d31239d146 --- /dev/null +++ b/firmware/dual_iir/app/eth/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/eth/struct.Context.html b/firmware/dual_iir/app/eth/struct.Context.html new file mode 100644 index 0000000000..03fcbd151d --- /dev/null +++ b/firmware/dual_iir/app/eth/struct.Context.html @@ -0,0 +1,12 @@ +Context in dual_iir::app::eth - Rust

Struct dual_iir::app::eth::Context

source ·
pub struct Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/ethernet_link/fn.spawn.html b/firmware/dual_iir/app/ethernet_link/fn.spawn.html new file mode 100644 index 0000000000..d94ef89f48 --- /dev/null +++ b/firmware/dual_iir/app/ethernet_link/fn.spawn.html @@ -0,0 +1,2 @@ +spawn in dual_iir::app::ethernet_link - Rust

Function dual_iir::app::ethernet_link::spawn

source ·
pub fn spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/ethernet_link/index.html b/firmware/dual_iir/app/ethernet_link/index.html new file mode 100644 index 0000000000..fd5628e994 --- /dev/null +++ b/firmware/dual_iir/app/ethernet_link/index.html @@ -0,0 +1,2 @@ +dual_iir::app::ethernet_link - Rust

Module dual_iir::app::ethernet_link

source ·
Expand description

Software task

+

Re-exports

Structs

Functions

  • Spawns the task directly
\ No newline at end of file diff --git a/firmware/dual_iir/app/ethernet_link/sidebar-items.js b/firmware/dual_iir/app/ethernet_link/sidebar-items.js new file mode 100644 index 0000000000..9ad7e6c332 --- /dev/null +++ b/firmware/dual_iir/app/ethernet_link/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["spawn"],"struct":["Context","SharedResources"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/ethernet_link/struct.Context.html b/firmware/dual_iir/app/ethernet_link/struct.Context.html new file mode 100644 index 0000000000..f1dad11a79 --- /dev/null +++ b/firmware/dual_iir/app/ethernet_link/struct.Context.html @@ -0,0 +1,15 @@ +Context in dual_iir::app::ethernet_link - Rust
pub struct Context<'a> {
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
§

type Output = T

Should always be Self
§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/ethernet_link/struct.SharedResources.html b/firmware/dual_iir/app/ethernet_link/struct.SharedResources.html new file mode 100644 index 0000000000..4d38ceab8d --- /dev/null +++ b/firmware/dual_iir/app/ethernet_link/struct.SharedResources.html @@ -0,0 +1,15 @@ +SharedResources in dual_iir::app::ethernet_link - Rust
pub struct SharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources ethernet_link has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.DCMI.html b/firmware/dual_iir/app/fn.DCMI.html new file mode 100644 index 0000000000..72a29c04cd --- /dev/null +++ b/firmware/dual_iir/app/fn.DCMI.html @@ -0,0 +1,3 @@ +DCMI in dual_iir::app - Rust

Function dual_iir::app::DCMI

source ·
#[no_mangle]
+unsafe fn DCMI()
Expand description

Interrupt handler to dispatch tasks at priority 1

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.DMA1_STR4.html b/firmware/dual_iir/app/fn.DMA1_STR4.html new file mode 100644 index 0000000000..61745bffc3 --- /dev/null +++ b/firmware/dual_iir/app/fn.DMA1_STR4.html @@ -0,0 +1,4 @@ +DMA1_STR4 in dual_iir::app - Rust

Function dual_iir::app::DMA1_STR4

source ·
#[no_mangle]
+#[link_section = ".itcm.process"]
+unsafe fn DMA1_STR4()
Expand description

User HW task ISR trampoline for process

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.ETH.html b/firmware/dual_iir/app/fn.ETH.html new file mode 100644 index 0000000000..435f696e75 --- /dev/null +++ b/firmware/dual_iir/app/fn.ETH.html @@ -0,0 +1,3 @@ +ETH in dual_iir::app - Rust

Function dual_iir::app::ETH

source ·
#[no_mangle]
+unsafe fn ETH()
Expand description

User HW task ISR trampoline for eth

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.SPI2.html b/firmware/dual_iir/app/fn.SPI2.html new file mode 100644 index 0000000000..4119de4ab0 --- /dev/null +++ b/firmware/dual_iir/app/fn.SPI2.html @@ -0,0 +1,3 @@ +SPI2 in dual_iir::app - Rust

Function dual_iir::app::SPI2

source ·
#[no_mangle]
+unsafe fn SPI2()
Expand description

User HW task ISR trampoline for spi2

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.SPI3.html b/firmware/dual_iir/app/fn.SPI3.html new file mode 100644 index 0000000000..f19439ed3d --- /dev/null +++ b/firmware/dual_iir/app/fn.SPI3.html @@ -0,0 +1,3 @@ +SPI3 in dual_iir::app - Rust

Function dual_iir::app::SPI3

source ·
#[no_mangle]
+unsafe fn SPI3()
Expand description

User HW task ISR trampoline for spi3

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.SPI4.html b/firmware/dual_iir/app/fn.SPI4.html new file mode 100644 index 0000000000..36d64e777f --- /dev/null +++ b/firmware/dual_iir/app/fn.SPI4.html @@ -0,0 +1,3 @@ +SPI4 in dual_iir::app - Rust

Function dual_iir::app::SPI4

source ·
#[no_mangle]
+unsafe fn SPI4()
Expand description

User HW task ISR trampoline for spi4

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.SPI5.html b/firmware/dual_iir/app/fn.SPI5.html new file mode 100644 index 0000000000..22ef84e8aa --- /dev/null +++ b/firmware/dual_iir/app/fn.SPI5.html @@ -0,0 +1,3 @@ +SPI5 in dual_iir::app - Rust

Function dual_iir::app::SPI5

source ·
#[no_mangle]
+unsafe fn SPI5()
Expand description

User HW task ISR trampoline for spi5

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.SysTick.html b/firmware/dual_iir/app/fn.SysTick.html new file mode 100644 index 0000000000..1df1f0c9a3 --- /dev/null +++ b/firmware/dual_iir/app/fn.SysTick.html @@ -0,0 +1,2 @@ +SysTick in dual_iir::app - Rust

Function dual_iir::app::SysTick

source ·
#[no_mangle]
+unsafe fn SysTick()
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_after.html b/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_after.html new file mode 100644 index 0000000000..08a08df236 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_after.html @@ -0,0 +1,6 @@ +__rtic_internal_ethernet_link_Monotonic_spawn_after in dual_iir::app - Rust
pub fn __rtic_internal_ethernet_link_Monotonic_spawn_after(
+    duration: <Systick as Monotonic>::Duration
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task after a set duration relative to the current time

+

This will use the time Instant::new(0) as baseline if called in #[init], +so if you use a non-resetable timer use spawn_at when in #[init]

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_at.html b/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_at.html new file mode 100644 index 0000000000..a8c72b5f55 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_at.html @@ -0,0 +1,4 @@ +__rtic_internal_ethernet_link_Monotonic_spawn_at in dual_iir::app - Rust
pub fn __rtic_internal_ethernet_link_Monotonic_spawn_at(
+    instant: <Systick as Monotonic>::Instant
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task at a fixed time instant

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_spawn.html b/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_spawn.html new file mode 100644 index 0000000000..06c6ebcdb2 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_ethernet_link_spawn.html @@ -0,0 +1,2 @@ +__rtic_internal_ethernet_link_spawn in dual_iir::app - Rust
pub fn __rtic_internal_ethernet_link_spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_settings_update_Monotonic_spawn_after.html b/firmware/dual_iir/app/fn.__rtic_internal_settings_update_Monotonic_spawn_after.html new file mode 100644 index 0000000000..b1b0c8758b --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_settings_update_Monotonic_spawn_after.html @@ -0,0 +1,6 @@ +__rtic_internal_settings_update_Monotonic_spawn_after in dual_iir::app - Rust
pub fn __rtic_internal_settings_update_Monotonic_spawn_after(
+    duration: <Systick as Monotonic>::Duration
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task after a set duration relative to the current time

+

This will use the time Instant::new(0) as baseline if called in #[init], +so if you use a non-resetable timer use spawn_at when in #[init]

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_settings_update_Monotonic_spawn_at.html b/firmware/dual_iir/app/fn.__rtic_internal_settings_update_Monotonic_spawn_at.html new file mode 100644 index 0000000000..9ba3925124 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_settings_update_Monotonic_spawn_at.html @@ -0,0 +1,4 @@ +__rtic_internal_settings_update_Monotonic_spawn_at in dual_iir::app - Rust
pub fn __rtic_internal_settings_update_Monotonic_spawn_at(
+    instant: <Systick as Monotonic>::Instant
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task at a fixed time instant

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_settings_update_spawn.html b/firmware/dual_iir/app/fn.__rtic_internal_settings_update_spawn.html new file mode 100644 index 0000000000..14158c9422 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_settings_update_spawn.html @@ -0,0 +1,2 @@ +__rtic_internal_settings_update_spawn in dual_iir::app - Rust
pub fn __rtic_internal_settings_update_spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_start_Monotonic_spawn_after.html b/firmware/dual_iir/app/fn.__rtic_internal_start_Monotonic_spawn_after.html new file mode 100644 index 0000000000..76fbc665aa --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_start_Monotonic_spawn_after.html @@ -0,0 +1,6 @@ +__rtic_internal_start_Monotonic_spawn_after in dual_iir::app - Rust
pub fn __rtic_internal_start_Monotonic_spawn_after(
+    duration: <Systick as Monotonic>::Duration
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task after a set duration relative to the current time

+

This will use the time Instant::new(0) as baseline if called in #[init], +so if you use a non-resetable timer use spawn_at when in #[init]

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_start_Monotonic_spawn_at.html b/firmware/dual_iir/app/fn.__rtic_internal_start_Monotonic_spawn_at.html new file mode 100644 index 0000000000..98210264d0 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_start_Monotonic_spawn_at.html @@ -0,0 +1,4 @@ +__rtic_internal_start_Monotonic_spawn_at in dual_iir::app - Rust
pub fn __rtic_internal_start_Monotonic_spawn_at(
+    instant: <Systick as Monotonic>::Instant
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task at a fixed time instant

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_start_spawn.html b/firmware/dual_iir/app/fn.__rtic_internal_start_spawn.html new file mode 100644 index 0000000000..1d9bbcbe8f --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_start_spawn.html @@ -0,0 +1,2 @@ +__rtic_internal_start_spawn in dual_iir::app - Rust
pub fn __rtic_internal_start_spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_telemetry_Monotonic_spawn_after.html b/firmware/dual_iir/app/fn.__rtic_internal_telemetry_Monotonic_spawn_after.html new file mode 100644 index 0000000000..bbd29bddf4 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_telemetry_Monotonic_spawn_after.html @@ -0,0 +1,6 @@ +__rtic_internal_telemetry_Monotonic_spawn_after in dual_iir::app - Rust
pub fn __rtic_internal_telemetry_Monotonic_spawn_after(
+    duration: <Systick as Monotonic>::Duration
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task after a set duration relative to the current time

+

This will use the time Instant::new(0) as baseline if called in #[init], +so if you use a non-resetable timer use spawn_at when in #[init]

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_telemetry_Monotonic_spawn_at.html b/firmware/dual_iir/app/fn.__rtic_internal_telemetry_Monotonic_spawn_at.html new file mode 100644 index 0000000000..6d235f4c08 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_telemetry_Monotonic_spawn_at.html @@ -0,0 +1,4 @@ +__rtic_internal_telemetry_Monotonic_spawn_at in dual_iir::app - Rust
pub fn __rtic_internal_telemetry_Monotonic_spawn_at(
+    instant: <Systick as Monotonic>::Instant
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task at a fixed time instant

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.__rtic_internal_telemetry_spawn.html b/firmware/dual_iir/app/fn.__rtic_internal_telemetry_spawn.html new file mode 100644 index 0000000000..4b18ed8cc0 --- /dev/null +++ b/firmware/dual_iir/app/fn.__rtic_internal_telemetry_spawn.html @@ -0,0 +1,2 @@ +__rtic_internal_telemetry_spawn in dual_iir::app - Rust
pub fn __rtic_internal_telemetry_spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.eth.html b/firmware/dual_iir/app/fn.eth.html new file mode 100644 index 0000000000..061ace27fd --- /dev/null +++ b/firmware/dual_iir/app/fn.eth.html @@ -0,0 +1,2 @@ +eth in dual_iir::app - Rust

Function dual_iir::app::eth

source ·
fn eth(_: Context)
Expand description

User HW task: eth

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.ethernet_link.html b/firmware/dual_iir/app/fn.ethernet_link.html new file mode 100644 index 0000000000..fcd7c81757 --- /dev/null +++ b/firmware/dual_iir/app/fn.ethernet_link.html @@ -0,0 +1,2 @@ +ethernet_link in dual_iir::app - Rust

Function dual_iir::app::ethernet_link

source ·
fn ethernet_link(c: Context<'_>)
Expand description

User SW task ethernet_link

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.idle.html b/firmware/dual_iir/app/fn.idle.html new file mode 100644 index 0000000000..e34965e48b --- /dev/null +++ b/firmware/dual_iir/app/fn.idle.html @@ -0,0 +1,2 @@ +idle in dual_iir::app - Rust

Function dual_iir::app::idle

source ·
fn idle(c: Context<'_>) -> !
Expand description

User provided idle function

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.init.html b/firmware/dual_iir/app/fn.init.html new file mode 100644 index 0000000000..ac59dea104 --- /dev/null +++ b/firmware/dual_iir/app/fn.init.html @@ -0,0 +1,3 @@ +init in dual_iir::app - Rust

Function dual_iir::app::init

source ·
fn init(c: Context<'_>) -> (Shared, Local, Monotonics)
Expand description

User code end +User provided init function

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.process.html b/firmware/dual_iir/app/fn.process.html new file mode 100644 index 0000000000..6564e1c323 --- /dev/null +++ b/firmware/dual_iir/app/fn.process.html @@ -0,0 +1,3 @@ +process in dual_iir::app - Rust

Function dual_iir::app::process

source ·
#[link_section = ".itcm.process"]
+fn process(c: Context<'_>)
Expand description

User HW task: process

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.settings_update.html b/firmware/dual_iir/app/fn.settings_update.html new file mode 100644 index 0000000000..7254ea1030 --- /dev/null +++ b/firmware/dual_iir/app/fn.settings_update.html @@ -0,0 +1,2 @@ +settings_update in dual_iir::app - Rust

Function dual_iir::app::settings_update

source ·
fn settings_update(c: Context<'_>)
Expand description

User SW task settings_update

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.spi2.html b/firmware/dual_iir/app/fn.spi2.html new file mode 100644 index 0000000000..1a6dbba4a4 --- /dev/null +++ b/firmware/dual_iir/app/fn.spi2.html @@ -0,0 +1,2 @@ +spi2 in dual_iir::app - Rust

Function dual_iir::app::spi2

source ·
fn spi2(_: Context)
Expand description

User HW task: spi2

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.spi3.html b/firmware/dual_iir/app/fn.spi3.html new file mode 100644 index 0000000000..fd6788eb51 --- /dev/null +++ b/firmware/dual_iir/app/fn.spi3.html @@ -0,0 +1,2 @@ +spi3 in dual_iir::app - Rust

Function dual_iir::app::spi3

source ·
fn spi3(_: Context)
Expand description

User HW task: spi3

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.spi4.html b/firmware/dual_iir/app/fn.spi4.html new file mode 100644 index 0000000000..581726c605 --- /dev/null +++ b/firmware/dual_iir/app/fn.spi4.html @@ -0,0 +1,2 @@ +spi4 in dual_iir::app - Rust

Function dual_iir::app::spi4

source ·
fn spi4(_: Context)
Expand description

User HW task: spi4

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.spi5.html b/firmware/dual_iir/app/fn.spi5.html new file mode 100644 index 0000000000..f1caef0065 --- /dev/null +++ b/firmware/dual_iir/app/fn.spi5.html @@ -0,0 +1,2 @@ +spi5 in dual_iir::app - Rust

Function dual_iir::app::spi5

source ·
fn spi5(_: Context)
Expand description

User HW task: spi5

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.start.html b/firmware/dual_iir/app/fn.start.html new file mode 100644 index 0000000000..bec8f05c08 --- /dev/null +++ b/firmware/dual_iir/app/fn.start.html @@ -0,0 +1,2 @@ +start in dual_iir::app - Rust

Function dual_iir::app::start

source ·
fn start(c: Context<'_>)
Expand description

User SW task start

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/fn.telemetry.html b/firmware/dual_iir/app/fn.telemetry.html new file mode 100644 index 0000000000..3c9032ea3b --- /dev/null +++ b/firmware/dual_iir/app/fn.telemetry.html @@ -0,0 +1,2 @@ +telemetry in dual_iir::app - Rust

Function dual_iir::app::telemetry

source ·
fn telemetry(c: Context<'_>)
Expand description

User SW task telemetry

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/idle/index.html b/firmware/dual_iir/app/idle/index.html new file mode 100644 index 0000000000..10bfee52a0 --- /dev/null +++ b/firmware/dual_iir/app/idle/index.html @@ -0,0 +1,2 @@ +dual_iir::app::idle - Rust

Module dual_iir::app::idle

source ·
Expand description

Idle loop

+

Structs

\ No newline at end of file diff --git a/firmware/dual_iir/app/idle/sidebar-items.js b/firmware/dual_iir/app/idle/sidebar-items.js new file mode 100644 index 0000000000..95ede04c66 --- /dev/null +++ b/firmware/dual_iir/app/idle/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context","SharedResources"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/idle/struct.Context.html b/firmware/dual_iir/app/idle/struct.Context.html new file mode 100644 index 0000000000..dba9dee008 --- /dev/null +++ b/firmware/dual_iir/app/idle/struct.Context.html @@ -0,0 +1,15 @@ +Context in dual_iir::app::idle - Rust

Struct dual_iir::app::idle::Context

source ·
pub struct Context<'a> {
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/idle/struct.SharedResources.html b/firmware/dual_iir/app/idle/struct.SharedResources.html new file mode 100644 index 0000000000..24574f6cb4 --- /dev/null +++ b/firmware/dual_iir/app/idle/struct.SharedResources.html @@ -0,0 +1,17 @@ +SharedResources in dual_iir::app::idle - Rust
pub struct SharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources idle has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+

Implementations§

source§

impl<'a> __rtic_internal_idleSharedResources<'a>

This impl block contains no items.
+

App module

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/index.html b/firmware/dual_iir/app/index.html new file mode 100644 index 0000000000..e9125dba77 --- /dev/null +++ b/firmware/dual_iir/app/index.html @@ -0,0 +1,3 @@ +dual_iir::app - Rust

Module dual_iir::app

source ·
Expand description

The RTIC application module

+

Re-exports

  • pub use rtic::Monotonic as _;

Modules

Structs

Constants

Functions

Type Definitions

  • Monotonic 🔒
    User code from within the module
\ No newline at end of file diff --git a/firmware/dual_iir/app/init/index.html b/firmware/dual_iir/app/init/index.html new file mode 100644 index 0000000000..d72e93db99 --- /dev/null +++ b/firmware/dual_iir/app/init/index.html @@ -0,0 +1,2 @@ +dual_iir::app::init - Rust

Module dual_iir::app::init

source ·
Expand description

Initialization function

+

Structs

\ No newline at end of file diff --git a/firmware/dual_iir/app/init/sidebar-items.js b/firmware/dual_iir/app/init/sidebar-items.js new file mode 100644 index 0000000000..18ec524ac5 --- /dev/null +++ b/firmware/dual_iir/app/init/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context","Monotonics"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/init/struct.Context.html b/firmware/dual_iir/app/init/struct.Context.html new file mode 100644 index 0000000000..2bd68b9b80 --- /dev/null +++ b/firmware/dual_iir/app/init/struct.Context.html @@ -0,0 +1,19 @@ +Context in dual_iir::app::init - Rust

Struct dual_iir::app::init::Context

source ·
pub struct Context<'a> {
+    pub core: Peripherals,
+    pub device: Peripherals,
+    pub cs: CriticalSection<'a>,
+}
Expand description

Execution context

+

Fields§

§core: Peripherals

Core (Cortex-M) peripherals

+
§device: Peripherals

Device peripherals

+
§cs: CriticalSection<'a>

Critical section token for init

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/init/struct.Monotonics.html b/firmware/dual_iir/app/init/struct.Monotonics.html new file mode 100644 index 0000000000..b9fd389a66 --- /dev/null +++ b/firmware/dual_iir/app/init/struct.Monotonics.html @@ -0,0 +1,12 @@ +Monotonics in dual_iir::app::init - Rust

Struct dual_iir::app::init::Monotonics

source ·
pub struct Monotonics(pub Systick);
Expand description

Monotonics used by the system

+

Tuple Fields§

§0: Systick

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/monotonics/Monotonic/fn.now.html b/firmware/dual_iir/app/monotonics/Monotonic/fn.now.html new file mode 100644 index 0000000000..dda526cf06 --- /dev/null +++ b/firmware/dual_iir/app/monotonics/Monotonic/fn.now.html @@ -0,0 +1,2 @@ +now in dual_iir::app::monotonics::Monotonic - Rust

Function dual_iir::app::monotonics::Monotonic::now

source ·
pub fn now() -> <Systick as Monotonic>::Instant
Expand description

Read the current time from this monotonic

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/monotonics/Monotonic/index.html b/firmware/dual_iir/app/monotonics/Monotonic/index.html new file mode 100644 index 0000000000..cbca43d074 --- /dev/null +++ b/firmware/dual_iir/app/monotonics/Monotonic/index.html @@ -0,0 +1,2 @@ +dual_iir::app::monotonics::Monotonic - Rust
Expand description

This module holds the static implementation for Monotonic::now()

+

Functions

  • Read the current time from this monotonic
\ No newline at end of file diff --git a/firmware/dual_iir/app/monotonics/Monotonic/sidebar-items.js b/firmware/dual_iir/app/monotonics/Monotonic/sidebar-items.js new file mode 100644 index 0000000000..66a5f25aee --- /dev/null +++ b/firmware/dual_iir/app/monotonics/Monotonic/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["now"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/monotonics/index.html b/firmware/dual_iir/app/monotonics/index.html new file mode 100644 index 0000000000..bb20af98aa --- /dev/null +++ b/firmware/dual_iir/app/monotonics/index.html @@ -0,0 +1,2 @@ +dual_iir::app::monotonics - Rust

Module dual_iir::app::monotonics

source ·
Expand description

Holds static methods for each monotonic.

+

Re-exports

  • pub use Monotonic::now;

Modules

  • This module holds the static implementation for Monotonic::now()
\ No newline at end of file diff --git a/firmware/dual_iir/app/monotonics/sidebar-items.js b/firmware/dual_iir/app/monotonics/sidebar-items.js new file mode 100644 index 0000000000..a77d130ed4 --- /dev/null +++ b/firmware/dual_iir/app/monotonics/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["Monotonic"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/process/index.html b/firmware/dual_iir/app/process/index.html new file mode 100644 index 0000000000..e54447dae5 --- /dev/null +++ b/firmware/dual_iir/app/process/index.html @@ -0,0 +1,2 @@ +dual_iir::app::process - Rust

Module dual_iir::app::process

source ·
Expand description

Hardware task

+

Structs

\ No newline at end of file diff --git a/firmware/dual_iir/app/process/sidebar-items.js b/firmware/dual_iir/app/process/sidebar-items.js new file mode 100644 index 0000000000..72a885fb5a --- /dev/null +++ b/firmware/dual_iir/app/process/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context","LocalResources","SharedResources"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/process/struct.Context.html b/firmware/dual_iir/app/process/struct.Context.html new file mode 100644 index 0000000000..ec706fbc7f --- /dev/null +++ b/firmware/dual_iir/app/process/struct.Context.html @@ -0,0 +1,17 @@ +Context in dual_iir::app::process - Rust

Struct dual_iir::app::process::Context

source ·
pub struct Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/process/struct.LocalResources.html b/firmware/dual_iir/app/process/struct.LocalResources.html new file mode 100644 index 0000000000..9368cf16e7 --- /dev/null +++ b/firmware/dual_iir/app/process/struct.LocalResources.html @@ -0,0 +1,23 @@ +LocalResources in dual_iir::app::process - Rust
pub struct LocalResources<'a> {
+    pub digital_inputs: &'a mut (DigitalInput0, DigitalInput1),
+    pub adcs: &'a mut (Adc0Input, Adc1Input),
+    pub dacs: &'a mut (Dac0Output, Dac1Output),
+    pub iir_state: &'a mut [[Vec5<f32>; 1]; 2],
+    pub generator: &'a mut FrameGenerator,
+}
Expand description

Local resources process has access to

+

Fields§

§digital_inputs: &'a mut (DigitalInput0, DigitalInput1)

Local resource digital_inputs

+
§adcs: &'a mut (Adc0Input, Adc1Input)

Local resource adcs

+
§dacs: &'a mut (Dac0Output, Dac1Output)

Local resource dacs

+
§iir_state: &'a mut [[Vec5<f32>; 1]; 2]

Local resource iir_state

+
§generator: &'a mut FrameGenerator

Local resource generator

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/process/struct.SharedResources.html b/firmware/dual_iir/app/process/struct.SharedResources.html new file mode 100644 index 0000000000..828d7ea485 --- /dev/null +++ b/firmware/dual_iir/app/process/struct.SharedResources.html @@ -0,0 +1,19 @@ +SharedResources in dual_iir::app::process - Rust
pub struct SharedResources<'a> {
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub signal_generator: signal_generator_that_needs_to_be_locked<'a>,
+    pub telemetry: telemetry_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources process has access to

+

Fields§

§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§signal_generator: signal_generator_that_needs_to_be_locked<'a>

Resource proxy resource signal_generator. Use method .lock() to gain access

+
§telemetry: telemetry_that_needs_to_be_locked<'a>

Resource proxy resource telemetry. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/settings_update/fn.spawn.html b/firmware/dual_iir/app/settings_update/fn.spawn.html new file mode 100644 index 0000000000..586a760f75 --- /dev/null +++ b/firmware/dual_iir/app/settings_update/fn.spawn.html @@ -0,0 +1,2 @@ +spawn in dual_iir::app::settings_update - Rust
pub fn spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/settings_update/index.html b/firmware/dual_iir/app/settings_update/index.html new file mode 100644 index 0000000000..05de3389b7 --- /dev/null +++ b/firmware/dual_iir/app/settings_update/index.html @@ -0,0 +1,2 @@ +dual_iir::app::settings_update - Rust
Expand description

Software task

+

Re-exports

Structs

Functions

  • Spawns the task directly
\ No newline at end of file diff --git a/firmware/dual_iir/app/settings_update/sidebar-items.js b/firmware/dual_iir/app/settings_update/sidebar-items.js new file mode 100644 index 0000000000..61e80776dd --- /dev/null +++ b/firmware/dual_iir/app/settings_update/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["spawn"],"struct":["Context","LocalResources","SharedResources"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/settings_update/struct.Context.html b/firmware/dual_iir/app/settings_update/struct.Context.html new file mode 100644 index 0000000000..2f7eab2bf8 --- /dev/null +++ b/firmware/dual_iir/app/settings_update/struct.Context.html @@ -0,0 +1,17 @@ +Context in dual_iir::app::settings_update - Rust
pub struct Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/settings_update/struct.LocalResources.html b/firmware/dual_iir/app/settings_update/struct.LocalResources.html new file mode 100644 index 0000000000..26cec9ad67 --- /dev/null +++ b/firmware/dual_iir/app/settings_update/struct.LocalResources.html @@ -0,0 +1,15 @@ +LocalResources in dual_iir::app::settings_update - Rust
pub struct LocalResources<'a> {
+    pub afes: &'a mut (AFE0, AFE1),
+}
Expand description

Local resources settings_update has access to

+

Fields§

§afes: &'a mut (AFE0, AFE1)

Local resource afes

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/settings_update/struct.SharedResources.html b/firmware/dual_iir/app/settings_update/struct.SharedResources.html new file mode 100644 index 0000000000..bfaecba0be --- /dev/null +++ b/firmware/dual_iir/app/settings_update/struct.SharedResources.html @@ -0,0 +1,19 @@ +SharedResources in dual_iir::app::settings_update - Rust
pub struct SharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub signal_generator: signal_generator_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources settings_update has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+
§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§signal_generator: signal_generator_that_needs_to_be_locked<'a>

Resource proxy resource signal_generator. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/shared_resources/index.html b/firmware/dual_iir/app/shared_resources/index.html new file mode 100644 index 0000000000..c1fb8c5785 --- /dev/null +++ b/firmware/dual_iir/app/shared_resources/index.html @@ -0,0 +1 @@ +dual_iir::app::shared_resources - Rust
\ No newline at end of file diff --git a/firmware/dual_iir/app/shared_resources/sidebar-items.js b/firmware/dual_iir/app/shared_resources/sidebar-items.js new file mode 100644 index 0000000000..5244ce01cc --- /dev/null +++ b/firmware/dual_iir/app/shared_resources/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/firmware/dual_iir/app/sidebar-items.js b/firmware/dual_iir/app/sidebar-items.js new file mode 100644 index 0000000000..06f95fc5da --- /dev/null +++ b/firmware/dual_iir/app/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"constant":["CEILING","N","PRIORITY"],"fn":["DCMI","DMA1_STR4","ETH","SPI2","SPI3","SPI4","SPI5","SysTick","__rtic_internal_ethernet_link_Monotonic_spawn_after","__rtic_internal_ethernet_link_Monotonic_spawn_at","__rtic_internal_ethernet_link_spawn","__rtic_internal_settings_update_Monotonic_spawn_after","__rtic_internal_settings_update_Monotonic_spawn_at","__rtic_internal_settings_update_spawn","__rtic_internal_start_Monotonic_spawn_after","__rtic_internal_start_Monotonic_spawn_at","__rtic_internal_start_spawn","__rtic_internal_telemetry_Monotonic_spawn_after","__rtic_internal_telemetry_Monotonic_spawn_at","__rtic_internal_telemetry_spawn","eth","ethernet_link","idle","init","process","settings_update","spi2","spi3","spi4","spi5","start","telemetry"],"mod":["eth","ethernet_link","idle","init","monotonics","process","settings_update","shared_resources","spi2","spi3","spi4","spi5","start","telemetry"],"struct":["Local","Shared","__rtic_internal_Monotonics","__rtic_internal_eth_Context","__rtic_internal_ethernet_linkSharedResources","__rtic_internal_ethernet_link_Context","__rtic_internal_idleSharedResources","__rtic_internal_idle_Context","__rtic_internal_init_Context","__rtic_internal_processLocalResources","__rtic_internal_processSharedResources","__rtic_internal_process_Context","__rtic_internal_settings_updateLocalResources","__rtic_internal_settings_updateSharedResources","__rtic_internal_settings_update_Context","__rtic_internal_spi2_Context","__rtic_internal_spi3_Context","__rtic_internal_spi4_Context","__rtic_internal_spi5_Context","__rtic_internal_startLocalResources","__rtic_internal_start_Context","__rtic_internal_telemetryLocalResources","__rtic_internal_telemetrySharedResources","__rtic_internal_telemetry_Context"],"type":["Monotonic"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/spi2/index.html b/firmware/dual_iir/app/spi2/index.html new file mode 100644 index 0000000000..5c81838d56 --- /dev/null +++ b/firmware/dual_iir/app/spi2/index.html @@ -0,0 +1,2 @@ +dual_iir::app::spi2 - Rust

Module dual_iir::app::spi2

source ·
Expand description

Hardware task

+

Structs

\ No newline at end of file diff --git a/firmware/dual_iir/app/spi2/sidebar-items.js b/firmware/dual_iir/app/spi2/sidebar-items.js new file mode 100644 index 0000000000..d31239d146 --- /dev/null +++ b/firmware/dual_iir/app/spi2/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/spi2/struct.Context.html b/firmware/dual_iir/app/spi2/struct.Context.html new file mode 100644 index 0000000000..faafb587c6 --- /dev/null +++ b/firmware/dual_iir/app/spi2/struct.Context.html @@ -0,0 +1,12 @@ +Context in dual_iir::app::spi2 - Rust

Struct dual_iir::app::spi2::Context

source ·
pub struct Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/spi3/index.html b/firmware/dual_iir/app/spi3/index.html new file mode 100644 index 0000000000..9b9240bc5f --- /dev/null +++ b/firmware/dual_iir/app/spi3/index.html @@ -0,0 +1,2 @@ +dual_iir::app::spi3 - Rust

Module dual_iir::app::spi3

source ·
Expand description

Hardware task

+

Structs

\ No newline at end of file diff --git a/firmware/dual_iir/app/spi3/sidebar-items.js b/firmware/dual_iir/app/spi3/sidebar-items.js new file mode 100644 index 0000000000..d31239d146 --- /dev/null +++ b/firmware/dual_iir/app/spi3/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/spi3/struct.Context.html b/firmware/dual_iir/app/spi3/struct.Context.html new file mode 100644 index 0000000000..36d3066dc8 --- /dev/null +++ b/firmware/dual_iir/app/spi3/struct.Context.html @@ -0,0 +1,12 @@ +Context in dual_iir::app::spi3 - Rust

Struct dual_iir::app::spi3::Context

source ·
pub struct Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/spi4/index.html b/firmware/dual_iir/app/spi4/index.html new file mode 100644 index 0000000000..60743d0f9d --- /dev/null +++ b/firmware/dual_iir/app/spi4/index.html @@ -0,0 +1,2 @@ +dual_iir::app::spi4 - Rust

Module dual_iir::app::spi4

source ·
Expand description

Hardware task

+

Structs

\ No newline at end of file diff --git a/firmware/dual_iir/app/spi4/sidebar-items.js b/firmware/dual_iir/app/spi4/sidebar-items.js new file mode 100644 index 0000000000..d31239d146 --- /dev/null +++ b/firmware/dual_iir/app/spi4/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/spi4/struct.Context.html b/firmware/dual_iir/app/spi4/struct.Context.html new file mode 100644 index 0000000000..f0a011dd3b --- /dev/null +++ b/firmware/dual_iir/app/spi4/struct.Context.html @@ -0,0 +1,12 @@ +Context in dual_iir::app::spi4 - Rust

Struct dual_iir::app::spi4::Context

source ·
pub struct Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/spi5/index.html b/firmware/dual_iir/app/spi5/index.html new file mode 100644 index 0000000000..ce81dc1bf2 --- /dev/null +++ b/firmware/dual_iir/app/spi5/index.html @@ -0,0 +1,2 @@ +dual_iir::app::spi5 - Rust

Module dual_iir::app::spi5

source ·
Expand description

Hardware task

+

Structs

\ No newline at end of file diff --git a/firmware/dual_iir/app/spi5/sidebar-items.js b/firmware/dual_iir/app/spi5/sidebar-items.js new file mode 100644 index 0000000000..d31239d146 --- /dev/null +++ b/firmware/dual_iir/app/spi5/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/spi5/struct.Context.html b/firmware/dual_iir/app/spi5/struct.Context.html new file mode 100644 index 0000000000..00af4a629c --- /dev/null +++ b/firmware/dual_iir/app/spi5/struct.Context.html @@ -0,0 +1,12 @@ +Context in dual_iir::app::spi5 - Rust

Struct dual_iir::app::spi5::Context

source ·
pub struct Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/start/fn.spawn.html b/firmware/dual_iir/app/start/fn.spawn.html new file mode 100644 index 0000000000..6734c91fdd --- /dev/null +++ b/firmware/dual_iir/app/start/fn.spawn.html @@ -0,0 +1,2 @@ +spawn in dual_iir::app::start - Rust

Function dual_iir::app::start::spawn

source ·
pub fn spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/start/index.html b/firmware/dual_iir/app/start/index.html new file mode 100644 index 0000000000..40963908b5 --- /dev/null +++ b/firmware/dual_iir/app/start/index.html @@ -0,0 +1,2 @@ +dual_iir::app::start - Rust

Module dual_iir::app::start

source ·
Expand description

Software task

+

Re-exports

Structs

Functions

  • Spawns the task directly
\ No newline at end of file diff --git a/firmware/dual_iir/app/start/sidebar-items.js b/firmware/dual_iir/app/start/sidebar-items.js new file mode 100644 index 0000000000..d73e0d0169 --- /dev/null +++ b/firmware/dual_iir/app/start/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["spawn"],"struct":["Context","LocalResources"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/start/struct.Context.html b/firmware/dual_iir/app/start/struct.Context.html new file mode 100644 index 0000000000..52ec6db7b8 --- /dev/null +++ b/firmware/dual_iir/app/start/struct.Context.html @@ -0,0 +1,15 @@ +Context in dual_iir::app::start - Rust

Struct dual_iir::app::start::Context

source ·
pub struct Context<'a> {
+    pub local: LocalResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/start/struct.LocalResources.html b/firmware/dual_iir/app/start/struct.LocalResources.html new file mode 100644 index 0000000000..9b32f4ffb7 --- /dev/null +++ b/firmware/dual_iir/app/start/struct.LocalResources.html @@ -0,0 +1,15 @@ +LocalResources in dual_iir::app::start - Rust
pub struct LocalResources<'a> {
+    pub sampling_timer: &'a mut SamplingTimer,
+}
Expand description

Local resources start has access to

+

Fields§

§sampling_timer: &'a mut SamplingTimer

Local resource sampling_timer

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.Local.html b/firmware/dual_iir/app/struct.Local.html new file mode 100644 index 0000000000..0895b9eba0 --- /dev/null +++ b/firmware/dual_iir/app/struct.Local.html @@ -0,0 +1,21 @@ +Local in dual_iir::app - Rust

Struct dual_iir::app::Local

source ·
struct Local {
+    sampling_timer: SamplingTimer,
+    digital_inputs: (DigitalInput0, DigitalInput1),
+    afes: (AFE0, AFE1),
+    adcs: (Adc0Input, Adc1Input),
+    dacs: (Dac0Output, Dac1Output),
+    iir_state: [[Vec5<f32>; 1]; 2],
+    generator: FrameGenerator,
+    cpu_temp_sensor: CpuTempSensor,
+}
Expand description

RTIC local resource struct

+

Fields§

§sampling_timer: SamplingTimer§digital_inputs: (DigitalInput0, DigitalInput1)§afes: (AFE0, AFE1)§adcs: (Adc0Input, Adc1Input)§dacs: (Dac0Output, Dac1Output)§iir_state: [[Vec5<f32>; 1]; 2]§generator: FrameGenerator§cpu_temp_sensor: CpuTempSensor

Auto Trait Implementations§

§

impl !RefUnwindSafe for Local

§

impl Send for Local

§

impl !Sync for Local

§

impl Unpin for Local

§

impl !UnwindSafe for Local

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.Shared.html b/firmware/dual_iir/app/struct.Shared.html new file mode 100644 index 0000000000..47df0868e6 --- /dev/null +++ b/firmware/dual_iir/app/struct.Shared.html @@ -0,0 +1,17 @@ +Shared in dual_iir::app - Rust

Struct dual_iir::app::Shared

source ·
struct Shared {
+    network: NetworkUsers<Settings, Telemetry>,
+    settings: Settings,
+    telemetry: TelemetryBuffer,
+    signal_generator: [SignalGenerator; 2],
+}
Expand description

RTIC shared resource struct

+

Fields§

§network: NetworkUsers<Settings, Telemetry>§settings: Settings§telemetry: TelemetryBuffer§signal_generator: [SignalGenerator; 2]

Auto Trait Implementations§

§

impl !RefUnwindSafe for Shared

§

impl Send for Shared

§

impl !Sync for Shared

§

impl Unpin for Shared

§

impl !UnwindSafe for Shared

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_Monotonics.html b/firmware/dual_iir/app/struct.__rtic_internal_Monotonics.html new file mode 100644 index 0000000000..86fa57d64d --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_Monotonics.html @@ -0,0 +1,12 @@ +__rtic_internal_Monotonics in dual_iir::app - Rust
pub struct __rtic_internal_Monotonics(pub Systick);
Expand description

Monotonics used by the system

+

Tuple Fields§

§0: Systick

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_eth_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_eth_Context.html new file mode 100644 index 0000000000..b18594197a --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_eth_Context.html @@ -0,0 +1,12 @@ +__rtic_internal_eth_Context in dual_iir::app - Rust
pub struct __rtic_internal_eth_Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_ethernet_linkSharedResources.html b/firmware/dual_iir/app/struct.__rtic_internal_ethernet_linkSharedResources.html new file mode 100644 index 0000000000..1e71824845 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_ethernet_linkSharedResources.html @@ -0,0 +1,15 @@ +__rtic_internal_ethernet_linkSharedResources in dual_iir::app - Rust
pub struct __rtic_internal_ethernet_linkSharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources ethernet_link has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_ethernet_link_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_ethernet_link_Context.html new file mode 100644 index 0000000000..4999e306e7 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_ethernet_link_Context.html @@ -0,0 +1,15 @@ +__rtic_internal_ethernet_link_Context in dual_iir::app - Rust
pub struct __rtic_internal_ethernet_link_Context<'a> {
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
§

type Output = T

Should always be Self
§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_idleSharedResources.html b/firmware/dual_iir/app/struct.__rtic_internal_idleSharedResources.html new file mode 100644 index 0000000000..215e69a2c4 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_idleSharedResources.html @@ -0,0 +1,17 @@ +__rtic_internal_idleSharedResources in dual_iir::app - Rust
pub struct __rtic_internal_idleSharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources idle has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+

Implementations§

source§

impl<'a> __rtic_internal_idleSharedResources<'a>

This impl block contains no items.
+

App module

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_idle_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_idle_Context.html new file mode 100644 index 0000000000..514e90785c --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_idle_Context.html @@ -0,0 +1,15 @@ +__rtic_internal_idle_Context in dual_iir::app - Rust
pub struct __rtic_internal_idle_Context<'a> {
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_init_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_init_Context.html new file mode 100644 index 0000000000..aa7e680829 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_init_Context.html @@ -0,0 +1,19 @@ +__rtic_internal_init_Context in dual_iir::app - Rust
pub struct __rtic_internal_init_Context<'a> {
+    pub core: Peripherals,
+    pub device: Peripherals,
+    pub cs: CriticalSection<'a>,
+}
Expand description

Execution context

+

Fields§

§core: Peripherals

Core (Cortex-M) peripherals

+
§device: Peripherals

Device peripherals

+
§cs: CriticalSection<'a>

Critical section token for init

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_processLocalResources.html b/firmware/dual_iir/app/struct.__rtic_internal_processLocalResources.html new file mode 100644 index 0000000000..a6214d666d --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_processLocalResources.html @@ -0,0 +1,23 @@ +__rtic_internal_processLocalResources in dual_iir::app - Rust
pub struct __rtic_internal_processLocalResources<'a> {
+    pub digital_inputs: &'a mut (DigitalInput0, DigitalInput1),
+    pub adcs: &'a mut (Adc0Input, Adc1Input),
+    pub dacs: &'a mut (Dac0Output, Dac1Output),
+    pub iir_state: &'a mut [[Vec5<f32>; 1]; 2],
+    pub generator: &'a mut FrameGenerator,
+}
Expand description

Local resources process has access to

+

Fields§

§digital_inputs: &'a mut (DigitalInput0, DigitalInput1)

Local resource digital_inputs

+
§adcs: &'a mut (Adc0Input, Adc1Input)

Local resource adcs

+
§dacs: &'a mut (Dac0Output, Dac1Output)

Local resource dacs

+
§iir_state: &'a mut [[Vec5<f32>; 1]; 2]

Local resource iir_state

+
§generator: &'a mut FrameGenerator

Local resource generator

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_processSharedResources.html b/firmware/dual_iir/app/struct.__rtic_internal_processSharedResources.html new file mode 100644 index 0000000000..11ca233541 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_processSharedResources.html @@ -0,0 +1,19 @@ +__rtic_internal_processSharedResources in dual_iir::app - Rust
pub struct __rtic_internal_processSharedResources<'a> {
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub signal_generator: signal_generator_that_needs_to_be_locked<'a>,
+    pub telemetry: telemetry_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources process has access to

+

Fields§

§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§signal_generator: signal_generator_that_needs_to_be_locked<'a>

Resource proxy resource signal_generator. Use method .lock() to gain access

+
§telemetry: telemetry_that_needs_to_be_locked<'a>

Resource proxy resource telemetry. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_process_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_process_Context.html new file mode 100644 index 0000000000..668614a7e1 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_process_Context.html @@ -0,0 +1,17 @@ +__rtic_internal_process_Context in dual_iir::app - Rust
pub struct __rtic_internal_process_Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_settings_updateLocalResources.html b/firmware/dual_iir/app/struct.__rtic_internal_settings_updateLocalResources.html new file mode 100644 index 0000000000..d636a8cb09 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_settings_updateLocalResources.html @@ -0,0 +1,15 @@ +__rtic_internal_settings_updateLocalResources in dual_iir::app - Rust
pub struct __rtic_internal_settings_updateLocalResources<'a> {
+    pub afes: &'a mut (AFE0, AFE1),
+}
Expand description

Local resources settings_update has access to

+

Fields§

§afes: &'a mut (AFE0, AFE1)

Local resource afes

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_settings_updateSharedResources.html b/firmware/dual_iir/app/struct.__rtic_internal_settings_updateSharedResources.html new file mode 100644 index 0000000000..f8082473f9 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_settings_updateSharedResources.html @@ -0,0 +1,19 @@ +__rtic_internal_settings_updateSharedResources in dual_iir::app - Rust
pub struct __rtic_internal_settings_updateSharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub signal_generator: signal_generator_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources settings_update has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+
§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§signal_generator: signal_generator_that_needs_to_be_locked<'a>

Resource proxy resource signal_generator. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_settings_update_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_settings_update_Context.html new file mode 100644 index 0000000000..2211668c01 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_settings_update_Context.html @@ -0,0 +1,17 @@ +__rtic_internal_settings_update_Context in dual_iir::app - Rust
pub struct __rtic_internal_settings_update_Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_spi2_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_spi2_Context.html new file mode 100644 index 0000000000..e90e0390e9 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_spi2_Context.html @@ -0,0 +1,12 @@ +__rtic_internal_spi2_Context in dual_iir::app - Rust
pub struct __rtic_internal_spi2_Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_spi3_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_spi3_Context.html new file mode 100644 index 0000000000..26832edfe0 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_spi3_Context.html @@ -0,0 +1,12 @@ +__rtic_internal_spi3_Context in dual_iir::app - Rust
pub struct __rtic_internal_spi3_Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_spi4_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_spi4_Context.html new file mode 100644 index 0000000000..128a6423bd --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_spi4_Context.html @@ -0,0 +1,12 @@ +__rtic_internal_spi4_Context in dual_iir::app - Rust
pub struct __rtic_internal_spi4_Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_spi5_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_spi5_Context.html new file mode 100644 index 0000000000..e16a067cda --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_spi5_Context.html @@ -0,0 +1,12 @@ +__rtic_internal_spi5_Context in dual_iir::app - Rust
pub struct __rtic_internal_spi5_Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_startLocalResources.html b/firmware/dual_iir/app/struct.__rtic_internal_startLocalResources.html new file mode 100644 index 0000000000..7a583108fe --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_startLocalResources.html @@ -0,0 +1,15 @@ +__rtic_internal_startLocalResources in dual_iir::app - Rust
pub struct __rtic_internal_startLocalResources<'a> {
+    pub sampling_timer: &'a mut SamplingTimer,
+}
Expand description

Local resources start has access to

+

Fields§

§sampling_timer: &'a mut SamplingTimer

Local resource sampling_timer

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_start_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_start_Context.html new file mode 100644 index 0000000000..9cc77ba154 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_start_Context.html @@ -0,0 +1,15 @@ +__rtic_internal_start_Context in dual_iir::app - Rust
pub struct __rtic_internal_start_Context<'a> {
+    pub local: LocalResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_telemetryLocalResources.html b/firmware/dual_iir/app/struct.__rtic_internal_telemetryLocalResources.html new file mode 100644 index 0000000000..1c33df5967 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_telemetryLocalResources.html @@ -0,0 +1,15 @@ +__rtic_internal_telemetryLocalResources in dual_iir::app - Rust
pub struct __rtic_internal_telemetryLocalResources<'a> {
+    pub cpu_temp_sensor: &'a mut CpuTempSensor,
+}
Expand description

Local resources telemetry has access to

+

Fields§

§cpu_temp_sensor: &'a mut CpuTempSensor

Local resource cpu_temp_sensor

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_telemetrySharedResources.html b/firmware/dual_iir/app/struct.__rtic_internal_telemetrySharedResources.html new file mode 100644 index 0000000000..833753bcaf --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_telemetrySharedResources.html @@ -0,0 +1,19 @@ +__rtic_internal_telemetrySharedResources in dual_iir::app - Rust
pub struct __rtic_internal_telemetrySharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub telemetry: telemetry_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources telemetry has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+
§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§telemetry: telemetry_that_needs_to_be_locked<'a>

Resource proxy resource telemetry. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/struct.__rtic_internal_telemetry_Context.html b/firmware/dual_iir/app/struct.__rtic_internal_telemetry_Context.html new file mode 100644 index 0000000000..5ee6b10d83 --- /dev/null +++ b/firmware/dual_iir/app/struct.__rtic_internal_telemetry_Context.html @@ -0,0 +1,17 @@ +__rtic_internal_telemetry_Context in dual_iir::app - Rust
pub struct __rtic_internal_telemetry_Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/telemetry/fn.spawn.html b/firmware/dual_iir/app/telemetry/fn.spawn.html new file mode 100644 index 0000000000..805dabe272 --- /dev/null +++ b/firmware/dual_iir/app/telemetry/fn.spawn.html @@ -0,0 +1,2 @@ +spawn in dual_iir::app::telemetry - Rust

Function dual_iir::app::telemetry::spawn

source ·
pub fn spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/dual_iir/app/telemetry/index.html b/firmware/dual_iir/app/telemetry/index.html new file mode 100644 index 0000000000..e58c469468 --- /dev/null +++ b/firmware/dual_iir/app/telemetry/index.html @@ -0,0 +1,2 @@ +dual_iir::app::telemetry - Rust

Module dual_iir::app::telemetry

source ·
Expand description

Software task

+

Re-exports

Structs

Functions

  • Spawns the task directly
\ No newline at end of file diff --git a/firmware/dual_iir/app/telemetry/sidebar-items.js b/firmware/dual_iir/app/telemetry/sidebar-items.js new file mode 100644 index 0000000000..61e80776dd --- /dev/null +++ b/firmware/dual_iir/app/telemetry/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["spawn"],"struct":["Context","LocalResources","SharedResources"]}; \ No newline at end of file diff --git a/firmware/dual_iir/app/telemetry/struct.Context.html b/firmware/dual_iir/app/telemetry/struct.Context.html new file mode 100644 index 0000000000..b7c3ce6701 --- /dev/null +++ b/firmware/dual_iir/app/telemetry/struct.Context.html @@ -0,0 +1,17 @@ +Context in dual_iir::app::telemetry - Rust

Struct dual_iir::app::telemetry::Context

source ·
pub struct Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/telemetry/struct.LocalResources.html b/firmware/dual_iir/app/telemetry/struct.LocalResources.html new file mode 100644 index 0000000000..a5650ce33f --- /dev/null +++ b/firmware/dual_iir/app/telemetry/struct.LocalResources.html @@ -0,0 +1,15 @@ +LocalResources in dual_iir::app::telemetry - Rust
pub struct LocalResources<'a> {
+    pub cpu_temp_sensor: &'a mut CpuTempSensor,
+}
Expand description

Local resources telemetry has access to

+

Fields§

§cpu_temp_sensor: &'a mut CpuTempSensor

Local resource cpu_temp_sensor

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/telemetry/struct.SharedResources.html b/firmware/dual_iir/app/telemetry/struct.SharedResources.html new file mode 100644 index 0000000000..25d84698a7 --- /dev/null +++ b/firmware/dual_iir/app/telemetry/struct.SharedResources.html @@ -0,0 +1,19 @@ +SharedResources in dual_iir::app::telemetry - Rust
pub struct SharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub telemetry: telemetry_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources telemetry has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+
§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§telemetry: telemetry_that_needs_to_be_locked<'a>

Resource proxy resource telemetry. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/dual_iir/app/type.Monotonic.html b/firmware/dual_iir/app/type.Monotonic.html new file mode 100644 index 0000000000..9a9abcae98 --- /dev/null +++ b/firmware/dual_iir/app/type.Monotonic.html @@ -0,0 +1,2 @@ +Monotonic in dual_iir::app - Rust

Type Definition dual_iir::app::Monotonic

source ·
type Monotonic = Systick;
Expand description

User code from within the module

+
\ No newline at end of file diff --git a/firmware/dual_iir/constant.BATCH_SIZE.html b/firmware/dual_iir/constant.BATCH_SIZE.html new file mode 100644 index 0000000000..32e518c1f1 --- /dev/null +++ b/firmware/dual_iir/constant.BATCH_SIZE.html @@ -0,0 +1 @@ +BATCH_SIZE in dual_iir - Rust

Constant dual_iir::BATCH_SIZE

source ·
pub(crate) const BATCH_SIZE: usize = 8;
\ No newline at end of file diff --git a/firmware/dual_iir/constant.IIR_CASCADE_LENGTH.html b/firmware/dual_iir/constant.IIR_CASCADE_LENGTH.html new file mode 100644 index 0000000000..11db988106 --- /dev/null +++ b/firmware/dual_iir/constant.IIR_CASCADE_LENGTH.html @@ -0,0 +1 @@ +IIR_CASCADE_LENGTH in dual_iir - Rust
pub(crate) const IIR_CASCADE_LENGTH: usize = 1;
\ No newline at end of file diff --git a/firmware/dual_iir/constant.SAMPLE_PERIOD.html b/firmware/dual_iir/constant.SAMPLE_PERIOD.html new file mode 100644 index 0000000000..5dc89c51b1 --- /dev/null +++ b/firmware/dual_iir/constant.SAMPLE_PERIOD.html @@ -0,0 +1 @@ +SAMPLE_PERIOD in dual_iir - Rust

Constant dual_iir::SAMPLE_PERIOD

source ·
pub(crate) const SAMPLE_PERIOD: f32 = _; // 1.27999999E-6f32
\ No newline at end of file diff --git a/firmware/dual_iir/constant.SAMPLE_TICKS.html b/firmware/dual_iir/constant.SAMPLE_TICKS.html new file mode 100644 index 0000000000..7501adfd32 --- /dev/null +++ b/firmware/dual_iir/constant.SAMPLE_TICKS.html @@ -0,0 +1 @@ +SAMPLE_TICKS in dual_iir - Rust

Constant dual_iir::SAMPLE_TICKS

source ·
pub(crate) const SAMPLE_TICKS: u32 = _; // 128u32
\ No newline at end of file diff --git a/firmware/dual_iir/constant.SAMPLE_TICKS_LOG2.html b/firmware/dual_iir/constant.SAMPLE_TICKS_LOG2.html new file mode 100644 index 0000000000..6386b01097 --- /dev/null +++ b/firmware/dual_iir/constant.SAMPLE_TICKS_LOG2.html @@ -0,0 +1 @@ +SAMPLE_TICKS_LOG2 in dual_iir - Rust
pub(crate) const SAMPLE_TICKS_LOG2: u8 = 7;
\ No newline at end of file diff --git a/firmware/dual_iir/constant.SCALE.html b/firmware/dual_iir/constant.SCALE.html new file mode 100644 index 0000000000..6c6d9d6655 --- /dev/null +++ b/firmware/dual_iir/constant.SCALE.html @@ -0,0 +1 @@ +SCALE in dual_iir - Rust

Constant dual_iir::SCALE

source ·
pub(crate) const SCALE: f32 = _; // 32767f32
\ No newline at end of file diff --git a/firmware/dual_iir/index.html b/firmware/dual_iir/index.html new file mode 100644 index 0000000000..44175cdacb --- /dev/null +++ b/firmware/dual_iir/index.html @@ -0,0 +1,25 @@ +dual_iir - Rust

Crate dual_iir

source ·
Expand description

Dual IIR

+

The Dual IIR application exposes two configurable channels. Stabilizer samples input at a fixed +rate, digitally filters the data, and then generates filtered output signals on the respective +channel outputs.

+

Features

+
    +
  • Two indpenendent channels
  • +
  • up to 800 kHz rate, timed sampling
  • +
  • Run-time filter configuration
  • +
  • Input/Output data streaming
  • +
  • Down to 2 µs latency
  • +
  • f32 IIR math
  • +
  • Generic biquad (second order) IIR filter
  • +
  • Anti-windup
  • +
  • Derivative kick avoidance
  • +
+

Settings

+

Refer to the Settings structure for documentation of run-time configurable settings for this +application.

+

Telemetry

+

Refer to Telemetry for information about telemetry reported by this application.

+

Livestreaming

+

This application streams raw ADC and DAC data over UDP. Refer to +stabilizer::net::data_stream for more information.

+

Modules

  • The RTIC application module

Structs

Constants

\ No newline at end of file diff --git a/firmware/dual_iir/sidebar-items.js b/firmware/dual_iir/sidebar-items.js new file mode 100644 index 0000000000..9965e41962 --- /dev/null +++ b/firmware/dual_iir/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"constant":["BATCH_SIZE","IIR_CASCADE_LENGTH","SAMPLE_PERIOD","SAMPLE_TICKS","SAMPLE_TICKS_LOG2","SCALE"],"mod":["app"],"struct":["Settings"]}; \ No newline at end of file diff --git a/firmware/dual_iir/struct.Settings.html b/firmware/dual_iir/struct.Settings.html new file mode 100644 index 0000000000..9a666bd344 --- /dev/null +++ b/firmware/dual_iir/struct.Settings.html @@ -0,0 +1,79 @@ +Settings in dual_iir - Rust

Struct dual_iir::Settings

source ·
pub struct Settings {
+    pub(crate) afe: [Gain; 2],
+    pub(crate) iir_ch: Array<[IIR<f32>; 1], 2>,
+    pub(crate) allow_hold: bool,
+    pub(crate) force_hold: bool,
+    pub(crate) telemetry_period: u16,
+    pub(crate) stream_target: StreamTarget,
+    pub(crate) signal_generator: Array<BasicConfig, 2>,
+}

Fields§

§afe: [Gain; 2]

Configure the Analog Front End (AFE) gain.

+

Path

+

afe/<n>

+
    +
  • <n> specifies which channel to configure. <n> := [0, 1]
  • +
+

Value

+

Any of the variants of Gain enclosed in double quotes.

+
§iir_ch: Array<[IIR<f32>; 1], 2>

Configure the IIR filter parameters.

+

Path

+

iir_ch/<n>/<m>

+
    +
  • <n> specifies which channel to configure. <n> := [0, 1]
  • +
  • <m> specifies which cascade to configure. <m> := [0, 1], depending on IIR_CASCADE_LENGTH
  • +
+

Value

+

See iir::IIR

+
§allow_hold: bool

Specified true if DI1 should be used as a “hold” input.

+

Path

+

allow_hold

+

Value

+

“true” or “false”

+
§force_hold: bool

Specified true if “hold” should be forced regardless of DI1 state and hold allowance.

+

Path

+

force_hold

+

Value

+

“true” or “false”

+
§telemetry_period: u16

Specifies the telemetry output period in seconds.

+

Path

+

telemetry_period

+

Value

+

Any non-zero value less than 65536.

+
§stream_target: StreamTarget

Specifies the target for data livestreaming.

+

Path

+

stream_target

+

Value

+

See StreamTarget

+
§signal_generator: Array<BasicConfig, 2>

Specifies the config for signal generators to add on to DAC0/DAC1 outputs.

+

Path

+

signal_generator/<n>

+
    +
  • <n> specifies which channel to configure. <n> := [0, 1]
  • +
+

Value

+

See signal_generator::BasicConfig

+

Trait Implementations§

source§

impl Clone for Settings

source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Settings

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Miniconf for Settings

source§

fn set_path<'a, P: Peekable<Item = &'a str>>( + &mut self, + path_parts: &'a mut P, + value: &[u8] +) -> Result<usize, Error>

Deserialize an element by path. Read more
source§

fn get_path<'a, P: Peekable<Item = &'a str>>( + &self, + path_parts: &'a mut P, + value: &mut [u8] +) -> Result<usize, Error>

Serialize an element by path. Read more
source§

fn next_path<const TS: usize>( + state: &mut [usize], + path: &mut String<TS> +) -> Result<bool, IterError>

Get the next path in the namespace. Read more
source§

fn metadata() -> Metadata

Get metadata about the paths in the namespace.
source§

fn set(&mut self, path: &str, data: &[u8]) -> Result<usize, Error>

Update an element by path. Read more
source§

fn get(&self, path: &str, data: &mut [u8]) -> Result<usize, Error>

Retrieve a serialized value by path. Read more
source§

fn iter_paths<const L: usize, const TS: usize>( + +) -> Result<MiniconfIter<Self, L, TS>, IterError>

Create an iterator of all possible paths. Read more
source§

fn unchecked_iter_paths<const L: usize, const TS: usize>( + count: Option<usize> +) -> MiniconfIter<Self, L, TS>

Create an iterator of all possible paths. Read more
source§

impl Copy for Settings

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/help.html b/firmware/help.html new file mode 100644 index 0000000000..563dc45867 --- /dev/null +++ b/firmware/help.html @@ -0,0 +1 @@ +Rustdoc help

Rustdoc help

Back
\ No newline at end of file diff --git a/firmware/idsp/accu/struct.Accu.html b/firmware/idsp/accu/struct.Accu.html new file mode 100644 index 0000000000..0be5cbf3d2 --- /dev/null +++ b/firmware/idsp/accu/struct.Accu.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/struct.Accu.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/all.html b/firmware/idsp/all.html new file mode 100644 index 0000000000..ab1ae56c39 --- /dev/null +++ b/firmware/idsp/all.html @@ -0,0 +1 @@ +List of all items in this crate
\ No newline at end of file diff --git a/firmware/idsp/atan2/fn.atan2.html b/firmware/idsp/atan2/fn.atan2.html new file mode 100644 index 0000000000..ab2e89cef8 --- /dev/null +++ b/firmware/idsp/atan2/fn.atan2.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/fn.atan2.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/complex/struct.Complex.html b/firmware/idsp/complex/struct.Complex.html new file mode 100644 index 0000000000..f35ad587c7 --- /dev/null +++ b/firmware/idsp/complex/struct.Complex.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/struct.Complex.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/complex/trait.ComplexExt.html b/firmware/idsp/complex/trait.ComplexExt.html new file mode 100644 index 0000000000..67c86964a4 --- /dev/null +++ b/firmware/idsp/complex/trait.ComplexExt.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/trait.ComplexExt.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/complex/trait.MulScaled.html b/firmware/idsp/complex/trait.MulScaled.html new file mode 100644 index 0000000000..60a9d55ba3 --- /dev/null +++ b/firmware/idsp/complex/trait.MulScaled.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/trait.MulScaled.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/cossin/fn.cossin.html b/firmware/idsp/cossin/fn.cossin.html new file mode 100644 index 0000000000..1b3c54abd4 --- /dev/null +++ b/firmware/idsp/cossin/fn.cossin.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/fn.cossin.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/fn.abs.html b/firmware/idsp/fn.abs.html new file mode 100644 index 0000000000..29e2d30f50 --- /dev/null +++ b/firmware/idsp/fn.abs.html @@ -0,0 +1,2 @@ +abs in idsp - Rust

Function idsp::abs

source ·
pub fn abs<T>(x: T) -> Twhere
+    T: PartialOrd + Default + Neg<Output = T>,
\ No newline at end of file diff --git a/firmware/idsp/fn.atan2.html b/firmware/idsp/fn.atan2.html new file mode 100644 index 0000000000..762df10df3 --- /dev/null +++ b/firmware/idsp/fn.atan2.html @@ -0,0 +1,14 @@ +atan2 in idsp - Rust

Function idsp::atan2

source ·
pub fn atan2(y: i32, x: i32) -> i32
Expand description

2-argument arctangent function.

+

This implementation uses all integer arithmetic for fast +computation.

+

Arguments

+
    +
  • y - Y-axis component.
  • +
  • x - X-axis component.
  • +
+

Returns

+

The angle between the x-axis and the ray to the point (x,y). The +result range is from i32::MIN to i32::MAX, where i32::MIN +represents -pi and, equivalently, +pi. i32::MAX represents one +count less than +pi.

+
\ No newline at end of file diff --git a/firmware/idsp/fn.copysign.html b/firmware/idsp/fn.copysign.html new file mode 100644 index 0000000000..b8325dbbd1 --- /dev/null +++ b/firmware/idsp/fn.copysign.html @@ -0,0 +1,2 @@ +copysign in idsp - Rust

Function idsp::copysign

source ·
pub fn copysign<T>(x: T, y: T) -> Twhere
+    T: PartialOrd + Default + Neg<Output = T>,
\ No newline at end of file diff --git a/firmware/idsp/fn.cossin.html b/firmware/idsp/fn.cossin.html new file mode 100644 index 0000000000..2e2bfc9d09 --- /dev/null +++ b/firmware/idsp/fn.cossin.html @@ -0,0 +1,12 @@ +cossin in idsp - Rust

Function idsp::cossin

source ·
pub fn cossin(phase: i32) -> (i32, i32)
Expand description

Compute the cosine and sine of an angle. +This is ported from the MiSoC cossin core. +https://github.com/m-labs/misoc/blob/master/misoc/cores/cossin.py

+

Arguments

+
    +
  • phase - 32-bit phase.
  • +
+

Returns

+

The cos and sin values of the provided phase as a (i32, i32) +tuple. With a 7-bit deep LUT there is 9e-6 max and 4e-6 RMS error +in each quadrature over 20 bit phase.

+
\ No newline at end of file diff --git a/firmware/idsp/fn.macc.html b/firmware/idsp/fn.macc.html new file mode 100644 index 0000000000..e577e62759 --- /dev/null +++ b/firmware/idsp/fn.macc.html @@ -0,0 +1,2 @@ +macc in idsp - Rust

Function idsp::macc

source ·
pub fn macc<T>(y0: T, x: &[T], a: &[T]) -> Twhere
+    T: Add<Output = T> + Mul<Output = T> + Copy,
\ No newline at end of file diff --git a/firmware/idsp/fn.macc_i32.html b/firmware/idsp/fn.macc_i32.html new file mode 100644 index 0000000000..33c726f885 --- /dev/null +++ b/firmware/idsp/fn.macc_i32.html @@ -0,0 +1 @@ +macc_i32 in idsp - Rust

Function idsp::macc_i32

source ·
pub fn macc_i32(y0: i32, x: &[i32], a: &[i32], shift: u32) -> i32
\ No newline at end of file diff --git a/firmware/idsp/fn.overflowing_sub.html b/firmware/idsp/fn.overflowing_sub.html new file mode 100644 index 0000000000..c5fb9bc1ae --- /dev/null +++ b/firmware/idsp/fn.overflowing_sub.html @@ -0,0 +1,9 @@ +overflowing_sub in idsp - Rust

Function idsp::overflowing_sub

source ·
pub fn overflowing_sub<T>(y: T, x: T) -> (T, i32)where
+    T: WrappingSub + Zero + PartialOrd,
Expand description

Subtract y - x with signed overflow.

+

This is very similar to i32::overflowing_sub(y, x) except that the +overflow indicator is not a boolean but the signum of the overflow. +Additionally it’s typically faster.

+

Returns: +A tuple containg the (wrapped) difference y - x and the signum of the +overflow.

+
\ No newline at end of file diff --git a/firmware/idsp/fn.saturating_scale.html b/firmware/idsp/fn.saturating_scale.html new file mode 100644 index 0000000000..f443a814a5 --- /dev/null +++ b/firmware/idsp/fn.saturating_scale.html @@ -0,0 +1,8 @@ +saturating_scale in idsp - Rust

Function idsp::saturating_scale

source ·
pub fn saturating_scale(lo: i32, hi: i32, shift: u32) -> i32
Expand description

Combine high and low i32 into a single downscaled i32, saturating monotonically.

+

Args: +lo: LSB i32 to scale down by shift and range-extend with hi +hi: MSB i32 to scale up and extend lo with. Output will be clipped if +hi exceeds the output i32 range. +shift: Downscale lo by that many bits. Values from 1 to 32 inclusive +are valid.

+
\ No newline at end of file diff --git a/firmware/idsp/iir/index.html b/firmware/idsp/iir/index.html new file mode 100644 index 0000000000..7cda5720c4 --- /dev/null +++ b/firmware/idsp/iir/index.html @@ -0,0 +1 @@ +idsp::iir - Rust

Module idsp::iir

source ·

Structs

  • IIR configuration.

Type Definitions

  • IIR state and coefficients type.
\ No newline at end of file diff --git a/firmware/idsp/iir/sidebar-items.js b/firmware/idsp/iir/sidebar-items.js new file mode 100644 index 0000000000..7e5ad50b66 --- /dev/null +++ b/firmware/idsp/iir/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["IIR"],"type":["Vec5"]}; \ No newline at end of file diff --git a/firmware/idsp/iir/struct.IIR.html b/firmware/idsp/iir/struct.IIR.html new file mode 100644 index 0000000000..2cafbe3381 --- /dev/null +++ b/firmware/idsp/iir/struct.IIR.html @@ -0,0 +1,84 @@ +IIR in idsp::iir - Rust

Struct idsp::iir::IIR

source ·
pub struct IIR<T> {
+    pub ba: Vec5<T>,
+    pub y_offset: T,
+    pub y_min: T,
+    pub y_max: T,
+}
Expand description

IIR configuration.

+

Contains the coeeficients ba, the output offset y_offset, and the +output limits y_min and y_max. Data is represented in variable precision +floating-point. The dataformat is the same for all internal signals, input +and output.

+

This implementation achieves several important properties:

+
    +
  • Its transfer function is universal in the sense that any biquadratic +transfer function can be implemented (high-passes, gain limits, second +order integrators with inherent anti-windup, notches etc) without code +changes preserving all features.
  • +
  • It inherits a universal implementation of “integrator anti-windup”, also +and especially in the presence of set-point changes and in the presence +of proportional or derivative gain without any back-off that would reduce +steady-state output range.
  • +
  • It has universal derivative-kick (undesired, unlimited, and un-physical +amplification of set-point changes by the derivative term) avoidance.
  • +
  • An offset at the input of an IIR filter (a.k.a. “set-point”) is +equivalent to an offset at the output. They are related by the +overall (DC feed-forward) gain of the filter.
  • +
  • It stores only previous outputs and inputs. These have direct and +invariant interpretation (independent of gains and offsets). +Therefore it can trivially implement bump-less transfer.
  • +
  • Cascading multiple IIR filters allows stable and robust +implementation of transfer functions beyond bequadratic terms.
  • +
+

Serialization/Deserialization/Miniconf

+

{"y_offset": y_offset, "y_min": y_min, "y_max": y_max, "ba": [b0, b1, b2, a1, a2]}

+
    +
  • y0 is the output offset code
  • +
  • ym is the lower saturation limit
  • +
  • yM is the upper saturation limit
  • +
+

IIR filter tap gains (ba) are an array [b0, b1, b2, a1, a2] such that the +new output is computed as y0 = a1*y1 + a2*y2 + b0*x0 + b1*x1 + b2*x2. +The IIR coefficients can be mapped to other transfer function +representations, for example as described in https://arxiv.org/abs/1508.06319

+

Fields§

§ba: Vec5<T>§y_offset: T§y_min: T§y_max: T

Implementations§

source§

impl<T: Float + Default + Sum<T>> IIR<T>

source

pub fn new(gain: T, y_min: T, y_max: T) -> Self

source

pub fn set_pi(&mut self, kp: T, ki: T, g: T) -> Result<(), &str>

Configures IIR filter coefficients for proportional-integral behavior +with gain limit.

+
Arguments
+
    +
  • kp - Proportional gain. Also defines gain sign.
  • +
  • ki - Integral gain at Nyquist. Sign taken from kp.
  • +
  • g - Gain limit.
  • +
+
source

pub fn get_k(&self) -> T

Compute the overall (DC feed-forward) gain.

+
source

pub fn get_x_offset(&self) -> Result<T, &str>

source

pub fn set_x_offset(&mut self, xo: T)

Convert input (x) offset to equivalent output (y) offset and apply.

+
Arguments
+
    +
  • xo: Input (x) offset.
  • +
+
source

pub fn update(&self, xy: &mut Vec5<T>, x0: T, hold: bool) -> T

Feed a new input value into the filter, update the filter state, and +return the new output. Only the state xy is modified.

+
Arguments
+
    +
  • xy - Current filter state.
  • +
  • x0 - New input.
  • +
+

Trait Implementations§

source§

impl<T: Clone> Clone for IIR<T>

source§

fn clone(&self) -> IIR<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for IIR<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default> Default for IIR<T>

source§

fn default() -> IIR<T>

Returns the “default value” for a type. Read more
source§

impl<'de, T> Deserialize<'de> for IIR<T>where + T: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Serialize for IIR<T>where + T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Copy> Copy for IIR<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for IIR<T>where + T: RefUnwindSafe,

§

impl<T> Send for IIR<T>where + T: Send,

§

impl<T> Sync for IIR<T>where + T: Sync,

§

impl<T> Unpin for IIR<T>where + T: Unpin,

§

impl<T> UnwindSafe for IIR<T>where + T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/idsp/iir/type.Vec5.html b/firmware/idsp/iir/type.Vec5.html new file mode 100644 index 0000000000..b5dffc4865 --- /dev/null +++ b/firmware/idsp/iir/type.Vec5.html @@ -0,0 +1,8 @@ +Vec5 in idsp::iir - Rust

Type Definition idsp::iir::Vec5

source ·
pub type Vec5<T> = [T; 5];
Expand description

IIR state and coefficients type.

+

To represent the IIR state (input and output memory) during the filter update +this contains the three inputs (x0, x1, x2) and the two outputs (y1, y2) +concatenated. Lower indices correspond to more recent samples. +To represent the IIR coefficients, this contains the feed-forward +coefficients (b0, b1, b2) followd by the negated feed-back coefficients +(-a1, -a2), all five normalized such that a0 = 1.

+
\ No newline at end of file diff --git a/firmware/idsp/iir_int/index.html b/firmware/idsp/iir_int/index.html new file mode 100644 index 0000000000..074a43ce22 --- /dev/null +++ b/firmware/idsp/iir_int/index.html @@ -0,0 +1,3 @@ +idsp::iir_int - Rust

Module idsp::iir_int

source ·

Structs

  • Integer biquad IIR

Type Definitions

  • Generic vector for integer IIR filter. +This struct is used to hold the x/y input/output data vector or the b/a coefficient +vector.
\ No newline at end of file diff --git a/firmware/idsp/iir_int/sidebar-items.js b/firmware/idsp/iir_int/sidebar-items.js new file mode 100644 index 0000000000..7e5ad50b66 --- /dev/null +++ b/firmware/idsp/iir_int/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["IIR"],"type":["Vec5"]}; \ No newline at end of file diff --git a/firmware/idsp/iir_int/struct.IIR.html b/firmware/idsp/iir_int/struct.IIR.html new file mode 100644 index 0000000000..556f0368b0 --- /dev/null +++ b/firmware/idsp/iir_int/struct.IIR.html @@ -0,0 +1,32 @@ +IIR in idsp::iir_int - Rust

Struct idsp::iir_int::IIR

source ·
pub struct IIR {
+    pub ba: Vec5,
+    pub y_offset: i32,
+    pub y_min: i32,
+    pub y_max: i32,
+}
Expand description

Integer biquad IIR

+

See dsp::iir::IIR for general implementation details. +Offset and limiting disabled to suit lowpass applications. +Coefficient scaling fixed and optimized.

+

Fields§

§ba: Vec5§y_offset: i32§y_min: i32§y_max: i32

Implementations§

source§

impl IIR

source

pub const SHIFT: u32 = 30u32

Coefficient fixed point format: signed Q2.30. +Tailored to low-passes, PI, II etc.

+
source

pub fn update(&self, xy: &mut Vec5, x0: i32) -> i32

Feed a new input value into the filter, update the filter state, and +return the new output. Only the state xy is modified.

+
Arguments
+
    +
  • xy - Current filter state.
  • +
  • x0 - New input.
  • +
+

Trait Implementations§

source§

impl Clone for IIR

source§

fn clone(&self) -> IIR

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for IIR

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for IIR

source§

fn default() -> IIR

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for IIR

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for IIR

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for IIR

Auto Trait Implementations§

§

impl RefUnwindSafe for IIR

§

impl Send for IIR

§

impl Sync for IIR

§

impl Unpin for IIR

§

impl UnwindSafe for IIR

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/idsp/iir_int/type.Vec5.html b/firmware/idsp/iir_int/type.Vec5.html new file mode 100644 index 0000000000..f8c1e3e1dd --- /dev/null +++ b/firmware/idsp/iir_int/type.Vec5.html @@ -0,0 +1,4 @@ +Vec5 in idsp::iir_int - Rust

Type Definition idsp::iir_int::Vec5

source ·
pub type Vec5 = [i32; 5];
Expand description

Generic vector for integer IIR filter. +This struct is used to hold the x/y input/output data vector or the b/a coefficient +vector.

+
\ No newline at end of file diff --git a/firmware/idsp/index.html b/firmware/idsp/index.html new file mode 100644 index 0000000000..b89a72a0e5 --- /dev/null +++ b/firmware/idsp/index.html @@ -0,0 +1,4 @@ +idsp - Rust

Crate idsp

source ·

Modules

Structs

  • A complex number in Cartesian form.
  • Arbitrary order, high dynamic range, wide coefficient range, +lowpass filter implementation. DC gain is 1.
  • Type-II, sampled phase, discrete time PLL
  • Reciprocal PLL.
  • Overflow unwrapper.

Traits

  • Complex extension trait offering DSP (fast, good accuracy) functionality.
  • Full scale fixed point multiplication.

Functions

\ No newline at end of file diff --git a/firmware/idsp/lockin/struct.Lockin.html b/firmware/idsp/lockin/struct.Lockin.html new file mode 100644 index 0000000000..b129c64320 --- /dev/null +++ b/firmware/idsp/lockin/struct.Lockin.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/struct.Lockin.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/lowpass/struct.Lowpass.html b/firmware/idsp/lowpass/struct.Lowpass.html new file mode 100644 index 0000000000..6032756d16 --- /dev/null +++ b/firmware/idsp/lowpass/struct.Lowpass.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/struct.Lowpass.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/pll/struct.PLL.html b/firmware/idsp/pll/struct.PLL.html new file mode 100644 index 0000000000..08d8ffe9e3 --- /dev/null +++ b/firmware/idsp/pll/struct.PLL.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/struct.PLL.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/rpll/struct.RPLL.html b/firmware/idsp/rpll/struct.RPLL.html new file mode 100644 index 0000000000..a4532964e4 --- /dev/null +++ b/firmware/idsp/rpll/struct.RPLL.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/struct.RPLL.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/sidebar-items.js b/firmware/idsp/sidebar-items.js new file mode 100644 index 0000000000..8e76197a59 --- /dev/null +++ b/firmware/idsp/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["abs","atan2","copysign","cossin","macc","macc_i32","overflowing_sub","saturating_scale"],"mod":["iir","iir_int"],"struct":["Accu","Complex","Lockin","Lowpass","PLL","RPLL","Unwrapper"],"trait":["ComplexExt","MulScaled"]}; \ No newline at end of file diff --git a/firmware/idsp/struct.Accu.html b/firmware/idsp/struct.Accu.html new file mode 100644 index 0000000000..2030d46fb1 --- /dev/null +++ b/firmware/idsp/struct.Accu.html @@ -0,0 +1,194 @@ +Accu in idsp - Rust

Struct idsp::Accu

source ·
pub struct Accu<T> { /* private fields */ }

Implementations§

source§

impl<T> Accu<T>

source

pub fn new(state: T, step: T) -> Self

Trait Implementations§

source§

impl<T: Clone> Clone for Accu<T>

source§

fn clone(&self) -> Accu<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for Accu<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default> Default for Accu<T>

source§

fn default() -> Accu<T>

Returns the “default value” for a type. Read more
source§

impl<T> Iterator for Accu<T>where + T: WrappingAdd + Copy,

§

type Item = T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<T>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( + &mut self +) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where + Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usizewhere + Self: Sized,

Consumes the iterator, counting the number of iterations and returning it. Read more
1.0.0 · source§

fn last(self) -> Option<Self::Item>where + Self: Sized,

Consumes the iterator, returning the last element. Read more
source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator by n elements. Read more
1.0.0 · source§

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 · source§

fn step_by(self, step: usize) -> StepBy<Self>where + Self: Sized,

Creates an iterator starting at the same point, but stepping by +the given amount at each iteration. Read more
1.0.0 · source§

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>where + Self: Sized, + U: IntoIterator<Item = Self::Item>,

Takes two iterators and creates a new iterator over both in sequence. Read more
1.0.0 · source§

fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>where + Self: Sized, + U: IntoIterator,

‘Zips up’ two iterators into a single iterator of pairs. Read more
source§

fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>where + Self: Sized, + G: FnMut() -> Self::Item,

🔬This is a nightly-only experimental API. (iter_intersperse)
Creates a new iterator which places an item generated by separator +between adjacent items of the original iterator. Read more
1.0.0 · source§

fn map<B, F>(self, f: F) -> Map<Self, F>where + Self: Sized, + F: FnMut(Self::Item) -> B,

Takes a closure and creates an iterator which calls that closure on each +element. Read more
1.21.0 · source§

fn for_each<F>(self, f: F)where + Self: Sized, + F: FnMut(Self::Item),

Calls a closure on each element of an iterator. Read more
1.0.0 · source§

fn filter<P>(self, predicate: P) -> Filter<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element +should be yielded. Read more
1.0.0 · source§

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>where + Self: Sized, + F: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both filters and maps. Read more
1.0.0 · source§

fn enumerate(self) -> Enumerate<Self>where + Self: Sized,

Creates an iterator which gives the current iteration count as well as +the next value. Read more
1.0.0 · source§

fn peekable(self) -> Peekable<Self>where + Self: Sized,

Creates an iterator which can use the peek and peek_mut methods +to look at the next element of the iterator without consuming it. See +their documentation for more information. Read more
1.0.0 · source§

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 · source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 · source§

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>where + Self: Sized, + P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 · source§

fn skip(self, n: usize) -> Skip<Self>where + Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 · source§

fn take(self, n: usize) -> Take<Self>where + Self: Sized,

Creates an iterator that yields the first n elements, or fewer +if the underlying iterator ends sooner. Read more
1.0.0 · source§

fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>where + Self: Sized, + F: FnMut(&mut St, Self::Item) -> Option<B>,

An iterator adapter which, like fold, holds internal state, but +unlike fold, produces a new iterator. Read more
1.0.0 · source§

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>where + Self: Sized, + U: IntoIterator, + F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
1.0.0 · source§

fn fuse(self) -> Fuse<Self>where + Self: Sized,

Creates an iterator which ends after the first None. Read more
1.0.0 · source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>where + Self: Sized, + F: FnMut(&Self::Item),

Does something with each element of an iterator, passing the value on. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Selfwhere + Self: Sized,

Borrows an iterator, rather than consuming it. Read more
1.0.0 · source§

fn collect<B>(self) -> Bwhere + B: FromIterator<Self::Item>, + Self: Sized,

Transforms an iterator into a collection. Read more
source§

fn collect_into<E>(self, collection: &mut E) -> &mut Ewhere + E: Extend<Self::Item>, + Self: Sized,

🔬This is a nightly-only experimental API. (iter_collect_into)
Collects all the items from an iterator into a collection. Read more
1.0.0 · source§

fn partition<B, F>(self, f: F) -> (B, B)where + Self: Sized, + B: Default + Extend<Self::Item>, + F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
source§

fn is_partitioned<P>(self, predicate: P) -> boolwhere + Self: Sized, + P: FnMut(Self::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_is_partitioned)
Checks if the elements of this iterator are partitioned according to the given predicate, +such that all those that return true precede all those that return false. Read more
1.27.0 · source§

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> Rwhere + Self: Sized, + F: FnMut(B, Self::Item) -> R, + R: Try<Output = B>,

An iterator method that applies a function as long as it returns +successfully, producing a single, final value. Read more
1.27.0 · source§

fn try_for_each<F, R>(&mut self, f: F) -> Rwhere + Self: Sized, + F: FnMut(Self::Item) -> R, + R: Try<Output = ()>,

An iterator method that applies a fallible function to each item in the +iterator, stopping at the first error and returning that error. Read more
1.0.0 · source§

fn fold<B, F>(self, init: B, f: F) -> Bwhere + Self: Sized, + F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation, +returning the final result. Read more
1.51.0 · source§

fn reduce<F>(self, f: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing +operation. Read more
source§

fn try_reduce<F, R>( + &mut self, + f: F +) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryTypewhere + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> R, + R: Try<Output = Self::Item>, + <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (iterator_try_reduce)
Reduces the elements to a single one by repeatedly applying a reducing operation. If the +closure returns a failure, the failure is propagated back to the caller immediately. Read more
1.0.0 · source§

fn all<F>(&mut self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 · source§

fn any<F>(&mut self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 · source§

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 · source§

fn find_map<B, F>(&mut self, f: F) -> Option<B>where + Self: Sized, + F: FnMut(Self::Item) -> Option<B>,

Applies function to the elements of iterator and returns +the first non-none result. Read more
source§

fn try_find<F, R>( + &mut self, + f: F +) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryTypewhere + Self: Sized, + F: FnMut(&Self::Item) -> R, + R: Try<Output = bool>, + <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (try_find)
Applies function to the elements of iterator and returns +the first true result or the first error. Read more
1.0.0 · source§

fn position<P>(&mut self, predicate: P) -> Option<usize>where + Self: Sized, + P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 · source§

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>where + B: Ord, + Self: Sized, + F: FnMut(&Self::Item) -> B,

Returns the element that gives the maximum value from the +specified function. Read more
1.15.0 · source§

fn max_by<F>(self, compare: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the +specified comparison function. Read more
1.6.0 · source§

fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>where + B: Ord, + Self: Sized, + F: FnMut(&Self::Item) -> B,

Returns the element that gives the minimum value from the +specified function. Read more
1.15.0 · source§

fn min_by<F>(self, compare: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the +specified comparison function. Read more
1.0.0 · source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)where + FromA: Default + Extend<A>, + FromB: Default + Extend<B>, + Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 · source§

fn copied<'a, T>(self) -> Copied<Self>where + T: 'a + Copy, + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 · source§

fn cloned<'a, T>(self) -> Cloned<Self>where + T: 'a + Clone, + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
1.0.0 · source§

fn cycle(self) -> Cycle<Self>where + Self: Sized + Clone,

Repeats an iterator endlessly. Read more
source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>where + Self: Sized,

🔬This is a nightly-only experimental API. (iter_array_chunks)
Returns an iterator over N elements of the iterator at a time. Read more
1.11.0 · source§

fn sum<S>(self) -> Swhere + Self: Sized, + S: Sum<Self::Item>,

Sums the elements of an iterator. Read more
1.11.0 · source§

fn product<P>(self) -> Pwhere + Self: Sized, + P: Product<Self::Item>,

Iterates over the entire iterator, multiplying all the elements Read more
source§

fn cmp_by<I, F>(self, other: I, cmp: F) -> Orderingwhere + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those +of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn partial_cmp<I>(self, other: I) -> Option<Ordering>where + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Lexicographically compares the PartialOrd elements of +this Iterator with those of another. The comparison works like short-circuit +evaluation, returning a result without comparing the remaining elements. +As soon as an order can be determined, the evaluation stops and a result is returned. Read more
source§

fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those +of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn eq<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialEq<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are equal to those of +another. Read more
source§

fn eq_by<I, F>(self, other: I, eq: F) -> boolwhere + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_order_by)
Determines if the elements of this Iterator are equal to those of +another with respect to the specified equality function. Read more
1.5.0 · source§

fn ne<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialEq<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are not equal to those of +another. Read more
1.5.0 · source§

fn lt<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +less than those of another. Read more
1.5.0 · source§

fn le<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +less or equal to those of another. Read more
1.5.0 · source§

fn gt<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +greater than those of another. Read more
1.5.0 · source§

fn ge<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +greater than or equal to those of another. Read more
source§

fn is_sorted_by<F>(self, compare: F) -> boolwhere + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted using the given comparator function. Read more
source§

fn is_sorted_by_key<F, K>(self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> K, + K: PartialOrd<K>,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted using the given key extraction +function. Read more
source§

impl<T: PartialEq> PartialEq<Accu<T>> for Accu<T>

source§

fn eq(&self, other: &Accu<T>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<T: Copy> Copy for Accu<T>

source§

impl<T: Eq> Eq for Accu<T>

source§

impl<T> StructuralEq for Accu<T>

source§

impl<T> StructuralPartialEq for Accu<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Accu<T>where + T: RefUnwindSafe,

§

impl<T> Send for Accu<T>where + T: Send,

§

impl<T> Sync for Accu<T>where + T: Sync,

§

impl<T> Unpin for Accu<T>where + T: Unpin,

§

impl<T> UnwindSafe for Accu<T>where + T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<I> IntoIterator for Iwhere + I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/idsp/struct.Complex.html b/firmware/idsp/struct.Complex.html new file mode 100644 index 0000000000..f6f5acbf9e --- /dev/null +++ b/firmware/idsp/struct.Complex.html @@ -0,0 +1,300 @@ +Complex in idsp - Rust

Struct idsp::Complex

source ·
pub struct Complex<T> {
+    pub re: T,
+    pub im: T,
+}
Expand description

A complex number in Cartesian form.

+

Representation and Foreign Function Interface Compatibility

+

Complex<T> is memory layout compatible with an array [T; 2].

+

Note that Complex<F> where F is a floating point type is only memory +layout compatible with C’s complex types, not necessarily calling +convention compatible. This means that for FFI you can only pass +Complex<F> behind a pointer, not as a value.

+

Examples

+

Example of extern function declaration.

+ +
use num_complex::Complex;
+use std::os::raw::c_int;
+
+extern "C" {
+    fn zaxpy_(n: *const c_int, alpha: *const Complex<f64>,
+              x: *const Complex<f64>, incx: *const c_int,
+              y: *mut Complex<f64>, incy: *const c_int);
+}
+

Fields§

§re: T

Real portion of the complex number

+
§im: T

Imaginary portion of the complex number

+

Implementations§

source§

impl<T> Complex<T>

source

pub const fn new(re: T, im: T) -> Complex<T>

Create a new Complex

+
source§

impl<T> Complex<T>where + T: Clone + Num,

source

pub fn i() -> Complex<T>

Returns imaginary unit

+
source

pub fn norm_sqr(&self) -> T

Returns the square of the norm (since T doesn’t necessarily +have a sqrt function), i.e. re^2 + im^2.

+
source

pub fn scale(&self, t: T) -> Complex<T>

Multiplies self by the scalar t.

+
source

pub fn unscale(&self, t: T) -> Complex<T>

Divides self by the scalar t.

+
source

pub fn powu(&self, exp: u32) -> Complex<T>

Raises self to an unsigned integer power.

+
source§

impl<T> Complex<T>where + T: Clone + Num + Neg<Output = T>,

source

pub fn conj(&self) -> Complex<T>

Returns the complex conjugate. i.e. re - i im

+
source

pub fn inv(&self) -> Complex<T>

Returns 1/self

+
source

pub fn powi(&self, exp: i32) -> Complex<T>

Raises self to a signed integer power.

+
source§

impl<T> Complex<T>where + T: Clone + Signed,

source

pub fn l1_norm(&self) -> T

Returns the L1 norm |re| + |im| – the Manhattan distance from the origin.

+
source§

impl<T> Complex<T>where + T: FloatCore,

source

pub fn is_nan(self) -> bool

Checks if the given complex number is NaN

+
source

pub fn is_infinite(self) -> bool

Checks if the given complex number is infinite

+
source

pub fn is_finite(self) -> bool

Checks if the given complex number is finite

+
source

pub fn is_normal(self) -> bool

Checks if the given complex number is normal

+

Trait Implementations§

source§

impl<'a, T> Add<&'a Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the + operator.
source§

fn add(self, other: &Complex<T>) -> <Complex<T> as Add<&'a Complex<T>>>::Output

Performs the + operation. Read more
source§

impl<'a, 'b, T> Add<&'a T> for &'b Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the + operator.
source§

fn add(self, other: &T) -> <&'b Complex<T> as Add<&'a T>>::Output

Performs the + operation. Read more
source§

impl<'a, T> Add<&'a T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the + operator.
source§

fn add(self, other: &T) -> <Complex<T> as Add<&'a T>>::Output

Performs the + operation. Read more
source§

impl<'a, 'b, T> Add<&'b Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the + operator.
source§

fn add( + self, + other: &Complex<T> +) -> <&'a Complex<T> as Add<&'b Complex<T>>>::Output

Performs the + operation. Read more
source§

impl<'a, T> Add<Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the + operator.
source§

fn add(self, other: Complex<T>) -> <&'a Complex<T> as Add<Complex<T>>>::Output

Performs the + operation. Read more
source§

impl<T> Add<Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the + operator.
source§

fn add(self, other: Complex<T>) -> <Complex<T> as Add<Complex<T>>>::Output

Performs the + operation. Read more
source§

impl<'a, T> Add<T> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the + operator.
source§

fn add(self, other: T) -> <&'a Complex<T> as Add<T>>::Output

Performs the + operation. Read more
source§

impl<T> Add<T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the + operator.
source§

fn add(self, other: T) -> <Complex<T> as Add<T>>::Output

Performs the + operation. Read more
source§

impl<'a, T> AddAssign<&'a Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn add_assign(&mut self, other: &Complex<T>)

Performs the += operation. Read more
source§

impl<'a, T> AddAssign<&'a T> for Complex<T>where + T: Clone + NumAssign,

source§

fn add_assign(&mut self, other: &T)

Performs the += operation. Read more
source§

impl<T> AddAssign<Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn add_assign(&mut self, other: Complex<T>)

Performs the += operation. Read more
source§

impl<T> AddAssign<T> for Complex<T>where + T: Clone + NumAssign,

source§

fn add_assign(&mut self, other: T)

Performs the += operation. Read more
source§

impl<T, U> AsPrimitive<U> for Complex<T>where + T: AsPrimitive<U>, + U: 'static + Copy,

source§

fn as_(self) -> U

Convert a value to another, using the as operator.
source§

impl<T> Binary for Complex<T>where + T: Binary + Num + PartialOrd<T> + Clone,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<T> Clone for Complex<T>where + T: Clone,

source§

fn clone(&self) -> Complex<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ComplexExt<i32, u32> for Complex<i32>

source§

fn from_angle(angle: i32) -> Self

Return a Complex on the unit circle given an angle.

+

Example:

+ +
use idsp::{Complex, ComplexExt};
+Complex::<i32>::from_angle(0);
+Complex::<i32>::from_angle(1 << 30);  // pi/2
+Complex::<i32>::from_angle(-1 << 30);  // -pi/2
+
source§

fn abs_sqr(&self) -> u32

Return the absolute square (the squared magnitude).

+

Note: Normalization is 1 << 32, i.e. U0.32.

+

Note(panic): This will panic for Complex(i32::MIN, i32::MIN)

+

Example:

+ +
use idsp::{Complex, ComplexExt};
+assert_eq!(Complex::new(i32::MIN, 0).abs_sqr(), 1 << 31);
+assert_eq!(Complex::new(i32::MAX, i32::MAX).abs_sqr(), u32::MAX - 3);
+
source§

fn log2(&self) -> i32

log2(power) re full scale approximation

+

TODO: scale up, interpolate

+

Panic: +This will panic for Complex(i32::MIN, i32::MIN)

+

Example:

+ +
use idsp::{Complex, ComplexExt};
+assert_eq!(Complex::new(i32::MAX, i32::MAX).log2(), -1);
+assert_eq!(Complex::new(i32::MAX, 0).log2(), -2);
+assert_eq!(Complex::new(1, 0).log2(), -63);
+assert_eq!(Complex::new(0, 0).log2(), -64);
+
source§

fn arg(&self) -> i32

Return the angle.

+

Note: Normalization is 1 << 31 == pi.

+

Example:

+ +
use idsp::{Complex, ComplexExt};
+assert_eq!(Complex::new(0, 0).arg(), 0);
+
source§

fn saturating_add(&self, other: Self) -> Self

source§

fn saturating_sub(&self, other: Self) -> Self

source§

impl<T> Debug for Complex<T>where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for Complex<T>where + T: Default,

source§

fn default() -> Complex<T>

Returns the “default value” for a type. Read more
source§

impl<'de, T> Deserialize<'de> for Complex<T>where + T: Deserialize<'de> + Num + Clone,

source§

fn deserialize<D>( + deserializer: D +) -> Result<Complex<T>, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Display for Complex<T>where + T: Display + Num + PartialOrd<T> + Clone,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Div<&'a Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the / operator.
source§

fn div(self, other: &Complex<T>) -> <Complex<T> as Div<&'a Complex<T>>>::Output

Performs the / operation. Read more
source§

impl<'a, 'b, T> Div<&'a T> for &'b Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the / operator.
source§

fn div(self, other: &T) -> <&'b Complex<T> as Div<&'a T>>::Output

Performs the / operation. Read more
source§

impl<'a, T> Div<&'a T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the / operator.
source§

fn div(self, other: &T) -> <Complex<T> as Div<&'a T>>::Output

Performs the / operation. Read more
source§

impl<'a, 'b, T> Div<&'b Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the / operator.
source§

fn div( + self, + other: &Complex<T> +) -> <&'a Complex<T> as Div<&'b Complex<T>>>::Output

Performs the / operation. Read more
source§

impl<'a, T> Div<Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the / operator.
source§

fn div(self, other: Complex<T>) -> <&'a Complex<T> as Div<Complex<T>>>::Output

Performs the / operation. Read more
source§

impl<T> Div<Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the / operator.
source§

fn div(self, other: Complex<T>) -> <Complex<T> as Div<Complex<T>>>::Output

Performs the / operation. Read more
source§

impl<'a, T> Div<T> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the / operator.
source§

fn div(self, other: T) -> <&'a Complex<T> as Div<T>>::Output

Performs the / operation. Read more
source§

impl<T> Div<T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the / operator.
source§

fn div(self, other: T) -> <Complex<T> as Div<T>>::Output

Performs the / operation. Read more
source§

impl<'a, T> DivAssign<&'a Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn div_assign(&mut self, other: &Complex<T>)

Performs the /= operation. Read more
source§

impl<'a, T> DivAssign<&'a T> for Complex<T>where + T: Clone + NumAssign,

source§

fn div_assign(&mut self, other: &T)

Performs the /= operation. Read more
source§

impl<T> DivAssign<Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn div_assign(&mut self, other: Complex<T>)

Performs the /= operation. Read more
source§

impl<T> DivAssign<T> for Complex<T>where + T: Clone + NumAssign,

source§

fn div_assign(&mut self, other: T)

Performs the /= operation. Read more
source§

impl<'a, T> From<&'a T> for Complex<T>where + T: Clone + Num,

source§

fn from(re: &T) -> Complex<T>

Converts to this type from the input type.
source§

impl<T> From<T> for Complex<T>where + T: Clone + Num,

source§

fn from(re: T) -> Complex<T>

Converts to this type from the input type.
source§

impl<T> FromPrimitive for Complex<T>where + T: FromPrimitive + Num,

source§

fn from_usize(n: usize) -> Option<Complex<T>>

Converts a usize to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_isize(n: isize) -> Option<Complex<T>>

Converts an isize to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<Complex<T>>

Converts an u8 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<Complex<T>>

Converts an u16 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<Complex<T>>

Converts an u32 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<Complex<T>>

Converts an u64 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<Complex<T>>

Converts an i8 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<Complex<T>>

Converts an i16 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<Complex<T>>

Converts an i32 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_i64(n: i64) -> Option<Complex<T>>

Converts an i64 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_u128(n: u128) -> Option<Complex<T>>

Converts an u128 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned. Read more
source§

fn from_i128(n: i128) -> Option<Complex<T>>

Converts an i128 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned. Read more
source§

fn from_f32(n: f32) -> Option<Complex<T>>

Converts a f32 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Complex<T>>

Converts a f64 to return an optional value of this type. If the +value cannot be represented by this type, then None is returned. Read more
source§

impl<T> FromStr for Complex<T>where + T: FromStr + Num + Clone,

source§

fn from_str(s: &str) -> Result<Complex<T>, <Complex<T> as FromStr>::Err>

Parses a +/- bi; ai +/- b; a; or bi where a and b are of type T

+
§

type Err = ParseComplexError<<T as FromStr>::Err>

The associated error which can be returned from parsing.
source§

impl<T> Hash for Complex<T>where + T: Hash,

source§

fn hash<__H>(&self, state: &mut __H)where + __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a, T> Inv for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn inv(self) -> <&'a Complex<T> as Inv>::Output

Returns the multiplicative inverse of self. Read more
source§

impl<T> Inv for Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn inv(self) -> <Complex<T> as Inv>::Output

Returns the multiplicative inverse of self. Read more
source§

impl<T> LowerExp for Complex<T>where + T: LowerExp + Num + PartialOrd<T> + Clone,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<T> LowerHex for Complex<T>where + T: LowerHex + Num + PartialOrd<T> + Clone,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<'a, T> Mul<&'a Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: &Complex<T>) -> <Complex<T> as Mul<&'a Complex<T>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T> Mul<&'a T> for &'b Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: &T) -> <&'b Complex<T> as Mul<&'a T>>::Output

Performs the * operation. Read more
source§

impl<'a, T> Mul<&'a T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: &T) -> <Complex<T> as Mul<&'a T>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T> Mul<&'b Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the * operator.
source§

fn mul( + self, + other: &Complex<T> +) -> <&'a Complex<T> as Mul<&'b Complex<T>>>::Output

Performs the * operation. Read more
source§

impl<'a, T> Mul<Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: Complex<T>) -> <&'a Complex<T> as Mul<Complex<T>>>::Output

Performs the * operation. Read more
source§

impl<T> Mul<Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: Complex<T>) -> <Complex<T> as Mul<Complex<T>>>::Output

Performs the * operation. Read more
source§

impl<'a, T> Mul<T> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: T) -> <&'a Complex<T> as Mul<T>>::Output

Performs the * operation. Read more
source§

impl<T> Mul<T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: T) -> <Complex<T> as Mul<T>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T> MulAdd<&'b Complex<T>, &'a Complex<T>> for &'a Complex<T>where + T: Clone + Num + MulAdd<T, T, Output = T>,

§

type Output = Complex<T>

The resulting type after applying the fused multiply-add.
source§

fn mul_add(self, other: &Complex<T>, add: &Complex<T>) -> Complex<T>

Performs the fused multiply-add operation.
source§

impl<T> MulAdd<Complex<T>, Complex<T>> for Complex<T>where + T: Clone + Num + MulAdd<T, T, Output = T>,

§

type Output = Complex<T>

The resulting type after applying the fused multiply-add.
source§

fn mul_add(self, other: Complex<T>, add: Complex<T>) -> Complex<T>

Performs the fused multiply-add operation.
source§

impl<'a, 'b, T> MulAddAssign<&'a Complex<T>, &'b Complex<T>> for Complex<T>where + T: Clone + NumAssign + MulAddAssign<T, T>,

source§

fn mul_add_assign(&mut self, other: &Complex<T>, add: &Complex<T>)

Performs the fused multiply-add operation.
source§

impl<T> MulAddAssign<Complex<T>, Complex<T>> for Complex<T>where + T: Clone + NumAssign + MulAddAssign<T, T>,

source§

fn mul_add_assign(&mut self, other: Complex<T>, add: Complex<T>)

Performs the fused multiply-add operation.
source§

impl<'a, T> MulAssign<&'a Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn mul_assign(&mut self, other: &Complex<T>)

Performs the *= operation. Read more
source§

impl<'a, T> MulAssign<&'a T> for Complex<T>where + T: Clone + NumAssign,

source§

fn mul_assign(&mut self, other: &T)

Performs the *= operation. Read more
source§

impl<T> MulAssign<Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn mul_assign(&mut self, other: Complex<T>)

Performs the *= operation. Read more
source§

impl<T> MulAssign<T> for Complex<T>where + T: Clone + NumAssign,

source§

fn mul_assign(&mut self, other: T)

Performs the *= operation. Read more
source§

impl MulScaled<Complex<i32>> for Complex<i32>

source§

fn mul_scaled(self, other: Self) -> Self

source§

impl MulScaled<i16> for Complex<i32>

source§

fn mul_scaled(self, other: i16) -> Self

source§

impl MulScaled<i32> for Complex<i32>

source§

fn mul_scaled(self, other: i32) -> Self

source§

impl<'a, T> Neg for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn neg(self) -> <&'a Complex<T> as Neg>::Output

Performs the unary - operation. Read more
source§

impl<T> Neg for Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn neg(self) -> <Complex<T> as Neg>::Output

Performs the unary - operation. Read more
source§

impl<T> Num for Complex<T>where + T: Num + Clone,

source§

fn from_str_radix( + s: &str, + radix: u32 +) -> Result<Complex<T>, <Complex<T> as Num>::FromStrRadixErr>

Parses a +/- bi; ai +/- b; a; or bi where a and b are of type T

+

radix must be <= 18; larger radix would include i and j as digits, +which cannot be supported.

+

The conversion returns an error if 18 <= radix <= 36; it panics if radix > 36.

+

The elements of T are parsed using Num::from_str_radix too, and errors +(or panics) from that are reflected here as well.

+
§

type FromStrRadixErr = ParseComplexError<<T as Num>::FromStrRadixErr>

source§

impl<T> NumCast for Complex<T>where + T: NumCast + Num,

source§

fn from<U>(n: U) -> Option<Complex<T>>where + U: ToPrimitive,

Creates a number from another value that can be converted into +a primitive via the ToPrimitive trait. If the source value cannot be +represented by the target type, then None is returned. Read more
source§

impl<T> Octal for Complex<T>where + T: Octal + Num + PartialOrd<T> + Clone,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<T> One for Complex<T>where + T: Clone + Num,

source§

fn one() -> Complex<T>

Returns the multiplicative identity element of Self, 1. Read more
source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
source§

impl<T> PartialEq<Complex<T>> for Complex<T>where + T: PartialEq<T>,

source§

fn eq(&self, other: &Complex<T>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<'a, 'b, T> Pow<&'b i128> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &i128) -> <&'a Complex<T> as Pow<&'b i128>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b i16> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &i16) -> <&'a Complex<T> as Pow<&'b i16>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b i32> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &i32) -> <&'a Complex<T> as Pow<&'b i32>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b i64> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &i64) -> <&'a Complex<T> as Pow<&'b i64>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b i8> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &i8) -> <&'a Complex<T> as Pow<&'b i8>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b isize> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &isize) -> <&'a Complex<T> as Pow<&'b isize>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b u128> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &u128) -> <&'a Complex<T> as Pow<&'b u128>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b u16> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &u16) -> <&'a Complex<T> as Pow<&'b u16>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b u32> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &u32) -> <&'a Complex<T> as Pow<&'b u32>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b u64> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &u64) -> <&'a Complex<T> as Pow<&'b u64>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b u8> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &u8) -> <&'a Complex<T> as Pow<&'b u8>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, 'b, T> Pow<&'b usize> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: &usize) -> <&'a Complex<T> as Pow<&'b usize>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<i128> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: i128) -> <&'a Complex<T> as Pow<i128>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<i16> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: i16) -> <&'a Complex<T> as Pow<i16>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<i32> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: i32) -> <&'a Complex<T> as Pow<i32>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<i64> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: i64) -> <&'a Complex<T> as Pow<i64>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<i8> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: i8) -> <&'a Complex<T> as Pow<i8>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<isize> for &'a Complex<T>where + T: Clone + Num + Neg<Output = T>,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: isize) -> <&'a Complex<T> as Pow<isize>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<u128> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: u128) -> <&'a Complex<T> as Pow<u128>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<u16> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: u16) -> <&'a Complex<T> as Pow<u16>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<u32> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: u32) -> <&'a Complex<T> as Pow<u32>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<u64> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: u64) -> <&'a Complex<T> as Pow<u64>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<u8> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: u8) -> <&'a Complex<T> as Pow<u8>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Pow<usize> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The result after applying the operator.
source§

fn pow(self, exp: usize) -> <&'a Complex<T> as Pow<usize>>::Output

Returns self to the power rhs. Read more
source§

impl<'a, T> Product<&'a Complex<T>> for Complex<T>where + T: 'a + Num + Clone,

source§

fn product<I>(iter: I) -> Complex<T>where + I: Iterator<Item = &'a Complex<T>>,

Method which takes an iterator and generates Self from the elements by +multiplying the items.
source§

impl<T> Product<Complex<T>> for Complex<T>where + T: Num + Clone,

source§

fn product<I>(iter: I) -> Complex<T>where + I: Iterator<Item = Complex<T>>,

Method which takes an iterator and generates Self from the elements by +multiplying the items.
source§

impl<'a, T> Rem<&'a Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: &Complex<T>) -> <Complex<T> as Rem<&'a Complex<T>>>::Output

Performs the % operation. Read more
source§

impl<'a, 'b, T> Rem<&'a T> for &'b Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: &T) -> <&'b Complex<T> as Rem<&'a T>>::Output

Performs the % operation. Read more
source§

impl<'a, T> Rem<&'a T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: &T) -> <Complex<T> as Rem<&'a T>>::Output

Performs the % operation. Read more
source§

impl<'a, 'b, T> Rem<&'b Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the % operator.
source§

fn rem( + self, + other: &Complex<T> +) -> <&'a Complex<T> as Rem<&'b Complex<T>>>::Output

Performs the % operation. Read more
source§

impl<'a, T> Rem<Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: Complex<T>) -> <&'a Complex<T> as Rem<Complex<T>>>::Output

Performs the % operation. Read more
source§

impl<T> Rem<Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the % operator.
source§

fn rem(self, modulus: Complex<T>) -> <Complex<T> as Rem<Complex<T>>>::Output

Performs the % operation. Read more
source§

impl<'a, T> Rem<T> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: T) -> <&'a Complex<T> as Rem<T>>::Output

Performs the % operation. Read more
source§

impl<T> Rem<T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: T) -> <Complex<T> as Rem<T>>::Output

Performs the % operation. Read more
source§

impl<'a, T> RemAssign<&'a Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn rem_assign(&mut self, other: &Complex<T>)

Performs the %= operation. Read more
source§

impl<'a, T> RemAssign<&'a T> for Complex<T>where + T: Clone + NumAssign,

source§

fn rem_assign(&mut self, other: &T)

Performs the %= operation. Read more
source§

impl<T> RemAssign<Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn rem_assign(&mut self, modulus: Complex<T>)

Performs the %= operation. Read more
source§

impl<T> RemAssign<T> for Complex<T>where + T: Clone + NumAssign,

source§

fn rem_assign(&mut self, other: T)

Performs the %= operation. Read more
source§

impl<T> Serialize for Complex<T>where + T: Serialize,

source§

fn serialize<S>( + &self, + serializer: S +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where + S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'a, T> Sub<&'a Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: &Complex<T>) -> <Complex<T> as Sub<&'a Complex<T>>>::Output

Performs the - operation. Read more
source§

impl<'a, 'b, T> Sub<&'a T> for &'b Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: &T) -> <&'b Complex<T> as Sub<&'a T>>::Output

Performs the - operation. Read more
source§

impl<'a, T> Sub<&'a T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: &T) -> <Complex<T> as Sub<&'a T>>::Output

Performs the - operation. Read more
source§

impl<'a, 'b, T> Sub<&'b Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn sub( + self, + other: &Complex<T> +) -> <&'a Complex<T> as Sub<&'b Complex<T>>>::Output

Performs the - operation. Read more
source§

impl<'a, T> Sub<Complex<T>> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: Complex<T>) -> <&'a Complex<T> as Sub<Complex<T>>>::Output

Performs the - operation. Read more
source§

impl<T> Sub<Complex<T>> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: Complex<T>) -> <Complex<T> as Sub<Complex<T>>>::Output

Performs the - operation. Read more
source§

impl<'a, T> Sub<T> for &'a Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: T) -> <&'a Complex<T> as Sub<T>>::Output

Performs the - operation. Read more
source§

impl<T> Sub<T> for Complex<T>where + T: Clone + Num,

§

type Output = Complex<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: T) -> <Complex<T> as Sub<T>>::Output

Performs the - operation. Read more
source§

impl<'a, T> SubAssign<&'a Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn sub_assign(&mut self, other: &Complex<T>)

Performs the -= operation. Read more
source§

impl<'a, T> SubAssign<&'a T> for Complex<T>where + T: Clone + NumAssign,

source§

fn sub_assign(&mut self, other: &T)

Performs the -= operation. Read more
source§

impl<T> SubAssign<Complex<T>> for Complex<T>where + T: Clone + NumAssign,

source§

fn sub_assign(&mut self, other: Complex<T>)

Performs the -= operation. Read more
source§

impl<T> SubAssign<T> for Complex<T>where + T: Clone + NumAssign,

source§

fn sub_assign(&mut self, other: T)

Performs the -= operation. Read more
source§

impl<'a, T> Sum<&'a Complex<T>> for Complex<T>where + T: 'a + Num + Clone,

source§

fn sum<I>(iter: I) -> Complex<T>where + I: Iterator<Item = &'a Complex<T>>,

Method which takes an iterator and generates Self from the elements by +“summing up” the items.
source§

impl<T> Sum<Complex<T>> for Complex<T>where + T: Num + Clone,

source§

fn sum<I>(iter: I) -> Complex<T>where + I: Iterator<Item = Complex<T>>,

Method which takes an iterator and generates Self from the elements by +“summing up” the items.
source§

impl<T> ToPrimitive for Complex<T>where + T: ToPrimitive + Num,

source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be +represented by a usize, then None is returned.
source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be +represented by an isize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be +represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be +represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be +represented by a u32, then None is returned.
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be +represented by a u64, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be +represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be +represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be +represented by an i32, then None is returned.
source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be +represented by an i64, then None is returned.
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be +represented by a u128 (u64 under the default implementation), then +None is returned. Read more
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be +represented by an i128 (i64 under the default implementation), then +None is returned. Read more
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive +or negative inifinity, otherwise None is returned if the value cannot +be represented by an f32.
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive +or negative inifinity, otherwise None is returned if the value cannot +be represented by an f64. Read more
source§

impl<T> UpperExp for Complex<T>where + T: UpperExp + Num + PartialOrd<T> + Clone,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<T> UpperHex for Complex<T>where + T: UpperHex + Num + PartialOrd<T> + Clone,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<T> Zero for Complex<T>where + T: Clone + Num,

source§

fn zero() -> Complex<T>

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl<T> Copy for Complex<T>where + T: Copy,

source§

impl<T> Eq for Complex<T>where + T: Eq,

source§

impl<T> StructuralEq for Complex<T>

source§

impl<T> StructuralPartialEq for Complex<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Complex<T>where + T: RefUnwindSafe,

§

impl<T> Send for Complex<T>where + T: Send,

§

impl<T> Sync for Complex<T>where + T: Sync,

§

impl<T> Unpin for Complex<T>where + T: Unpin,

§

impl<T> UnwindSafe for Complex<T>where + T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

source§

impl<T> NumAssign for Twhere + T: Num + NumAssignOps<T>,

source§

impl<T, Rhs> NumAssignOps<Rhs> for Twhere + T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

impl<T> NumAssignRef for Twhere + T: NumAssign + for<'r> NumAssignOps<&'r T>,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for Twhere + T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

source§

impl<T> NumRef for Twhere + T: Num + for<'r> NumOps<&'r T, T>,

source§

impl<T, Base> RefNum<Base> for Twhere + T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

\ No newline at end of file diff --git a/firmware/idsp/struct.Lockin.html b/firmware/idsp/struct.Lockin.html new file mode 100644 index 0000000000..2f20878715 --- /dev/null +++ b/firmware/idsp/struct.Lockin.html @@ -0,0 +1,18 @@ +Lockin in idsp - Rust

Struct idsp::Lockin

source ·
pub struct Lockin<const N: usize> { /* private fields */ }

Implementations§

source§

impl<const N: usize> Lockin<N>

source

pub fn update_iq( + &mut self, + sample: i32, + lo: Complex<i32>, + k: u32 +) -> Complex<i32>

Update the lockin with a sample taken at a local oscillator IQ value.

+
source

pub fn update(&mut self, sample: i32, phase: i32, k: u32) -> Complex<i32>

Update the lockin with a sample taken at a given phase.

+

Trait Implementations§

source§

impl<const N: usize> Clone for Lockin<N>

source§

fn clone(&self) -> Lockin<N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<const N: usize> Default for Lockin<N>

source§

fn default() -> Lockin<N>

Returns the “default value” for a type. Read more
source§

impl<const N: usize> Copy for Lockin<N>

Auto Trait Implementations§

§

impl<const N: usize> RefUnwindSafe for Lockin<N>

§

impl<const N: usize> Send for Lockin<N>

§

impl<const N: usize> Sync for Lockin<N>

§

impl<const N: usize> Unpin for Lockin<N>

§

impl<const N: usize> UnwindSafe for Lockin<N>

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/idsp/struct.Lowpass.html b/firmware/idsp/struct.Lowpass.html new file mode 100644 index 0000000000..a1a43ee5d5 --- /dev/null +++ b/firmware/idsp/struct.Lowpass.html @@ -0,0 +1,23 @@ +Lowpass in idsp - Rust

Struct idsp::Lowpass

source ·
pub struct Lowpass<const N: usize> { /* private fields */ }
Expand description

Arbitrary order, high dynamic range, wide coefficient range, +lowpass filter implementation. DC gain is 1.

+

Type argument N is the filter order.

+

Implementations§

source§

impl<const N: usize> Lowpass<N>

source

pub fn update(&mut self, x: i32, k: u32) -> i32

Update the filter with a new sample.

+
Args
+
    +
  • x: Input data. Needs 1 bit headroom but will saturate cleanly beyond that.
  • +
  • k: Log2 time constant, 1..=31.
  • +
+
Return
+

Filtered output y.

+
source

pub fn output(&self) -> i32

Return the current filter output

+

Trait Implementations§

source§

impl<const N: usize> Clone for Lowpass<N>

source§

fn clone(&self) -> Lowpass<N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<const N: usize> Default for Lowpass<N>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<const N: usize> Copy for Lowpass<N>

Auto Trait Implementations§

§

impl<const N: usize> RefUnwindSafe for Lowpass<N>

§

impl<const N: usize> Send for Lowpass<N>

§

impl<const N: usize> Sync for Lowpass<N>

§

impl<const N: usize> Unpin for Lowpass<N>

§

impl<const N: usize> UnwindSafe for Lowpass<N>

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/idsp/struct.PLL.html b/firmware/idsp/struct.PLL.html new file mode 100644 index 0000000000..09a9c9b38e --- /dev/null +++ b/firmware/idsp/struct.PLL.html @@ -0,0 +1,58 @@ +PLL in idsp - Rust

Struct idsp::PLL

source ·
pub struct PLL { /* private fields */ }
Expand description

Type-II, sampled phase, discrete time PLL

+

This PLL tracks the frequency and phase of an input signal with respect to the sampling clock. +The open loop transfer function is I^2,I from input phase to output phase and P,I from input +phase to output frequency.

+

The transfer functions (for phase and frequency) contain an additional zero at Nyquist.

+

The PLL locks to any frequency (i.e. it locks to the alias in the first Nyquist zone) and is +stable for any gain (1 <= shift <= 30). It has a single parameter that determines the loop +bandwidth in octave steps. The gain can be changed freely between updates.

+

The frequency and phase settling time constants for a frequency/phase jump are 1 << shift +update cycles. The loop bandwidth is 1/(2*pi*(1 << shift)) in units of the sample rate. +While the phase is being settled after settling the frequency, there is a typically very +small frequency overshoot.

+

All math is naturally wrapping 32 bit integer. Phase and frequency are understood modulo that +overflow in the first Nyquist zone. Expressing the IIR equations in other ways (e.g. single +(T)-DF-{I,II} biquad/IIR) would break on overflow (i.e. every cycle).

+

There are no floating point rounding errors here. But there is integer quantization/truncation +error of the shift lowest bits leading to a phase offset for very low gains. Truncation +bias is applied. Rounding is “half up”. The phase truncation error can be removed very +efficiently by dithering.

+

This PLL does not unwrap phase slips accumulated during (frequency) lock acquisition. +This can and should be implemented elsewhere by unwrapping and scaling the input phase +and un-scaling and wrapping output phase and frequency. This then affects dynamic range, +gain, and noise accordingly.

+

The extension to I^3,I^2,I behavior to track chirps phase-accurately or to i64 data to +increase resolution for extremely narrowband applications is obvious.

+

Implementations§

source§

impl PLL

source

pub fn update( + &mut self, + x: Option<i32>, + shift_frequency: u32, + shift_phase: u32 +) -> (i32, i32)

Update the PLL with a new phase sample. This needs to be called (sampled) periodically. +The signal’s phase/frequency is reconstructed relative to the sampling period.

+

Args:

+
    +
  • x: New input phase sample or None if a sample has been missed.
  • +
  • shift_frequency: Frequency error scaling. The frequency gain per update is +1/(1 << shift_frequency).
  • +
  • shift_phase: Phase error scaling. The phase gain is 1/(1 << shift_phase) +per update. A good value is typically shift_frequency - 1.
  • +
+

Returns: +A tuple of instantaneous phase and frequency estimates.

+
source

pub fn phase(&self) -> i32

Return the current phase estimate

+
source

pub fn frequency(&self) -> i32

Return the current frequency estimate

+

Trait Implementations§

source§

impl Clone for PLL

source§

fn clone(&self) -> PLL

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for PLL

source§

fn default() -> PLL

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for PLL

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for PLL

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for PLL

Auto Trait Implementations§

§

impl RefUnwindSafe for PLL

§

impl Send for PLL

§

impl Sync for PLL

§

impl Unpin for PLL

§

impl UnwindSafe for PLL

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/idsp/struct.RPLL.html b/firmware/idsp/struct.RPLL.html new file mode 100644 index 0000000000..2c4df9befc --- /dev/null +++ b/firmware/idsp/struct.RPLL.html @@ -0,0 +1,45 @@ +RPLL in idsp - Rust

Struct idsp::RPLL

source ·
pub struct RPLL { /* private fields */ }
Expand description

Reciprocal PLL.

+

Consumes noisy, quantized timestamps of a reference signal and reconstructs +the phase and frequency of the update() invocations with respect to (and in units of +1 << 32 of) that reference. +In other words, update() rate ralative to reference frequency, +u32::MAX corresponding to both being equal.

+

Implementations§

source§

impl RPLL

source

pub fn new(dt2: u32) -> Self

Create a new RPLL instance.

+

Args:

+
    +
  • dt2: inverse update() rate. 1 << dt2 is the counter rate to update() rate ratio.
  • +
+

Returns: +Initialized RPLL instance.

+
source

pub fn update( + &mut self, + input: Option<i32>, + shift_frequency: u32, + shift_phase: u32 +) -> (i32, u32)

Advance the RPLL and optionally supply a new timestamp.

+

Args:

+
    +
  • input: Optional new timestamp (wrapping around at the i32 boundary). +There can be at most one timestamp per update() cycle (1 << dt2 counter cycles).
  • +
  • shift_frequency: Frequency lock settling time. 1 << shift_frequency is +frequency lock settling time in counter periods. The settling time must be larger +than the signal period to lock to.
  • +
  • shift_phase: Phase lock settling time. Usually one less than +shift_frequency (see there).
  • +
+

Returns: +A tuple containing the current phase (wrapping at the i32 boundary, pi) and +frequency.

+
source

pub fn phase(&self) -> i32

Return the current phase estimate

+
source

pub fn frequency(&self) -> u32

Return the current frequency estimate

+

Trait Implementations§

source§

impl Clone for RPLL

source§

fn clone(&self) -> RPLL

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for RPLL

source§

fn default() -> RPLL

Returns the “default value” for a type. Read more
source§

impl Copy for RPLL

Auto Trait Implementations§

§

impl RefUnwindSafe for RPLL

§

impl Send for RPLL

§

impl Sync for RPLL

§

impl Unpin for RPLL

§

impl UnwindSafe for RPLL

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/idsp/struct.Unwrapper.html b/firmware/idsp/struct.Unwrapper.html new file mode 100644 index 0000000000..9b08fd1b6a --- /dev/null +++ b/firmware/idsp/struct.Unwrapper.html @@ -0,0 +1,35 @@ +Unwrapper in idsp - Rust

Struct idsp::Unwrapper

source ·
pub struct Unwrapper<T> { /* private fields */ }
Expand description

Overflow unwrapper.

+

This is unwrapping as in the phase and overflow unwrapping context, not +unwrapping as in the Result/Option context.

+

Implementations§

source§

impl<T> Unwrapper<T>where + T: WrappingSub + Zero + PartialOrd + Copy,

source

pub fn update(&mut self, x: T) -> (T, i32)

Unwrap a new sample from a sequence and update the unwrapper state.

+

Args:

+
    +
  • x: New sample
  • +
+

Returns: +A tuple containing the (wrapped) difference x - x_old and the +signed number of wraps accumulated by the new sample.

+
source

pub fn wraps(&self) -> i32

Return the current number of wraps

+
source

pub fn phase(&self) -> T

Return the last known phase

+

Trait Implementations§

source§

impl<T: Clone> Clone for Unwrapper<T>

source§

fn clone(&self) -> Unwrapper<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Default> Default for Unwrapper<T>

source§

fn default() -> Unwrapper<T>

Returns the “default value” for a type. Read more
source§

impl<'de, T> Deserialize<'de> for Unwrapper<T>where + T: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Serialize for Unwrapper<T>where + T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Copy> Copy for Unwrapper<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Unwrapper<T>where + T: RefUnwindSafe,

§

impl<T> Send for Unwrapper<T>where + T: Send,

§

impl<T> Sync for Unwrapper<T>where + T: Sync,

§

impl<T> Unpin for Unwrapper<T>where + T: Unpin,

§

impl<T> UnwindSafe for Unwrapper<T>where + T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/idsp/tools/fn.abs.html b/firmware/idsp/tools/fn.abs.html new file mode 100644 index 0000000000..55f894d01b --- /dev/null +++ b/firmware/idsp/tools/fn.abs.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/fn.abs.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/tools/fn.copysign.html b/firmware/idsp/tools/fn.copysign.html new file mode 100644 index 0000000000..9b62625a60 --- /dev/null +++ b/firmware/idsp/tools/fn.copysign.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/fn.copysign.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/tools/fn.macc.html b/firmware/idsp/tools/fn.macc.html new file mode 100644 index 0000000000..03715c19e2 --- /dev/null +++ b/firmware/idsp/tools/fn.macc.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/fn.macc.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/tools/fn.macc_i32.html b/firmware/idsp/tools/fn.macc_i32.html new file mode 100644 index 0000000000..59fbdc3a89 --- /dev/null +++ b/firmware/idsp/tools/fn.macc_i32.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/fn.macc_i32.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/trait.ComplexExt.html b/firmware/idsp/trait.ComplexExt.html new file mode 100644 index 0000000000..8a0f0cb201 --- /dev/null +++ b/firmware/idsp/trait.ComplexExt.html @@ -0,0 +1,10 @@ +ComplexExt in idsp - Rust

Trait idsp::ComplexExt

source ·
pub trait ComplexExt<T, U> {
+    // Required methods
+    fn from_angle(angle: T) -> Self;
+    fn abs_sqr(&self) -> U;
+    fn log2(&self) -> T;
+    fn arg(&self) -> T;
+    fn saturating_add(&self, other: Self) -> Self;
+    fn saturating_sub(&self, other: Self) -> Self;
+}
Expand description

Complex extension trait offering DSP (fast, good accuracy) functionality.

+

Required Methods§

source

fn from_angle(angle: T) -> Self

source

fn abs_sqr(&self) -> U

source

fn log2(&self) -> T

source

fn arg(&self) -> T

source

fn saturating_add(&self, other: Self) -> Self

source

fn saturating_sub(&self, other: Self) -> Self

Implementors§

\ No newline at end of file diff --git a/firmware/idsp/trait.MulScaled.html b/firmware/idsp/trait.MulScaled.html new file mode 100644 index 0000000000..282d8a7e67 --- /dev/null +++ b/firmware/idsp/trait.MulScaled.html @@ -0,0 +1,5 @@ +MulScaled in idsp - Rust

Trait idsp::MulScaled

source ·
pub trait MulScaled<T> {
+    // Required method
+    fn mul_scaled(self, other: T) -> Self;
+}
Expand description

Full scale fixed point multiplication.

+

Required Methods§

source

fn mul_scaled(self, other: T) -> Self

Implementors§

\ No newline at end of file diff --git a/firmware/idsp/unwrap/fn.overflowing_sub.html b/firmware/idsp/unwrap/fn.overflowing_sub.html new file mode 100644 index 0000000000..035c22a158 --- /dev/null +++ b/firmware/idsp/unwrap/fn.overflowing_sub.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/fn.overflowing_sub.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/unwrap/fn.saturating_scale.html b/firmware/idsp/unwrap/fn.saturating_scale.html new file mode 100644 index 0000000000..a31e78d7ce --- /dev/null +++ b/firmware/idsp/unwrap/fn.saturating_scale.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/fn.saturating_scale.html...

+ + + \ No newline at end of file diff --git a/firmware/idsp/unwrap/struct.Unwrapper.html b/firmware/idsp/unwrap/struct.Unwrapper.html new file mode 100644 index 0000000000..27f2996bba --- /dev/null +++ b/firmware/idsp/unwrap/struct.Unwrapper.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../idsp/struct.Unwrapper.html...

+ + + \ No newline at end of file diff --git a/firmware/implementors/ad9959/trait.Interface.js b/firmware/implementors/ad9959/trait.Interface.js new file mode 100644 index 0000000000..311de467aa --- /dev/null +++ b/firmware/implementors/ad9959/trait.Interface.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[["impl Interface for QspiInterface"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/bitflags/traits/trait.Flags.js b/firmware/implementors/bitflags/traits/trait.Flags.js new file mode 100644 index 0000000000..2390be55e4 --- /dev/null +++ b/firmware/implementors/bitflags/traits/trait.Flags.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl Flags for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/bitflags/traits/trait.PublicFlags.js b/firmware/implementors/bitflags/traits/trait.PublicFlags.js new file mode 100644 index 0000000000..00f3a1c1cd --- /dev/null +++ b/firmware/implementors/bitflags/traits/trait.PublicFlags.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl PublicFlags for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/clone/trait.Clone.js b/firmware/implementors/core/clone/trait.Clone.js new file mode 100644 index 0000000000..119d646760 --- /dev/null +++ b/firmware/implementors/core/clone/trait.Clone.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl Clone for Mode"]], +"dual_iir":[["impl Clone for Settings"]], +"idsp":[["impl Clone for RPLL"],["impl<T: Clone> Clone for IIR<T>"],["impl<const N: usize> Clone for Lockin<N>"],["impl Clone for PLL"],["impl<T: Clone> Clone for Unwrapper<T>"],["impl<const N: usize> Clone for Lowpass<N>"],["impl<T: Clone> Clone for Accu<T>"],["impl Clone for IIR"]], +"lockin":[["impl Clone for Settings"],["impl Clone for Conf"],["impl Clone for LockinMode"]], +"miniconf":[["impl Clone for IterError"],["impl Clone for Metadata"],["impl Clone for Error"],["impl<M: Clone + ?Sized, const L: usize, const TS: usize> Clone for MiniconfIter<M, L, TS>"],["impl<T: Clone> Clone for Option<T>"],["impl<T: Clone, const N: usize> Clone for Array<T, N>"]], +"stabilizer":[["impl Clone for ChannelState"],["impl Clone for StreamFormat"],["impl Clone for InputChannelState"],["impl Clone for Gain"],["impl Clone for TcpSocketStorage"],["impl Clone for Config"],["impl Clone for GpioPin"],["impl Clone for AdcCode"],["impl Clone for DdsClockConfig"],["impl Clone for DdsChannelState"],["impl Clone for OutputChannelState"],["impl Clone for StreamTarget"],["impl Clone for Channel"],["impl Clone for AdcError"],["impl Clone for DacCode"],["impl Clone for Error"],["impl Clone for Signal"],["impl Clone for BasicConfig"],["impl Clone for UdpSocketStorage"],["impl Clone for Error"],["impl Clone for TelemetryBuffer"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/cmp/trait.Eq.js b/firmware/implementors/core/cmp/trait.Eq.js new file mode 100644 index 0000000000..b02f4ec9e8 --- /dev/null +++ b/firmware/implementors/core/cmp/trait.Eq.js @@ -0,0 +1,6 @@ +(function() {var implementors = { +"ad9959":[["impl Eq for Mode"]], +"idsp":[["impl<T: Eq> Eq for Accu<T>"]], +"miniconf":[["impl Eq for Error"],["impl<T: Eq> Eq for Option<T>"],["impl<T: Eq, const N: usize> Eq for Array<T, N>"],["impl Eq for Metadata"],["impl Eq for IterError"],["impl<M: Eq + ?Sized, const L: usize, const TS: usize> Eq for MiniconfIter<M, L, TS>"]], +"stabilizer":[["impl Eq for StreamFormat"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/cmp/trait.Ord.js b/firmware/implementors/core/cmp/trait.Ord.js new file mode 100644 index 0000000000..0ba2277790 --- /dev/null +++ b/firmware/implementors/core/cmp/trait.Ord.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"miniconf":[["impl<T: Ord> Ord for Option<T>"],["impl<T: Ord, const N: usize> Ord for Array<T, N>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/cmp/trait.PartialEq.js b/firmware/implementors/core/cmp/trait.PartialEq.js new file mode 100644 index 0000000000..b1a4183be5 --- /dev/null +++ b/firmware/implementors/core/cmp/trait.PartialEq.js @@ -0,0 +1,7 @@ +(function() {var implementors = { +"ad9959":[["impl PartialEq<Mode> for Mode"]], +"idsp":[["impl<T: PartialEq> PartialEq<Accu<T>> for Accu<T>"]], +"lockin":[["impl PartialEq<LockinMode> for LockinMode"]], +"miniconf":[["impl PartialEq<Error> for Error"],["impl<T: PartialEq> PartialEq<Option<T>> for Option<T>"],["impl<M: PartialEq + ?Sized, const L: usize, const TS: usize> PartialEq<MiniconfIter<M, L, TS>> for MiniconfIter<M, L, TS>"],["impl<T: PartialEq, const N: usize> PartialEq<Array<T, N>> for Array<T, N>"],["impl PartialEq<Metadata> for Metadata"],["impl PartialEq<IterError> for IterError"]], +"stabilizer":[["impl PartialEq<StreamFormat> for StreamFormat"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/cmp/trait.PartialOrd.js b/firmware/implementors/core/cmp/trait.PartialOrd.js new file mode 100644 index 0000000000..4060633f0c --- /dev/null +++ b/firmware/implementors/core/cmp/trait.PartialOrd.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"miniconf":[["impl<T: PartialOrd, const N: usize> PartialOrd<Array<T, N>> for Array<T, N>"],["impl<T: PartialOrd> PartialOrd<Option<T>> for Option<T>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/convert/trait.AsMut.js b/firmware/implementors/core/convert/trait.AsMut.js new file mode 100644 index 0000000000..e226758844 --- /dev/null +++ b/firmware/implementors/core/convert/trait.AsMut.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"miniconf":[["impl<T> AsMut<Option<T>> for Option<T>"],["impl<T, const N: usize> AsMut<[T; N]> for Array<T, N>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/convert/trait.AsRef.js b/firmware/implementors/core/convert/trait.AsRef.js new file mode 100644 index 0000000000..cc8cf05ac0 --- /dev/null +++ b/firmware/implementors/core/convert/trait.AsRef.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"miniconf":[["impl<T, const N: usize> AsRef<[T; N]> for Array<T, N>"],["impl<T> AsRef<Option<T>> for Option<T>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/convert/trait.From.js b/firmware/implementors/core/convert/trait.From.js new file mode 100644 index 0000000000..4f3d2443ee --- /dev/null +++ b/firmware/implementors/core/convert/trait.From.js @@ -0,0 +1,4 @@ +(function() {var implementors = { +"miniconf":[["impl<T> From<Option<T>> for Option<T>"],["impl From<Error> for u8"],["impl From<Error> for Error"],["impl<T> From<Option<T>> for Option<T>"],["impl<T, const N: usize> From<[T; N]> for Array<T, N>"],["impl<T, const N: usize> From<Array<T, N>> for [T; N]"],["impl From<Error> for Error"]], +"stabilizer":[["impl From<i16> for DacCode"],["impl From<Channel> for GpioPin"],["impl From<DacCode> for i16"],["impl From<XspiError> for Error"],["impl From<i16> for AdcCode"],["impl From<AdcCode> for f32"],["impl From<StreamFormat> for u8"],["impl From<u16> for DacCode"],["impl From<DacCode> for f32"],["impl From<AdcCode> for u16"],["impl From<AdcCode> for i16"],["impl From<GpioPin> for Mcp23017"],["impl From<StreamTarget> for SocketAddr"],["impl From<Channel> for Channel"],["impl From<u16> for AdcCode"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/convert/trait.TryFrom.js b/firmware/implementors/core/convert/trait.TryFrom.js new file mode 100644 index 0000000000..80719a01c3 --- /dev/null +++ b/firmware/implementors/core/convert/trait.TryFrom.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[["impl TryFrom<f32> for DacCode"],["impl TryFrom<u8> for Prescaler"],["impl TryFrom<u8> for Gain"],["impl TryFrom<f32> for AdcCode"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/default/trait.Default.js b/firmware/implementors/core/default/trait.Default.js new file mode 100644 index 0000000000..4bb8d4c915 --- /dev/null +++ b/firmware/implementors/core/default/trait.Default.js @@ -0,0 +1,7 @@ +(function() {var implementors = { +"dual_iir":[["impl Default for Settings"]], +"idsp":[["impl<T: Default> Default for IIR<T>"],["impl Default for IIR"],["impl Default for PLL"],["impl<T: Default> Default for Unwrapper<T>"],["impl Default for RPLL"],["impl<T: Default> Default for Accu<T>"],["impl<const N: usize> Default for Lowpass<N>"],["impl<const N: usize> Default for Lockin<N>"]], +"lockin":[["impl Default for Settings"]], +"miniconf":[["impl<T: Default> Default for Option<T>"],["impl<M: ?Sized, const L: usize, const TS: usize> Default for MiniconfIter<M, L, TS>"],["impl<T: Default + Copy, const N: usize> Default for Array<T, N>"],["impl Default for Metadata"]], +"stabilizer":[["impl Default for StreamTarget"],["impl Default for TelemetryBuffer"],["impl Default for Config"],["impl Default for BasicConfig"],["impl Default for NetStorage"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/fmt/trait.Binary.js b/firmware/implementors/core/fmt/trait.Binary.js new file mode 100644 index 0000000000..8829e573fe --- /dev/null +++ b/firmware/implementors/core/fmt/trait.Binary.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl Binary for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/fmt/trait.Debug.js b/firmware/implementors/core/fmt/trait.Debug.js new file mode 100644 index 0000000000..242bbd682a --- /dev/null +++ b/firmware/implementors/core/fmt/trait.Debug.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl Debug for Error"]], +"dual_iir":[["impl Debug for Settings"]], +"idsp":[["impl Debug for IIR"],["impl<T: Debug> Debug for IIR<T>"],["impl<T: Debug> Debug for Accu<T>"]], +"lockin":[["impl Debug for Settings"],["impl Debug for LockinMode"],["impl Debug for Conf"]], +"miniconf":[["impl<T: Debug, const N: usize> Debug for Array<T, N>"],["impl Debug for Error"],["impl Debug for Metadata"],["impl<M: Debug + ?Sized, const L: usize, const TS: usize> Debug for MiniconfIter<M, L, TS>"],["impl<T: Debug> Debug for Option<T>"],["impl Debug for IterError"]], +"stabilizer":[["impl Debug for StreamTarget"],["impl Debug for Signal"],["impl Debug for GpioPin"],["impl Debug for Error"],["impl Debug for AdcError"],["impl Debug for Config"],["impl Debug for SignalGenerator"],["impl Debug for ChannelState"],["impl Debug for Error"],["impl Debug for DdsChannelState"],["impl Debug for InputChannelState"],["impl Debug for Gain"],["impl Debug for BasicConfig"],["impl Debug for DdsClockConfig"],["impl Debug for OutputChannelState"],["impl Debug for StreamFormat"],["impl Debug for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/fmt/trait.LowerHex.js b/firmware/implementors/core/fmt/trait.LowerHex.js new file mode 100644 index 0000000000..afd2a047ec --- /dev/null +++ b/firmware/implementors/core/fmt/trait.LowerHex.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl LowerHex for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/fmt/trait.Octal.js b/firmware/implementors/core/fmt/trait.Octal.js new file mode 100644 index 0000000000..6eb921280c --- /dev/null +++ b/firmware/implementors/core/fmt/trait.Octal.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl Octal for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/fmt/trait.UpperHex.js b/firmware/implementors/core/fmt/trait.UpperHex.js new file mode 100644 index 0000000000..934fa12c27 --- /dev/null +++ b/firmware/implementors/core/fmt/trait.UpperHex.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl UpperHex for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/hash/trait.Hash.js b/firmware/implementors/core/hash/trait.Hash.js new file mode 100644 index 0000000000..9ea72e66ef --- /dev/null +++ b/firmware/implementors/core/hash/trait.Hash.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"miniconf":[["impl<T: Hash, const N: usize> Hash for Array<T, N>"],["impl<T: Hash> Hash for Option<T>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/iter/traits/collect/trait.Extend.js b/firmware/implementors/core/iter/traits/collect/trait.Extend.js new file mode 100644 index 0000000000..cb33bfb421 --- /dev/null +++ b/firmware/implementors/core/iter/traits/collect/trait.Extend.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl Extend<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/iter/traits/collect/trait.FromIterator.js b/firmware/implementors/core/iter/traits/collect/trait.FromIterator.js new file mode 100644 index 0000000000..5bddebfbda --- /dev/null +++ b/firmware/implementors/core/iter/traits/collect/trait.FromIterator.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl FromIterator<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/iter/traits/collect/trait.IntoIterator.js b/firmware/implementors/core/iter/traits/collect/trait.IntoIterator.js new file mode 100644 index 0000000000..64afbf6ecf --- /dev/null +++ b/firmware/implementors/core/iter/traits/collect/trait.IntoIterator.js @@ -0,0 +1,4 @@ +(function() {var implementors = { +"ad9959":[["impl IntoIterator for Channel"]], +"miniconf":[["impl<'a, T, const N: usize> IntoIterator for &'a mut Array<T, N>"],["impl<'a, T, const N: usize> IntoIterator for &'a Array<T, N>"],["impl<T, const N: usize> IntoIterator for Array<T, N>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/iter/traits/iterator/trait.Iterator.js b/firmware/implementors/core/iter/traits/iterator/trait.Iterator.js new file mode 100644 index 0000000000..24f1ac2533 --- /dev/null +++ b/firmware/implementors/core/iter/traits/iterator/trait.Iterator.js @@ -0,0 +1,5 @@ +(function() {var implementors = { +"idsp":[["impl<T> Iterator for Accu<T>where\n T: WrappingAdd + Copy,"]], +"miniconf":[["impl<M: Miniconf + ?Sized, const L: usize, const TS: usize> Iterator for MiniconfIter<M, L, TS>"]], +"stabilizer":[["impl Iterator for SignalGenerator"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/marker/trait.Copy.js b/firmware/implementors/core/marker/trait.Copy.js new file mode 100644 index 0000000000..3530187524 --- /dev/null +++ b/firmware/implementors/core/marker/trait.Copy.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl Copy for Mode"]], +"dual_iir":[["impl Copy for Settings"]], +"idsp":[["impl Copy for IIR"],["impl<const N: usize> Copy for Lowpass<N>"],["impl Copy for RPLL"],["impl<T: Copy> Copy for Accu<T>"],["impl<T: Copy> Copy for IIR<T>"],["impl<const N: usize> Copy for Lockin<N>"],["impl<T: Copy> Copy for Unwrapper<T>"],["impl Copy for PLL"]], +"lockin":[["impl Copy for Settings"],["impl Copy for Conf"],["impl Copy for LockinMode"]], +"miniconf":[["impl<M: Copy + ?Sized, const L: usize, const TS: usize> Copy for MiniconfIter<M, L, TS>"],["impl Copy for IterError"],["impl<T: Copy, const N: usize> Copy for Array<T, N>"],["impl Copy for Error"],["impl<T: Copy> Copy for Option<T>"],["impl Copy for Metadata"]], +"stabilizer":[["impl Copy for DdsClockConfig"],["impl Copy for DdsChannelState"],["impl Copy for InputChannelState"],["impl Copy for AdcError"],["impl Copy for StreamTarget"],["impl Copy for ChannelState"],["impl Copy for Error"],["impl Copy for DacCode"],["impl Copy for Channel"],["impl Copy for UdpSocketStorage"],["impl Copy for Error"],["impl Copy for Config"],["impl Copy for BasicConfig"],["impl Copy for StreamFormat"],["impl Copy for TcpSocketStorage"],["impl Copy for TelemetryBuffer"],["impl Copy for AdcCode"],["impl Copy for OutputChannelState"],["impl Copy for Gain"],["impl Copy for GpioPin"],["impl Copy for Signal"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/marker/trait.Freeze.js b/firmware/implementors/core/marker/trait.Freeze.js new file mode 100644 index 0000000000..58dd653330 --- /dev/null +++ b/firmware/implementors/core/marker/trait.Freeze.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl<INTERFACE> Freeze for Ad9959<INTERFACE>where\n INTERFACE: Freeze,",1,["ad9959::Ad9959"]],["impl Freeze for Mode",1,["ad9959::Mode"]],["impl Freeze for Channel",1,["ad9959::Channel"]],["impl Freeze for Register",1,["ad9959::Register"]],["impl Freeze for Error",1,["ad9959::Error"]],["impl Freeze for ProfileSerializer",1,["ad9959::ProfileSerializer"]]], +"dual_iir":[["impl Freeze for __rtic_internal_Monotonics",1,["dual_iir::app::__rtic_internal_Monotonics"]],["impl<'a> Freeze for __rtic_internal_init_Context<'a>",1,["dual_iir::app::__rtic_internal_init_Context"]],["impl<'a> Freeze for __rtic_internal_idleSharedResources<'a>",1,["dual_iir::app::__rtic_internal_idleSharedResources"]],["impl<'a> Freeze for __rtic_internal_idle_Context<'a>",1,["dual_iir::app::__rtic_internal_idle_Context"]],["impl<'a> Freeze for __rtic_internal_processLocalResources<'a>",1,["dual_iir::app::__rtic_internal_processLocalResources"]],["impl<'a> Freeze for __rtic_internal_processSharedResources<'a>",1,["dual_iir::app::__rtic_internal_processSharedResources"]],["impl<'a> Freeze for __rtic_internal_process_Context<'a>",1,["dual_iir::app::__rtic_internal_process_Context"]],["impl Freeze for __rtic_internal_eth_Context",1,["dual_iir::app::__rtic_internal_eth_Context"]],["impl Freeze for __rtic_internal_spi2_Context",1,["dual_iir::app::__rtic_internal_spi2_Context"]],["impl Freeze for __rtic_internal_spi3_Context",1,["dual_iir::app::__rtic_internal_spi3_Context"]],["impl Freeze for __rtic_internal_spi4_Context",1,["dual_iir::app::__rtic_internal_spi4_Context"]],["impl Freeze for __rtic_internal_spi5_Context",1,["dual_iir::app::__rtic_internal_spi5_Context"]],["impl<'a> Freeze for __rtic_internal_startLocalResources<'a>",1,["dual_iir::app::__rtic_internal_startLocalResources"]],["impl<'a> Freeze for __rtic_internal_start_Context<'a>",1,["dual_iir::app::__rtic_internal_start_Context"]],["impl<'a> Freeze for __rtic_internal_settings_updateLocalResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> Freeze for __rtic_internal_settings_updateSharedResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> Freeze for __rtic_internal_settings_update_Context<'a>",1,["dual_iir::app::__rtic_internal_settings_update_Context"]],["impl<'a> Freeze for __rtic_internal_telemetryLocalResources<'a>",1,["dual_iir::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> Freeze for __rtic_internal_telemetrySharedResources<'a>",1,["dual_iir::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> Freeze for __rtic_internal_telemetry_Context<'a>",1,["dual_iir::app::__rtic_internal_telemetry_Context"]],["impl<'a> Freeze for __rtic_internal_ethernet_linkSharedResources<'a>",1,["dual_iir::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> Freeze for __rtic_internal_ethernet_link_Context<'a>",1,["dual_iir::app::__rtic_internal_ethernet_link_Context"]],["impl Freeze for Shared",1,["dual_iir::app::Shared"]],["impl Freeze for Local",1,["dual_iir::app::Local"]],["impl Freeze for Settings",1,["dual_iir::Settings"]]], +"idsp":[["impl<T> Freeze for Accu<T>where\n T: Freeze,",1,["idsp::accu::Accu"]],["impl<T> Freeze for IIR<T>where\n T: Freeze,",1,["idsp::iir::IIR"]],["impl Freeze for IIR",1,["idsp::iir_int::IIR"]],["impl<const N: usize> Freeze for Lockin<N>",1,["idsp::lockin::Lockin"]],["impl<const N: usize> Freeze for Lowpass<N>",1,["idsp::lowpass::Lowpass"]],["impl Freeze for PLL",1,["idsp::pll::PLL"]],["impl Freeze for RPLL",1,["idsp::rpll::RPLL"]],["impl<T> Freeze for Unwrapper<T>where\n T: Freeze,",1,["idsp::unwrap::Unwrapper"]]], +"lockin":[["impl Freeze for __rtic_internal_Monotonics",1,["lockin::app::__rtic_internal_Monotonics"]],["impl<'a> Freeze for __rtic_internal_init_Context<'a>",1,["lockin::app::__rtic_internal_init_Context"]],["impl<'a> Freeze for __rtic_internal_idleSharedResources<'a>",1,["lockin::app::__rtic_internal_idleSharedResources"]],["impl<'a> Freeze for __rtic_internal_idle_Context<'a>",1,["lockin::app::__rtic_internal_idle_Context"]],["impl<'a> Freeze for __rtic_internal_processLocalResources<'a>",1,["lockin::app::__rtic_internal_processLocalResources"]],["impl<'a> Freeze for __rtic_internal_processSharedResources<'a>",1,["lockin::app::__rtic_internal_processSharedResources"]],["impl<'a> Freeze for __rtic_internal_process_Context<'a>",1,["lockin::app::__rtic_internal_process_Context"]],["impl Freeze for __rtic_internal_eth_Context",1,["lockin::app::__rtic_internal_eth_Context"]],["impl<'a> Freeze for __rtic_internal_startLocalResources<'a>",1,["lockin::app::__rtic_internal_startLocalResources"]],["impl<'a> Freeze for __rtic_internal_start_Context<'a>",1,["lockin::app::__rtic_internal_start_Context"]],["impl<'a> Freeze for __rtic_internal_settings_updateLocalResources<'a>",1,["lockin::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> Freeze for __rtic_internal_settings_updateSharedResources<'a>",1,["lockin::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> Freeze for __rtic_internal_settings_update_Context<'a>",1,["lockin::app::__rtic_internal_settings_update_Context"]],["impl<'a> Freeze for __rtic_internal_telemetryLocalResources<'a>",1,["lockin::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> Freeze for __rtic_internal_telemetrySharedResources<'a>",1,["lockin::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> Freeze for __rtic_internal_telemetry_Context<'a>",1,["lockin::app::__rtic_internal_telemetry_Context"]],["impl<'a> Freeze for __rtic_internal_ethernet_linkSharedResources<'a>",1,["lockin::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> Freeze for __rtic_internal_ethernet_link_Context<'a>",1,["lockin::app::__rtic_internal_ethernet_link_Context"]],["impl Freeze for Shared",1,["lockin::app::Shared"]],["impl Freeze for Local",1,["lockin::app::Local"]],["impl Freeze for Conf",1,["lockin::Conf"]],["impl Freeze for LockinMode",1,["lockin::LockinMode"]],["impl Freeze for Settings",1,["lockin::Settings"]]], +"miniconf":[["impl<T, const N: usize> Freeze for Array<T, N>where\n T: Freeze,",1,["miniconf::array::Array"]],["impl<M: ?Sized, const L: usize, const TS: usize> Freeze for MiniconfIter<M, L, TS>",1,["miniconf::iter::MiniconfIter"]],["impl<T> Freeze for Option<T>where\n T: Freeze,",1,["miniconf::option::Option"]],["impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> Freeze for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where\n Clock: Freeze,\n Settings: Freeze,\n Stack: Freeze,\n <Clock as Clock>::T: Freeze,\n <Stack as TcpClientStack>::TcpSocket: Freeze,",1,["miniconf::mqtt_client::MqttClient"]],["impl Freeze for Error",1,["miniconf::Error"]],["impl Freeze for IterError",1,["miniconf::IterError"]],["impl Freeze for Metadata",1,["miniconf::Metadata"]]], +"stabilizer":[["impl Freeze for AdcCode",1,["stabilizer::hardware::adc::AdcCode"]],["impl Freeze for Adc0Input",1,["stabilizer::hardware::adc::Adc0Input"]],["impl Freeze for Adc1Input",1,["stabilizer::hardware::adc::Adc1Input"]],["impl Freeze for Gain",1,["stabilizer::hardware::afe::Gain"]],["impl<A0, A1> Freeze for ProgrammableGainAmplifier<A0, A1>where\n A0: Freeze,\n A1: Freeze,",1,["stabilizer::hardware::afe::ProgrammableGainAmplifier"]],["impl Freeze for CpuTempSensor",1,["stabilizer::hardware::cpu_temp_sensor::CpuTempSensor"]],["impl Freeze for DacCode",1,["stabilizer::hardware::dac::DacCode"]],["impl Freeze for Dac0Output",1,["stabilizer::hardware::dac::Dac0Output"]],["impl Freeze for Dac1Output",1,["stabilizer::hardware::dac::Dac1Output"]],["impl Freeze for AsmDelay",1,["stabilizer::hardware::delay::AsmDelay"]],["impl Freeze for InputStamper",1,["stabilizer::hardware::input_stamper::InputStamper"]],["impl Freeze for DdsOutput",1,["stabilizer::hardware::pounder::dds_output::DdsOutput"]],["impl<'a> Freeze for ProfileBuilder<'a>",1,["stabilizer::hardware::pounder::dds_output::ProfileBuilder"]],["impl Freeze for Channel",1,["stabilizer::hardware::pounder::hrtimer::Channel"]],["impl Freeze for HighResTimerE",1,["stabilizer::hardware::pounder::hrtimer::HighResTimerE"]],["impl Freeze for Timestamper",1,["stabilizer::hardware::pounder::timestamp::Timestamper"]],["impl Freeze for GpioPin",1,["stabilizer::hardware::pounder::GpioPin"]],["impl Freeze for Error",1,["stabilizer::hardware::pounder::Error"]],["impl Freeze for Channel",1,["stabilizer::hardware::pounder::Channel"]],["impl Freeze for DdsChannelState",1,["stabilizer::hardware::pounder::DdsChannelState"]],["impl Freeze for ChannelState",1,["stabilizer::hardware::pounder::ChannelState"]],["impl Freeze for InputChannelState",1,["stabilizer::hardware::pounder::InputChannelState"]],["impl Freeze for OutputChannelState",1,["stabilizer::hardware::pounder::OutputChannelState"]],["impl Freeze for DdsClockConfig",1,["stabilizer::hardware::pounder::DdsClockConfig"]],["impl Freeze for QspiInterface",1,["stabilizer::hardware::pounder::QspiInterface"]],["impl Freeze for PounderDevices",1,["stabilizer::hardware::pounder::PounderDevices"]],["impl Freeze for NetStorage",1,["stabilizer::hardware::setup::NetStorage"]],["impl Freeze for UdpSocketStorage",1,["stabilizer::hardware::setup::UdpSocketStorage"]],["impl Freeze for TcpSocketStorage",1,["stabilizer::hardware::setup::TcpSocketStorage"]],["impl Freeze for NetworkDevices",1,["stabilizer::hardware::setup::NetworkDevices"]],["impl Freeze for EemGpioDevices",1,["stabilizer::hardware::setup::EemGpioDevices"]],["impl Freeze for StabilizerDevices",1,["stabilizer::hardware::setup::StabilizerDevices"]],["impl Freeze for PounderDevices",1,["stabilizer::hardware::setup::PounderDevices"]],["impl Freeze for AdcError",1,["stabilizer::hardware::shared_adc::AdcError"]],["impl<'a, Adc, PIN> Freeze for AdcChannel<'a, Adc, PIN>where\n PIN: Freeze,",1,["stabilizer::hardware::shared_adc::AdcChannel"]],["impl<Adc> !Freeze for SharedAdc<Adc>",1,["stabilizer::hardware::shared_adc::SharedAdc"]],["impl Freeze for Signal",1,["stabilizer::hardware::signal_generator::Signal"]],["impl Freeze for BasicConfig",1,["stabilizer::hardware::signal_generator::BasicConfig"]],["impl Freeze for Error",1,["stabilizer::hardware::signal_generator::Error"]],["impl Freeze for Config",1,["stabilizer::hardware::signal_generator::Config"]],["impl Freeze for SignalGenerator",1,["stabilizer::hardware::signal_generator::SignalGenerator"]],["impl Freeze for UpdateEvent",1,["stabilizer::hardware::timers::tim2::UpdateEvent"]],["impl Freeze for Channels",1,["stabilizer::hardware::timers::tim2::Channels"]],["impl Freeze for Channel1",1,["stabilizer::hardware::timers::tim2::Channel1"]],["impl Freeze for Channel1InputCapture",1,["stabilizer::hardware::timers::tim2::Channel1InputCapture"]],["impl Freeze for Channel2",1,["stabilizer::hardware::timers::tim2::Channel2"]],["impl Freeze for Channel2InputCapture",1,["stabilizer::hardware::timers::tim2::Channel2InputCapture"]],["impl Freeze for Channel3",1,["stabilizer::hardware::timers::tim2::Channel3"]],["impl Freeze for Channel3InputCapture",1,["stabilizer::hardware::timers::tim2::Channel3InputCapture"]],["impl Freeze for Channel4",1,["stabilizer::hardware::timers::tim2::Channel4"]],["impl Freeze for Channel4InputCapture",1,["stabilizer::hardware::timers::tim2::Channel4InputCapture"]],["impl Freeze for UpdateEvent",1,["stabilizer::hardware::timers::tim3::UpdateEvent"]],["impl Freeze for Channels",1,["stabilizer::hardware::timers::tim3::Channels"]],["impl Freeze for Channel1",1,["stabilizer::hardware::timers::tim3::Channel1"]],["impl Freeze for Channel1InputCapture",1,["stabilizer::hardware::timers::tim3::Channel1InputCapture"]],["impl Freeze for Channel2",1,["stabilizer::hardware::timers::tim3::Channel2"]],["impl Freeze for Channel2InputCapture",1,["stabilizer::hardware::timers::tim3::Channel2InputCapture"]],["impl Freeze for Channel3",1,["stabilizer::hardware::timers::tim3::Channel3"]],["impl Freeze for Channel3InputCapture",1,["stabilizer::hardware::timers::tim3::Channel3InputCapture"]],["impl Freeze for Channel4",1,["stabilizer::hardware::timers::tim3::Channel4"]],["impl Freeze for Channel4InputCapture",1,["stabilizer::hardware::timers::tim3::Channel4InputCapture"]],["impl Freeze for UpdateEvent",1,["stabilizer::hardware::timers::tim5::UpdateEvent"]],["impl Freeze for Channels",1,["stabilizer::hardware::timers::tim5::Channels"]],["impl Freeze for Channel1",1,["stabilizer::hardware::timers::tim5::Channel1"]],["impl Freeze for Channel1InputCapture",1,["stabilizer::hardware::timers::tim5::Channel1InputCapture"]],["impl Freeze for Channel2",1,["stabilizer::hardware::timers::tim5::Channel2"]],["impl Freeze for Channel2InputCapture",1,["stabilizer::hardware::timers::tim5::Channel2InputCapture"]],["impl Freeze for Channel3",1,["stabilizer::hardware::timers::tim5::Channel3"]],["impl Freeze for Channel3InputCapture",1,["stabilizer::hardware::timers::tim5::Channel3InputCapture"]],["impl Freeze for Channel4",1,["stabilizer::hardware::timers::tim5::Channel4"]],["impl Freeze for Channel4InputCapture",1,["stabilizer::hardware::timers::tim5::Channel4InputCapture"]],["impl Freeze for UpdateEvent",1,["stabilizer::hardware::timers::tim8::UpdateEvent"]],["impl Freeze for Channels",1,["stabilizer::hardware::timers::tim8::Channels"]],["impl Freeze for Channel1",1,["stabilizer::hardware::timers::tim8::Channel1"]],["impl Freeze for Channel1InputCapture",1,["stabilizer::hardware::timers::tim8::Channel1InputCapture"]],["impl Freeze for Channel2",1,["stabilizer::hardware::timers::tim8::Channel2"]],["impl Freeze for Channel2InputCapture",1,["stabilizer::hardware::timers::tim8::Channel2InputCapture"]],["impl Freeze for Channel3",1,["stabilizer::hardware::timers::tim8::Channel3"]],["impl Freeze for Channel3InputCapture",1,["stabilizer::hardware::timers::tim8::Channel3InputCapture"]],["impl Freeze for Channel4",1,["stabilizer::hardware::timers::tim8::Channel4"]],["impl Freeze for Channel4InputCapture",1,["stabilizer::hardware::timers::tim8::Channel4InputCapture"]],["impl Freeze for TriggerGenerator",1,["stabilizer::hardware::timers::TriggerGenerator"]],["impl Freeze for TriggerSource",1,["stabilizer::hardware::timers::TriggerSource"]],["impl Freeze for Prescaler",1,["stabilizer::hardware::timers::Prescaler"]],["impl Freeze for SlaveMode",1,["stabilizer::hardware::timers::SlaveMode"]],["impl Freeze for InputFilter",1,["stabilizer::hardware::timers::InputFilter"]],["impl Freeze for SamplingTimer",1,["stabilizer::hardware::timers::SamplingTimer"]],["impl Freeze for ShadowSamplingTimer",1,["stabilizer::hardware::timers::ShadowSamplingTimer"]],["impl Freeze for TimestampTimer",1,["stabilizer::hardware::timers::TimestampTimer"]],["impl Freeze for PounderTimestampTimer",1,["stabilizer::hardware::timers::PounderTimestampTimer"]],["impl Freeze for StreamTarget",1,["stabilizer::net::data_stream::StreamTarget"]],["impl Freeze for StreamFormat",1,["stabilizer::net::data_stream::StreamFormat"]],["impl Freeze for FrameGenerator",1,["stabilizer::net::data_stream::FrameGenerator"]],["impl Freeze for DataStream",1,["stabilizer::net::data_stream::DataStream"]],["impl Freeze for NetworkProcessor",1,["stabilizer::net::network_processor::NetworkProcessor"]],["impl<T> Freeze for TelemetryClient<T>",1,["stabilizer::net::telemetry::TelemetryClient"]],["impl Freeze for TelemetryBuffer",1,["stabilizer::net::telemetry::TelemetryBuffer"]],["impl Freeze for Telemetry",1,["stabilizer::net::telemetry::Telemetry"]],["impl Freeze for UpdateState",1,["stabilizer::net::UpdateState"]],["impl Freeze for NetworkState",1,["stabilizer::net::NetworkState"]],["impl<S, T> Freeze for NetworkUsers<S, T>where\n S: Freeze,",1,["stabilizer::net::NetworkUsers"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/marker/trait.Send.js b/firmware/implementors/core/marker/trait.Send.js new file mode 100644 index 0000000000..75ed99991a --- /dev/null +++ b/firmware/implementors/core/marker/trait.Send.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl<INTERFACE> Send for Ad9959<INTERFACE>where\n INTERFACE: Send,",1,["ad9959::Ad9959"]],["impl Send for Mode",1,["ad9959::Mode"]],["impl Send for Channel",1,["ad9959::Channel"]],["impl Send for Register",1,["ad9959::Register"]],["impl Send for Error",1,["ad9959::Error"]],["impl Send for ProfileSerializer",1,["ad9959::ProfileSerializer"]]], +"dual_iir":[["impl Send for __rtic_internal_Monotonics",1,["dual_iir::app::__rtic_internal_Monotonics"]],["impl<'a> Send for __rtic_internal_init_Context<'a>",1,["dual_iir::app::__rtic_internal_init_Context"]],["impl<'a> !Send for __rtic_internal_idleSharedResources<'a>",1,["dual_iir::app::__rtic_internal_idleSharedResources"]],["impl<'a> !Send for __rtic_internal_idle_Context<'a>",1,["dual_iir::app::__rtic_internal_idle_Context"]],["impl<'a> Send for __rtic_internal_processLocalResources<'a>",1,["dual_iir::app::__rtic_internal_processLocalResources"]],["impl<'a> !Send for __rtic_internal_processSharedResources<'a>",1,["dual_iir::app::__rtic_internal_processSharedResources"]],["impl<'a> !Send for __rtic_internal_process_Context<'a>",1,["dual_iir::app::__rtic_internal_process_Context"]],["impl Send for __rtic_internal_eth_Context",1,["dual_iir::app::__rtic_internal_eth_Context"]],["impl Send for __rtic_internal_spi2_Context",1,["dual_iir::app::__rtic_internal_spi2_Context"]],["impl Send for __rtic_internal_spi3_Context",1,["dual_iir::app::__rtic_internal_spi3_Context"]],["impl Send for __rtic_internal_spi4_Context",1,["dual_iir::app::__rtic_internal_spi4_Context"]],["impl Send for __rtic_internal_spi5_Context",1,["dual_iir::app::__rtic_internal_spi5_Context"]],["impl<'a> Send for __rtic_internal_startLocalResources<'a>",1,["dual_iir::app::__rtic_internal_startLocalResources"]],["impl<'a> Send for __rtic_internal_start_Context<'a>",1,["dual_iir::app::__rtic_internal_start_Context"]],["impl<'a> Send for __rtic_internal_settings_updateLocalResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> !Send for __rtic_internal_settings_updateSharedResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> !Send for __rtic_internal_settings_update_Context<'a>",1,["dual_iir::app::__rtic_internal_settings_update_Context"]],["impl<'a> Send for __rtic_internal_telemetryLocalResources<'a>",1,["dual_iir::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> !Send for __rtic_internal_telemetrySharedResources<'a>",1,["dual_iir::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> !Send for __rtic_internal_telemetry_Context<'a>",1,["dual_iir::app::__rtic_internal_telemetry_Context"]],["impl<'a> !Send for __rtic_internal_ethernet_linkSharedResources<'a>",1,["dual_iir::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> !Send for __rtic_internal_ethernet_link_Context<'a>",1,["dual_iir::app::__rtic_internal_ethernet_link_Context"]],["impl Send for Shared",1,["dual_iir::app::Shared"]],["impl Send for Local",1,["dual_iir::app::Local"]],["impl Send for Settings",1,["dual_iir::Settings"]]], +"idsp":[["impl<T> Send for Accu<T>where\n T: Send,",1,["idsp::accu::Accu"]],["impl<T> Send for IIR<T>where\n T: Send,",1,["idsp::iir::IIR"]],["impl Send for IIR",1,["idsp::iir_int::IIR"]],["impl<const N: usize> Send for Lockin<N>",1,["idsp::lockin::Lockin"]],["impl<const N: usize> Send for Lowpass<N>",1,["idsp::lowpass::Lowpass"]],["impl Send for PLL",1,["idsp::pll::PLL"]],["impl Send for RPLL",1,["idsp::rpll::RPLL"]],["impl<T> Send for Unwrapper<T>where\n T: Send,",1,["idsp::unwrap::Unwrapper"]]], +"lockin":[["impl Send for __rtic_internal_Monotonics",1,["lockin::app::__rtic_internal_Monotonics"]],["impl<'a> Send for __rtic_internal_init_Context<'a>",1,["lockin::app::__rtic_internal_init_Context"]],["impl<'a> !Send for __rtic_internal_idleSharedResources<'a>",1,["lockin::app::__rtic_internal_idleSharedResources"]],["impl<'a> !Send for __rtic_internal_idle_Context<'a>",1,["lockin::app::__rtic_internal_idle_Context"]],["impl<'a> Send for __rtic_internal_processLocalResources<'a>",1,["lockin::app::__rtic_internal_processLocalResources"]],["impl<'a> !Send for __rtic_internal_processSharedResources<'a>",1,["lockin::app::__rtic_internal_processSharedResources"]],["impl<'a> !Send for __rtic_internal_process_Context<'a>",1,["lockin::app::__rtic_internal_process_Context"]],["impl Send for __rtic_internal_eth_Context",1,["lockin::app::__rtic_internal_eth_Context"]],["impl<'a> Send for __rtic_internal_startLocalResources<'a>",1,["lockin::app::__rtic_internal_startLocalResources"]],["impl<'a> Send for __rtic_internal_start_Context<'a>",1,["lockin::app::__rtic_internal_start_Context"]],["impl<'a> Send for __rtic_internal_settings_updateLocalResources<'a>",1,["lockin::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> !Send for __rtic_internal_settings_updateSharedResources<'a>",1,["lockin::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> !Send for __rtic_internal_settings_update_Context<'a>",1,["lockin::app::__rtic_internal_settings_update_Context"]],["impl<'a> Send for __rtic_internal_telemetryLocalResources<'a>",1,["lockin::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> !Send for __rtic_internal_telemetrySharedResources<'a>",1,["lockin::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> !Send for __rtic_internal_telemetry_Context<'a>",1,["lockin::app::__rtic_internal_telemetry_Context"]],["impl<'a> !Send for __rtic_internal_ethernet_linkSharedResources<'a>",1,["lockin::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> !Send for __rtic_internal_ethernet_link_Context<'a>",1,["lockin::app::__rtic_internal_ethernet_link_Context"]],["impl Send for Shared",1,["lockin::app::Shared"]],["impl Send for Local",1,["lockin::app::Local"]],["impl Send for Conf",1,["lockin::Conf"]],["impl Send for LockinMode",1,["lockin::LockinMode"]],["impl Send for Settings",1,["lockin::Settings"]]], +"miniconf":[["impl<T, const N: usize> Send for Array<T, N>where\n T: Send,",1,["miniconf::array::Array"]],["impl<M: ?Sized, const L: usize, const TS: usize> Send for MiniconfIter<M, L, TS>where\n M: Send,",1,["miniconf::iter::MiniconfIter"]],["impl<T> Send for Option<T>where\n T: Send,",1,["miniconf::option::Option"]],["impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> Send for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where\n Clock: Send,\n Settings: Send,\n Stack: Send,\n <Clock as Clock>::T: Send,\n <Stack as TcpClientStack>::TcpSocket: Send,",1,["miniconf::mqtt_client::MqttClient"]],["impl Send for Error",1,["miniconf::Error"]],["impl Send for IterError",1,["miniconf::IterError"]],["impl Send for Metadata",1,["miniconf::Metadata"]]], +"stabilizer":[["impl Send for AdcCode",1,["stabilizer::hardware::adc::AdcCode"]],["impl Send for Adc0Input",1,["stabilizer::hardware::adc::Adc0Input"]],["impl Send for Adc1Input",1,["stabilizer::hardware::adc::Adc1Input"]],["impl Send for Gain",1,["stabilizer::hardware::afe::Gain"]],["impl<A0, A1> Send for ProgrammableGainAmplifier<A0, A1>where\n A0: Send,\n A1: Send,",1,["stabilizer::hardware::afe::ProgrammableGainAmplifier"]],["impl Send for CpuTempSensor",1,["stabilizer::hardware::cpu_temp_sensor::CpuTempSensor"]],["impl Send for DacCode",1,["stabilizer::hardware::dac::DacCode"]],["impl Send for Dac0Output",1,["stabilizer::hardware::dac::Dac0Output"]],["impl Send for Dac1Output",1,["stabilizer::hardware::dac::Dac1Output"]],["impl Send for AsmDelay",1,["stabilizer::hardware::delay::AsmDelay"]],["impl Send for InputStamper",1,["stabilizer::hardware::input_stamper::InputStamper"]],["impl Send for DdsOutput",1,["stabilizer::hardware::pounder::dds_output::DdsOutput"]],["impl<'a> Send for ProfileBuilder<'a>",1,["stabilizer::hardware::pounder::dds_output::ProfileBuilder"]],["impl Send for Channel",1,["stabilizer::hardware::pounder::hrtimer::Channel"]],["impl Send for HighResTimerE",1,["stabilizer::hardware::pounder::hrtimer::HighResTimerE"]],["impl Send for Timestamper",1,["stabilizer::hardware::pounder::timestamp::Timestamper"]],["impl Send for GpioPin",1,["stabilizer::hardware::pounder::GpioPin"]],["impl Send for Error",1,["stabilizer::hardware::pounder::Error"]],["impl Send for Channel",1,["stabilizer::hardware::pounder::Channel"]],["impl Send for DdsChannelState",1,["stabilizer::hardware::pounder::DdsChannelState"]],["impl Send for ChannelState",1,["stabilizer::hardware::pounder::ChannelState"]],["impl Send for InputChannelState",1,["stabilizer::hardware::pounder::InputChannelState"]],["impl Send for OutputChannelState",1,["stabilizer::hardware::pounder::OutputChannelState"]],["impl Send for DdsClockConfig",1,["stabilizer::hardware::pounder::DdsClockConfig"]],["impl Send for QspiInterface",1,["stabilizer::hardware::pounder::QspiInterface"]],["impl Send for PounderDevices",1,["stabilizer::hardware::pounder::PounderDevices"]],["impl Send for NetStorage",1,["stabilizer::hardware::setup::NetStorage"]],["impl Send for UdpSocketStorage",1,["stabilizer::hardware::setup::UdpSocketStorage"]],["impl Send for TcpSocketStorage",1,["stabilizer::hardware::setup::TcpSocketStorage"]],["impl Send for NetworkDevices",1,["stabilizer::hardware::setup::NetworkDevices"]],["impl Send for EemGpioDevices",1,["stabilizer::hardware::setup::EemGpioDevices"]],["impl Send for StabilizerDevices",1,["stabilizer::hardware::setup::StabilizerDevices"]],["impl Send for PounderDevices",1,["stabilizer::hardware::setup::PounderDevices"]],["impl Send for AdcError",1,["stabilizer::hardware::shared_adc::AdcError"]],["impl<'a, Adc, PIN> Send for AdcChannel<'a, Adc, PIN>where\n Adc: Send,\n PIN: Send,",1,["stabilizer::hardware::shared_adc::AdcChannel"]],["impl<Adc> Send for SharedAdc<Adc>where\n Adc: Send,",1,["stabilizer::hardware::shared_adc::SharedAdc"]],["impl Send for Signal",1,["stabilizer::hardware::signal_generator::Signal"]],["impl Send for BasicConfig",1,["stabilizer::hardware::signal_generator::BasicConfig"]],["impl Send for Error",1,["stabilizer::hardware::signal_generator::Error"]],["impl Send for Config",1,["stabilizer::hardware::signal_generator::Config"]],["impl Send for SignalGenerator",1,["stabilizer::hardware::signal_generator::SignalGenerator"]],["impl Send for UpdateEvent",1,["stabilizer::hardware::timers::tim2::UpdateEvent"]],["impl Send for Channels",1,["stabilizer::hardware::timers::tim2::Channels"]],["impl Send for Channel1",1,["stabilizer::hardware::timers::tim2::Channel1"]],["impl Send for Channel1InputCapture",1,["stabilizer::hardware::timers::tim2::Channel1InputCapture"]],["impl Send for Channel2",1,["stabilizer::hardware::timers::tim2::Channel2"]],["impl Send for Channel2InputCapture",1,["stabilizer::hardware::timers::tim2::Channel2InputCapture"]],["impl Send for Channel3",1,["stabilizer::hardware::timers::tim2::Channel3"]],["impl Send for Channel3InputCapture",1,["stabilizer::hardware::timers::tim2::Channel3InputCapture"]],["impl Send for Channel4",1,["stabilizer::hardware::timers::tim2::Channel4"]],["impl Send for Channel4InputCapture",1,["stabilizer::hardware::timers::tim2::Channel4InputCapture"]],["impl Send for UpdateEvent",1,["stabilizer::hardware::timers::tim3::UpdateEvent"]],["impl Send for Channels",1,["stabilizer::hardware::timers::tim3::Channels"]],["impl Send for Channel1",1,["stabilizer::hardware::timers::tim3::Channel1"]],["impl Send for Channel1InputCapture",1,["stabilizer::hardware::timers::tim3::Channel1InputCapture"]],["impl Send for Channel2",1,["stabilizer::hardware::timers::tim3::Channel2"]],["impl Send for Channel2InputCapture",1,["stabilizer::hardware::timers::tim3::Channel2InputCapture"]],["impl Send for Channel3",1,["stabilizer::hardware::timers::tim3::Channel3"]],["impl Send for Channel3InputCapture",1,["stabilizer::hardware::timers::tim3::Channel3InputCapture"]],["impl Send for Channel4",1,["stabilizer::hardware::timers::tim3::Channel4"]],["impl Send for Channel4InputCapture",1,["stabilizer::hardware::timers::tim3::Channel4InputCapture"]],["impl Send for UpdateEvent",1,["stabilizer::hardware::timers::tim5::UpdateEvent"]],["impl Send for Channels",1,["stabilizer::hardware::timers::tim5::Channels"]],["impl Send for Channel1",1,["stabilizer::hardware::timers::tim5::Channel1"]],["impl Send for Channel1InputCapture",1,["stabilizer::hardware::timers::tim5::Channel1InputCapture"]],["impl Send for Channel2",1,["stabilizer::hardware::timers::tim5::Channel2"]],["impl Send for Channel2InputCapture",1,["stabilizer::hardware::timers::tim5::Channel2InputCapture"]],["impl Send for Channel3",1,["stabilizer::hardware::timers::tim5::Channel3"]],["impl Send for Channel3InputCapture",1,["stabilizer::hardware::timers::tim5::Channel3InputCapture"]],["impl Send for Channel4",1,["stabilizer::hardware::timers::tim5::Channel4"]],["impl Send for Channel4InputCapture",1,["stabilizer::hardware::timers::tim5::Channel4InputCapture"]],["impl Send for UpdateEvent",1,["stabilizer::hardware::timers::tim8::UpdateEvent"]],["impl Send for Channels",1,["stabilizer::hardware::timers::tim8::Channels"]],["impl Send for Channel1",1,["stabilizer::hardware::timers::tim8::Channel1"]],["impl Send for Channel1InputCapture",1,["stabilizer::hardware::timers::tim8::Channel1InputCapture"]],["impl Send for Channel2",1,["stabilizer::hardware::timers::tim8::Channel2"]],["impl Send for Channel2InputCapture",1,["stabilizer::hardware::timers::tim8::Channel2InputCapture"]],["impl Send for Channel3",1,["stabilizer::hardware::timers::tim8::Channel3"]],["impl Send for Channel3InputCapture",1,["stabilizer::hardware::timers::tim8::Channel3InputCapture"]],["impl Send for Channel4",1,["stabilizer::hardware::timers::tim8::Channel4"]],["impl Send for Channel4InputCapture",1,["stabilizer::hardware::timers::tim8::Channel4InputCapture"]],["impl Send for TriggerGenerator",1,["stabilizer::hardware::timers::TriggerGenerator"]],["impl Send for TriggerSource",1,["stabilizer::hardware::timers::TriggerSource"]],["impl Send for Prescaler",1,["stabilizer::hardware::timers::Prescaler"]],["impl Send for SlaveMode",1,["stabilizer::hardware::timers::SlaveMode"]],["impl Send for InputFilter",1,["stabilizer::hardware::timers::InputFilter"]],["impl Send for SamplingTimer",1,["stabilizer::hardware::timers::SamplingTimer"]],["impl Send for ShadowSamplingTimer",1,["stabilizer::hardware::timers::ShadowSamplingTimer"]],["impl Send for TimestampTimer",1,["stabilizer::hardware::timers::TimestampTimer"]],["impl Send for PounderTimestampTimer",1,["stabilizer::hardware::timers::PounderTimestampTimer"]],["impl Send for StreamTarget",1,["stabilizer::net::data_stream::StreamTarget"]],["impl Send for StreamFormat",1,["stabilizer::net::data_stream::StreamFormat"]],["impl Send for FrameGenerator",1,["stabilizer::net::data_stream::FrameGenerator"]],["impl Send for DataStream",1,["stabilizer::net::data_stream::DataStream"]],["impl Send for NetworkProcessor",1,["stabilizer::net::network_processor::NetworkProcessor"]],["impl<T> Send for TelemetryClient<T>where\n T: Send,",1,["stabilizer::net::telemetry::TelemetryClient"]],["impl Send for TelemetryBuffer",1,["stabilizer::net::telemetry::TelemetryBuffer"]],["impl Send for Telemetry",1,["stabilizer::net::telemetry::Telemetry"]],["impl Send for UpdateState",1,["stabilizer::net::UpdateState"]],["impl Send for NetworkState",1,["stabilizer::net::NetworkState"]],["impl<S, T> Send for NetworkUsers<S, T>where\n S: Send,\n T: Send,",1,["stabilizer::net::NetworkUsers"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/marker/trait.StructuralEq.js b/firmware/implementors/core/marker/trait.StructuralEq.js new file mode 100644 index 0000000000..db7f014345 --- /dev/null +++ b/firmware/implementors/core/marker/trait.StructuralEq.js @@ -0,0 +1,6 @@ +(function() {var implementors = { +"ad9959":[["impl StructuralEq for Mode"]], +"idsp":[["impl<T> StructuralEq for Accu<T>"]], +"miniconf":[["impl<T, const N: usize> StructuralEq for Array<T, N>"],["impl StructuralEq for Metadata"],["impl StructuralEq for Error"],["impl StructuralEq for IterError"],["impl<M: ?Sized, const L: usize, const TS: usize> StructuralEq for MiniconfIter<M, L, TS>"],["impl<T> StructuralEq for Option<T>"]], +"stabilizer":[["impl StructuralEq for StreamFormat"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/marker/trait.StructuralPartialEq.js b/firmware/implementors/core/marker/trait.StructuralPartialEq.js new file mode 100644 index 0000000000..8193e21c5b --- /dev/null +++ b/firmware/implementors/core/marker/trait.StructuralPartialEq.js @@ -0,0 +1,7 @@ +(function() {var implementors = { +"ad9959":[["impl StructuralPartialEq for Mode"]], +"idsp":[["impl<T> StructuralPartialEq for Accu<T>"]], +"lockin":[["impl StructuralPartialEq for LockinMode"]], +"miniconf":[["impl<T> StructuralPartialEq for Option<T>"],["impl<T, const N: usize> StructuralPartialEq for Array<T, N>"],["impl StructuralPartialEq for Error"],["impl StructuralPartialEq for IterError"],["impl StructuralPartialEq for Metadata"],["impl<M: ?Sized, const L: usize, const TS: usize> StructuralPartialEq for MiniconfIter<M, L, TS>"]], +"stabilizer":[["impl StructuralPartialEq for StreamFormat"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/marker/trait.Sync.js b/firmware/implementors/core/marker/trait.Sync.js new file mode 100644 index 0000000000..06937f6be1 --- /dev/null +++ b/firmware/implementors/core/marker/trait.Sync.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl<INTERFACE> Sync for Ad9959<INTERFACE>where\n INTERFACE: Sync,",1,["ad9959::Ad9959"]],["impl Sync for Mode",1,["ad9959::Mode"]],["impl Sync for Channel",1,["ad9959::Channel"]],["impl Sync for Register",1,["ad9959::Register"]],["impl Sync for Error",1,["ad9959::Error"]],["impl Sync for ProfileSerializer",1,["ad9959::ProfileSerializer"]]], +"dual_iir":[["impl !Sync for __rtic_internal_Monotonics",1,["dual_iir::app::__rtic_internal_Monotonics"]],["impl<'a> !Sync for __rtic_internal_init_Context<'a>",1,["dual_iir::app::__rtic_internal_init_Context"]],["impl<'a> !Sync for __rtic_internal_idleSharedResources<'a>",1,["dual_iir::app::__rtic_internal_idleSharedResources"]],["impl<'a> !Sync for __rtic_internal_idle_Context<'a>",1,["dual_iir::app::__rtic_internal_idle_Context"]],["impl<'a> !Sync for __rtic_internal_processLocalResources<'a>",1,["dual_iir::app::__rtic_internal_processLocalResources"]],["impl<'a> !Sync for __rtic_internal_processSharedResources<'a>",1,["dual_iir::app::__rtic_internal_processSharedResources"]],["impl<'a> !Sync for __rtic_internal_process_Context<'a>",1,["dual_iir::app::__rtic_internal_process_Context"]],["impl Sync for __rtic_internal_eth_Context",1,["dual_iir::app::__rtic_internal_eth_Context"]],["impl Sync for __rtic_internal_spi2_Context",1,["dual_iir::app::__rtic_internal_spi2_Context"]],["impl Sync for __rtic_internal_spi3_Context",1,["dual_iir::app::__rtic_internal_spi3_Context"]],["impl Sync for __rtic_internal_spi4_Context",1,["dual_iir::app::__rtic_internal_spi4_Context"]],["impl Sync for __rtic_internal_spi5_Context",1,["dual_iir::app::__rtic_internal_spi5_Context"]],["impl<'a> !Sync for __rtic_internal_startLocalResources<'a>",1,["dual_iir::app::__rtic_internal_startLocalResources"]],["impl<'a> !Sync for __rtic_internal_start_Context<'a>",1,["dual_iir::app::__rtic_internal_start_Context"]],["impl<'a> Sync for __rtic_internal_settings_updateLocalResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> !Sync for __rtic_internal_settings_updateSharedResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> !Sync for __rtic_internal_settings_update_Context<'a>",1,["dual_iir::app::__rtic_internal_settings_update_Context"]],["impl<'a> Sync for __rtic_internal_telemetryLocalResources<'a>",1,["dual_iir::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> !Sync for __rtic_internal_telemetrySharedResources<'a>",1,["dual_iir::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> !Sync for __rtic_internal_telemetry_Context<'a>",1,["dual_iir::app::__rtic_internal_telemetry_Context"]],["impl<'a> !Sync for __rtic_internal_ethernet_linkSharedResources<'a>",1,["dual_iir::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> !Sync for __rtic_internal_ethernet_link_Context<'a>",1,["dual_iir::app::__rtic_internal_ethernet_link_Context"]],["impl !Sync for Shared",1,["dual_iir::app::Shared"]],["impl !Sync for Local",1,["dual_iir::app::Local"]],["impl Sync for Settings",1,["dual_iir::Settings"]]], +"idsp":[["impl<T> Sync for Accu<T>where\n T: Sync,",1,["idsp::accu::Accu"]],["impl<T> Sync for IIR<T>where\n T: Sync,",1,["idsp::iir::IIR"]],["impl Sync for IIR",1,["idsp::iir_int::IIR"]],["impl<const N: usize> Sync for Lockin<N>",1,["idsp::lockin::Lockin"]],["impl<const N: usize> Sync for Lowpass<N>",1,["idsp::lowpass::Lowpass"]],["impl Sync for PLL",1,["idsp::pll::PLL"]],["impl Sync for RPLL",1,["idsp::rpll::RPLL"]],["impl<T> Sync for Unwrapper<T>where\n T: Sync,",1,["idsp::unwrap::Unwrapper"]]], +"lockin":[["impl !Sync for __rtic_internal_Monotonics",1,["lockin::app::__rtic_internal_Monotonics"]],["impl<'a> !Sync for __rtic_internal_init_Context<'a>",1,["lockin::app::__rtic_internal_init_Context"]],["impl<'a> !Sync for __rtic_internal_idleSharedResources<'a>",1,["lockin::app::__rtic_internal_idleSharedResources"]],["impl<'a> !Sync for __rtic_internal_idle_Context<'a>",1,["lockin::app::__rtic_internal_idle_Context"]],["impl<'a> !Sync for __rtic_internal_processLocalResources<'a>",1,["lockin::app::__rtic_internal_processLocalResources"]],["impl<'a> !Sync for __rtic_internal_processSharedResources<'a>",1,["lockin::app::__rtic_internal_processSharedResources"]],["impl<'a> !Sync for __rtic_internal_process_Context<'a>",1,["lockin::app::__rtic_internal_process_Context"]],["impl Sync for __rtic_internal_eth_Context",1,["lockin::app::__rtic_internal_eth_Context"]],["impl<'a> !Sync for __rtic_internal_startLocalResources<'a>",1,["lockin::app::__rtic_internal_startLocalResources"]],["impl<'a> !Sync for __rtic_internal_start_Context<'a>",1,["lockin::app::__rtic_internal_start_Context"]],["impl<'a> Sync for __rtic_internal_settings_updateLocalResources<'a>",1,["lockin::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> !Sync for __rtic_internal_settings_updateSharedResources<'a>",1,["lockin::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> !Sync for __rtic_internal_settings_update_Context<'a>",1,["lockin::app::__rtic_internal_settings_update_Context"]],["impl<'a> Sync for __rtic_internal_telemetryLocalResources<'a>",1,["lockin::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> !Sync for __rtic_internal_telemetrySharedResources<'a>",1,["lockin::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> !Sync for __rtic_internal_telemetry_Context<'a>",1,["lockin::app::__rtic_internal_telemetry_Context"]],["impl<'a> !Sync for __rtic_internal_ethernet_linkSharedResources<'a>",1,["lockin::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> !Sync for __rtic_internal_ethernet_link_Context<'a>",1,["lockin::app::__rtic_internal_ethernet_link_Context"]],["impl !Sync for Shared",1,["lockin::app::Shared"]],["impl !Sync for Local",1,["lockin::app::Local"]],["impl Sync for Conf",1,["lockin::Conf"]],["impl Sync for LockinMode",1,["lockin::LockinMode"]],["impl Sync for Settings",1,["lockin::Settings"]]], +"miniconf":[["impl<T, const N: usize> Sync for Array<T, N>where\n T: Sync,",1,["miniconf::array::Array"]],["impl<M: ?Sized, const L: usize, const TS: usize> Sync for MiniconfIter<M, L, TS>where\n M: Sync,",1,["miniconf::iter::MiniconfIter"]],["impl<T> Sync for Option<T>where\n T: Sync,",1,["miniconf::option::Option"]],["impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> Sync for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where\n Clock: Sync,\n Settings: Sync,\n Stack: Sync,\n <Clock as Clock>::T: Sync,\n <Stack as TcpClientStack>::TcpSocket: Sync,",1,["miniconf::mqtt_client::MqttClient"]],["impl Sync for Error",1,["miniconf::Error"]],["impl Sync for IterError",1,["miniconf::IterError"]],["impl Sync for Metadata",1,["miniconf::Metadata"]]], +"stabilizer":[["impl Sync for AdcCode",1,["stabilizer::hardware::adc::AdcCode"]],["impl !Sync for Adc0Input",1,["stabilizer::hardware::adc::Adc0Input"]],["impl !Sync for Adc1Input",1,["stabilizer::hardware::adc::Adc1Input"]],["impl Sync for Gain",1,["stabilizer::hardware::afe::Gain"]],["impl<A0, A1> Sync for ProgrammableGainAmplifier<A0, A1>where\n A0: Sync,\n A1: Sync,",1,["stabilizer::hardware::afe::ProgrammableGainAmplifier"]],["impl Sync for CpuTempSensor",1,["stabilizer::hardware::cpu_temp_sensor::CpuTempSensor"]],["impl Sync for DacCode",1,["stabilizer::hardware::dac::DacCode"]],["impl !Sync for Dac0Output",1,["stabilizer::hardware::dac::Dac0Output"]],["impl !Sync for Dac1Output",1,["stabilizer::hardware::dac::Dac1Output"]],["impl Sync for AsmDelay",1,["stabilizer::hardware::delay::AsmDelay"]],["impl Sync for InputStamper",1,["stabilizer::hardware::input_stamper::InputStamper"]],["impl !Sync for DdsOutput",1,["stabilizer::hardware::pounder::dds_output::DdsOutput"]],["impl<'a> !Sync for ProfileBuilder<'a>",1,["stabilizer::hardware::pounder::dds_output::ProfileBuilder"]],["impl Sync for Channel",1,["stabilizer::hardware::pounder::hrtimer::Channel"]],["impl !Sync for HighResTimerE",1,["stabilizer::hardware::pounder::hrtimer::HighResTimerE"]],["impl !Sync for Timestamper",1,["stabilizer::hardware::pounder::timestamp::Timestamper"]],["impl Sync for GpioPin",1,["stabilizer::hardware::pounder::GpioPin"]],["impl Sync for Error",1,["stabilizer::hardware::pounder::Error"]],["impl Sync for Channel",1,["stabilizer::hardware::pounder::Channel"]],["impl Sync for DdsChannelState",1,["stabilizer::hardware::pounder::DdsChannelState"]],["impl Sync for ChannelState",1,["stabilizer::hardware::pounder::ChannelState"]],["impl Sync for InputChannelState",1,["stabilizer::hardware::pounder::InputChannelState"]],["impl Sync for OutputChannelState",1,["stabilizer::hardware::pounder::OutputChannelState"]],["impl Sync for DdsClockConfig",1,["stabilizer::hardware::pounder::DdsClockConfig"]],["impl !Sync for QspiInterface",1,["stabilizer::hardware::pounder::QspiInterface"]],["impl !Sync for PounderDevices",1,["stabilizer::hardware::pounder::PounderDevices"]],["impl Sync for NetStorage",1,["stabilizer::hardware::setup::NetStorage"]],["impl Sync for UdpSocketStorage",1,["stabilizer::hardware::setup::UdpSocketStorage"]],["impl Sync for TcpSocketStorage",1,["stabilizer::hardware::setup::TcpSocketStorage"]],["impl !Sync for NetworkDevices",1,["stabilizer::hardware::setup::NetworkDevices"]],["impl Sync for EemGpioDevices",1,["stabilizer::hardware::setup::EemGpioDevices"]],["impl !Sync for StabilizerDevices",1,["stabilizer::hardware::setup::StabilizerDevices"]],["impl !Sync for PounderDevices",1,["stabilizer::hardware::setup::PounderDevices"]],["impl Sync for AdcError",1,["stabilizer::hardware::shared_adc::AdcError"]],["impl<'a, Adc, PIN> Sync for AdcChannel<'a, Adc, PIN>where\n Adc: Send,\n PIN: Sync,",1,["stabilizer::hardware::shared_adc::AdcChannel"]],["impl<Adc> Sync for SharedAdc<Adc>where\n Adc: Send,",1,["stabilizer::hardware::shared_adc::SharedAdc"]],["impl Sync for Signal",1,["stabilizer::hardware::signal_generator::Signal"]],["impl Sync for BasicConfig",1,["stabilizer::hardware::signal_generator::BasicConfig"]],["impl Sync for Error",1,["stabilizer::hardware::signal_generator::Error"]],["impl Sync for Config",1,["stabilizer::hardware::signal_generator::Config"]],["impl Sync for SignalGenerator",1,["stabilizer::hardware::signal_generator::SignalGenerator"]],["impl Sync for UpdateEvent",1,["stabilizer::hardware::timers::tim2::UpdateEvent"]],["impl Sync for Channels",1,["stabilizer::hardware::timers::tim2::Channels"]],["impl Sync for Channel1",1,["stabilizer::hardware::timers::tim2::Channel1"]],["impl Sync for Channel1InputCapture",1,["stabilizer::hardware::timers::tim2::Channel1InputCapture"]],["impl Sync for Channel2",1,["stabilizer::hardware::timers::tim2::Channel2"]],["impl Sync for Channel2InputCapture",1,["stabilizer::hardware::timers::tim2::Channel2InputCapture"]],["impl Sync for Channel3",1,["stabilizer::hardware::timers::tim2::Channel3"]],["impl Sync for Channel3InputCapture",1,["stabilizer::hardware::timers::tim2::Channel3InputCapture"]],["impl Sync for Channel4",1,["stabilizer::hardware::timers::tim2::Channel4"]],["impl Sync for Channel4InputCapture",1,["stabilizer::hardware::timers::tim2::Channel4InputCapture"]],["impl Sync for UpdateEvent",1,["stabilizer::hardware::timers::tim3::UpdateEvent"]],["impl Sync for Channels",1,["stabilizer::hardware::timers::tim3::Channels"]],["impl Sync for Channel1",1,["stabilizer::hardware::timers::tim3::Channel1"]],["impl Sync for Channel1InputCapture",1,["stabilizer::hardware::timers::tim3::Channel1InputCapture"]],["impl Sync for Channel2",1,["stabilizer::hardware::timers::tim3::Channel2"]],["impl Sync for Channel2InputCapture",1,["stabilizer::hardware::timers::tim3::Channel2InputCapture"]],["impl Sync for Channel3",1,["stabilizer::hardware::timers::tim3::Channel3"]],["impl Sync for Channel3InputCapture",1,["stabilizer::hardware::timers::tim3::Channel3InputCapture"]],["impl Sync for Channel4",1,["stabilizer::hardware::timers::tim3::Channel4"]],["impl Sync for Channel4InputCapture",1,["stabilizer::hardware::timers::tim3::Channel4InputCapture"]],["impl Sync for UpdateEvent",1,["stabilizer::hardware::timers::tim5::UpdateEvent"]],["impl Sync for Channels",1,["stabilizer::hardware::timers::tim5::Channels"]],["impl Sync for Channel1",1,["stabilizer::hardware::timers::tim5::Channel1"]],["impl Sync for Channel1InputCapture",1,["stabilizer::hardware::timers::tim5::Channel1InputCapture"]],["impl Sync for Channel2",1,["stabilizer::hardware::timers::tim5::Channel2"]],["impl Sync for Channel2InputCapture",1,["stabilizer::hardware::timers::tim5::Channel2InputCapture"]],["impl Sync for Channel3",1,["stabilizer::hardware::timers::tim5::Channel3"]],["impl Sync for Channel3InputCapture",1,["stabilizer::hardware::timers::tim5::Channel3InputCapture"]],["impl Sync for Channel4",1,["stabilizer::hardware::timers::tim5::Channel4"]],["impl Sync for Channel4InputCapture",1,["stabilizer::hardware::timers::tim5::Channel4InputCapture"]],["impl Sync for UpdateEvent",1,["stabilizer::hardware::timers::tim8::UpdateEvent"]],["impl Sync for Channels",1,["stabilizer::hardware::timers::tim8::Channels"]],["impl Sync for Channel1",1,["stabilizer::hardware::timers::tim8::Channel1"]],["impl Sync for Channel1InputCapture",1,["stabilizer::hardware::timers::tim8::Channel1InputCapture"]],["impl Sync for Channel2",1,["stabilizer::hardware::timers::tim8::Channel2"]],["impl Sync for Channel2InputCapture",1,["stabilizer::hardware::timers::tim8::Channel2InputCapture"]],["impl Sync for Channel3",1,["stabilizer::hardware::timers::tim8::Channel3"]],["impl Sync for Channel3InputCapture",1,["stabilizer::hardware::timers::tim8::Channel3InputCapture"]],["impl Sync for Channel4",1,["stabilizer::hardware::timers::tim8::Channel4"]],["impl Sync for Channel4InputCapture",1,["stabilizer::hardware::timers::tim8::Channel4InputCapture"]],["impl Sync for TriggerGenerator",1,["stabilizer::hardware::timers::TriggerGenerator"]],["impl Sync for TriggerSource",1,["stabilizer::hardware::timers::TriggerSource"]],["impl Sync for Prescaler",1,["stabilizer::hardware::timers::Prescaler"]],["impl Sync for SlaveMode",1,["stabilizer::hardware::timers::SlaveMode"]],["impl Sync for InputFilter",1,["stabilizer::hardware::timers::InputFilter"]],["impl !Sync for SamplingTimer",1,["stabilizer::hardware::timers::SamplingTimer"]],["impl !Sync for ShadowSamplingTimer",1,["stabilizer::hardware::timers::ShadowSamplingTimer"]],["impl !Sync for TimestampTimer",1,["stabilizer::hardware::timers::TimestampTimer"]],["impl !Sync for PounderTimestampTimer",1,["stabilizer::hardware::timers::PounderTimestampTimer"]],["impl Sync for StreamTarget",1,["stabilizer::net::data_stream::StreamTarget"]],["impl Sync for StreamFormat",1,["stabilizer::net::data_stream::StreamFormat"]],["impl !Sync for FrameGenerator",1,["stabilizer::net::data_stream::FrameGenerator"]],["impl !Sync for DataStream",1,["stabilizer::net::data_stream::DataStream"]],["impl !Sync for NetworkProcessor",1,["stabilizer::net::network_processor::NetworkProcessor"]],["impl<T> Sync for TelemetryClient<T>where\n T: Sync,",1,["stabilizer::net::telemetry::TelemetryClient"]],["impl Sync for TelemetryBuffer",1,["stabilizer::net::telemetry::TelemetryBuffer"]],["impl Sync for Telemetry",1,["stabilizer::net::telemetry::Telemetry"]],["impl Sync for UpdateState",1,["stabilizer::net::UpdateState"]],["impl Sync for NetworkState",1,["stabilizer::net::NetworkState"]],["impl<S, T> !Sync for NetworkUsers<S, T>",1,["stabilizer::net::NetworkUsers"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/marker/trait.Unpin.js b/firmware/implementors/core/marker/trait.Unpin.js new file mode 100644 index 0000000000..c8853ab26a --- /dev/null +++ b/firmware/implementors/core/marker/trait.Unpin.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl<INTERFACE> Unpin for Ad9959<INTERFACE>where\n INTERFACE: Unpin,",1,["ad9959::Ad9959"]],["impl Unpin for Mode",1,["ad9959::Mode"]],["impl Unpin for Channel",1,["ad9959::Channel"]],["impl Unpin for Register",1,["ad9959::Register"]],["impl Unpin for Error",1,["ad9959::Error"]],["impl Unpin for ProfileSerializer",1,["ad9959::ProfileSerializer"]]], +"dual_iir":[["impl Unpin for __rtic_internal_Monotonics",1,["dual_iir::app::__rtic_internal_Monotonics"]],["impl<'a> Unpin for __rtic_internal_init_Context<'a>",1,["dual_iir::app::__rtic_internal_init_Context"]],["impl<'a> Unpin for __rtic_internal_idleSharedResources<'a>",1,["dual_iir::app::__rtic_internal_idleSharedResources"]],["impl<'a> Unpin for __rtic_internal_idle_Context<'a>",1,["dual_iir::app::__rtic_internal_idle_Context"]],["impl<'a> Unpin for __rtic_internal_processLocalResources<'a>",1,["dual_iir::app::__rtic_internal_processLocalResources"]],["impl<'a> Unpin for __rtic_internal_processSharedResources<'a>",1,["dual_iir::app::__rtic_internal_processSharedResources"]],["impl<'a> Unpin for __rtic_internal_process_Context<'a>",1,["dual_iir::app::__rtic_internal_process_Context"]],["impl Unpin for __rtic_internal_eth_Context",1,["dual_iir::app::__rtic_internal_eth_Context"]],["impl Unpin for __rtic_internal_spi2_Context",1,["dual_iir::app::__rtic_internal_spi2_Context"]],["impl Unpin for __rtic_internal_spi3_Context",1,["dual_iir::app::__rtic_internal_spi3_Context"]],["impl Unpin for __rtic_internal_spi4_Context",1,["dual_iir::app::__rtic_internal_spi4_Context"]],["impl Unpin for __rtic_internal_spi5_Context",1,["dual_iir::app::__rtic_internal_spi5_Context"]],["impl<'a> Unpin for __rtic_internal_startLocalResources<'a>",1,["dual_iir::app::__rtic_internal_startLocalResources"]],["impl<'a> Unpin for __rtic_internal_start_Context<'a>",1,["dual_iir::app::__rtic_internal_start_Context"]],["impl<'a> Unpin for __rtic_internal_settings_updateLocalResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> Unpin for __rtic_internal_settings_updateSharedResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> Unpin for __rtic_internal_settings_update_Context<'a>",1,["dual_iir::app::__rtic_internal_settings_update_Context"]],["impl<'a> Unpin for __rtic_internal_telemetryLocalResources<'a>",1,["dual_iir::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> Unpin for __rtic_internal_telemetrySharedResources<'a>",1,["dual_iir::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> Unpin for __rtic_internal_telemetry_Context<'a>",1,["dual_iir::app::__rtic_internal_telemetry_Context"]],["impl<'a> Unpin for __rtic_internal_ethernet_linkSharedResources<'a>",1,["dual_iir::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> Unpin for __rtic_internal_ethernet_link_Context<'a>",1,["dual_iir::app::__rtic_internal_ethernet_link_Context"]],["impl Unpin for Shared",1,["dual_iir::app::Shared"]],["impl Unpin for Local",1,["dual_iir::app::Local"]],["impl Unpin for Settings",1,["dual_iir::Settings"]]], +"idsp":[["impl<T> Unpin for Accu<T>where\n T: Unpin,",1,["idsp::accu::Accu"]],["impl<T> Unpin for IIR<T>where\n T: Unpin,",1,["idsp::iir::IIR"]],["impl Unpin for IIR",1,["idsp::iir_int::IIR"]],["impl<const N: usize> Unpin for Lockin<N>",1,["idsp::lockin::Lockin"]],["impl<const N: usize> Unpin for Lowpass<N>",1,["idsp::lowpass::Lowpass"]],["impl Unpin for PLL",1,["idsp::pll::PLL"]],["impl Unpin for RPLL",1,["idsp::rpll::RPLL"]],["impl<T> Unpin for Unwrapper<T>where\n T: Unpin,",1,["idsp::unwrap::Unwrapper"]]], +"lockin":[["impl Unpin for __rtic_internal_Monotonics",1,["lockin::app::__rtic_internal_Monotonics"]],["impl<'a> Unpin for __rtic_internal_init_Context<'a>",1,["lockin::app::__rtic_internal_init_Context"]],["impl<'a> Unpin for __rtic_internal_idleSharedResources<'a>",1,["lockin::app::__rtic_internal_idleSharedResources"]],["impl<'a> Unpin for __rtic_internal_idle_Context<'a>",1,["lockin::app::__rtic_internal_idle_Context"]],["impl<'a> Unpin for __rtic_internal_processLocalResources<'a>",1,["lockin::app::__rtic_internal_processLocalResources"]],["impl<'a> Unpin for __rtic_internal_processSharedResources<'a>",1,["lockin::app::__rtic_internal_processSharedResources"]],["impl<'a> Unpin for __rtic_internal_process_Context<'a>",1,["lockin::app::__rtic_internal_process_Context"]],["impl Unpin for __rtic_internal_eth_Context",1,["lockin::app::__rtic_internal_eth_Context"]],["impl<'a> Unpin for __rtic_internal_startLocalResources<'a>",1,["lockin::app::__rtic_internal_startLocalResources"]],["impl<'a> Unpin for __rtic_internal_start_Context<'a>",1,["lockin::app::__rtic_internal_start_Context"]],["impl<'a> Unpin for __rtic_internal_settings_updateLocalResources<'a>",1,["lockin::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> Unpin for __rtic_internal_settings_updateSharedResources<'a>",1,["lockin::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> Unpin for __rtic_internal_settings_update_Context<'a>",1,["lockin::app::__rtic_internal_settings_update_Context"]],["impl<'a> Unpin for __rtic_internal_telemetryLocalResources<'a>",1,["lockin::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> Unpin for __rtic_internal_telemetrySharedResources<'a>",1,["lockin::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> Unpin for __rtic_internal_telemetry_Context<'a>",1,["lockin::app::__rtic_internal_telemetry_Context"]],["impl<'a> Unpin for __rtic_internal_ethernet_linkSharedResources<'a>",1,["lockin::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> Unpin for __rtic_internal_ethernet_link_Context<'a>",1,["lockin::app::__rtic_internal_ethernet_link_Context"]],["impl Unpin for Shared",1,["lockin::app::Shared"]],["impl Unpin for Local",1,["lockin::app::Local"]],["impl Unpin for Conf",1,["lockin::Conf"]],["impl Unpin for LockinMode",1,["lockin::LockinMode"]],["impl Unpin for Settings",1,["lockin::Settings"]]], +"miniconf":[["impl<T, const N: usize> Unpin for Array<T, N>where\n T: Unpin,",1,["miniconf::array::Array"]],["impl<M: ?Sized, const L: usize, const TS: usize> Unpin for MiniconfIter<M, L, TS>where\n M: Unpin,",1,["miniconf::iter::MiniconfIter"]],["impl<T> Unpin for Option<T>where\n T: Unpin,",1,["miniconf::option::Option"]],["impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> Unpin for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where\n Clock: Unpin,\n Settings: Unpin,\n Stack: Unpin,\n <Clock as Clock>::T: Unpin,\n <Stack as TcpClientStack>::TcpSocket: Unpin,",1,["miniconf::mqtt_client::MqttClient"]],["impl Unpin for Error",1,["miniconf::Error"]],["impl Unpin for IterError",1,["miniconf::IterError"]],["impl Unpin for Metadata",1,["miniconf::Metadata"]]], +"stabilizer":[["impl Unpin for AdcCode",1,["stabilizer::hardware::adc::AdcCode"]],["impl Unpin for Adc0Input",1,["stabilizer::hardware::adc::Adc0Input"]],["impl Unpin for Adc1Input",1,["stabilizer::hardware::adc::Adc1Input"]],["impl Unpin for Gain",1,["stabilizer::hardware::afe::Gain"]],["impl<A0, A1> Unpin for ProgrammableGainAmplifier<A0, A1>where\n A0: Unpin,\n A1: Unpin,",1,["stabilizer::hardware::afe::ProgrammableGainAmplifier"]],["impl Unpin for CpuTempSensor",1,["stabilizer::hardware::cpu_temp_sensor::CpuTempSensor"]],["impl Unpin for DacCode",1,["stabilizer::hardware::dac::DacCode"]],["impl Unpin for Dac0Output",1,["stabilizer::hardware::dac::Dac0Output"]],["impl Unpin for Dac1Output",1,["stabilizer::hardware::dac::Dac1Output"]],["impl Unpin for AsmDelay",1,["stabilizer::hardware::delay::AsmDelay"]],["impl Unpin for InputStamper",1,["stabilizer::hardware::input_stamper::InputStamper"]],["impl Unpin for DdsOutput",1,["stabilizer::hardware::pounder::dds_output::DdsOutput"]],["impl<'a> Unpin for ProfileBuilder<'a>",1,["stabilizer::hardware::pounder::dds_output::ProfileBuilder"]],["impl Unpin for Channel",1,["stabilizer::hardware::pounder::hrtimer::Channel"]],["impl Unpin for HighResTimerE",1,["stabilizer::hardware::pounder::hrtimer::HighResTimerE"]],["impl Unpin for Timestamper",1,["stabilizer::hardware::pounder::timestamp::Timestamper"]],["impl Unpin for GpioPin",1,["stabilizer::hardware::pounder::GpioPin"]],["impl Unpin for Error",1,["stabilizer::hardware::pounder::Error"]],["impl Unpin for Channel",1,["stabilizer::hardware::pounder::Channel"]],["impl Unpin for DdsChannelState",1,["stabilizer::hardware::pounder::DdsChannelState"]],["impl Unpin for ChannelState",1,["stabilizer::hardware::pounder::ChannelState"]],["impl Unpin for InputChannelState",1,["stabilizer::hardware::pounder::InputChannelState"]],["impl Unpin for OutputChannelState",1,["stabilizer::hardware::pounder::OutputChannelState"]],["impl Unpin for DdsClockConfig",1,["stabilizer::hardware::pounder::DdsClockConfig"]],["impl Unpin for QspiInterface",1,["stabilizer::hardware::pounder::QspiInterface"]],["impl Unpin for PounderDevices",1,["stabilizer::hardware::pounder::PounderDevices"]],["impl Unpin for NetStorage",1,["stabilizer::hardware::setup::NetStorage"]],["impl Unpin for UdpSocketStorage",1,["stabilizer::hardware::setup::UdpSocketStorage"]],["impl Unpin for TcpSocketStorage",1,["stabilizer::hardware::setup::TcpSocketStorage"]],["impl Unpin for NetworkDevices",1,["stabilizer::hardware::setup::NetworkDevices"]],["impl Unpin for EemGpioDevices",1,["stabilizer::hardware::setup::EemGpioDevices"]],["impl Unpin for StabilizerDevices",1,["stabilizer::hardware::setup::StabilizerDevices"]],["impl Unpin for PounderDevices",1,["stabilizer::hardware::setup::PounderDevices"]],["impl Unpin for AdcError",1,["stabilizer::hardware::shared_adc::AdcError"]],["impl<'a, Adc, PIN> Unpin for AdcChannel<'a, Adc, PIN>where\n PIN: Unpin,",1,["stabilizer::hardware::shared_adc::AdcChannel"]],["impl<Adc> Unpin for SharedAdc<Adc>where\n Adc: Unpin,",1,["stabilizer::hardware::shared_adc::SharedAdc"]],["impl Unpin for Signal",1,["stabilizer::hardware::signal_generator::Signal"]],["impl Unpin for BasicConfig",1,["stabilizer::hardware::signal_generator::BasicConfig"]],["impl Unpin for Error",1,["stabilizer::hardware::signal_generator::Error"]],["impl Unpin for Config",1,["stabilizer::hardware::signal_generator::Config"]],["impl Unpin for SignalGenerator",1,["stabilizer::hardware::signal_generator::SignalGenerator"]],["impl Unpin for UpdateEvent",1,["stabilizer::hardware::timers::tim2::UpdateEvent"]],["impl Unpin for Channels",1,["stabilizer::hardware::timers::tim2::Channels"]],["impl Unpin for Channel1",1,["stabilizer::hardware::timers::tim2::Channel1"]],["impl Unpin for Channel1InputCapture",1,["stabilizer::hardware::timers::tim2::Channel1InputCapture"]],["impl Unpin for Channel2",1,["stabilizer::hardware::timers::tim2::Channel2"]],["impl Unpin for Channel2InputCapture",1,["stabilizer::hardware::timers::tim2::Channel2InputCapture"]],["impl Unpin for Channel3",1,["stabilizer::hardware::timers::tim2::Channel3"]],["impl Unpin for Channel3InputCapture",1,["stabilizer::hardware::timers::tim2::Channel3InputCapture"]],["impl Unpin for Channel4",1,["stabilizer::hardware::timers::tim2::Channel4"]],["impl Unpin for Channel4InputCapture",1,["stabilizer::hardware::timers::tim2::Channel4InputCapture"]],["impl Unpin for UpdateEvent",1,["stabilizer::hardware::timers::tim3::UpdateEvent"]],["impl Unpin for Channels",1,["stabilizer::hardware::timers::tim3::Channels"]],["impl Unpin for Channel1",1,["stabilizer::hardware::timers::tim3::Channel1"]],["impl Unpin for Channel1InputCapture",1,["stabilizer::hardware::timers::tim3::Channel1InputCapture"]],["impl Unpin for Channel2",1,["stabilizer::hardware::timers::tim3::Channel2"]],["impl Unpin for Channel2InputCapture",1,["stabilizer::hardware::timers::tim3::Channel2InputCapture"]],["impl Unpin for Channel3",1,["stabilizer::hardware::timers::tim3::Channel3"]],["impl Unpin for Channel3InputCapture",1,["stabilizer::hardware::timers::tim3::Channel3InputCapture"]],["impl Unpin for Channel4",1,["stabilizer::hardware::timers::tim3::Channel4"]],["impl Unpin for Channel4InputCapture",1,["stabilizer::hardware::timers::tim3::Channel4InputCapture"]],["impl Unpin for UpdateEvent",1,["stabilizer::hardware::timers::tim5::UpdateEvent"]],["impl Unpin for Channels",1,["stabilizer::hardware::timers::tim5::Channels"]],["impl Unpin for Channel1",1,["stabilizer::hardware::timers::tim5::Channel1"]],["impl Unpin for Channel1InputCapture",1,["stabilizer::hardware::timers::tim5::Channel1InputCapture"]],["impl Unpin for Channel2",1,["stabilizer::hardware::timers::tim5::Channel2"]],["impl Unpin for Channel2InputCapture",1,["stabilizer::hardware::timers::tim5::Channel2InputCapture"]],["impl Unpin for Channel3",1,["stabilizer::hardware::timers::tim5::Channel3"]],["impl Unpin for Channel3InputCapture",1,["stabilizer::hardware::timers::tim5::Channel3InputCapture"]],["impl Unpin for Channel4",1,["stabilizer::hardware::timers::tim5::Channel4"]],["impl Unpin for Channel4InputCapture",1,["stabilizer::hardware::timers::tim5::Channel4InputCapture"]],["impl Unpin for UpdateEvent",1,["stabilizer::hardware::timers::tim8::UpdateEvent"]],["impl Unpin for Channels",1,["stabilizer::hardware::timers::tim8::Channels"]],["impl Unpin for Channel1",1,["stabilizer::hardware::timers::tim8::Channel1"]],["impl Unpin for Channel1InputCapture",1,["stabilizer::hardware::timers::tim8::Channel1InputCapture"]],["impl Unpin for Channel2",1,["stabilizer::hardware::timers::tim8::Channel2"]],["impl Unpin for Channel2InputCapture",1,["stabilizer::hardware::timers::tim8::Channel2InputCapture"]],["impl Unpin for Channel3",1,["stabilizer::hardware::timers::tim8::Channel3"]],["impl Unpin for Channel3InputCapture",1,["stabilizer::hardware::timers::tim8::Channel3InputCapture"]],["impl Unpin for Channel4",1,["stabilizer::hardware::timers::tim8::Channel4"]],["impl Unpin for Channel4InputCapture",1,["stabilizer::hardware::timers::tim8::Channel4InputCapture"]],["impl Unpin for TriggerGenerator",1,["stabilizer::hardware::timers::TriggerGenerator"]],["impl Unpin for TriggerSource",1,["stabilizer::hardware::timers::TriggerSource"]],["impl Unpin for Prescaler",1,["stabilizer::hardware::timers::Prescaler"]],["impl Unpin for SlaveMode",1,["stabilizer::hardware::timers::SlaveMode"]],["impl Unpin for InputFilter",1,["stabilizer::hardware::timers::InputFilter"]],["impl Unpin for SamplingTimer",1,["stabilizer::hardware::timers::SamplingTimer"]],["impl Unpin for ShadowSamplingTimer",1,["stabilizer::hardware::timers::ShadowSamplingTimer"]],["impl Unpin for TimestampTimer",1,["stabilizer::hardware::timers::TimestampTimer"]],["impl Unpin for PounderTimestampTimer",1,["stabilizer::hardware::timers::PounderTimestampTimer"]],["impl Unpin for StreamTarget",1,["stabilizer::net::data_stream::StreamTarget"]],["impl Unpin for StreamFormat",1,["stabilizer::net::data_stream::StreamFormat"]],["impl Unpin for FrameGenerator",1,["stabilizer::net::data_stream::FrameGenerator"]],["impl Unpin for DataStream",1,["stabilizer::net::data_stream::DataStream"]],["impl Unpin for NetworkProcessor",1,["stabilizer::net::network_processor::NetworkProcessor"]],["impl<T> Unpin for TelemetryClient<T>where\n T: Unpin,",1,["stabilizer::net::telemetry::TelemetryClient"]],["impl Unpin for TelemetryBuffer",1,["stabilizer::net::telemetry::TelemetryBuffer"]],["impl Unpin for Telemetry",1,["stabilizer::net::telemetry::Telemetry"]],["impl Unpin for UpdateState",1,["stabilizer::net::UpdateState"]],["impl Unpin for NetworkState",1,["stabilizer::net::NetworkState"]],["impl<S, T> Unpin for NetworkUsers<S, T>where\n S: Unpin,\n T: Unpin,",1,["stabilizer::net::NetworkUsers"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/arith/trait.Sub.js b/firmware/implementors/core/ops/arith/trait.Sub.js new file mode 100644 index 0000000000..f93d7cc4c9 --- /dev/null +++ b/firmware/implementors/core/ops/arith/trait.Sub.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl Sub<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/arith/trait.SubAssign.js b/firmware/implementors/core/ops/arith/trait.SubAssign.js new file mode 100644 index 0000000000..a6fa2cd352 --- /dev/null +++ b/firmware/implementors/core/ops/arith/trait.SubAssign.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl SubAssign<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/bit/trait.BitAnd.js b/firmware/implementors/core/ops/bit/trait.BitAnd.js new file mode 100644 index 0000000000..a5c0fac0b2 --- /dev/null +++ b/firmware/implementors/core/ops/bit/trait.BitAnd.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl BitAnd<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/bit/trait.BitAndAssign.js b/firmware/implementors/core/ops/bit/trait.BitAndAssign.js new file mode 100644 index 0000000000..164099d960 --- /dev/null +++ b/firmware/implementors/core/ops/bit/trait.BitAndAssign.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl BitAndAssign<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/bit/trait.BitOr.js b/firmware/implementors/core/ops/bit/trait.BitOr.js new file mode 100644 index 0000000000..9e8ab36135 --- /dev/null +++ b/firmware/implementors/core/ops/bit/trait.BitOr.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl BitOr<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/bit/trait.BitOrAssign.js b/firmware/implementors/core/ops/bit/trait.BitOrAssign.js new file mode 100644 index 0000000000..a87ce50c5c --- /dev/null +++ b/firmware/implementors/core/ops/bit/trait.BitOrAssign.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl BitOrAssign<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/bit/trait.BitXor.js b/firmware/implementors/core/ops/bit/trait.BitXor.js new file mode 100644 index 0000000000..6fe82e1c2c --- /dev/null +++ b/firmware/implementors/core/ops/bit/trait.BitXor.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl BitXor<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/bit/trait.BitXorAssign.js b/firmware/implementors/core/ops/bit/trait.BitXorAssign.js new file mode 100644 index 0000000000..03f7b85422 --- /dev/null +++ b/firmware/implementors/core/ops/bit/trait.BitXorAssign.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl BitXorAssign<Channel> for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/bit/trait.Not.js b/firmware/implementors/core/ops/bit/trait.Not.js new file mode 100644 index 0000000000..2767a4876e --- /dev/null +++ b/firmware/implementors/core/ops/bit/trait.Not.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"ad9959":[["impl Not for Channel"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/deref/trait.Deref.js b/firmware/implementors/core/ops/deref/trait.Deref.js new file mode 100644 index 0000000000..21749c8c6f --- /dev/null +++ b/firmware/implementors/core/ops/deref/trait.Deref.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"miniconf":[["impl<T, const N: usize> Deref for Array<T, N>"],["impl<T> Deref for Option<T>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/ops/deref/trait.DerefMut.js b/firmware/implementors/core/ops/deref/trait.DerefMut.js new file mode 100644 index 0000000000..6133a4774f --- /dev/null +++ b/firmware/implementors/core/ops/deref/trait.DerefMut.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"miniconf":[["impl<T, const N: usize> DerefMut for Array<T, N>"],["impl<T> DerefMut for Option<T>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js b/firmware/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js new file mode 100644 index 0000000000..4323d3c58c --- /dev/null +++ b/firmware/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl<INTERFACE> RefUnwindSafe for Ad9959<INTERFACE>where\n INTERFACE: RefUnwindSafe,",1,["ad9959::Ad9959"]],["impl RefUnwindSafe for Mode",1,["ad9959::Mode"]],["impl RefUnwindSafe for Channel",1,["ad9959::Channel"]],["impl RefUnwindSafe for Register",1,["ad9959::Register"]],["impl RefUnwindSafe for Error",1,["ad9959::Error"]],["impl RefUnwindSafe for ProfileSerializer",1,["ad9959::ProfileSerializer"]]], +"dual_iir":[["impl RefUnwindSafe for __rtic_internal_Monotonics",1,["dual_iir::app::__rtic_internal_Monotonics"]],["impl<'a> RefUnwindSafe for __rtic_internal_init_Context<'a>",1,["dual_iir::app::__rtic_internal_init_Context"]],["impl<'a> !RefUnwindSafe for __rtic_internal_idleSharedResources<'a>",1,["dual_iir::app::__rtic_internal_idleSharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_idle_Context<'a>",1,["dual_iir::app::__rtic_internal_idle_Context"]],["impl<'a> !RefUnwindSafe for __rtic_internal_processLocalResources<'a>",1,["dual_iir::app::__rtic_internal_processLocalResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_processSharedResources<'a>",1,["dual_iir::app::__rtic_internal_processSharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_process_Context<'a>",1,["dual_iir::app::__rtic_internal_process_Context"]],["impl RefUnwindSafe for __rtic_internal_eth_Context",1,["dual_iir::app::__rtic_internal_eth_Context"]],["impl RefUnwindSafe for __rtic_internal_spi2_Context",1,["dual_iir::app::__rtic_internal_spi2_Context"]],["impl RefUnwindSafe for __rtic_internal_spi3_Context",1,["dual_iir::app::__rtic_internal_spi3_Context"]],["impl RefUnwindSafe for __rtic_internal_spi4_Context",1,["dual_iir::app::__rtic_internal_spi4_Context"]],["impl RefUnwindSafe for __rtic_internal_spi5_Context",1,["dual_iir::app::__rtic_internal_spi5_Context"]],["impl<'a> RefUnwindSafe for __rtic_internal_startLocalResources<'a>",1,["dual_iir::app::__rtic_internal_startLocalResources"]],["impl<'a> RefUnwindSafe for __rtic_internal_start_Context<'a>",1,["dual_iir::app::__rtic_internal_start_Context"]],["impl<'a> RefUnwindSafe for __rtic_internal_settings_updateLocalResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_settings_updateSharedResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_settings_update_Context<'a>",1,["dual_iir::app::__rtic_internal_settings_update_Context"]],["impl<'a> !RefUnwindSafe for __rtic_internal_telemetryLocalResources<'a>",1,["dual_iir::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_telemetrySharedResources<'a>",1,["dual_iir::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_telemetry_Context<'a>",1,["dual_iir::app::__rtic_internal_telemetry_Context"]],["impl<'a> !RefUnwindSafe for __rtic_internal_ethernet_linkSharedResources<'a>",1,["dual_iir::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_ethernet_link_Context<'a>",1,["dual_iir::app::__rtic_internal_ethernet_link_Context"]],["impl !RefUnwindSafe for Shared",1,["dual_iir::app::Shared"]],["impl !RefUnwindSafe for Local",1,["dual_iir::app::Local"]],["impl RefUnwindSafe for Settings",1,["dual_iir::Settings"]]], +"idsp":[["impl<T> RefUnwindSafe for Accu<T>where\n T: RefUnwindSafe,",1,["idsp::accu::Accu"]],["impl<T> RefUnwindSafe for IIR<T>where\n T: RefUnwindSafe,",1,["idsp::iir::IIR"]],["impl RefUnwindSafe for IIR",1,["idsp::iir_int::IIR"]],["impl<const N: usize> RefUnwindSafe for Lockin<N>",1,["idsp::lockin::Lockin"]],["impl<const N: usize> RefUnwindSafe for Lowpass<N>",1,["idsp::lowpass::Lowpass"]],["impl RefUnwindSafe for PLL",1,["idsp::pll::PLL"]],["impl RefUnwindSafe for RPLL",1,["idsp::rpll::RPLL"]],["impl<T> RefUnwindSafe for Unwrapper<T>where\n T: RefUnwindSafe,",1,["idsp::unwrap::Unwrapper"]]], +"lockin":[["impl RefUnwindSafe for __rtic_internal_Monotonics",1,["lockin::app::__rtic_internal_Monotonics"]],["impl<'a> RefUnwindSafe for __rtic_internal_init_Context<'a>",1,["lockin::app::__rtic_internal_init_Context"]],["impl<'a> !RefUnwindSafe for __rtic_internal_idleSharedResources<'a>",1,["lockin::app::__rtic_internal_idleSharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_idle_Context<'a>",1,["lockin::app::__rtic_internal_idle_Context"]],["impl<'a> !RefUnwindSafe for __rtic_internal_processLocalResources<'a>",1,["lockin::app::__rtic_internal_processLocalResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_processSharedResources<'a>",1,["lockin::app::__rtic_internal_processSharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_process_Context<'a>",1,["lockin::app::__rtic_internal_process_Context"]],["impl RefUnwindSafe for __rtic_internal_eth_Context",1,["lockin::app::__rtic_internal_eth_Context"]],["impl<'a> RefUnwindSafe for __rtic_internal_startLocalResources<'a>",1,["lockin::app::__rtic_internal_startLocalResources"]],["impl<'a> RefUnwindSafe for __rtic_internal_start_Context<'a>",1,["lockin::app::__rtic_internal_start_Context"]],["impl<'a> RefUnwindSafe for __rtic_internal_settings_updateLocalResources<'a>",1,["lockin::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_settings_updateSharedResources<'a>",1,["lockin::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_settings_update_Context<'a>",1,["lockin::app::__rtic_internal_settings_update_Context"]],["impl<'a> !RefUnwindSafe for __rtic_internal_telemetryLocalResources<'a>",1,["lockin::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_telemetrySharedResources<'a>",1,["lockin::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_telemetry_Context<'a>",1,["lockin::app::__rtic_internal_telemetry_Context"]],["impl<'a> !RefUnwindSafe for __rtic_internal_ethernet_linkSharedResources<'a>",1,["lockin::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> !RefUnwindSafe for __rtic_internal_ethernet_link_Context<'a>",1,["lockin::app::__rtic_internal_ethernet_link_Context"]],["impl !RefUnwindSafe for Shared",1,["lockin::app::Shared"]],["impl !RefUnwindSafe for Local",1,["lockin::app::Local"]],["impl RefUnwindSafe for Conf",1,["lockin::Conf"]],["impl RefUnwindSafe for LockinMode",1,["lockin::LockinMode"]],["impl RefUnwindSafe for Settings",1,["lockin::Settings"]]], +"miniconf":[["impl<T, const N: usize> RefUnwindSafe for Array<T, N>where\n T: RefUnwindSafe,",1,["miniconf::array::Array"]],["impl<M: ?Sized, const L: usize, const TS: usize> RefUnwindSafe for MiniconfIter<M, L, TS>where\n M: RefUnwindSafe,",1,["miniconf::iter::MiniconfIter"]],["impl<T> RefUnwindSafe for Option<T>where\n T: RefUnwindSafe,",1,["miniconf::option::Option"]],["impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> RefUnwindSafe for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where\n Clock: RefUnwindSafe,\n Settings: RefUnwindSafe,\n Stack: RefUnwindSafe,\n <Clock as Clock>::T: RefUnwindSafe,\n <Stack as TcpClientStack>::TcpSocket: RefUnwindSafe,",1,["miniconf::mqtt_client::MqttClient"]],["impl RefUnwindSafe for Error",1,["miniconf::Error"]],["impl RefUnwindSafe for IterError",1,["miniconf::IterError"]],["impl RefUnwindSafe for Metadata",1,["miniconf::Metadata"]]], +"stabilizer":[["impl RefUnwindSafe for AdcCode",1,["stabilizer::hardware::adc::AdcCode"]],["impl RefUnwindSafe for Adc0Input",1,["stabilizer::hardware::adc::Adc0Input"]],["impl RefUnwindSafe for Adc1Input",1,["stabilizer::hardware::adc::Adc1Input"]],["impl RefUnwindSafe for Gain",1,["stabilizer::hardware::afe::Gain"]],["impl<A0, A1> RefUnwindSafe for ProgrammableGainAmplifier<A0, A1>where\n A0: RefUnwindSafe,\n A1: RefUnwindSafe,",1,["stabilizer::hardware::afe::ProgrammableGainAmplifier"]],["impl !RefUnwindSafe for CpuTempSensor",1,["stabilizer::hardware::cpu_temp_sensor::CpuTempSensor"]],["impl RefUnwindSafe for DacCode",1,["stabilizer::hardware::dac::DacCode"]],["impl RefUnwindSafe for Dac0Output",1,["stabilizer::hardware::dac::Dac0Output"]],["impl RefUnwindSafe for Dac1Output",1,["stabilizer::hardware::dac::Dac1Output"]],["impl RefUnwindSafe for AsmDelay",1,["stabilizer::hardware::delay::AsmDelay"]],["impl RefUnwindSafe for InputStamper",1,["stabilizer::hardware::input_stamper::InputStamper"]],["impl RefUnwindSafe for DdsOutput",1,["stabilizer::hardware::pounder::dds_output::DdsOutput"]],["impl<'a> RefUnwindSafe for ProfileBuilder<'a>",1,["stabilizer::hardware::pounder::dds_output::ProfileBuilder"]],["impl RefUnwindSafe for Channel",1,["stabilizer::hardware::pounder::hrtimer::Channel"]],["impl RefUnwindSafe for HighResTimerE",1,["stabilizer::hardware::pounder::hrtimer::HighResTimerE"]],["impl RefUnwindSafe for Timestamper",1,["stabilizer::hardware::pounder::timestamp::Timestamper"]],["impl RefUnwindSafe for GpioPin",1,["stabilizer::hardware::pounder::GpioPin"]],["impl RefUnwindSafe for Error",1,["stabilizer::hardware::pounder::Error"]],["impl RefUnwindSafe for Channel",1,["stabilizer::hardware::pounder::Channel"]],["impl RefUnwindSafe for DdsChannelState",1,["stabilizer::hardware::pounder::DdsChannelState"]],["impl RefUnwindSafe for ChannelState",1,["stabilizer::hardware::pounder::ChannelState"]],["impl RefUnwindSafe for InputChannelState",1,["stabilizer::hardware::pounder::InputChannelState"]],["impl RefUnwindSafe for OutputChannelState",1,["stabilizer::hardware::pounder::OutputChannelState"]],["impl RefUnwindSafe for DdsClockConfig",1,["stabilizer::hardware::pounder::DdsClockConfig"]],["impl RefUnwindSafe for QspiInterface",1,["stabilizer::hardware::pounder::QspiInterface"]],["impl !RefUnwindSafe for PounderDevices",1,["stabilizer::hardware::pounder::PounderDevices"]],["impl RefUnwindSafe for NetStorage",1,["stabilizer::hardware::setup::NetStorage"]],["impl RefUnwindSafe for UdpSocketStorage",1,["stabilizer::hardware::setup::UdpSocketStorage"]],["impl RefUnwindSafe for TcpSocketStorage",1,["stabilizer::hardware::setup::TcpSocketStorage"]],["impl RefUnwindSafe for NetworkDevices",1,["stabilizer::hardware::setup::NetworkDevices"]],["impl RefUnwindSafe for EemGpioDevices",1,["stabilizer::hardware::setup::EemGpioDevices"]],["impl !RefUnwindSafe for StabilizerDevices",1,["stabilizer::hardware::setup::StabilizerDevices"]],["impl !RefUnwindSafe for PounderDevices",1,["stabilizer::hardware::setup::PounderDevices"]],["impl RefUnwindSafe for AdcError",1,["stabilizer::hardware::shared_adc::AdcError"]],["impl<'a, Adc, PIN> !RefUnwindSafe for AdcChannel<'a, Adc, PIN>",1,["stabilizer::hardware::shared_adc::AdcChannel"]],["impl<Adc> !RefUnwindSafe for SharedAdc<Adc>",1,["stabilizer::hardware::shared_adc::SharedAdc"]],["impl RefUnwindSafe for Signal",1,["stabilizer::hardware::signal_generator::Signal"]],["impl RefUnwindSafe for BasicConfig",1,["stabilizer::hardware::signal_generator::BasicConfig"]],["impl RefUnwindSafe for Error",1,["stabilizer::hardware::signal_generator::Error"]],["impl RefUnwindSafe for Config",1,["stabilizer::hardware::signal_generator::Config"]],["impl RefUnwindSafe for SignalGenerator",1,["stabilizer::hardware::signal_generator::SignalGenerator"]],["impl RefUnwindSafe for UpdateEvent",1,["stabilizer::hardware::timers::tim2::UpdateEvent"]],["impl RefUnwindSafe for Channels",1,["stabilizer::hardware::timers::tim2::Channels"]],["impl RefUnwindSafe for Channel1",1,["stabilizer::hardware::timers::tim2::Channel1"]],["impl RefUnwindSafe for Channel1InputCapture",1,["stabilizer::hardware::timers::tim2::Channel1InputCapture"]],["impl RefUnwindSafe for Channel2",1,["stabilizer::hardware::timers::tim2::Channel2"]],["impl RefUnwindSafe for Channel2InputCapture",1,["stabilizer::hardware::timers::tim2::Channel2InputCapture"]],["impl RefUnwindSafe for Channel3",1,["stabilizer::hardware::timers::tim2::Channel3"]],["impl RefUnwindSafe for Channel3InputCapture",1,["stabilizer::hardware::timers::tim2::Channel3InputCapture"]],["impl RefUnwindSafe for Channel4",1,["stabilizer::hardware::timers::tim2::Channel4"]],["impl RefUnwindSafe for Channel4InputCapture",1,["stabilizer::hardware::timers::tim2::Channel4InputCapture"]],["impl RefUnwindSafe for UpdateEvent",1,["stabilizer::hardware::timers::tim3::UpdateEvent"]],["impl RefUnwindSafe for Channels",1,["stabilizer::hardware::timers::tim3::Channels"]],["impl RefUnwindSafe for Channel1",1,["stabilizer::hardware::timers::tim3::Channel1"]],["impl RefUnwindSafe for Channel1InputCapture",1,["stabilizer::hardware::timers::tim3::Channel1InputCapture"]],["impl RefUnwindSafe for Channel2",1,["stabilizer::hardware::timers::tim3::Channel2"]],["impl RefUnwindSafe for Channel2InputCapture",1,["stabilizer::hardware::timers::tim3::Channel2InputCapture"]],["impl RefUnwindSafe for Channel3",1,["stabilizer::hardware::timers::tim3::Channel3"]],["impl RefUnwindSafe for Channel3InputCapture",1,["stabilizer::hardware::timers::tim3::Channel3InputCapture"]],["impl RefUnwindSafe for Channel4",1,["stabilizer::hardware::timers::tim3::Channel4"]],["impl RefUnwindSafe for Channel4InputCapture",1,["stabilizer::hardware::timers::tim3::Channel4InputCapture"]],["impl RefUnwindSafe for UpdateEvent",1,["stabilizer::hardware::timers::tim5::UpdateEvent"]],["impl RefUnwindSafe for Channels",1,["stabilizer::hardware::timers::tim5::Channels"]],["impl RefUnwindSafe for Channel1",1,["stabilizer::hardware::timers::tim5::Channel1"]],["impl RefUnwindSafe for Channel1InputCapture",1,["stabilizer::hardware::timers::tim5::Channel1InputCapture"]],["impl RefUnwindSafe for Channel2",1,["stabilizer::hardware::timers::tim5::Channel2"]],["impl RefUnwindSafe for Channel2InputCapture",1,["stabilizer::hardware::timers::tim5::Channel2InputCapture"]],["impl RefUnwindSafe for Channel3",1,["stabilizer::hardware::timers::tim5::Channel3"]],["impl RefUnwindSafe for Channel3InputCapture",1,["stabilizer::hardware::timers::tim5::Channel3InputCapture"]],["impl RefUnwindSafe for Channel4",1,["stabilizer::hardware::timers::tim5::Channel4"]],["impl RefUnwindSafe for Channel4InputCapture",1,["stabilizer::hardware::timers::tim5::Channel4InputCapture"]],["impl RefUnwindSafe for UpdateEvent",1,["stabilizer::hardware::timers::tim8::UpdateEvent"]],["impl RefUnwindSafe for Channels",1,["stabilizer::hardware::timers::tim8::Channels"]],["impl RefUnwindSafe for Channel1",1,["stabilizer::hardware::timers::tim8::Channel1"]],["impl RefUnwindSafe for Channel1InputCapture",1,["stabilizer::hardware::timers::tim8::Channel1InputCapture"]],["impl RefUnwindSafe for Channel2",1,["stabilizer::hardware::timers::tim8::Channel2"]],["impl RefUnwindSafe for Channel2InputCapture",1,["stabilizer::hardware::timers::tim8::Channel2InputCapture"]],["impl RefUnwindSafe for Channel3",1,["stabilizer::hardware::timers::tim8::Channel3"]],["impl RefUnwindSafe for Channel3InputCapture",1,["stabilizer::hardware::timers::tim8::Channel3InputCapture"]],["impl RefUnwindSafe for Channel4",1,["stabilizer::hardware::timers::tim8::Channel4"]],["impl RefUnwindSafe for Channel4InputCapture",1,["stabilizer::hardware::timers::tim8::Channel4InputCapture"]],["impl RefUnwindSafe for TriggerGenerator",1,["stabilizer::hardware::timers::TriggerGenerator"]],["impl RefUnwindSafe for TriggerSource",1,["stabilizer::hardware::timers::TriggerSource"]],["impl RefUnwindSafe for Prescaler",1,["stabilizer::hardware::timers::Prescaler"]],["impl RefUnwindSafe for SlaveMode",1,["stabilizer::hardware::timers::SlaveMode"]],["impl RefUnwindSafe for InputFilter",1,["stabilizer::hardware::timers::InputFilter"]],["impl RefUnwindSafe for SamplingTimer",1,["stabilizer::hardware::timers::SamplingTimer"]],["impl RefUnwindSafe for ShadowSamplingTimer",1,["stabilizer::hardware::timers::ShadowSamplingTimer"]],["impl RefUnwindSafe for TimestampTimer",1,["stabilizer::hardware::timers::TimestampTimer"]],["impl RefUnwindSafe for PounderTimestampTimer",1,["stabilizer::hardware::timers::PounderTimestampTimer"]],["impl RefUnwindSafe for StreamTarget",1,["stabilizer::net::data_stream::StreamTarget"]],["impl RefUnwindSafe for StreamFormat",1,["stabilizer::net::data_stream::StreamFormat"]],["impl !RefUnwindSafe for FrameGenerator",1,["stabilizer::net::data_stream::FrameGenerator"]],["impl !RefUnwindSafe for DataStream",1,["stabilizer::net::data_stream::DataStream"]],["impl !RefUnwindSafe for NetworkProcessor",1,["stabilizer::net::network_processor::NetworkProcessor"]],["impl<T> !RefUnwindSafe for TelemetryClient<T>",1,["stabilizer::net::telemetry::TelemetryClient"]],["impl RefUnwindSafe for TelemetryBuffer",1,["stabilizer::net::telemetry::TelemetryBuffer"]],["impl RefUnwindSafe for Telemetry",1,["stabilizer::net::telemetry::Telemetry"]],["impl RefUnwindSafe for UpdateState",1,["stabilizer::net::UpdateState"]],["impl RefUnwindSafe for NetworkState",1,["stabilizer::net::NetworkState"]],["impl<S, T> !RefUnwindSafe for NetworkUsers<S, T>",1,["stabilizer::net::NetworkUsers"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/core/panic/unwind_safe/trait.UnwindSafe.js b/firmware/implementors/core/panic/unwind_safe/trait.UnwindSafe.js new file mode 100644 index 0000000000..2908f01872 --- /dev/null +++ b/firmware/implementors/core/panic/unwind_safe/trait.UnwindSafe.js @@ -0,0 +1,8 @@ +(function() {var implementors = { +"ad9959":[["impl<INTERFACE> UnwindSafe for Ad9959<INTERFACE>where\n INTERFACE: UnwindSafe,",1,["ad9959::Ad9959"]],["impl UnwindSafe for Mode",1,["ad9959::Mode"]],["impl UnwindSafe for Channel",1,["ad9959::Channel"]],["impl UnwindSafe for Register",1,["ad9959::Register"]],["impl UnwindSafe for Error",1,["ad9959::Error"]],["impl UnwindSafe for ProfileSerializer",1,["ad9959::ProfileSerializer"]]], +"dual_iir":[["impl UnwindSafe for __rtic_internal_Monotonics",1,["dual_iir::app::__rtic_internal_Monotonics"]],["impl<'a> UnwindSafe for __rtic_internal_init_Context<'a>",1,["dual_iir::app::__rtic_internal_init_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_idleSharedResources<'a>",1,["dual_iir::app::__rtic_internal_idleSharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_idle_Context<'a>",1,["dual_iir::app::__rtic_internal_idle_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_processLocalResources<'a>",1,["dual_iir::app::__rtic_internal_processLocalResources"]],["impl<'a> !UnwindSafe for __rtic_internal_processSharedResources<'a>",1,["dual_iir::app::__rtic_internal_processSharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_process_Context<'a>",1,["dual_iir::app::__rtic_internal_process_Context"]],["impl UnwindSafe for __rtic_internal_eth_Context",1,["dual_iir::app::__rtic_internal_eth_Context"]],["impl UnwindSafe for __rtic_internal_spi2_Context",1,["dual_iir::app::__rtic_internal_spi2_Context"]],["impl UnwindSafe for __rtic_internal_spi3_Context",1,["dual_iir::app::__rtic_internal_spi3_Context"]],["impl UnwindSafe for __rtic_internal_spi4_Context",1,["dual_iir::app::__rtic_internal_spi4_Context"]],["impl UnwindSafe for __rtic_internal_spi5_Context",1,["dual_iir::app::__rtic_internal_spi5_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_startLocalResources<'a>",1,["dual_iir::app::__rtic_internal_startLocalResources"]],["impl<'a> !UnwindSafe for __rtic_internal_start_Context<'a>",1,["dual_iir::app::__rtic_internal_start_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_settings_updateLocalResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> !UnwindSafe for __rtic_internal_settings_updateSharedResources<'a>",1,["dual_iir::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_settings_update_Context<'a>",1,["dual_iir::app::__rtic_internal_settings_update_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_telemetryLocalResources<'a>",1,["dual_iir::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> !UnwindSafe for __rtic_internal_telemetrySharedResources<'a>",1,["dual_iir::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_telemetry_Context<'a>",1,["dual_iir::app::__rtic_internal_telemetry_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_ethernet_linkSharedResources<'a>",1,["dual_iir::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_ethernet_link_Context<'a>",1,["dual_iir::app::__rtic_internal_ethernet_link_Context"]],["impl !UnwindSafe for Shared",1,["dual_iir::app::Shared"]],["impl !UnwindSafe for Local",1,["dual_iir::app::Local"]],["impl UnwindSafe for Settings",1,["dual_iir::Settings"]]], +"idsp":[["impl<T> UnwindSafe for Accu<T>where\n T: UnwindSafe,",1,["idsp::accu::Accu"]],["impl<T> UnwindSafe for IIR<T>where\n T: UnwindSafe,",1,["idsp::iir::IIR"]],["impl UnwindSafe for IIR",1,["idsp::iir_int::IIR"]],["impl<const N: usize> UnwindSafe for Lockin<N>",1,["idsp::lockin::Lockin"]],["impl<const N: usize> UnwindSafe for Lowpass<N>",1,["idsp::lowpass::Lowpass"]],["impl UnwindSafe for PLL",1,["idsp::pll::PLL"]],["impl UnwindSafe for RPLL",1,["idsp::rpll::RPLL"]],["impl<T> UnwindSafe for Unwrapper<T>where\n T: UnwindSafe,",1,["idsp::unwrap::Unwrapper"]]], +"lockin":[["impl UnwindSafe for __rtic_internal_Monotonics",1,["lockin::app::__rtic_internal_Monotonics"]],["impl<'a> UnwindSafe for __rtic_internal_init_Context<'a>",1,["lockin::app::__rtic_internal_init_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_idleSharedResources<'a>",1,["lockin::app::__rtic_internal_idleSharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_idle_Context<'a>",1,["lockin::app::__rtic_internal_idle_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_processLocalResources<'a>",1,["lockin::app::__rtic_internal_processLocalResources"]],["impl<'a> !UnwindSafe for __rtic_internal_processSharedResources<'a>",1,["lockin::app::__rtic_internal_processSharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_process_Context<'a>",1,["lockin::app::__rtic_internal_process_Context"]],["impl UnwindSafe for __rtic_internal_eth_Context",1,["lockin::app::__rtic_internal_eth_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_startLocalResources<'a>",1,["lockin::app::__rtic_internal_startLocalResources"]],["impl<'a> !UnwindSafe for __rtic_internal_start_Context<'a>",1,["lockin::app::__rtic_internal_start_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_settings_updateLocalResources<'a>",1,["lockin::app::__rtic_internal_settings_updateLocalResources"]],["impl<'a> !UnwindSafe for __rtic_internal_settings_updateSharedResources<'a>",1,["lockin::app::__rtic_internal_settings_updateSharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_settings_update_Context<'a>",1,["lockin::app::__rtic_internal_settings_update_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_telemetryLocalResources<'a>",1,["lockin::app::__rtic_internal_telemetryLocalResources"]],["impl<'a> !UnwindSafe for __rtic_internal_telemetrySharedResources<'a>",1,["lockin::app::__rtic_internal_telemetrySharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_telemetry_Context<'a>",1,["lockin::app::__rtic_internal_telemetry_Context"]],["impl<'a> !UnwindSafe for __rtic_internal_ethernet_linkSharedResources<'a>",1,["lockin::app::__rtic_internal_ethernet_linkSharedResources"]],["impl<'a> !UnwindSafe for __rtic_internal_ethernet_link_Context<'a>",1,["lockin::app::__rtic_internal_ethernet_link_Context"]],["impl !UnwindSafe for Shared",1,["lockin::app::Shared"]],["impl !UnwindSafe for Local",1,["lockin::app::Local"]],["impl UnwindSafe for Conf",1,["lockin::Conf"]],["impl UnwindSafe for LockinMode",1,["lockin::LockinMode"]],["impl UnwindSafe for Settings",1,["lockin::Settings"]]], +"miniconf":[["impl<T, const N: usize> UnwindSafe for Array<T, N>where\n T: UnwindSafe,",1,["miniconf::array::Array"]],["impl<M: ?Sized, const L: usize, const TS: usize> UnwindSafe for MiniconfIter<M, L, TS>where\n M: UnwindSafe,",1,["miniconf::iter::MiniconfIter"]],["impl<T> UnwindSafe for Option<T>where\n T: UnwindSafe,",1,["miniconf::option::Option"]],["impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> UnwindSafe for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where\n Clock: UnwindSafe,\n Settings: UnwindSafe,\n Stack: UnwindSafe,\n <Clock as Clock>::T: UnwindSafe,\n <Stack as TcpClientStack>::TcpSocket: UnwindSafe,",1,["miniconf::mqtt_client::MqttClient"]],["impl UnwindSafe for Error",1,["miniconf::Error"]],["impl UnwindSafe for IterError",1,["miniconf::IterError"]],["impl UnwindSafe for Metadata",1,["miniconf::Metadata"]]], +"stabilizer":[["impl UnwindSafe for AdcCode",1,["stabilizer::hardware::adc::AdcCode"]],["impl !UnwindSafe for Adc0Input",1,["stabilizer::hardware::adc::Adc0Input"]],["impl !UnwindSafe for Adc1Input",1,["stabilizer::hardware::adc::Adc1Input"]],["impl UnwindSafe for Gain",1,["stabilizer::hardware::afe::Gain"]],["impl<A0, A1> UnwindSafe for ProgrammableGainAmplifier<A0, A1>where\n A0: UnwindSafe,\n A1: UnwindSafe,",1,["stabilizer::hardware::afe::ProgrammableGainAmplifier"]],["impl !UnwindSafe for CpuTempSensor",1,["stabilizer::hardware::cpu_temp_sensor::CpuTempSensor"]],["impl UnwindSafe for DacCode",1,["stabilizer::hardware::dac::DacCode"]],["impl !UnwindSafe for Dac0Output",1,["stabilizer::hardware::dac::Dac0Output"]],["impl !UnwindSafe for Dac1Output",1,["stabilizer::hardware::dac::Dac1Output"]],["impl UnwindSafe for AsmDelay",1,["stabilizer::hardware::delay::AsmDelay"]],["impl UnwindSafe for InputStamper",1,["stabilizer::hardware::input_stamper::InputStamper"]],["impl UnwindSafe for DdsOutput",1,["stabilizer::hardware::pounder::dds_output::DdsOutput"]],["impl<'a> !UnwindSafe for ProfileBuilder<'a>",1,["stabilizer::hardware::pounder::dds_output::ProfileBuilder"]],["impl UnwindSafe for Channel",1,["stabilizer::hardware::pounder::hrtimer::Channel"]],["impl UnwindSafe for HighResTimerE",1,["stabilizer::hardware::pounder::hrtimer::HighResTimerE"]],["impl UnwindSafe for Timestamper",1,["stabilizer::hardware::pounder::timestamp::Timestamper"]],["impl UnwindSafe for GpioPin",1,["stabilizer::hardware::pounder::GpioPin"]],["impl UnwindSafe for Error",1,["stabilizer::hardware::pounder::Error"]],["impl UnwindSafe for Channel",1,["stabilizer::hardware::pounder::Channel"]],["impl UnwindSafe for DdsChannelState",1,["stabilizer::hardware::pounder::DdsChannelState"]],["impl UnwindSafe for ChannelState",1,["stabilizer::hardware::pounder::ChannelState"]],["impl UnwindSafe for InputChannelState",1,["stabilizer::hardware::pounder::InputChannelState"]],["impl UnwindSafe for OutputChannelState",1,["stabilizer::hardware::pounder::OutputChannelState"]],["impl UnwindSafe for DdsClockConfig",1,["stabilizer::hardware::pounder::DdsClockConfig"]],["impl UnwindSafe for QspiInterface",1,["stabilizer::hardware::pounder::QspiInterface"]],["impl !UnwindSafe for PounderDevices",1,["stabilizer::hardware::pounder::PounderDevices"]],["impl !UnwindSafe for NetStorage",1,["stabilizer::hardware::setup::NetStorage"]],["impl UnwindSafe for UdpSocketStorage",1,["stabilizer::hardware::setup::UdpSocketStorage"]],["impl UnwindSafe for TcpSocketStorage",1,["stabilizer::hardware::setup::TcpSocketStorage"]],["impl !UnwindSafe for NetworkDevices",1,["stabilizer::hardware::setup::NetworkDevices"]],["impl UnwindSafe for EemGpioDevices",1,["stabilizer::hardware::setup::EemGpioDevices"]],["impl !UnwindSafe for StabilizerDevices",1,["stabilizer::hardware::setup::StabilizerDevices"]],["impl !UnwindSafe for PounderDevices",1,["stabilizer::hardware::setup::PounderDevices"]],["impl UnwindSafe for AdcError",1,["stabilizer::hardware::shared_adc::AdcError"]],["impl<'a, Adc, PIN> !UnwindSafe for AdcChannel<'a, Adc, PIN>",1,["stabilizer::hardware::shared_adc::AdcChannel"]],["impl<Adc> UnwindSafe for SharedAdc<Adc>where\n Adc: UnwindSafe,",1,["stabilizer::hardware::shared_adc::SharedAdc"]],["impl UnwindSafe for Signal",1,["stabilizer::hardware::signal_generator::Signal"]],["impl UnwindSafe for BasicConfig",1,["stabilizer::hardware::signal_generator::BasicConfig"]],["impl UnwindSafe for Error",1,["stabilizer::hardware::signal_generator::Error"]],["impl UnwindSafe for Config",1,["stabilizer::hardware::signal_generator::Config"]],["impl UnwindSafe for SignalGenerator",1,["stabilizer::hardware::signal_generator::SignalGenerator"]],["impl UnwindSafe for UpdateEvent",1,["stabilizer::hardware::timers::tim2::UpdateEvent"]],["impl UnwindSafe for Channels",1,["stabilizer::hardware::timers::tim2::Channels"]],["impl UnwindSafe for Channel1",1,["stabilizer::hardware::timers::tim2::Channel1"]],["impl UnwindSafe for Channel1InputCapture",1,["stabilizer::hardware::timers::tim2::Channel1InputCapture"]],["impl UnwindSafe for Channel2",1,["stabilizer::hardware::timers::tim2::Channel2"]],["impl UnwindSafe for Channel2InputCapture",1,["stabilizer::hardware::timers::tim2::Channel2InputCapture"]],["impl UnwindSafe for Channel3",1,["stabilizer::hardware::timers::tim2::Channel3"]],["impl UnwindSafe for Channel3InputCapture",1,["stabilizer::hardware::timers::tim2::Channel3InputCapture"]],["impl UnwindSafe for Channel4",1,["stabilizer::hardware::timers::tim2::Channel4"]],["impl UnwindSafe for Channel4InputCapture",1,["stabilizer::hardware::timers::tim2::Channel4InputCapture"]],["impl UnwindSafe for UpdateEvent",1,["stabilizer::hardware::timers::tim3::UpdateEvent"]],["impl UnwindSafe for Channels",1,["stabilizer::hardware::timers::tim3::Channels"]],["impl UnwindSafe for Channel1",1,["stabilizer::hardware::timers::tim3::Channel1"]],["impl UnwindSafe for Channel1InputCapture",1,["stabilizer::hardware::timers::tim3::Channel1InputCapture"]],["impl UnwindSafe for Channel2",1,["stabilizer::hardware::timers::tim3::Channel2"]],["impl UnwindSafe for Channel2InputCapture",1,["stabilizer::hardware::timers::tim3::Channel2InputCapture"]],["impl UnwindSafe for Channel3",1,["stabilizer::hardware::timers::tim3::Channel3"]],["impl UnwindSafe for Channel3InputCapture",1,["stabilizer::hardware::timers::tim3::Channel3InputCapture"]],["impl UnwindSafe for Channel4",1,["stabilizer::hardware::timers::tim3::Channel4"]],["impl UnwindSafe for Channel4InputCapture",1,["stabilizer::hardware::timers::tim3::Channel4InputCapture"]],["impl UnwindSafe for UpdateEvent",1,["stabilizer::hardware::timers::tim5::UpdateEvent"]],["impl UnwindSafe for Channels",1,["stabilizer::hardware::timers::tim5::Channels"]],["impl UnwindSafe for Channel1",1,["stabilizer::hardware::timers::tim5::Channel1"]],["impl UnwindSafe for Channel1InputCapture",1,["stabilizer::hardware::timers::tim5::Channel1InputCapture"]],["impl UnwindSafe for Channel2",1,["stabilizer::hardware::timers::tim5::Channel2"]],["impl UnwindSafe for Channel2InputCapture",1,["stabilizer::hardware::timers::tim5::Channel2InputCapture"]],["impl UnwindSafe for Channel3",1,["stabilizer::hardware::timers::tim5::Channel3"]],["impl UnwindSafe for Channel3InputCapture",1,["stabilizer::hardware::timers::tim5::Channel3InputCapture"]],["impl UnwindSafe for Channel4",1,["stabilizer::hardware::timers::tim5::Channel4"]],["impl UnwindSafe for Channel4InputCapture",1,["stabilizer::hardware::timers::tim5::Channel4InputCapture"]],["impl UnwindSafe for UpdateEvent",1,["stabilizer::hardware::timers::tim8::UpdateEvent"]],["impl UnwindSafe for Channels",1,["stabilizer::hardware::timers::tim8::Channels"]],["impl UnwindSafe for Channel1",1,["stabilizer::hardware::timers::tim8::Channel1"]],["impl UnwindSafe for Channel1InputCapture",1,["stabilizer::hardware::timers::tim8::Channel1InputCapture"]],["impl UnwindSafe for Channel2",1,["stabilizer::hardware::timers::tim8::Channel2"]],["impl UnwindSafe for Channel2InputCapture",1,["stabilizer::hardware::timers::tim8::Channel2InputCapture"]],["impl UnwindSafe for Channel3",1,["stabilizer::hardware::timers::tim8::Channel3"]],["impl UnwindSafe for Channel3InputCapture",1,["stabilizer::hardware::timers::tim8::Channel3InputCapture"]],["impl UnwindSafe for Channel4",1,["stabilizer::hardware::timers::tim8::Channel4"]],["impl UnwindSafe for Channel4InputCapture",1,["stabilizer::hardware::timers::tim8::Channel4InputCapture"]],["impl UnwindSafe for TriggerGenerator",1,["stabilizer::hardware::timers::TriggerGenerator"]],["impl UnwindSafe for TriggerSource",1,["stabilizer::hardware::timers::TriggerSource"]],["impl UnwindSafe for Prescaler",1,["stabilizer::hardware::timers::Prescaler"]],["impl UnwindSafe for SlaveMode",1,["stabilizer::hardware::timers::SlaveMode"]],["impl UnwindSafe for InputFilter",1,["stabilizer::hardware::timers::InputFilter"]],["impl UnwindSafe for SamplingTimer",1,["stabilizer::hardware::timers::SamplingTimer"]],["impl UnwindSafe for ShadowSamplingTimer",1,["stabilizer::hardware::timers::ShadowSamplingTimer"]],["impl UnwindSafe for TimestampTimer",1,["stabilizer::hardware::timers::TimestampTimer"]],["impl UnwindSafe for PounderTimestampTimer",1,["stabilizer::hardware::timers::PounderTimestampTimer"]],["impl UnwindSafe for StreamTarget",1,["stabilizer::net::data_stream::StreamTarget"]],["impl UnwindSafe for StreamFormat",1,["stabilizer::net::data_stream::StreamFormat"]],["impl !UnwindSafe for FrameGenerator",1,["stabilizer::net::data_stream::FrameGenerator"]],["impl !UnwindSafe for DataStream",1,["stabilizer::net::data_stream::DataStream"]],["impl !UnwindSafe for NetworkProcessor",1,["stabilizer::net::network_processor::NetworkProcessor"]],["impl<T> !UnwindSafe for TelemetryClient<T>",1,["stabilizer::net::telemetry::TelemetryClient"]],["impl UnwindSafe for TelemetryBuffer",1,["stabilizer::net::telemetry::TelemetryBuffer"]],["impl UnwindSafe for Telemetry",1,["stabilizer::net::telemetry::Telemetry"]],["impl UnwindSafe for UpdateState",1,["stabilizer::net::UpdateState"]],["impl UnwindSafe for NetworkState",1,["stabilizer::net::NetworkState"]],["impl<S, T> !UnwindSafe for NetworkUsers<S, T>",1,["stabilizer::net::NetworkUsers"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/embedded_hal/blocking/delay/trait.DelayMs.js b/firmware/implementors/embedded_hal/blocking/delay/trait.DelayMs.js new file mode 100644 index 0000000000..7bacfb05c3 --- /dev/null +++ b/firmware/implementors/embedded_hal/blocking/delay/trait.DelayMs.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[["impl<U> DelayMs<U> for AsmDelaywhere\n U: Into<u32>,"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/embedded_hal/blocking/delay/trait.DelayUs.js b/firmware/implementors/embedded_hal/blocking/delay/trait.DelayUs.js new file mode 100644 index 0000000000..282d4b439d --- /dev/null +++ b/firmware/implementors/embedded_hal/blocking/delay/trait.DelayUs.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[["impl<U> DelayUs<U> for AsmDelaywhere\n U: Into<u32>,"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/enum_iterator/trait.Sequence.js b/firmware/implementors/enum_iterator/trait.Sequence.js new file mode 100644 index 0000000000..2004a1c45b --- /dev/null +++ b/firmware/implementors/enum_iterator/trait.Sequence.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[["impl Sequence for GpioPin"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/idsp/complex/trait.ComplexExt.js b/firmware/implementors/idsp/complex/trait.ComplexExt.js new file mode 100644 index 0000000000..37b9d5ae3e --- /dev/null +++ b/firmware/implementors/idsp/complex/trait.ComplexExt.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"idsp":[] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/idsp/complex/trait.MulScaled.js b/firmware/implementors/idsp/complex/trait.MulScaled.js new file mode 100644 index 0000000000..37b9d5ae3e --- /dev/null +++ b/firmware/implementors/idsp/complex/trait.MulScaled.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"idsp":[] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/miniconf/trait.Miniconf.js b/firmware/implementors/miniconf/trait.Miniconf.js new file mode 100644 index 0000000000..d6d8e45ab0 --- /dev/null +++ b/firmware/implementors/miniconf/trait.Miniconf.js @@ -0,0 +1,6 @@ +(function() {var implementors = { +"dual_iir":[["impl Miniconf for Settings"]], +"lockin":[["impl Miniconf for Settings"]], +"miniconf":[], +"stabilizer":[["impl Miniconf for BasicConfig"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/miniconf/trait.Peekable.js b/firmware/implementors/miniconf/trait.Peekable.js new file mode 100644 index 0000000000..9275b6060f --- /dev/null +++ b/firmware/implementors/miniconf/trait.Peekable.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"miniconf":[] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/mutex_trait/trait.Mutex.js b/firmware/implementors/mutex_trait/trait.Mutex.js new file mode 100644 index 0000000000..d66f2c3566 --- /dev/null +++ b/firmware/implementors/mutex_trait/trait.Mutex.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[["impl Mutex for Adc0Input"],["impl Mutex for Adc1Input"],["impl Mutex for Dac0Output"],["impl Mutex for Dac1Output"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/num_enum/trait.TryFromPrimitive.js b/firmware/implementors/num_enum/trait.TryFromPrimitive.js new file mode 100644 index 0000000000..baa224c681 --- /dev/null +++ b/firmware/implementors/num_enum/trait.TryFromPrimitive.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[["impl TryFromPrimitive for Prescaler"],["impl TryFromPrimitive for Gain"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/serde/de/trait.Deserialize.js b/firmware/implementors/serde/de/trait.Deserialize.js new file mode 100644 index 0000000000..7d551a6309 --- /dev/null +++ b/firmware/implementors/serde/de/trait.Deserialize.js @@ -0,0 +1,6 @@ +(function() {var implementors = { +"idsp":[["impl<'de> Deserialize<'de> for IIR"],["impl<'de, T> Deserialize<'de> for Unwrapper<T>where\n T: Deserialize<'de>,"],["impl<'de> Deserialize<'de> for PLL"],["impl<'de, T> Deserialize<'de> for IIR<T>where\n T: Deserialize<'de>,"]], +"lockin":[["impl<'de> Deserialize<'de> for LockinMode"],["impl<'de> Deserialize<'de> for Conf"]], +"miniconf":[["impl<'de, T> Deserialize<'de> for Option<T>where\n T: Deserialize<'de>,"]], +"stabilizer":[["impl<'de> Deserialize<'de> for ChannelState"],["impl<'de> Deserialize<'de> for Gain"],["impl<'de> Deserialize<'de> for Signal"],["impl<'de> Deserialize<'de> for OutputChannelState"],["impl<'de> Deserialize<'de> for DdsChannelState"],["impl<'de> Deserialize<'de> for DdsClockConfig"],["impl<'de> Deserialize<'de> for StreamTarget"],["impl<'de> Deserialize<'de> for InputChannelState"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/serde/ser/trait.Serialize.js b/firmware/implementors/serde/ser/trait.Serialize.js new file mode 100644 index 0000000000..1180159e55 --- /dev/null +++ b/firmware/implementors/serde/ser/trait.Serialize.js @@ -0,0 +1,6 @@ +(function() {var implementors = { +"idsp":[["impl Serialize for PLL"],["impl Serialize for IIR"],["impl<T> Serialize for IIR<T>where\n T: Serialize,"],["impl<T> Serialize for Unwrapper<T>where\n T: Serialize,"]], +"lockin":[["impl Serialize for Conf"],["impl Serialize for LockinMode"]], +"miniconf":[["impl<T> Serialize for Option<T>where\n T: Serialize,"]], +"stabilizer":[["impl Serialize for DdsClockConfig"],["impl Serialize for StreamTarget"],["impl Serialize for Gain"],["impl Serialize for Telemetry"],["impl Serialize for Signal"],["impl Serialize for InputChannelState"],["impl Serialize for DdsChannelState"],["impl Serialize for ChannelState"],["impl Serialize for OutputChannelState"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/stabilizer/hardware/pounder/attenuators/trait.AttenuatorInterface.js b/firmware/implementors/stabilizer/hardware/pounder/attenuators/trait.AttenuatorInterface.js new file mode 100644 index 0000000000..58fbc3834e --- /dev/null +++ b/firmware/implementors/stabilizer/hardware/pounder/attenuators/trait.AttenuatorInterface.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/stabilizer/hardware/pounder/rf_power/trait.PowerMeasurementInterface.js b/firmware/implementors/stabilizer/hardware/pounder/rf_power/trait.PowerMeasurementInterface.js new file mode 100644 index 0000000000..58fbc3834e --- /dev/null +++ b/firmware/implementors/stabilizer/hardware/pounder/rf_power/trait.PowerMeasurementInterface.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/implementors/stm32h7xx_hal/dma/traits/trait.TargetAddress.js b/firmware/implementors/stm32h7xx_hal/dma/traits/trait.TargetAddress.js new file mode 100644 index 0000000000..8f9f5d7676 --- /dev/null +++ b/firmware/implementors/stm32h7xx_hal/dma/traits/trait.TargetAddress.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"stabilizer":[["impl TargetAddress<PeripheralToMemory> for Channel1InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel3InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel2InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel2InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel4InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel4InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel1InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel3InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel4InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel4InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel1InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel2InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel2InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel3InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel1InputCapture"],["impl TargetAddress<PeripheralToMemory> for Channel3InputCapture"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/firmware/lockin/all.html b/firmware/lockin/all.html new file mode 100644 index 0000000000..5939844db0 --- /dev/null +++ b/firmware/lockin/all.html @@ -0,0 +1 @@ +List of all items in this crate

List of all items

Structs

Enums

Functions

Type Definitions

Constants

\ No newline at end of file diff --git a/firmware/lockin/app/constant.CEILING.html b/firmware/lockin/app/constant.CEILING.html new file mode 100644 index 0000000000..9127f77b9f --- /dev/null +++ b/firmware/lockin/app/constant.CEILING.html @@ -0,0 +1,2 @@ +CEILING in lockin::app - Rust

Constant lockin::app::CEILING

source ·
const CEILING: u8 = _;
Expand description

Priority ceiling

+
\ No newline at end of file diff --git a/firmware/lockin/app/constant.N.html b/firmware/lockin/app/constant.N.html new file mode 100644 index 0000000000..97bbd96280 --- /dev/null +++ b/firmware/lockin/app/constant.N.html @@ -0,0 +1 @@ +N in lockin::app - Rust

Constant lockin::app::N

source ·
const N: usize = _; // 16usize
\ No newline at end of file diff --git a/firmware/lockin/app/constant.PRIORITY.html b/firmware/lockin/app/constant.PRIORITY.html new file mode 100644 index 0000000000..3fd42b5551 --- /dev/null +++ b/firmware/lockin/app/constant.PRIORITY.html @@ -0,0 +1 @@ +PRIORITY in lockin::app - Rust

Constant lockin::app::PRIORITY

source ·
const PRIORITY: u8 = _;
\ No newline at end of file diff --git a/firmware/lockin/app/eth/index.html b/firmware/lockin/app/eth/index.html new file mode 100644 index 0000000000..cb4f72e5e1 --- /dev/null +++ b/firmware/lockin/app/eth/index.html @@ -0,0 +1,2 @@ +lockin::app::eth - Rust

Module lockin::app::eth

source ·
Expand description

Hardware task

+

Structs

\ No newline at end of file diff --git a/firmware/lockin/app/eth/sidebar-items.js b/firmware/lockin/app/eth/sidebar-items.js new file mode 100644 index 0000000000..d31239d146 --- /dev/null +++ b/firmware/lockin/app/eth/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context"]}; \ No newline at end of file diff --git a/firmware/lockin/app/eth/struct.Context.html b/firmware/lockin/app/eth/struct.Context.html new file mode 100644 index 0000000000..7196cf45b3 --- /dev/null +++ b/firmware/lockin/app/eth/struct.Context.html @@ -0,0 +1,12 @@ +Context in lockin::app::eth - Rust

Struct lockin::app::eth::Context

source ·
pub struct Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/ethernet_link/fn.spawn.html b/firmware/lockin/app/ethernet_link/fn.spawn.html new file mode 100644 index 0000000000..3fc79aa096 --- /dev/null +++ b/firmware/lockin/app/ethernet_link/fn.spawn.html @@ -0,0 +1,2 @@ +spawn in lockin::app::ethernet_link - Rust

Function lockin::app::ethernet_link::spawn

source ·
pub fn spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/lockin/app/ethernet_link/index.html b/firmware/lockin/app/ethernet_link/index.html new file mode 100644 index 0000000000..073da73853 --- /dev/null +++ b/firmware/lockin/app/ethernet_link/index.html @@ -0,0 +1,2 @@ +lockin::app::ethernet_link - Rust

Module lockin::app::ethernet_link

source ·
Expand description

Software task

+

Re-exports

Structs

Functions

  • Spawns the task directly
\ No newline at end of file diff --git a/firmware/lockin/app/ethernet_link/sidebar-items.js b/firmware/lockin/app/ethernet_link/sidebar-items.js new file mode 100644 index 0000000000..9ad7e6c332 --- /dev/null +++ b/firmware/lockin/app/ethernet_link/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["spawn"],"struct":["Context","SharedResources"]}; \ No newline at end of file diff --git a/firmware/lockin/app/ethernet_link/struct.Context.html b/firmware/lockin/app/ethernet_link/struct.Context.html new file mode 100644 index 0000000000..af23863501 --- /dev/null +++ b/firmware/lockin/app/ethernet_link/struct.Context.html @@ -0,0 +1,15 @@ +Context in lockin::app::ethernet_link - Rust
pub struct Context<'a> {
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
§

type Output = T

Should always be Self
§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/ethernet_link/struct.SharedResources.html b/firmware/lockin/app/ethernet_link/struct.SharedResources.html new file mode 100644 index 0000000000..cba0827537 --- /dev/null +++ b/firmware/lockin/app/ethernet_link/struct.SharedResources.html @@ -0,0 +1,15 @@ +SharedResources in lockin::app::ethernet_link - Rust
pub struct SharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources ethernet_link has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/fn.DCMI.html b/firmware/lockin/app/fn.DCMI.html new file mode 100644 index 0000000000..b220fe49dd --- /dev/null +++ b/firmware/lockin/app/fn.DCMI.html @@ -0,0 +1,3 @@ +DCMI in lockin::app - Rust

Function lockin::app::DCMI

source ·
#[no_mangle]
+unsafe fn DCMI()
Expand description

Interrupt handler to dispatch tasks at priority 1

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.DMA1_STR4.html b/firmware/lockin/app/fn.DMA1_STR4.html new file mode 100644 index 0000000000..8cda235406 --- /dev/null +++ b/firmware/lockin/app/fn.DMA1_STR4.html @@ -0,0 +1,4 @@ +DMA1_STR4 in lockin::app - Rust

Function lockin::app::DMA1_STR4

source ·
#[no_mangle]
+#[link_section = ".itcm.process"]
+unsafe fn DMA1_STR4()
Expand description

User HW task ISR trampoline for process

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.ETH.html b/firmware/lockin/app/fn.ETH.html new file mode 100644 index 0000000000..9d91fb7ecc --- /dev/null +++ b/firmware/lockin/app/fn.ETH.html @@ -0,0 +1,3 @@ +ETH in lockin::app - Rust

Function lockin::app::ETH

source ·
#[no_mangle]
+unsafe fn ETH()
Expand description

User HW task ISR trampoline for eth

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.SysTick.html b/firmware/lockin/app/fn.SysTick.html new file mode 100644 index 0000000000..0ef531bafc --- /dev/null +++ b/firmware/lockin/app/fn.SysTick.html @@ -0,0 +1,2 @@ +SysTick in lockin::app - Rust

Function lockin::app::SysTick

source ·
#[no_mangle]
+unsafe fn SysTick()
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_after.html b/firmware/lockin/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_after.html new file mode 100644 index 0000000000..2d566a8b09 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_after.html @@ -0,0 +1,6 @@ +__rtic_internal_ethernet_link_Monotonic_spawn_after in lockin::app - Rust
pub fn __rtic_internal_ethernet_link_Monotonic_spawn_after(
+    duration: <Systick as Monotonic>::Duration
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task after a set duration relative to the current time

+

This will use the time Instant::new(0) as baseline if called in #[init], +so if you use a non-resetable timer use spawn_at when in #[init]

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_at.html b/firmware/lockin/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_at.html new file mode 100644 index 0000000000..da0f11e0fc --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_ethernet_link_Monotonic_spawn_at.html @@ -0,0 +1,4 @@ +__rtic_internal_ethernet_link_Monotonic_spawn_at in lockin::app - Rust
pub fn __rtic_internal_ethernet_link_Monotonic_spawn_at(
+    instant: <Systick as Monotonic>::Instant
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task at a fixed time instant

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_ethernet_link_spawn.html b/firmware/lockin/app/fn.__rtic_internal_ethernet_link_spawn.html new file mode 100644 index 0000000000..4393498e81 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_ethernet_link_spawn.html @@ -0,0 +1,2 @@ +__rtic_internal_ethernet_link_spawn in lockin::app - Rust
pub fn __rtic_internal_ethernet_link_spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_settings_update_Monotonic_spawn_after.html b/firmware/lockin/app/fn.__rtic_internal_settings_update_Monotonic_spawn_after.html new file mode 100644 index 0000000000..e1fe7164d0 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_settings_update_Monotonic_spawn_after.html @@ -0,0 +1,6 @@ +__rtic_internal_settings_update_Monotonic_spawn_after in lockin::app - Rust
pub fn __rtic_internal_settings_update_Monotonic_spawn_after(
+    duration: <Systick as Monotonic>::Duration
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task after a set duration relative to the current time

+

This will use the time Instant::new(0) as baseline if called in #[init], +so if you use a non-resetable timer use spawn_at when in #[init]

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_settings_update_Monotonic_spawn_at.html b/firmware/lockin/app/fn.__rtic_internal_settings_update_Monotonic_spawn_at.html new file mode 100644 index 0000000000..21e70eadc0 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_settings_update_Monotonic_spawn_at.html @@ -0,0 +1,4 @@ +__rtic_internal_settings_update_Monotonic_spawn_at in lockin::app - Rust
pub fn __rtic_internal_settings_update_Monotonic_spawn_at(
+    instant: <Systick as Monotonic>::Instant
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task at a fixed time instant

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_settings_update_spawn.html b/firmware/lockin/app/fn.__rtic_internal_settings_update_spawn.html new file mode 100644 index 0000000000..4fce435fd4 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_settings_update_spawn.html @@ -0,0 +1,2 @@ +__rtic_internal_settings_update_spawn in lockin::app - Rust
pub fn __rtic_internal_settings_update_spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_start_Monotonic_spawn_after.html b/firmware/lockin/app/fn.__rtic_internal_start_Monotonic_spawn_after.html new file mode 100644 index 0000000000..9ca97e3c92 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_start_Monotonic_spawn_after.html @@ -0,0 +1,6 @@ +__rtic_internal_start_Monotonic_spawn_after in lockin::app - Rust
pub fn __rtic_internal_start_Monotonic_spawn_after(
+    duration: <Systick as Monotonic>::Duration
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task after a set duration relative to the current time

+

This will use the time Instant::new(0) as baseline if called in #[init], +so if you use a non-resetable timer use spawn_at when in #[init]

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_start_Monotonic_spawn_at.html b/firmware/lockin/app/fn.__rtic_internal_start_Monotonic_spawn_at.html new file mode 100644 index 0000000000..9361c76ca1 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_start_Monotonic_spawn_at.html @@ -0,0 +1,4 @@ +__rtic_internal_start_Monotonic_spawn_at in lockin::app - Rust
pub fn __rtic_internal_start_Monotonic_spawn_at(
+    instant: <Systick as Monotonic>::Instant
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task at a fixed time instant

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_start_spawn.html b/firmware/lockin/app/fn.__rtic_internal_start_spawn.html new file mode 100644 index 0000000000..8f12ee5902 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_start_spawn.html @@ -0,0 +1,2 @@ +__rtic_internal_start_spawn in lockin::app - Rust
pub fn __rtic_internal_start_spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_telemetry_Monotonic_spawn_after.html b/firmware/lockin/app/fn.__rtic_internal_telemetry_Monotonic_spawn_after.html new file mode 100644 index 0000000000..af8dfc1164 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_telemetry_Monotonic_spawn_after.html @@ -0,0 +1,6 @@ +__rtic_internal_telemetry_Monotonic_spawn_after in lockin::app - Rust
pub fn __rtic_internal_telemetry_Monotonic_spawn_after(
+    duration: <Systick as Monotonic>::Duration
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task after a set duration relative to the current time

+

This will use the time Instant::new(0) as baseline if called in #[init], +so if you use a non-resetable timer use spawn_at when in #[init]

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_telemetry_Monotonic_spawn_at.html b/firmware/lockin/app/fn.__rtic_internal_telemetry_Monotonic_spawn_at.html new file mode 100644 index 0000000000..f6c262ad58 --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_telemetry_Monotonic_spawn_at.html @@ -0,0 +1,4 @@ +__rtic_internal_telemetry_Monotonic_spawn_at in lockin::app - Rust
pub fn __rtic_internal_telemetry_Monotonic_spawn_at(
+    instant: <Systick as Monotonic>::Instant
+) -> Result<SpawnHandle, ()>
Expand description

Spawns the task at a fixed time instant

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.__rtic_internal_telemetry_spawn.html b/firmware/lockin/app/fn.__rtic_internal_telemetry_spawn.html new file mode 100644 index 0000000000..188469b0cc --- /dev/null +++ b/firmware/lockin/app/fn.__rtic_internal_telemetry_spawn.html @@ -0,0 +1,2 @@ +__rtic_internal_telemetry_spawn in lockin::app - Rust
pub fn __rtic_internal_telemetry_spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.eth.html b/firmware/lockin/app/fn.eth.html new file mode 100644 index 0000000000..14a5f98ba1 --- /dev/null +++ b/firmware/lockin/app/fn.eth.html @@ -0,0 +1,2 @@ +eth in lockin::app - Rust

Function lockin::app::eth

source ·
fn eth(_: Context)
Expand description

User HW task: eth

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.ethernet_link.html b/firmware/lockin/app/fn.ethernet_link.html new file mode 100644 index 0000000000..6f8df97629 --- /dev/null +++ b/firmware/lockin/app/fn.ethernet_link.html @@ -0,0 +1,2 @@ +ethernet_link in lockin::app - Rust

Function lockin::app::ethernet_link

source ·
fn ethernet_link(c: Context<'_>)
Expand description

User SW task ethernet_link

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.idle.html b/firmware/lockin/app/fn.idle.html new file mode 100644 index 0000000000..5c0a65caf1 --- /dev/null +++ b/firmware/lockin/app/fn.idle.html @@ -0,0 +1,2 @@ +idle in lockin::app - Rust

Function lockin::app::idle

source ·
fn idle(c: Context<'_>) -> !
Expand description

User provided idle function

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.init.html b/firmware/lockin/app/fn.init.html new file mode 100644 index 0000000000..0be0f04dfa --- /dev/null +++ b/firmware/lockin/app/fn.init.html @@ -0,0 +1,3 @@ +init in lockin::app - Rust

Function lockin::app::init

source ·
fn init(c: Context<'_>) -> (Shared, Local, Monotonics)
Expand description

User code end +User provided init function

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.process.html b/firmware/lockin/app/fn.process.html new file mode 100644 index 0000000000..fc00690405 --- /dev/null +++ b/firmware/lockin/app/fn.process.html @@ -0,0 +1,3 @@ +process in lockin::app - Rust

Function lockin::app::process

source ·
#[link_section = ".itcm.process"]
+fn process(c: Context<'_>)
Expand description

User HW task: process

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.settings_update.html b/firmware/lockin/app/fn.settings_update.html new file mode 100644 index 0000000000..fd6d3033fd --- /dev/null +++ b/firmware/lockin/app/fn.settings_update.html @@ -0,0 +1,2 @@ +settings_update in lockin::app - Rust

Function lockin::app::settings_update

source ·
fn settings_update(c: Context<'_>)
Expand description

User SW task settings_update

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.start.html b/firmware/lockin/app/fn.start.html new file mode 100644 index 0000000000..97bcb63e4f --- /dev/null +++ b/firmware/lockin/app/fn.start.html @@ -0,0 +1,2 @@ +start in lockin::app - Rust

Function lockin::app::start

source ·
fn start(c: Context<'_>)
Expand description

User SW task start

+
\ No newline at end of file diff --git a/firmware/lockin/app/fn.telemetry.html b/firmware/lockin/app/fn.telemetry.html new file mode 100644 index 0000000000..d0f8a73cf2 --- /dev/null +++ b/firmware/lockin/app/fn.telemetry.html @@ -0,0 +1,2 @@ +telemetry in lockin::app - Rust

Function lockin::app::telemetry

source ·
fn telemetry(c: Context<'_>)
Expand description

User SW task telemetry

+
\ No newline at end of file diff --git a/firmware/lockin/app/idle/index.html b/firmware/lockin/app/idle/index.html new file mode 100644 index 0000000000..ebcb4b3ac8 --- /dev/null +++ b/firmware/lockin/app/idle/index.html @@ -0,0 +1,2 @@ +lockin::app::idle - Rust

Module lockin::app::idle

source ·
Expand description

Idle loop

+

Structs

\ No newline at end of file diff --git a/firmware/lockin/app/idle/sidebar-items.js b/firmware/lockin/app/idle/sidebar-items.js new file mode 100644 index 0000000000..95ede04c66 --- /dev/null +++ b/firmware/lockin/app/idle/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context","SharedResources"]}; \ No newline at end of file diff --git a/firmware/lockin/app/idle/struct.Context.html b/firmware/lockin/app/idle/struct.Context.html new file mode 100644 index 0000000000..20a4057920 --- /dev/null +++ b/firmware/lockin/app/idle/struct.Context.html @@ -0,0 +1,15 @@ +Context in lockin::app::idle - Rust

Struct lockin::app::idle::Context

source ·
pub struct Context<'a> {
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/idle/struct.SharedResources.html b/firmware/lockin/app/idle/struct.SharedResources.html new file mode 100644 index 0000000000..d051b7f877 --- /dev/null +++ b/firmware/lockin/app/idle/struct.SharedResources.html @@ -0,0 +1,17 @@ +SharedResources in lockin::app::idle - Rust
pub struct SharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources idle has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+

Implementations§

source§

impl<'a> __rtic_internal_idleSharedResources<'a>

This impl block contains no items.
+

App module

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/index.html b/firmware/lockin/app/index.html new file mode 100644 index 0000000000..36f8968f8b --- /dev/null +++ b/firmware/lockin/app/index.html @@ -0,0 +1,3 @@ +lockin::app - Rust

Module lockin::app

source ·
Expand description

The RTIC application module

+

Re-exports

  • pub use rtic::Monotonic as _;

Modules

Structs

Constants

Functions

Type Definitions

  • Monotonic 🔒
    User code from within the module
\ No newline at end of file diff --git a/firmware/lockin/app/init/index.html b/firmware/lockin/app/init/index.html new file mode 100644 index 0000000000..be2ccaaa88 --- /dev/null +++ b/firmware/lockin/app/init/index.html @@ -0,0 +1,2 @@ +lockin::app::init - Rust

Module lockin::app::init

source ·
Expand description

Initialization function

+

Structs

\ No newline at end of file diff --git a/firmware/lockin/app/init/sidebar-items.js b/firmware/lockin/app/init/sidebar-items.js new file mode 100644 index 0000000000..18ec524ac5 --- /dev/null +++ b/firmware/lockin/app/init/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context","Monotonics"]}; \ No newline at end of file diff --git a/firmware/lockin/app/init/struct.Context.html b/firmware/lockin/app/init/struct.Context.html new file mode 100644 index 0000000000..d96603ba07 --- /dev/null +++ b/firmware/lockin/app/init/struct.Context.html @@ -0,0 +1,19 @@ +Context in lockin::app::init - Rust

Struct lockin::app::init::Context

source ·
pub struct Context<'a> {
+    pub core: Peripherals,
+    pub device: Peripherals,
+    pub cs: CriticalSection<'a>,
+}
Expand description

Execution context

+

Fields§

§core: Peripherals

Core (Cortex-M) peripherals

+
§device: Peripherals

Device peripherals

+
§cs: CriticalSection<'a>

Critical section token for init

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/init/struct.Monotonics.html b/firmware/lockin/app/init/struct.Monotonics.html new file mode 100644 index 0000000000..261255c0a7 --- /dev/null +++ b/firmware/lockin/app/init/struct.Monotonics.html @@ -0,0 +1,12 @@ +Monotonics in lockin::app::init - Rust

Struct lockin::app::init::Monotonics

source ·
pub struct Monotonics(pub Systick);
Expand description

Monotonics used by the system

+

Tuple Fields§

§0: Systick

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/monotonics/Monotonic/fn.now.html b/firmware/lockin/app/monotonics/Monotonic/fn.now.html new file mode 100644 index 0000000000..db64698148 --- /dev/null +++ b/firmware/lockin/app/monotonics/Monotonic/fn.now.html @@ -0,0 +1,2 @@ +now in lockin::app::monotonics::Monotonic - Rust

Function lockin::app::monotonics::Monotonic::now

source ·
pub fn now() -> <Systick as Monotonic>::Instant
Expand description

Read the current time from this monotonic

+
\ No newline at end of file diff --git a/firmware/lockin/app/monotonics/Monotonic/index.html b/firmware/lockin/app/monotonics/Monotonic/index.html new file mode 100644 index 0000000000..6f9fc76664 --- /dev/null +++ b/firmware/lockin/app/monotonics/Monotonic/index.html @@ -0,0 +1,2 @@ +lockin::app::monotonics::Monotonic - Rust
Expand description

This module holds the static implementation for Monotonic::now()

+

Functions

  • Read the current time from this monotonic
\ No newline at end of file diff --git a/firmware/lockin/app/monotonics/Monotonic/sidebar-items.js b/firmware/lockin/app/monotonics/Monotonic/sidebar-items.js new file mode 100644 index 0000000000..66a5f25aee --- /dev/null +++ b/firmware/lockin/app/monotonics/Monotonic/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["now"]}; \ No newline at end of file diff --git a/firmware/lockin/app/monotonics/index.html b/firmware/lockin/app/monotonics/index.html new file mode 100644 index 0000000000..681f856058 --- /dev/null +++ b/firmware/lockin/app/monotonics/index.html @@ -0,0 +1,2 @@ +lockin::app::monotonics - Rust

Module lockin::app::monotonics

source ·
Expand description

Holds static methods for each monotonic.

+

Re-exports

  • pub use Monotonic::now;

Modules

  • This module holds the static implementation for Monotonic::now()
\ No newline at end of file diff --git a/firmware/lockin/app/monotonics/sidebar-items.js b/firmware/lockin/app/monotonics/sidebar-items.js new file mode 100644 index 0000000000..a77d130ed4 --- /dev/null +++ b/firmware/lockin/app/monotonics/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["Monotonic"]}; \ No newline at end of file diff --git a/firmware/lockin/app/process/index.html b/firmware/lockin/app/process/index.html new file mode 100644 index 0000000000..4ac6cbe86f --- /dev/null +++ b/firmware/lockin/app/process/index.html @@ -0,0 +1,2 @@ +lockin::app::process - Rust

Module lockin::app::process

source ·
Expand description

Hardware task

+

Structs

\ No newline at end of file diff --git a/firmware/lockin/app/process/sidebar-items.js b/firmware/lockin/app/process/sidebar-items.js new file mode 100644 index 0000000000..72a885fb5a --- /dev/null +++ b/firmware/lockin/app/process/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Context","LocalResources","SharedResources"]}; \ No newline at end of file diff --git a/firmware/lockin/app/process/struct.Context.html b/firmware/lockin/app/process/struct.Context.html new file mode 100644 index 0000000000..39231c849f --- /dev/null +++ b/firmware/lockin/app/process/struct.Context.html @@ -0,0 +1,17 @@ +Context in lockin::app::process - Rust

Struct lockin::app::process::Context

source ·
pub struct Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/process/struct.LocalResources.html b/firmware/lockin/app/process/struct.LocalResources.html new file mode 100644 index 0000000000..f0483825d7 --- /dev/null +++ b/firmware/lockin/app/process/struct.LocalResources.html @@ -0,0 +1,27 @@ +LocalResources in lockin::app::process - Rust
pub struct LocalResources<'a> {
+    pub adcs: &'a mut (Adc0Input, Adc1Input),
+    pub dacs: &'a mut (Dac0Output, Dac1Output),
+    pub lockin: &'a mut Lockin<4>,
+    pub timestamper: &'a mut InputStamper,
+    pub pll: &'a mut RPLL,
+    pub generator: &'a mut FrameGenerator,
+    pub signal_generator: &'a mut SignalGenerator,
+}
Expand description

Local resources process has access to

+

Fields§

§adcs: &'a mut (Adc0Input, Adc1Input)

Local resource adcs

+
§dacs: &'a mut (Dac0Output, Dac1Output)

Local resource dacs

+
§lockin: &'a mut Lockin<4>

Local resource lockin

+
§timestamper: &'a mut InputStamper

Local resource timestamper

+
§pll: &'a mut RPLL

Local resource pll

+
§generator: &'a mut FrameGenerator

Local resource generator

+
§signal_generator: &'a mut SignalGenerator

Local resource signal_generator

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/process/struct.SharedResources.html b/firmware/lockin/app/process/struct.SharedResources.html new file mode 100644 index 0000000000..b51543ca2d --- /dev/null +++ b/firmware/lockin/app/process/struct.SharedResources.html @@ -0,0 +1,17 @@ +SharedResources in lockin::app::process - Rust
pub struct SharedResources<'a> {
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub telemetry: telemetry_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources process has access to

+

Fields§

§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§telemetry: telemetry_that_needs_to_be_locked<'a>

Resource proxy resource telemetry. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/settings_update/fn.spawn.html b/firmware/lockin/app/settings_update/fn.spawn.html new file mode 100644 index 0000000000..b009191fed --- /dev/null +++ b/firmware/lockin/app/settings_update/fn.spawn.html @@ -0,0 +1,2 @@ +spawn in lockin::app::settings_update - Rust

Function lockin::app::settings_update::spawn

source ·
pub fn spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/lockin/app/settings_update/index.html b/firmware/lockin/app/settings_update/index.html new file mode 100644 index 0000000000..ac5369a565 --- /dev/null +++ b/firmware/lockin/app/settings_update/index.html @@ -0,0 +1,2 @@ +lockin::app::settings_update - Rust

Module lockin::app::settings_update

source ·
Expand description

Software task

+

Re-exports

Structs

Functions

  • Spawns the task directly
\ No newline at end of file diff --git a/firmware/lockin/app/settings_update/sidebar-items.js b/firmware/lockin/app/settings_update/sidebar-items.js new file mode 100644 index 0000000000..61e80776dd --- /dev/null +++ b/firmware/lockin/app/settings_update/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["spawn"],"struct":["Context","LocalResources","SharedResources"]}; \ No newline at end of file diff --git a/firmware/lockin/app/settings_update/struct.Context.html b/firmware/lockin/app/settings_update/struct.Context.html new file mode 100644 index 0000000000..261d4dca69 --- /dev/null +++ b/firmware/lockin/app/settings_update/struct.Context.html @@ -0,0 +1,17 @@ +Context in lockin::app::settings_update - Rust
pub struct Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/settings_update/struct.LocalResources.html b/firmware/lockin/app/settings_update/struct.LocalResources.html new file mode 100644 index 0000000000..dc2103ae72 --- /dev/null +++ b/firmware/lockin/app/settings_update/struct.LocalResources.html @@ -0,0 +1,15 @@ +LocalResources in lockin::app::settings_update - Rust
pub struct LocalResources<'a> {
+    pub afes: &'a mut (AFE0, AFE1),
+}
Expand description

Local resources settings_update has access to

+

Fields§

§afes: &'a mut (AFE0, AFE1)

Local resource afes

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/settings_update/struct.SharedResources.html b/firmware/lockin/app/settings_update/struct.SharedResources.html new file mode 100644 index 0000000000..7150b9bccf --- /dev/null +++ b/firmware/lockin/app/settings_update/struct.SharedResources.html @@ -0,0 +1,17 @@ +SharedResources in lockin::app::settings_update - Rust
pub struct SharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+    pub settings: settings_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources settings_update has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+
§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/shared_resources/index.html b/firmware/lockin/app/shared_resources/index.html new file mode 100644 index 0000000000..208d3a649f --- /dev/null +++ b/firmware/lockin/app/shared_resources/index.html @@ -0,0 +1 @@ +lockin::app::shared_resources - Rust
\ No newline at end of file diff --git a/firmware/lockin/app/shared_resources/sidebar-items.js b/firmware/lockin/app/shared_resources/sidebar-items.js new file mode 100644 index 0000000000..5244ce01cc --- /dev/null +++ b/firmware/lockin/app/shared_resources/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/firmware/lockin/app/sidebar-items.js b/firmware/lockin/app/sidebar-items.js new file mode 100644 index 0000000000..85c08a5a8b --- /dev/null +++ b/firmware/lockin/app/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"constant":["CEILING","N","PRIORITY"],"fn":["DCMI","DMA1_STR4","ETH","SysTick","__rtic_internal_ethernet_link_Monotonic_spawn_after","__rtic_internal_ethernet_link_Monotonic_spawn_at","__rtic_internal_ethernet_link_spawn","__rtic_internal_settings_update_Monotonic_spawn_after","__rtic_internal_settings_update_Monotonic_spawn_at","__rtic_internal_settings_update_spawn","__rtic_internal_start_Monotonic_spawn_after","__rtic_internal_start_Monotonic_spawn_at","__rtic_internal_start_spawn","__rtic_internal_telemetry_Monotonic_spawn_after","__rtic_internal_telemetry_Monotonic_spawn_at","__rtic_internal_telemetry_spawn","eth","ethernet_link","idle","init","process","settings_update","start","telemetry"],"mod":["eth","ethernet_link","idle","init","monotonics","process","settings_update","shared_resources","start","telemetry"],"struct":["Local","Shared","__rtic_internal_Monotonics","__rtic_internal_eth_Context","__rtic_internal_ethernet_linkSharedResources","__rtic_internal_ethernet_link_Context","__rtic_internal_idleSharedResources","__rtic_internal_idle_Context","__rtic_internal_init_Context","__rtic_internal_processLocalResources","__rtic_internal_processSharedResources","__rtic_internal_process_Context","__rtic_internal_settings_updateLocalResources","__rtic_internal_settings_updateSharedResources","__rtic_internal_settings_update_Context","__rtic_internal_startLocalResources","__rtic_internal_start_Context","__rtic_internal_telemetryLocalResources","__rtic_internal_telemetrySharedResources","__rtic_internal_telemetry_Context"],"type":["Monotonic"]}; \ No newline at end of file diff --git a/firmware/lockin/app/start/fn.spawn.html b/firmware/lockin/app/start/fn.spawn.html new file mode 100644 index 0000000000..1c271af9b8 --- /dev/null +++ b/firmware/lockin/app/start/fn.spawn.html @@ -0,0 +1,2 @@ +spawn in lockin::app::start - Rust

Function lockin::app::start::spawn

source ·
pub fn spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/lockin/app/start/index.html b/firmware/lockin/app/start/index.html new file mode 100644 index 0000000000..ebc17d2bc2 --- /dev/null +++ b/firmware/lockin/app/start/index.html @@ -0,0 +1,2 @@ +lockin::app::start - Rust

Module lockin::app::start

source ·
Expand description

Software task

+

Re-exports

Structs

Functions

  • Spawns the task directly
\ No newline at end of file diff --git a/firmware/lockin/app/start/sidebar-items.js b/firmware/lockin/app/start/sidebar-items.js new file mode 100644 index 0000000000..d73e0d0169 --- /dev/null +++ b/firmware/lockin/app/start/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["spawn"],"struct":["Context","LocalResources"]}; \ No newline at end of file diff --git a/firmware/lockin/app/start/struct.Context.html b/firmware/lockin/app/start/struct.Context.html new file mode 100644 index 0000000000..0374b17304 --- /dev/null +++ b/firmware/lockin/app/start/struct.Context.html @@ -0,0 +1,15 @@ +Context in lockin::app::start - Rust

Struct lockin::app::start::Context

source ·
pub struct Context<'a> {
+    pub local: LocalResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/start/struct.LocalResources.html b/firmware/lockin/app/start/struct.LocalResources.html new file mode 100644 index 0000000000..741a6c0c57 --- /dev/null +++ b/firmware/lockin/app/start/struct.LocalResources.html @@ -0,0 +1,15 @@ +LocalResources in lockin::app::start - Rust
pub struct LocalResources<'a> {
+    pub sampling_timer: &'a mut SamplingTimer,
+}
Expand description

Local resources start has access to

+

Fields§

§sampling_timer: &'a mut SamplingTimer

Local resource sampling_timer

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.Local.html b/firmware/lockin/app/struct.Local.html new file mode 100644 index 0000000000..b3cea4a301 --- /dev/null +++ b/firmware/lockin/app/struct.Local.html @@ -0,0 +1,24 @@ +Local in lockin::app - Rust

Struct lockin::app::Local

source ·
struct Local {
+    sampling_timer: SamplingTimer,
+    digital_inputs: (DigitalInput0, DigitalInput1),
+    timestamper: InputStamper,
+    afes: (AFE0, AFE1),
+    adcs: (Adc0Input, Adc1Input),
+    dacs: (Dac0Output, Dac1Output),
+    pll: RPLL,
+    lockin: Lockin<4>,
+    signal_generator: SignalGenerator,
+    generator: FrameGenerator,
+    cpu_temp_sensor: CpuTempSensor,
+}
Expand description

RTIC local resource struct

+

Fields§

§sampling_timer: SamplingTimer§digital_inputs: (DigitalInput0, DigitalInput1)§timestamper: InputStamper§afes: (AFE0, AFE1)§adcs: (Adc0Input, Adc1Input)§dacs: (Dac0Output, Dac1Output)§pll: RPLL§lockin: Lockin<4>§signal_generator: SignalGenerator§generator: FrameGenerator§cpu_temp_sensor: CpuTempSensor

Auto Trait Implementations§

§

impl !RefUnwindSafe for Local

§

impl Send for Local

§

impl !Sync for Local

§

impl Unpin for Local

§

impl !UnwindSafe for Local

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.Shared.html b/firmware/lockin/app/struct.Shared.html new file mode 100644 index 0000000000..f217b043a3 --- /dev/null +++ b/firmware/lockin/app/struct.Shared.html @@ -0,0 +1,16 @@ +Shared in lockin::app - Rust

Struct lockin::app::Shared

source ·
struct Shared {
+    network: NetworkUsers<Settings, Telemetry>,
+    settings: Settings,
+    telemetry: TelemetryBuffer,
+}
Expand description

RTIC shared resource struct

+

Fields§

§network: NetworkUsers<Settings, Telemetry>§settings: Settings§telemetry: TelemetryBuffer

Auto Trait Implementations§

§

impl !RefUnwindSafe for Shared

§

impl Send for Shared

§

impl !Sync for Shared

§

impl Unpin for Shared

§

impl !UnwindSafe for Shared

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_Monotonics.html b/firmware/lockin/app/struct.__rtic_internal_Monotonics.html new file mode 100644 index 0000000000..782900ad9f --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_Monotonics.html @@ -0,0 +1,12 @@ +__rtic_internal_Monotonics in lockin::app - Rust
pub struct __rtic_internal_Monotonics(pub Systick);
Expand description

Monotonics used by the system

+

Tuple Fields§

§0: Systick

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_eth_Context.html b/firmware/lockin/app/struct.__rtic_internal_eth_Context.html new file mode 100644 index 0000000000..3a2cabe455 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_eth_Context.html @@ -0,0 +1,12 @@ +__rtic_internal_eth_Context in lockin::app - Rust
pub struct __rtic_internal_eth_Context {}
Expand description

Execution context

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_ethernet_linkSharedResources.html b/firmware/lockin/app/struct.__rtic_internal_ethernet_linkSharedResources.html new file mode 100644 index 0000000000..bedc78b8e7 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_ethernet_linkSharedResources.html @@ -0,0 +1,15 @@ +__rtic_internal_ethernet_linkSharedResources in lockin::app - Rust
pub struct __rtic_internal_ethernet_linkSharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources ethernet_link has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_ethernet_link_Context.html b/firmware/lockin/app/struct.__rtic_internal_ethernet_link_Context.html new file mode 100644 index 0000000000..3150e124cc --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_ethernet_link_Context.html @@ -0,0 +1,15 @@ +__rtic_internal_ethernet_link_Context in lockin::app - Rust
pub struct __rtic_internal_ethernet_link_Context<'a> {
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
§

type Output = T

Should always be Self
§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_idleSharedResources.html b/firmware/lockin/app/struct.__rtic_internal_idleSharedResources.html new file mode 100644 index 0000000000..a8491f7d57 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_idleSharedResources.html @@ -0,0 +1,17 @@ +__rtic_internal_idleSharedResources in lockin::app - Rust
pub struct __rtic_internal_idleSharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources idle has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+

Implementations§

source§

impl<'a> __rtic_internal_idleSharedResources<'a>

This impl block contains no items.
+

App module

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_idle_Context.html b/firmware/lockin/app/struct.__rtic_internal_idle_Context.html new file mode 100644 index 0000000000..a62d4daece --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_idle_Context.html @@ -0,0 +1,15 @@ +__rtic_internal_idle_Context in lockin::app - Rust
pub struct __rtic_internal_idle_Context<'a> {
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_init_Context.html b/firmware/lockin/app/struct.__rtic_internal_init_Context.html new file mode 100644 index 0000000000..b674bd4305 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_init_Context.html @@ -0,0 +1,19 @@ +__rtic_internal_init_Context in lockin::app - Rust
pub struct __rtic_internal_init_Context<'a> {
+    pub core: Peripherals,
+    pub device: Peripherals,
+    pub cs: CriticalSection<'a>,
+}
Expand description

Execution context

+

Fields§

§core: Peripherals

Core (Cortex-M) peripherals

+
§device: Peripherals

Device peripherals

+
§cs: CriticalSection<'a>

Critical section token for init

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_processLocalResources.html b/firmware/lockin/app/struct.__rtic_internal_processLocalResources.html new file mode 100644 index 0000000000..e266397fde --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_processLocalResources.html @@ -0,0 +1,27 @@ +__rtic_internal_processLocalResources in lockin::app - Rust
pub struct __rtic_internal_processLocalResources<'a> {
+    pub adcs: &'a mut (Adc0Input, Adc1Input),
+    pub dacs: &'a mut (Dac0Output, Dac1Output),
+    pub lockin: &'a mut Lockin<4>,
+    pub timestamper: &'a mut InputStamper,
+    pub pll: &'a mut RPLL,
+    pub generator: &'a mut FrameGenerator,
+    pub signal_generator: &'a mut SignalGenerator,
+}
Expand description

Local resources process has access to

+

Fields§

§adcs: &'a mut (Adc0Input, Adc1Input)

Local resource adcs

+
§dacs: &'a mut (Dac0Output, Dac1Output)

Local resource dacs

+
§lockin: &'a mut Lockin<4>

Local resource lockin

+
§timestamper: &'a mut InputStamper

Local resource timestamper

+
§pll: &'a mut RPLL

Local resource pll

+
§generator: &'a mut FrameGenerator

Local resource generator

+
§signal_generator: &'a mut SignalGenerator

Local resource signal_generator

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_processSharedResources.html b/firmware/lockin/app/struct.__rtic_internal_processSharedResources.html new file mode 100644 index 0000000000..43ea2a5cd2 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_processSharedResources.html @@ -0,0 +1,17 @@ +__rtic_internal_processSharedResources in lockin::app - Rust
pub struct __rtic_internal_processSharedResources<'a> {
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub telemetry: telemetry_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources process has access to

+

Fields§

§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§telemetry: telemetry_that_needs_to_be_locked<'a>

Resource proxy resource telemetry. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_process_Context.html b/firmware/lockin/app/struct.__rtic_internal_process_Context.html new file mode 100644 index 0000000000..47cb60332c --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_process_Context.html @@ -0,0 +1,17 @@ +__rtic_internal_process_Context in lockin::app - Rust
pub struct __rtic_internal_process_Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_settings_updateLocalResources.html b/firmware/lockin/app/struct.__rtic_internal_settings_updateLocalResources.html new file mode 100644 index 0000000000..4971ad6cf5 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_settings_updateLocalResources.html @@ -0,0 +1,15 @@ +__rtic_internal_settings_updateLocalResources in lockin::app - Rust
pub struct __rtic_internal_settings_updateLocalResources<'a> {
+    pub afes: &'a mut (AFE0, AFE1),
+}
Expand description

Local resources settings_update has access to

+

Fields§

§afes: &'a mut (AFE0, AFE1)

Local resource afes

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_settings_updateSharedResources.html b/firmware/lockin/app/struct.__rtic_internal_settings_updateSharedResources.html new file mode 100644 index 0000000000..9e80e7299d --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_settings_updateSharedResources.html @@ -0,0 +1,17 @@ +__rtic_internal_settings_updateSharedResources in lockin::app - Rust
pub struct __rtic_internal_settings_updateSharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+    pub settings: settings_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources settings_update has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+
§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_settings_update_Context.html b/firmware/lockin/app/struct.__rtic_internal_settings_update_Context.html new file mode 100644 index 0000000000..b290e7dc75 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_settings_update_Context.html @@ -0,0 +1,17 @@ +__rtic_internal_settings_update_Context in lockin::app - Rust
pub struct __rtic_internal_settings_update_Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_startLocalResources.html b/firmware/lockin/app/struct.__rtic_internal_startLocalResources.html new file mode 100644 index 0000000000..0ad972989b --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_startLocalResources.html @@ -0,0 +1,15 @@ +__rtic_internal_startLocalResources in lockin::app - Rust
pub struct __rtic_internal_startLocalResources<'a> {
+    pub sampling_timer: &'a mut SamplingTimer,
+}
Expand description

Local resources start has access to

+

Fields§

§sampling_timer: &'a mut SamplingTimer

Local resource sampling_timer

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_start_Context.html b/firmware/lockin/app/struct.__rtic_internal_start_Context.html new file mode 100644 index 0000000000..2772ef8a87 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_start_Context.html @@ -0,0 +1,15 @@ +__rtic_internal_start_Context in lockin::app - Rust
pub struct __rtic_internal_start_Context<'a> {
+    pub local: LocalResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_telemetryLocalResources.html b/firmware/lockin/app/struct.__rtic_internal_telemetryLocalResources.html new file mode 100644 index 0000000000..89c3a32922 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_telemetryLocalResources.html @@ -0,0 +1,17 @@ +__rtic_internal_telemetryLocalResources in lockin::app - Rust
pub struct __rtic_internal_telemetryLocalResources<'a> {
+    pub digital_inputs: &'a mut (DigitalInput0, DigitalInput1),
+    pub cpu_temp_sensor: &'a mut CpuTempSensor,
+}
Expand description

Local resources telemetry has access to

+

Fields§

§digital_inputs: &'a mut (DigitalInput0, DigitalInput1)

Local resource digital_inputs

+
§cpu_temp_sensor: &'a mut CpuTempSensor

Local resource cpu_temp_sensor

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_telemetrySharedResources.html b/firmware/lockin/app/struct.__rtic_internal_telemetrySharedResources.html new file mode 100644 index 0000000000..3a3761682e --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_telemetrySharedResources.html @@ -0,0 +1,19 @@ +__rtic_internal_telemetrySharedResources in lockin::app - Rust
pub struct __rtic_internal_telemetrySharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub telemetry: telemetry_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources telemetry has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+
§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§telemetry: telemetry_that_needs_to_be_locked<'a>

Resource proxy resource telemetry. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/struct.__rtic_internal_telemetry_Context.html b/firmware/lockin/app/struct.__rtic_internal_telemetry_Context.html new file mode 100644 index 0000000000..095ca44d38 --- /dev/null +++ b/firmware/lockin/app/struct.__rtic_internal_telemetry_Context.html @@ -0,0 +1,17 @@ +__rtic_internal_telemetry_Context in lockin::app - Rust
pub struct __rtic_internal_telemetry_Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/telemetry/fn.spawn.html b/firmware/lockin/app/telemetry/fn.spawn.html new file mode 100644 index 0000000000..6e2c4b4b19 --- /dev/null +++ b/firmware/lockin/app/telemetry/fn.spawn.html @@ -0,0 +1,2 @@ +spawn in lockin::app::telemetry - Rust

Function lockin::app::telemetry::spawn

source ·
pub fn spawn() -> Result<(), ()>
Expand description

Spawns the task directly

+
\ No newline at end of file diff --git a/firmware/lockin/app/telemetry/index.html b/firmware/lockin/app/telemetry/index.html new file mode 100644 index 0000000000..f70feb761e --- /dev/null +++ b/firmware/lockin/app/telemetry/index.html @@ -0,0 +1,2 @@ +lockin::app::telemetry - Rust

Module lockin::app::telemetry

source ·
Expand description

Software task

+

Re-exports

Structs

Functions

  • Spawns the task directly
\ No newline at end of file diff --git a/firmware/lockin/app/telemetry/sidebar-items.js b/firmware/lockin/app/telemetry/sidebar-items.js new file mode 100644 index 0000000000..61e80776dd --- /dev/null +++ b/firmware/lockin/app/telemetry/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["spawn"],"struct":["Context","LocalResources","SharedResources"]}; \ No newline at end of file diff --git a/firmware/lockin/app/telemetry/struct.Context.html b/firmware/lockin/app/telemetry/struct.Context.html new file mode 100644 index 0000000000..a26e03c2bc --- /dev/null +++ b/firmware/lockin/app/telemetry/struct.Context.html @@ -0,0 +1,17 @@ +Context in lockin::app::telemetry - Rust

Struct lockin::app::telemetry::Context

source ·
pub struct Context<'a> {
+    pub local: LocalResources<'a>,
+    pub shared: SharedResources<'a>,
+}
Expand description

Execution context

+

Fields§

§local: LocalResources<'a>

Local Resources this task has access to

+
§shared: SharedResources<'a>

Shared Resources this task has access to

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/telemetry/struct.LocalResources.html b/firmware/lockin/app/telemetry/struct.LocalResources.html new file mode 100644 index 0000000000..00d0271a95 --- /dev/null +++ b/firmware/lockin/app/telemetry/struct.LocalResources.html @@ -0,0 +1,17 @@ +LocalResources in lockin::app::telemetry - Rust
pub struct LocalResources<'a> {
+    pub digital_inputs: &'a mut (DigitalInput0, DigitalInput1),
+    pub cpu_temp_sensor: &'a mut CpuTempSensor,
+}
Expand description

Local resources telemetry has access to

+

Fields§

§digital_inputs: &'a mut (DigitalInput0, DigitalInput1)

Local resource digital_inputs

+
§cpu_temp_sensor: &'a mut CpuTempSensor

Local resource cpu_temp_sensor

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/telemetry/struct.SharedResources.html b/firmware/lockin/app/telemetry/struct.SharedResources.html new file mode 100644 index 0000000000..8531aceea0 --- /dev/null +++ b/firmware/lockin/app/telemetry/struct.SharedResources.html @@ -0,0 +1,19 @@ +SharedResources in lockin::app::telemetry - Rust
pub struct SharedResources<'a> {
+    pub network: network_that_needs_to_be_locked<'a>,
+    pub settings: settings_that_needs_to_be_locked<'a>,
+    pub telemetry: telemetry_that_needs_to_be_locked<'a>,
+}
Expand description

Shared resources telemetry has access to

+

Fields§

§network: network_that_needs_to_be_locked<'a>

Resource proxy resource network. Use method .lock() to gain access

+
§settings: settings_that_needs_to_be_locked<'a>

Resource proxy resource settings. Use method .lock() to gain access

+
§telemetry: telemetry_that_needs_to_be_locked<'a>

Resource proxy resource telemetry. Use method .lock() to gain access

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/lockin/app/type.Monotonic.html b/firmware/lockin/app/type.Monotonic.html new file mode 100644 index 0000000000..4531a32474 --- /dev/null +++ b/firmware/lockin/app/type.Monotonic.html @@ -0,0 +1,2 @@ +Monotonic in lockin::app - Rust

Type Definition lockin::app::Monotonic

source ·
type Monotonic = Systick;
Expand description

User code from within the module

+
\ No newline at end of file diff --git a/firmware/lockin/constant.BATCH_SIZE.html b/firmware/lockin/constant.BATCH_SIZE.html new file mode 100644 index 0000000000..797c4be7cc --- /dev/null +++ b/firmware/lockin/constant.BATCH_SIZE.html @@ -0,0 +1 @@ +BATCH_SIZE in lockin - Rust

Constant lockin::BATCH_SIZE

source ·
pub(crate) const BATCH_SIZE: usize = _; // 8usize
\ No newline at end of file diff --git a/firmware/lockin/constant.BATCH_SIZE_LOG2.html b/firmware/lockin/constant.BATCH_SIZE_LOG2.html new file mode 100644 index 0000000000..5bf641b32e --- /dev/null +++ b/firmware/lockin/constant.BATCH_SIZE_LOG2.html @@ -0,0 +1 @@ +BATCH_SIZE_LOG2 in lockin - Rust

Constant lockin::BATCH_SIZE_LOG2

source ·
pub(crate) const BATCH_SIZE_LOG2: u32 = 3;
\ No newline at end of file diff --git a/firmware/lockin/constant.SAMPLE_TICKS.html b/firmware/lockin/constant.SAMPLE_TICKS.html new file mode 100644 index 0000000000..6e8f8b42ee --- /dev/null +++ b/firmware/lockin/constant.SAMPLE_TICKS.html @@ -0,0 +1 @@ +SAMPLE_TICKS in lockin - Rust

Constant lockin::SAMPLE_TICKS

source ·
pub(crate) const SAMPLE_TICKS: u32 = _; // 128u32
\ No newline at end of file diff --git a/firmware/lockin/constant.SAMPLE_TICKS_LOG2.html b/firmware/lockin/constant.SAMPLE_TICKS_LOG2.html new file mode 100644 index 0000000000..f158d48628 --- /dev/null +++ b/firmware/lockin/constant.SAMPLE_TICKS_LOG2.html @@ -0,0 +1 @@ +SAMPLE_TICKS_LOG2 in lockin - Rust

Constant lockin::SAMPLE_TICKS_LOG2

source ·
pub(crate) const SAMPLE_TICKS_LOG2: u32 = 7;
\ No newline at end of file diff --git a/firmware/lockin/enum.Conf.html b/firmware/lockin/enum.Conf.html new file mode 100644 index 0000000000..ad3043ecbd --- /dev/null +++ b/firmware/lockin/enum.Conf.html @@ -0,0 +1,29 @@ +Conf in lockin - Rust

Enum lockin::Conf

source ·
pub(crate) enum Conf {
+    Magnitude,
+    Phase,
+    ReferenceFrequency,
+    LogPower,
+    InPhase,
+    Quadrature,
+    Modulation,
+}

Variants§

§

Magnitude

Output the lockin magnitude.

+
§

Phase

Output the phase of the lockin

+
§

ReferenceFrequency

Output the lockin reference frequency as a sinusoid

+
§

LogPower

Output the logarithmic power of the lockin

+
§

InPhase

Output the in-phase component of the lockin signal.

+
§

Quadrature

Output the quadrature component of the lockin signal.

+
§

Modulation

Output the lockin internal modulation frequency as a sinusoid

+

Trait Implementations§

source§

impl Clone for Conf

source§

fn clone(&self) -> Conf

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Conf

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Conf

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Conf

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for Conf

Auto Trait Implementations§

§

impl RefUnwindSafe for Conf

§

impl Send for Conf

§

impl Sync for Conf

§

impl Unpin for Conf

§

impl UnwindSafe for Conf

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/lockin/enum.LockinMode.html b/firmware/lockin/enum.LockinMode.html new file mode 100644 index 0000000000..705f1a8e07 --- /dev/null +++ b/firmware/lockin/enum.LockinMode.html @@ -0,0 +1,21 @@ +LockinMode in lockin - Rust

Enum lockin::LockinMode

source ·
pub(crate) enum LockinMode {
+    Internal,
+    External,
+}

Variants§

§

Internal

Utilize an internally generated reference for demodulation

+
§

External

Utilize an external modulation signal supplied to DI0

+

Trait Implementations§

source§

impl Clone for LockinMode

source§

fn clone(&self) -> LockinMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LockinMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LockinMode

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<LockinMode> for LockinMode

source§

fn eq(&self, other: &LockinMode) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl Serialize for LockinMode

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for LockinMode

source§

impl StructuralPartialEq for LockinMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/lockin/index.html b/firmware/lockin/index.html new file mode 100644 index 0000000000..b6d73151a9 --- /dev/null +++ b/firmware/lockin/index.html @@ -0,0 +1,27 @@ +lockin - Rust

Crate lockin

source ·
Expand description

Lockin

+

The lockin application implements a lock-in amplifier using either an external or internally +generated reference.

+

Features

+
    +
  • Up to 800 kHz sampling
  • +
  • Up to 400 kHz modulation frequency
  • +
  • Supports internal and external reference sources: +
      +
    1. Internal: Generate reference internally and output on one of the channel outputs
    2. +
    3. External: Reciprocal PLL, reference input applied to DI0.
    4. +
    +
  • +
  • Adjustable PLL and locking time constants
  • +
  • Adjustable phase offset and harmonic index
  • +
  • Run-time configurable output modes (in-phase, quadrature, magnitude, log2 power, phase, frequency)
  • +
  • Input/output data streamng via UDP
  • +
+

Settings

+

Refer to the Settings structure for documentation of run-time configurable settings for this +application.

+

Telemetry

+

Refer to Telemetry for information about telemetry reported by this application.

+

Livestreaming

+

This application streams raw ADC and DAC data over UDP. Refer to +stabilizer::net::data_stream for more information.

+

Modules

  • The RTIC application module

Structs

Enums

Constants

\ No newline at end of file diff --git a/firmware/lockin/sidebar-items.js b/firmware/lockin/sidebar-items.js new file mode 100644 index 0000000000..2c75afe10c --- /dev/null +++ b/firmware/lockin/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"constant":["BATCH_SIZE","BATCH_SIZE_LOG2","SAMPLE_TICKS","SAMPLE_TICKS_LOG2"],"enum":["Conf","LockinMode"],"mod":["app"],"struct":["Settings"]}; \ No newline at end of file diff --git a/firmware/lockin/struct.Settings.html b/firmware/lockin/struct.Settings.html new file mode 100644 index 0000000000..f794fcdc29 --- /dev/null +++ b/firmware/lockin/struct.Settings.html @@ -0,0 +1,91 @@ +Settings in lockin - Rust

Struct lockin::Settings

source ·
pub struct Settings {
+    pub(crate) afe: [Gain; 2],
+    pub(crate) lockin_mode: LockinMode,
+    pub(crate) pll_tc: [u32; 2],
+    pub(crate) lockin_tc: u32,
+    pub(crate) lockin_harmonic: i32,
+    pub(crate) lockin_phase: i32,
+    pub(crate) output_conf: [Conf; 2],
+    pub(crate) telemetry_period: u16,
+    pub(crate) stream_target: StreamTarget,
+}

Fields§

§afe: [Gain; 2]

Configure the Analog Front End (AFE) gain.

+

Path

+

afe/<n>

+
    +
  • <n> specifies which channel to configure. <n> := [0, 1]
  • +
+

Value

+

Any of the variants of Gain enclosed in double quotes.

+
§lockin_mode: LockinMode

Specifies the operational mode of the lockin.

+

Path

+

lockin_mode

+

Value

+

One of the variants of LockinMode enclosed in double quotes.

+
§pll_tc: [u32; 2]

Specifis the PLL time constant.

+

Path

+

pll_tc/<n>

+
    +
  • <n> specifies which channel to configure. <n> := [0, 1]
  • +
+

Value

+

The PLL time constant exponent (1-31).

+
§lockin_tc: u32

Specifies the lockin time constant.

+

Path

+

lockin_tc

+

Value

+

The lockin low-pass time constant as an unsigned byte (0-255).

+
§lockin_harmonic: i32

Specifies which harmonic to use for the lockin.

+

Path

+

lockin_harmonic

+

Value

+

Harmonic index of the LO. -1 to _de_modulate the fundamental (complex conjugate)

+
§lockin_phase: i32

Specifies the LO phase offset.

+

Path

+

lockin_phase

+

Value

+

Demodulation LO phase offset. Units are in terms of i32, where i32::MIN is equivalent to +-pi and i32::MAX is equivalent to +pi.

+
§output_conf: [Conf; 2]

Specifies DAC output mode.

+

Path

+

output_conf/<n>

+
    +
  • <n> specifies which channel to configure. <n> := [0, 1]
  • +
+

Value

+

One of the variants of Conf enclosed in double quotes.

+
§telemetry_period: u16

Specifies the telemetry output period in seconds.

+

Path

+

telemetry_period

+

Value

+

Any non-zero value less than 65536.

+
§stream_target: StreamTarget

Specifies the target for data livestreaming.

+

Path

+

stream_target

+

Value

+

See StreamTarget

+

Trait Implementations§

source§

impl Clone for Settings

source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Settings

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Miniconf for Settings

source§

fn set_path<'a, P: Peekable<Item = &'a str>>( + &mut self, + path_parts: &'a mut P, + value: &[u8] +) -> Result<usize, Error>

Deserialize an element by path. Read more
source§

fn get_path<'a, P: Peekable<Item = &'a str>>( + &self, + path_parts: &'a mut P, + value: &mut [u8] +) -> Result<usize, Error>

Serialize an element by path. Read more
source§

fn next_path<const TS: usize>( + state: &mut [usize], + path: &mut String<TS> +) -> Result<bool, IterError>

Get the next path in the namespace. Read more
source§

fn metadata() -> Metadata

Get metadata about the paths in the namespace.
source§

fn set(&mut self, path: &str, data: &[u8]) -> Result<usize, Error>

Update an element by path. Read more
source§

fn get(&self, path: &str, data: &mut [u8]) -> Result<usize, Error>

Retrieve a serialized value by path. Read more
source§

fn iter_paths<const L: usize, const TS: usize>( + +) -> Result<MiniconfIter<Self, L, TS>, IterError>

Create an iterator of all possible paths. Read more
source§

fn unchecked_iter_paths<const L: usize, const TS: usize>( + count: Option<usize> +) -> MiniconfIter<Self, L, TS>

Create an iterator of all possible paths. Read more
source§

impl Copy for Settings

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/miniconf/all.html b/firmware/miniconf/all.html new file mode 100644 index 0000000000..eb398f3ab8 --- /dev/null +++ b/firmware/miniconf/all.html @@ -0,0 +1 @@ +List of all items in this crate
\ No newline at end of file diff --git a/firmware/miniconf/array/struct.Array.html b/firmware/miniconf/array/struct.Array.html new file mode 100644 index 0000000000..884651d0f0 --- /dev/null +++ b/firmware/miniconf/array/struct.Array.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../miniconf/struct.Array.html...

+ + + \ No newline at end of file diff --git a/firmware/miniconf/derive.Miniconf.html b/firmware/miniconf/derive.Miniconf.html new file mode 100644 index 0000000000..f0617a4973 --- /dev/null +++ b/firmware/miniconf/derive.Miniconf.html @@ -0,0 +1,27 @@ +Miniconf in miniconf - Rust

Derive Macro miniconf::Miniconf

#[derive(Miniconf)]
+{
+    // Attributes available to this derive:
+    #[miniconf]
+}
+
Expand description

Derive the Miniconf trait for custom types.

+

Each field of the struct will be recursively used to construct a unique path for all elements.

+

All paths are similar to file-system paths with variable names separated by forward +slashes.

+

For arrays, the array index is treated as a unique identifier. That is, to access the first +element of array data, the path would be data/0.

+

Example

+
#[derive(Miniconf)]
+struct Nested {
+    #[miniconf(defer)]
+    data: [u32; 2],
+}
+#[derive(Miniconf)]
+struct Settings {
+    // Accessed with path `nested/data/0` or `nested/data/1`
+    #[miniconf(defer)]
+    nested: Nested,
+
+    // Accessed with path `external`
+    external: bool,
+}
+
\ No newline at end of file diff --git a/firmware/miniconf/enum.Error.html b/firmware/miniconf/enum.Error.html new file mode 100644 index 0000000000..d2002cd040 --- /dev/null +++ b/firmware/miniconf/enum.Error.html @@ -0,0 +1,40 @@ +Error in miniconf - Rust

Enum miniconf::Error

source ·
#[non_exhaustive]
+pub enum Error {
+    PathNotFound,
+    PathTooLong,
+    PathTooShort,
+    Deserialization(Error),
+    Serialization(Error),
+    BadIndex,
+    PathAbsent,
+}
Expand description

Errors that can occur when using the Miniconf API.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

PathNotFound

The provided path wasn’t found in the structure.

+

Double check the provided path to verify that it’s valid.

+
§

PathTooLong

The provided path was valid, but there was trailing data at the end.

+

Check the end of the path and remove any excess characters.

+
§

PathTooShort

The provided path was valid, but did not specify a value fully.

+

Double check the ending and add the remainder of the path.

+
§

Deserialization(Error)

The value provided for configuration could not be deserialized into the proper type.

+

Check that the serialized data is valid JSON and of the correct type.

+
§

Serialization(Error)

The value provided could not be serialized.

+

Check that the buffer had sufficient space.

+
§

BadIndex

When indexing into an array, the index provided was out of bounds.

+

Check array indices to ensure that bounds for all paths are respected.

+
§

PathAbsent

The path does not exist at runtime.

+

This is the case if a deferred core::option::Option or Option +is None at runtime. PathAbsent takes precedence over PathNotFound +if the path is simultaneously masked by a Option::None at runtime but +would still be non-existent if it weren’t.

+

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for u8

source§

fn from(err: Error) -> u8

Converts to this type from the input type.
source§

impl PartialEq<Error> for Error

source§

fn eq(&self, other: &Error) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl Copy for Error

source§

impl Eq for Error

source§

impl StructuralEq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/miniconf/enum.IterError.html b/firmware/miniconf/enum.IterError.html new file mode 100644 index 0000000000..17abbd56fe --- /dev/null +++ b/firmware/miniconf/enum.IterError.html @@ -0,0 +1,20 @@ +IterError in miniconf - Rust

Enum miniconf::IterError

source ·
#[non_exhaustive]
+pub enum IterError {
+    PathDepth,
+    PathLength,
+}
Expand description

Errors that occur during iteration over topic paths.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

PathDepth

The provided state vector is not long enough.

+
§

PathLength

The provided topic length is not long enough.

+

Trait Implementations§

source§

impl Clone for IterError

source§

fn clone(&self) -> IterError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for IterError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<IterError> for IterError

source§

fn eq(&self, other: &IterError) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl Copy for IterError

source§

impl Eq for IterError

source§

impl StructuralEq for IterError

source§

impl StructuralPartialEq for IterError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/miniconf/index.html b/firmware/miniconf/index.html new file mode 100644 index 0000000000..a10655fe6c --- /dev/null +++ b/firmware/miniconf/index.html @@ -0,0 +1,140 @@ +miniconf - Rust

Crate miniconf

source ·
Expand description

Miniconf

+

crates.io +docs +QUARTIQ Matrix Chat +Continuous Integration

+

Miniconf enables lightweight (no_std) partial serialization (retrieval) and deserialization +(updates, modification) within a hierarchical namespace by path. The namespace is backed by +structs and arrays of serializable types.

+

Miniconf can be used as a very simple and flexible backend for run-time settings management in embedded devices +over any transport. It was originally designed to work with JSON (serde_json_core) +payloads over MQTT (minimq) and provides a comlete MQTT settings management +client and a Python reference implementation to ineract with it.

+

Example

+
use miniconf::{Error, Miniconf};
+use serde::{Deserialize, Serialize};
+
+#[derive(Deserialize, Serialize, Copy, Clone, Default)]
+enum Either {
+    #[default]
+    Bad,
+    Good,
+}
+
+#[derive(Deserialize, Serialize, Copy, Clone, Default, Miniconf)]
+struct Inner {
+    a: i32,
+    b: i32,
+}
+
+#[derive(Miniconf, Default)]
+struct Settings {
+    // Atomic updtes by field name
+    foo: bool,
+    enum_: Either,
+    struct_: Inner,
+    array: [i32; 2],
+    option: Option<i32>,
+
+    // Exposing elements of containers
+    // ... by field name
+    #[miniconf(defer)]
+    struct_defer: Inner,
+    // ... or by index
+    #[miniconf(defer)]
+    array_defer: [i32; 2],
+    // ... or deferring to two levels (index and then inner field name)
+    #[miniconf(defer)]
+    array_miniconf: miniconf::Array<Inner, 2>,
+
+    // Hiding paths by setting the Option to `None` at runtime
+    #[miniconf(defer)]
+    option_defer: Option<i32>,
+    // Hiding a path and deferring to the inner
+    #[miniconf(defer)]
+    option_miniconf: miniconf::Option<Inner>,
+    // Hiding elements of an Array of Miniconf items
+    #[miniconf(defer)]
+    array_option_miniconf: miniconf::Array<miniconf::Option<Inner>, 2>,
+}
+
+let mut settings = Settings::default();
+let mut buf = [0; 64];
+
+// Atomic updates by field name
+settings.set("foo", b"true")?;
+assert_eq!(settings.foo, true);
+settings.set("enum_", br#""Good""#)?;
+settings.set("struct_", br#"{"a": 3, "b": 3}"#)?;
+settings.set("array", b"[6, 6]")?;
+settings.set("option", b"12")?;
+settings.set("option", b"null")?;
+
+// Deep access by field name in a struct
+settings.set("struct_defer/a", b"4")?;
+// ... or by index in an array
+settings.set("array_defer/0", b"7")?;
+// ... or by index and then struct field name
+settings.set("array_miniconf/1/b", b"11")?;
+
+// If a deferred Option is `None` it is hidden at runtime and can't be accessed
+settings.option_defer = None;
+assert_eq!(settings.set("option_defer", b"13"), Err(Error::PathAbsent));
+settings.option_defer = Some(0);
+settings.set("option_defer", b"13")?;
+settings.option_miniconf = Some(Inner::default()).into();
+settings.set("option_miniconf/a", b"14")?;
+settings.array_option_miniconf[1] = Some(Inner::default()).into();
+settings.set("array_option_miniconf/1/a", b"15")?;
+
+// Serializing elements by path
+let len = settings.get("struct_", &mut buf)?;
+assert_eq!(&buf[..len], br#"{"a":3,"b":3}"#);
+
+// Iterating over and serializing all paths
+for path in Settings::iter_paths::<3, 32>().unwrap() {
+    let ret = settings.get(&path, &mut buf);
+
+    // Some settings are still `None` and thus their paths are expected to be absent
+    assert!(matches!(ret, Ok(_) | Err(Error::PathAbsent)));
+}
+
+

MQTT

+

There is an MQTT-based client that implements settings management over the MQTT +protocol with JSON payloads. A Python reference library is provided that +interfaces with it.

+
# Discover the complete unique prefix of an application listening to messages
+# under the topic `quartiq/application/12345` and set its `foo` setting to `true`.
+python -m miniconf -d quartiq/application/+ foo=true
+

Design

+

For structs with named fields, Miniconf offers a derive macro to automatically +assign a unique path to each item in the namespace of the struct. +The macro implements the Miniconf trait that exposes access to serialized field values through their path. +All types supported by [serde_json_core] can be used as fields.

+

Elements of homogeneous core::arrays are similarly accessed through their numeric indices. +Structs, arrays, and Options can then be cascaded to construct a multi-level namespace. +Namespace depth and access to individual elements instead of the atomic updates +is configured at compile (derive) time using the #[miniconf(defer)] attribute. +Option is used with #[miniconf(defer)] to support paths that may be absent (masked) at +runtime.

+

While the Miniconf implementations for core::array and core::option::Option by provide +atomic access to their respective inner element(s), Array and +Option have alternative Miniconf implementations that expose deep access +into the inner element(s) through their respective inner Miniconf implementations.

+

Formats

+

The path hierarchy separator is the slash /.

+

Values are serialized into and deserialized from JSON.

+

Transport

+

Miniconf is designed to be protocol-agnostic. Any means that can receive key-value input from +some external source can be used to modify values by path.

+

Limitations

+

Deferred (non-atomic) access to inner elements of some types is not yet supported. This includes:

+ +

Features

+
    +
  • mqtt-client Enabled the MQTT client feature. See the example in MqttClient.
  • +
+

Re-exports

  • pub use heapless;
  • pub use serde;
  • pub use serde_json_core;
  • pub use minimq;
  • pub use minimq::embedded_time;

Structs

Enums

  • Errors that can occur when using the Miniconf API.
  • Errors that occur during iteration over topic paths.

Traits

Derive Macros

  • Derive the Miniconf trait for custom types.
\ No newline at end of file diff --git a/firmware/miniconf/iter/struct.MiniconfIter.html b/firmware/miniconf/iter/struct.MiniconfIter.html new file mode 100644 index 0000000000..54dbe52d88 --- /dev/null +++ b/firmware/miniconf/iter/struct.MiniconfIter.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../miniconf/struct.MiniconfIter.html...

+ + + \ No newline at end of file diff --git a/firmware/miniconf/mqtt_client/struct.MqttClient.html b/firmware/miniconf/mqtt_client/struct.MqttClient.html new file mode 100644 index 0000000000..aaf80d5d17 --- /dev/null +++ b/firmware/miniconf/mqtt_client/struct.MqttClient.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../miniconf/struct.MqttClient.html...

+ + + \ No newline at end of file diff --git a/firmware/miniconf/option/struct.Option.html b/firmware/miniconf/option/struct.Option.html new file mode 100644 index 0000000000..0fa892af0a --- /dev/null +++ b/firmware/miniconf/option/struct.Option.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../miniconf/struct.Option.html...

+ + + \ No newline at end of file diff --git a/firmware/miniconf/sidebar-items.js b/firmware/miniconf/sidebar-items.js new file mode 100644 index 0000000000..b893d2cca7 --- /dev/null +++ b/firmware/miniconf/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"derive":["Miniconf"],"enum":["Error","IterError"],"struct":["Array","Metadata","MiniconfIter","MqttClient","Option"],"trait":["Miniconf","Peekable"]}; \ No newline at end of file diff --git a/firmware/miniconf/struct.Array.html b/firmware/miniconf/struct.Array.html new file mode 100644 index 0000000000..2db743cd36 --- /dev/null +++ b/firmware/miniconf/struct.Array.html @@ -0,0 +1,176 @@ +Array in miniconf - Rust

Struct miniconf::Array

source ·
#[repr(transparent)]
pub struct Array<T, const N: usize>(_);
Expand description

An array that exposes each element through their Miniconf implementation.

+

Design

+

Miniconf supports homogeneous arrays of items contained in structures using two forms. For the +miniconf::Array, each item of the array is accessed as a Miniconf tree.

+

For standard arrays of [T; N] form, by default the entire array is accessed as one atomic +value. By adding the #[miniconf(defer)] attribute, each index of the array is is instead accessed as +one atomic value (i.e. a single Miniconf item).

+

The type you should use depends on what data is contained in your array. If your array contains +Miniconf items, you can (and often want to) use Array and the #[miniconf(defer)] attribute. +However, if each element in your list is individually configurable as a single value (e.g. a list +of u32), then you must use a standard [T; N] array but you may optionally +#[miniconf(defer)] access to individual indices.

+

Construction

+

An Array can be constructed using From<[T; N]>/Into<miniconf::Array> +and the contained value can be accessed through Deref/DerefMut.

+

Methods from Deref<Target = [T; N]>§

1.57.0 · source

pub fn as_slice(&self) -> &[T]

Returns a slice containing the entire array. Equivalent to &s[..].

+
1.57.0 · source

pub fn as_mut_slice(&mut self) -> &mut [T]

Returns a mutable slice containing the entire array. Equivalent to +&mut s[..].

+
source

pub fn each_ref(&self) -> [&T; N]

🔬This is a nightly-only experimental API. (array_methods)

Borrows each element and returns an array of references with the same +size as self.

+
Example
+
#![feature(array_methods)]
+
+let floats = [3.1, 2.7, -1.0];
+let float_refs: [&f64; 3] = floats.each_ref();
+assert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
+

This method is particularly useful if combined with other methods, like +map. This way, you can avoid moving the original +array if its elements are not Copy.

+ +
#![feature(array_methods)]
+
+let strings = ["Ferris".to_string(), "♥".to_string(), "Rust".to_string()];
+let is_ascii = strings.each_ref().map(|s| s.is_ascii());
+assert_eq!(is_ascii, [true, false, true]);
+
+// We can still access the original array: it has not been moved.
+assert_eq!(strings.len(), 3);
+
source

pub fn each_mut(&mut self) -> [&mut T; N]

🔬This is a nightly-only experimental API. (array_methods)

Borrows each element mutably and returns an array of mutable references +with the same size as self.

+
Example
+
#![feature(array_methods)]
+
+let mut floats = [3.1, 2.7, -1.0];
+let float_refs: [&mut f64; 3] = floats.each_mut();
+*float_refs[0] = 0.0;
+assert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);
+assert_eq!(floats, [0.0, 2.7, -1.0]);
+
source

pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

🔬This is a nightly-only experimental API. (split_array)

Divides one array reference into two at an index.

+

The first will contain all indices from [0, M) (excluding +the index M itself) and the second will contain all +indices from [M, N) (excluding the index N itself).

+
Panics
+

Panics if M > N.

+
Examples
+
#![feature(split_array)]
+
+let v = [1, 2, 3, 4, 5, 6];
+
+{
+   let (left, right) = v.split_array_ref::<0>();
+   assert_eq!(left, &[]);
+   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
+}
+
+{
+    let (left, right) = v.split_array_ref::<2>();
+    assert_eq!(left, &[1, 2]);
+    assert_eq!(right, &[3, 4, 5, 6]);
+}
+
+{
+    let (left, right) = v.split_array_ref::<6>();
+    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
+    assert_eq!(right, &[]);
+}
+
source

pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

🔬This is a nightly-only experimental API. (split_array)

Divides one mutable array reference into two at an index.

+

The first will contain all indices from [0, M) (excluding +the index M itself) and the second will contain all +indices from [M, N) (excluding the index N itself).

+
Panics
+

Panics if M > N.

+
Examples
+
#![feature(split_array)]
+
+let mut v = [1, 0, 3, 0, 5, 6];
+let (left, right) = v.split_array_mut::<2>();
+assert_eq!(left, &mut [1, 0][..]);
+assert_eq!(right, &mut [3, 0, 5, 6]);
+left[1] = 2;
+right[1] = 4;
+assert_eq!(v, [1, 2, 3, 4, 5, 6]);
+
source

pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

🔬This is a nightly-only experimental API. (split_array)

Divides one array reference into two at an index from the end.

+

The first will contain all indices from [0, N - M) (excluding +the index N - M itself) and the second will contain all +indices from [N - M, N) (excluding the index N itself).

+
Panics
+

Panics if M > N.

+
Examples
+
#![feature(split_array)]
+
+let v = [1, 2, 3, 4, 5, 6];
+
+{
+   let (left, right) = v.rsplit_array_ref::<0>();
+   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
+   assert_eq!(right, &[]);
+}
+
+{
+    let (left, right) = v.rsplit_array_ref::<2>();
+    assert_eq!(left, &[1, 2, 3, 4]);
+    assert_eq!(right, &[5, 6]);
+}
+
+{
+    let (left, right) = v.rsplit_array_ref::<6>();
+    assert_eq!(left, &[]);
+    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
+}
+
source

pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

🔬This is a nightly-only experimental API. (split_array)

Divides one mutable array reference into two at an index from the end.

+

The first will contain all indices from [0, N - M) (excluding +the index N - M itself) and the second will contain all +indices from [N - M, N) (excluding the index N itself).

+
Panics
+

Panics if M > N.

+
Examples
+
#![feature(split_array)]
+
+let mut v = [1, 0, 3, 0, 5, 6];
+let (left, right) = v.rsplit_array_mut::<4>();
+assert_eq!(left, &mut [1, 0]);
+assert_eq!(right, &mut [3, 0, 5, 6][..]);
+left[1] = 2;
+right[1] = 4;
+assert_eq!(v, [1, 2, 3, 4, 5, 6]);
+

Trait Implementations§

source§

impl<T, const N: usize> AsMut<[T; N]> for Array<T, N>

source§

fn as_mut(&mut self) -> &mut [T; N]

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T, const N: usize> AsRef<[T; N]> for Array<T, N>

source§

fn as_ref(&self) -> &[T; N]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Clone, const N: usize> Clone for Array<T, N>

source§

fn clone(&self) -> Array<T, N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug, const N: usize> Debug for Array<T, N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default + Copy, const N: usize> Default for Array<T, N>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T, const N: usize> Deref for Array<T, N>

§

type Target = [T; N]

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T, const N: usize> DerefMut for Array<T, N>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<T, const N: usize> From<[T; N]> for Array<T, N>

source§

fn from(x: [T; N]) -> Self

Converts to this type from the input type.
source§

impl<T, const N: usize> From<Array<T, N>> for [T; N]

source§

fn from(x: Array<T, N>) -> Self

Converts to this type from the input type.
source§

impl<T: Hash, const N: usize> Hash for Array<T, N>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Array<T, N>

§

type Item = <&'a [T; N] as IntoIterator>::Item

The type of the elements being iterated over.
§

type IntoIter = <&'a [T; N] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Array<T, N>

§

type Item = <&'a mut [T; N] as IntoIterator>::Item

The type of the elements being iterated over.
§

type IntoIter = <&'a mut [T; N] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Array<T, N>

§

type Item = T

The type of the elements being iterated over.
§

type IntoIter = <[T; N] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T: Miniconf, const N: usize> Miniconf for Array<T, N>

source§

fn set_path<'a, P: Peekable<Item = &'a str>>( + &mut self, + path_parts: &'a mut P, + value: &[u8] +) -> Result<usize, Error>

Deserialize an element by path. Read more
source§

fn get_path<'a, P: Peekable<Item = &'a str>>( + &self, + path_parts: &'a mut P, + value: &mut [u8] +) -> Result<usize, Error>

Serialize an element by path. Read more
source§

fn metadata() -> Metadata

Get metadata about the paths in the namespace.
source§

fn next_path<const TS: usize>( + state: &mut [usize], + topic: &mut String<TS> +) -> Result<bool, IterError>

Get the next path in the namespace. Read more
source§

fn set(&mut self, path: &str, data: &[u8]) -> Result<usize, Error>

Update an element by path. Read more
source§

fn get(&self, path: &str, data: &mut [u8]) -> Result<usize, Error>

Retrieve a serialized value by path. Read more
source§

fn iter_paths<const L: usize, const TS: usize>( + +) -> Result<MiniconfIter<Self, L, TS>, IterError>

Create an iterator of all possible paths. Read more
source§

fn unchecked_iter_paths<const L: usize, const TS: usize>( + count: Option<usize> +) -> MiniconfIter<Self, L, TS>

Create an iterator of all possible paths. Read more
source§

impl<T: Ord, const N: usize> Ord for Array<T, N>

source§

fn cmp(&self, other: &Array<T, N>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere + Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<T: PartialEq, const N: usize> PartialEq<Array<T, N>> for Array<T, N>

source§

fn eq(&self, other: &Array<T, N>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<T: PartialOrd, const N: usize> PartialOrd<Array<T, N>> for Array<T, N>

source§

fn partial_cmp(&self, other: &Array<T, N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
source§

impl<T: Copy, const N: usize> Copy for Array<T, N>

source§

impl<T: Eq, const N: usize> Eq for Array<T, N>

source§

impl<T, const N: usize> StructuralEq for Array<T, N>

source§

impl<T, const N: usize> StructuralPartialEq for Array<T, N>

Auto Trait Implementations§

§

impl<T, const N: usize> RefUnwindSafe for Array<T, N>where + T: RefUnwindSafe,

§

impl<T, const N: usize> Send for Array<T, N>where + T: Send,

§

impl<T, const N: usize> Sync for Array<T, N>where + T: Sync,

§

impl<T, const N: usize> Unpin for Array<T, N>where + T: Unpin,

§

impl<T, const N: usize> UnwindSafe for Array<T, N>where + T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/miniconf/struct.Metadata.html b/firmware/miniconf/struct.Metadata.html new file mode 100644 index 0000000000..9459952f35 --- /dev/null +++ b/firmware/miniconf/struct.Metadata.html @@ -0,0 +1,21 @@ +Metadata in miniconf - Rust

Struct miniconf::Metadata

source ·
#[non_exhaustive]
pub struct Metadata { + pub max_length: usize, + pub max_depth: usize, + pub count: usize, +}
Expand description

Metadata about a Miniconf namespace.

+

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§max_length: usize

The maximum length of a path.

+
§max_depth: usize

The maximum path depth.

+
§count: usize

The number of paths.

+

Trait Implementations§

source§

impl Clone for Metadata

source§

fn clone(&self) -> Metadata

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metadata

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Metadata

source§

fn default() -> Metadata

Returns the “default value” for a type. Read more
source§

impl PartialEq<Metadata> for Metadata

source§

fn eq(&self, other: &Metadata) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl Copy for Metadata

source§

impl Eq for Metadata

source§

impl StructuralEq for Metadata

source§

impl StructuralPartialEq for Metadata

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/miniconf/struct.MiniconfIter.html b/firmware/miniconf/struct.MiniconfIter.html new file mode 100644 index 0000000000..3fa92dbd5a --- /dev/null +++ b/firmware/miniconf/struct.MiniconfIter.html @@ -0,0 +1,193 @@ +MiniconfIter in miniconf - Rust

Struct miniconf::MiniconfIter

source ·
pub struct MiniconfIter<M: ?Sized, const L: usize, const TS: usize> { /* private fields */ }
Expand description

An iterator over the paths in a Miniconf namespace.

+

Implementations§

source§

impl<M: ?Sized, const L: usize, const TS: usize> MiniconfIter<M, L, TS>

source

pub fn new(count: Option<usize>) -> Self

Trait Implementations§

source§

impl<M: Clone + ?Sized, const L: usize, const TS: usize> Clone for MiniconfIter<M, L, TS>

source§

fn clone(&self) -> MiniconfIter<M, L, TS>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<M: Debug + ?Sized, const L: usize, const TS: usize> Debug for MiniconfIter<M, L, TS>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<M: ?Sized, const L: usize, const TS: usize> Default for MiniconfIter<M, L, TS>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<M: Miniconf + ?Sized, const L: usize, const TS: usize> Iterator for MiniconfIter<M, L, TS>

§

type Item = String<TS>

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( + &mut self +) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where + Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usizewhere + Self: Sized,

Consumes the iterator, counting the number of iterations and returning it. Read more
1.0.0 · source§

fn last(self) -> Option<Self::Item>where + Self: Sized,

Consumes the iterator, returning the last element. Read more
source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator by n elements. Read more
1.0.0 · source§

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 · source§

fn step_by(self, step: usize) -> StepBy<Self>where + Self: Sized,

Creates an iterator starting at the same point, but stepping by +the given amount at each iteration. Read more
1.0.0 · source§

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>where + Self: Sized, + U: IntoIterator<Item = Self::Item>,

Takes two iterators and creates a new iterator over both in sequence. Read more
1.0.0 · source§

fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>where + Self: Sized, + U: IntoIterator,

‘Zips up’ two iterators into a single iterator of pairs. Read more
source§

fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>where + Self: Sized, + G: FnMut() -> Self::Item,

🔬This is a nightly-only experimental API. (iter_intersperse)
Creates a new iterator which places an item generated by separator +between adjacent items of the original iterator. Read more
1.0.0 · source§

fn map<B, F>(self, f: F) -> Map<Self, F>where + Self: Sized, + F: FnMut(Self::Item) -> B,

Takes a closure and creates an iterator which calls that closure on each +element. Read more
1.21.0 · source§

fn for_each<F>(self, f: F)where + Self: Sized, + F: FnMut(Self::Item),

Calls a closure on each element of an iterator. Read more
1.0.0 · source§

fn filter<P>(self, predicate: P) -> Filter<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element +should be yielded. Read more
1.0.0 · source§

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>where + Self: Sized, + F: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both filters and maps. Read more
1.0.0 · source§

fn enumerate(self) -> Enumerate<Self>where + Self: Sized,

Creates an iterator which gives the current iteration count as well as +the next value. Read more
1.0.0 · source§

fn peekable(self) -> Peekable<Self>where + Self: Sized,

Creates an iterator which can use the peek and peek_mut methods +to look at the next element of the iterator without consuming it. See +their documentation for more information. Read more
1.0.0 · source§

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 · source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 · source§

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>where + Self: Sized, + P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 · source§

fn skip(self, n: usize) -> Skip<Self>where + Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 · source§

fn take(self, n: usize) -> Take<Self>where + Self: Sized,

Creates an iterator that yields the first n elements, or fewer +if the underlying iterator ends sooner. Read more
1.0.0 · source§

fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>where + Self: Sized, + F: FnMut(&mut St, Self::Item) -> Option<B>,

An iterator adapter which, like fold, holds internal state, but +unlike fold, produces a new iterator. Read more
1.0.0 · source§

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>where + Self: Sized, + U: IntoIterator, + F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
1.0.0 · source§

fn fuse(self) -> Fuse<Self>where + Self: Sized,

Creates an iterator which ends after the first None. Read more
1.0.0 · source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>where + Self: Sized, + F: FnMut(&Self::Item),

Does something with each element of an iterator, passing the value on. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Selfwhere + Self: Sized,

Borrows an iterator, rather than consuming it. Read more
1.0.0 · source§

fn collect<B>(self) -> Bwhere + B: FromIterator<Self::Item>, + Self: Sized,

Transforms an iterator into a collection. Read more
source§

fn collect_into<E>(self, collection: &mut E) -> &mut Ewhere + E: Extend<Self::Item>, + Self: Sized,

🔬This is a nightly-only experimental API. (iter_collect_into)
Collects all the items from an iterator into a collection. Read more
1.0.0 · source§

fn partition<B, F>(self, f: F) -> (B, B)where + Self: Sized, + B: Default + Extend<Self::Item>, + F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
source§

fn is_partitioned<P>(self, predicate: P) -> boolwhere + Self: Sized, + P: FnMut(Self::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_is_partitioned)
Checks if the elements of this iterator are partitioned according to the given predicate, +such that all those that return true precede all those that return false. Read more
1.27.0 · source§

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> Rwhere + Self: Sized, + F: FnMut(B, Self::Item) -> R, + R: Try<Output = B>,

An iterator method that applies a function as long as it returns +successfully, producing a single, final value. Read more
1.27.0 · source§

fn try_for_each<F, R>(&mut self, f: F) -> Rwhere + Self: Sized, + F: FnMut(Self::Item) -> R, + R: Try<Output = ()>,

An iterator method that applies a fallible function to each item in the +iterator, stopping at the first error and returning that error. Read more
1.0.0 · source§

fn fold<B, F>(self, init: B, f: F) -> Bwhere + Self: Sized, + F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation, +returning the final result. Read more
1.51.0 · source§

fn reduce<F>(self, f: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing +operation. Read more
source§

fn try_reduce<F, R>( + &mut self, + f: F +) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryTypewhere + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> R, + R: Try<Output = Self::Item>, + <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (iterator_try_reduce)
Reduces the elements to a single one by repeatedly applying a reducing operation. If the +closure returns a failure, the failure is propagated back to the caller immediately. Read more
1.0.0 · source§

fn all<F>(&mut self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 · source§

fn any<F>(&mut self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 · source§

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 · source§

fn find_map<B, F>(&mut self, f: F) -> Option<B>where + Self: Sized, + F: FnMut(Self::Item) -> Option<B>,

Applies function to the elements of iterator and returns +the first non-none result. Read more
source§

fn try_find<F, R>( + &mut self, + f: F +) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryTypewhere + Self: Sized, + F: FnMut(&Self::Item) -> R, + R: Try<Output = bool>, + <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (try_find)
Applies function to the elements of iterator and returns +the first true result or the first error. Read more
1.0.0 · source§

fn position<P>(&mut self, predicate: P) -> Option<usize>where + Self: Sized, + P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 · source§

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>where + B: Ord, + Self: Sized, + F: FnMut(&Self::Item) -> B,

Returns the element that gives the maximum value from the +specified function. Read more
1.15.0 · source§

fn max_by<F>(self, compare: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the +specified comparison function. Read more
1.6.0 · source§

fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>where + B: Ord, + Self: Sized, + F: FnMut(&Self::Item) -> B,

Returns the element that gives the minimum value from the +specified function. Read more
1.15.0 · source§

fn min_by<F>(self, compare: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the +specified comparison function. Read more
1.0.0 · source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)where + FromA: Default + Extend<A>, + FromB: Default + Extend<B>, + Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 · source§

fn copied<'a, T>(self) -> Copied<Self>where + T: 'a + Copy, + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 · source§

fn cloned<'a, T>(self) -> Cloned<Self>where + T: 'a + Clone, + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>where + Self: Sized,

🔬This is a nightly-only experimental API. (iter_array_chunks)
Returns an iterator over N elements of the iterator at a time. Read more
1.11.0 · source§

fn sum<S>(self) -> Swhere + Self: Sized, + S: Sum<Self::Item>,

Sums the elements of an iterator. Read more
1.11.0 · source§

fn product<P>(self) -> Pwhere + Self: Sized, + P: Product<Self::Item>,

Iterates over the entire iterator, multiplying all the elements Read more
source§

fn cmp_by<I, F>(self, other: I, cmp: F) -> Orderingwhere + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those +of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn partial_cmp<I>(self, other: I) -> Option<Ordering>where + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Lexicographically compares the PartialOrd elements of +this Iterator with those of another. The comparison works like short-circuit +evaluation, returning a result without comparing the remaining elements. +As soon as an order can be determined, the evaluation stops and a result is returned. Read more
source§

fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those +of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn eq<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialEq<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are equal to those of +another. Read more
source§

fn eq_by<I, F>(self, other: I, eq: F) -> boolwhere + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_order_by)
Determines if the elements of this Iterator are equal to those of +another with respect to the specified equality function. Read more
1.5.0 · source§

fn ne<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialEq<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are not equal to those of +another. Read more
1.5.0 · source§

fn lt<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +less than those of another. Read more
1.5.0 · source§

fn le<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +less or equal to those of another. Read more
1.5.0 · source§

fn gt<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +greater than those of another. Read more
1.5.0 · source§

fn ge<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +greater than or equal to those of another. Read more
source§

fn is_sorted_by<F>(self, compare: F) -> boolwhere + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted using the given comparator function. Read more
source§

fn is_sorted_by_key<F, K>(self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> K, + K: PartialOrd<K>,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted using the given key extraction +function. Read more
source§

impl<M: PartialEq + ?Sized, const L: usize, const TS: usize> PartialEq<MiniconfIter<M, L, TS>> for MiniconfIter<M, L, TS>

source§

fn eq(&self, other: &MiniconfIter<M, L, TS>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<M: Copy + ?Sized, const L: usize, const TS: usize> Copy for MiniconfIter<M, L, TS>

source§

impl<M: Eq + ?Sized, const L: usize, const TS: usize> Eq for MiniconfIter<M, L, TS>

source§

impl<M: ?Sized, const L: usize, const TS: usize> StructuralEq for MiniconfIter<M, L, TS>

source§

impl<M: ?Sized, const L: usize, const TS: usize> StructuralPartialEq for MiniconfIter<M, L, TS>

Auto Trait Implementations§

§

impl<M: ?Sized, const L: usize, const TS: usize> RefUnwindSafe for MiniconfIter<M, L, TS>where + M: RefUnwindSafe,

§

impl<M: ?Sized, const L: usize, const TS: usize> Send for MiniconfIter<M, L, TS>where + M: Send,

§

impl<M: ?Sized, const L: usize, const TS: usize> Sync for MiniconfIter<M, L, TS>where + M: Sync,

§

impl<M: ?Sized, const L: usize, const TS: usize> Unpin for MiniconfIter<M, L, TS>where + M: Unpin,

§

impl<M: ?Sized, const L: usize, const TS: usize> UnwindSafe for MiniconfIter<M, L, TS>where + M: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<I> IntoIterator for Iwhere + I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/miniconf/struct.MqttClient.html b/firmware/miniconf/struct.MqttClient.html new file mode 100644 index 0000000000..39d0d39e4a --- /dev/null +++ b/firmware/miniconf/struct.MqttClient.html @@ -0,0 +1,117 @@ +MqttClient in miniconf - Rust

Struct miniconf::MqttClient

source ·
pub struct MqttClient<Settings, Stack, Clock, const MESSAGE_SIZE: usize>where
+    Settings: Miniconf + Clone,
+    Stack: TcpClientStack,
+    Clock: Clock,{ /* private fields */ }
Expand description

MQTT settings interface.

+

Design

+

The MQTT client places the Miniconf paths <path> at the MQTT <prefix>/settings/<path> topic, +where <prefix> is provided in the client constructor.

+

It publishes its alive-ness as a 1 to <prefix>/alive and sets a will to publish 0 there when +it is disconnected.

+

Limitations

+

The MQTT client logs failures to subscribe to the settings topic, but does not re-attempt to +connect to it when errors occur.

+

The client only supports paths up to 128 byte length and maximum depth of 8. +Keepalive interval and re-publication timeout are fixed to 60 and 2 seconds respectively.

+

Example

+
use miniconf::{MqttClient, Miniconf};
+
+#[derive(Miniconf, Clone, Default)]
+struct Settings {
+    foo: bool,
+}
+
+let mut client: MqttClient<Settings, _, _, 256> = MqttClient::new(
+    std_embedded_nal::Stack::default(),
+    "",  // client_id auto-assign
+    "quartiq/application/12345",  // prefix
+    "127.0.0.1".parse().unwrap(),
+    std_embedded_time::StandardClock::default(),
+    Settings::default(),
+)
+.unwrap();
+
+client.handled_update(|path, old_settings, new_settings| {
+    if new_settings.foo {
+        return Err("Foo!");
+    }
+    *old_settings = new_settings.clone();
+    Ok(())
+}).unwrap();
+

Implementations§

source§

impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where + Settings: Miniconf + Clone, + Stack: TcpClientStack, + Clock: Clock + Clone,

source

pub fn new( + stack: Stack, + client_id: &str, + prefix: &str, + broker: IpAddr, + clock: Clock, + settings: Settings +) -> Result<Self, Error<Stack::Error>>

Construct a new MQTT settings interface.

+
Args
+
    +
  • stack - The network stack to use for communication.
  • +
  • client_id - The ID of the MQTT client. May be an empty string for auto-assigning.
  • +
  • prefix - The MQTT device prefix to use for this device.
  • +
  • broker - The IP address of the MQTT broker to use.
  • +
  • clock - The clock for managing the MQTT connection.
  • +
  • settings - The initial settings values.
  • +
+
source

pub fn handled_update<F, E>( + &mut self, + handler: F +) -> Result<bool, Error<Stack::Error>>where + F: FnMut(&str, &mut Settings, &Settings) -> Result<(), E>, + E: AsRef<str>,

Update the MQTT interface and service the network. Pass any settings changes to the handler +supplied.

+
Args
+
    +
  • handler - A closure called with updated settings that can be used to apply current +settings or validate the configuration. Arguments are (path, old_settings, new_settings).
  • +
+
Returns
+

True if the settings changed. False otherwise.

+
source

pub fn update(&mut self) -> Result<bool, Error<Stack::Error>>

Update the settings from the network stack without any specific handling.

+
Returns
+

True if the settings changed. False otherwise

+
source

pub fn settings(&self) -> &Settings

Get the current settings from miniconf.

+
source

pub fn force_republish(&mut self)

Force republication of the current settings.

+
Note
+

This is intended to be used if modification of a setting had side effects that affected +another setting.

+

Auto Trait Implementations§

§

impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> RefUnwindSafe for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where + Clock: RefUnwindSafe, + Settings: RefUnwindSafe, + Stack: RefUnwindSafe, + <Clock as Clock>::T: RefUnwindSafe, + <Stack as TcpClientStack>::TcpSocket: RefUnwindSafe,

§

impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> Send for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where + Clock: Send, + Settings: Send, + Stack: Send, + <Clock as Clock>::T: Send, + <Stack as TcpClientStack>::TcpSocket: Send,

§

impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> Sync for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where + Clock: Sync, + Settings: Sync, + Stack: Sync, + <Clock as Clock>::T: Sync, + <Stack as TcpClientStack>::TcpSocket: Sync,

§

impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> Unpin for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where + Clock: Unpin, + Settings: Unpin, + Stack: Unpin, + <Clock as Clock>::T: Unpin, + <Stack as TcpClientStack>::TcpSocket: Unpin,

§

impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize> UnwindSafe for MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>where + Clock: UnwindSafe, + Settings: UnwindSafe, + Stack: UnwindSafe, + <Clock as Clock>::T: UnwindSafe, + <Stack as TcpClientStack>::TcpSocket: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/miniconf/struct.Option.html b/firmware/miniconf/struct.Option.html new file mode 100644 index 0000000000..a7e164f02b --- /dev/null +++ b/firmware/miniconf/struct.Option.html @@ -0,0 +1,268 @@ +Option in miniconf - Rust

Struct miniconf::Option

source ·
#[repr(transparent)]
pub struct Option<T>(_);
Expand description

An Option that exposes its value through their Miniconf implementation.

+

Design

+

Miniconf supports optional values in two forms.

+

In both forms, the Option may be marked with #[miniconf(defer)] +and be None at run-time. This makes the corresponding part of the namespace inaccessible +at run-time. It will still be iterated over by Miniconf::iter_paths() but cannot be +get() or set() using the Miniconf API.

+

This is intended as a mechanism to provide run-time construction of the namespace. In some +cases, run-time detection may indicate that some component is not present. In this case, +namespaces will not be exposed for it.

+

The first form is the miniconf::Option type which optionally exposes its +interior Miniconf value as a sub-tree. An miniconf::Option should usually be +#[miniconf(defer)].

+

Miniconf also allows for the normal usage of Rust core::option::Option types. In this case, +the Option can be used to atomically access the content within. If marked with #[miniconf(defer)] +and None at runtime, it is inaccessible through Miniconf. Otherwise, JSON null corresponds to +None as usual.

+

Construction

+

An miniconf::Option can be constructed using From<core::option::Option>/Into<miniconf::Option> +and the contained value can be accessed through Deref/DerefMut.

+

Methods from Deref<Target = Option<T>>§

1.0.0 · source

pub fn is_some(&self) -> bool

Returns true if the option is a Some value.

+
Examples
+
let x: Option<u32> = Some(2);
+assert_eq!(x.is_some(), true);
+
+let x: Option<u32> = None;
+assert_eq!(x.is_some(), false);
+
1.0.0 · source

pub fn is_none(&self) -> bool

Returns true if the option is a None value.

+
Examples
+
let x: Option<u32> = Some(2);
+assert_eq!(x.is_none(), false);
+
+let x: Option<u32> = None;
+assert_eq!(x.is_none(), true);
+
1.0.0 · source

pub fn as_ref(&self) -> Option<&T>

Converts from &Option<T> to Option<&T>.

+
Examples
+

Calculates the length of an Option<String> as an Option<usize> +without moving the String. The map method takes the self argument by value, +consuming the original, so this technique uses as_ref to first take an Option to a +reference to the value inside the original.

+ +
let text: Option<String> = Some("Hello, world!".to_string());
+// First, cast `Option<String>` to `Option<&String>` with `as_ref`,
+// then consume *that* with `map`, leaving `text` on the stack.
+let text_length: Option<usize> = text.as_ref().map(|s| s.len());
+println!("still can print text: {text:?}");
+
1.0.0 · source

pub fn as_mut(&mut self) -> Option<&mut T>

Converts from &mut Option<T> to Option<&mut T>.

+
Examples
+
let mut x = Some(2);
+match x.as_mut() {
+    Some(v) => *v = 42,
+    None => {},
+}
+assert_eq!(x, Some(42));
+
1.33.0 · source

pub fn as_pin_ref(self: Pin<&Option<T>>) -> Option<Pin<&T>>

Converts from Pin<&Option<T>> to Option<Pin<&T>>.

+
1.33.0 · source

pub fn as_pin_mut(self: Pin<&mut Option<T>>) -> Option<Pin<&mut T>>

Converts from Pin<&mut Option<T>> to Option<Pin<&mut T>>.

+
source

pub fn as_slice(&self) -> &[T]

🔬This is a nightly-only experimental API. (option_as_slice)

Returns a slice of the contained value, if any. If this is None, an +empty slice is returned. This can be useful to have a single type of +iterator over an Option or slice.

+

Note: Should you have an Option<&T> and wish to get a slice of T, +you can unpack it via opt.map_or(&[], std::slice::from_ref).

+
Examples
+
#![feature(option_as_slice)]
+
+assert_eq!(
+    [Some(1234).as_slice(), None.as_slice()],
+    [&[1234][..], &[][..]],
+);
+

The inverse of this function is (discounting +borrowing) [_]::first:

+ +
#![feature(option_as_slice)]
+
+for i in [Some(1234_u16), None] {
+    assert_eq!(i.as_ref(), i.as_slice().first());
+}
+
source

pub fn as_mut_slice(&mut self) -> &mut [T]

🔬This is a nightly-only experimental API. (option_as_slice)

Returns a mutable slice of the contained value, if any. If this is +None, an empty slice is returned. This can be useful to have a +single type of iterator over an Option or slice.

+

Note: Should you have an Option<&mut T> instead of a +&mut Option<T>, which this method takes, you can obtain a mutable +slice via opt.map_or(&mut [], std::slice::from_mut).

+
Examples
+
#![feature(option_as_slice)]
+
+assert_eq!(
+    [Some(1234).as_mut_slice(), None.as_mut_slice()],
+    [&mut [1234][..], &mut [][..]],
+);
+

The result is a mutable slice of zero or one items that points into +our original Option:

+ +
#![feature(option_as_slice)]
+
+let mut x = Some(1234);
+x.as_mut_slice()[0] += 1;
+assert_eq!(x, Some(1235));
+

The inverse of this method (discounting borrowing) +is [_]::first_mut:

+ +
#![feature(option_as_slice)]
+
+assert_eq!(Some(123).as_mut_slice().first_mut(), Some(&mut 123))
+
1.40.0 · source

pub fn as_deref(&self) -> Option<&<T as Deref>::Target>where + T: Deref,

Converts from Option<T> (or &Option<T>) to Option<&T::Target>.

+

Leaves the original Option in-place, creating a new one with a reference +to the original one, additionally coercing the contents via Deref.

+
Examples
+
let x: Option<String> = Some("hey".to_owned());
+assert_eq!(x.as_deref(), Some("hey"));
+
+let x: Option<String> = None;
+assert_eq!(x.as_deref(), None);
+
1.40.0 · source

pub fn as_deref_mut(&mut self) -> Option<&mut <T as Deref>::Target>where + T: DerefMut,

Converts from Option<T> (or &mut Option<T>) to Option<&mut T::Target>.

+

Leaves the original Option in-place, creating a new one containing a mutable reference to +the inner type’s Deref::Target type.

+
Examples
+
let mut x: Option<String> = Some("hey".to_owned());
+assert_eq!(x.as_deref_mut().map(|x| {
+    x.make_ascii_uppercase();
+    x
+}), Some("HEY".to_owned().as_mut_str()));
+
1.0.0 · source

pub fn iter(&self) -> Iter<'_, T>

Returns an iterator over the possibly contained value.

+
Examples
+
let x = Some(4);
+assert_eq!(x.iter().next(), Some(&4));
+
+let x: Option<u32> = None;
+assert_eq!(x.iter().next(), None);
+
1.0.0 · source

pub fn iter_mut(&mut self) -> IterMut<'_, T>

Returns a mutable iterator over the possibly contained value.

+
Examples
+
let mut x = Some(4);
+match x.iter_mut().next() {
+    Some(v) => *v = 42,
+    None => {},
+}
+assert_eq!(x, Some(42));
+
+let mut x: Option<u32> = None;
+assert_eq!(x.iter_mut().next(), None);
+
1.53.0 · source

pub fn insert(&mut self, value: T) -> &mut T

Inserts value into the option, then returns a mutable reference to it.

+

If the option already contains a value, the old value is dropped.

+

See also Option::get_or_insert, which doesn’t update the value if +the option already contains Some.

+
Example
+
let mut opt = None;
+let val = opt.insert(1);
+assert_eq!(*val, 1);
+assert_eq!(opt.unwrap(), 1);
+let val = opt.insert(2);
+assert_eq!(*val, 2);
+*val = 3;
+assert_eq!(opt.unwrap(), 3);
+
1.20.0 · source

pub fn get_or_insert(&mut self, value: T) -> &mut T

Inserts value into the option if it is None, then +returns a mutable reference to the contained value.

+

See also Option::insert, which updates the value even if +the option already contains Some.

+
Examples
+
let mut x = None;
+
+{
+    let y: &mut u32 = x.get_or_insert(5);
+    assert_eq!(y, &5);
+
+    *y = 7;
+}
+
+assert_eq!(x, Some(7));
+
source

pub fn get_or_insert_default(&mut self) -> &mut Twhere + T: Default,

🔬This is a nightly-only experimental API. (option_get_or_insert_default)

Inserts the default value into the option if it is None, then +returns a mutable reference to the contained value.

+
Examples
+
#![feature(option_get_or_insert_default)]
+
+let mut x = None;
+
+{
+    let y: &mut u32 = x.get_or_insert_default();
+    assert_eq!(y, &0);
+
+    *y = 7;
+}
+
+assert_eq!(x, Some(7));
+
1.20.0 · source

pub fn get_or_insert_with<F>(&mut self, f: F) -> &mut Twhere + F: FnOnce() -> T,

Inserts a value computed from f into the option if it is None, +then returns a mutable reference to the contained value.

+
Examples
+
let mut x = None;
+
+{
+    let y: &mut u32 = x.get_or_insert_with(|| 5);
+    assert_eq!(y, &5);
+
+    *y = 7;
+}
+
+assert_eq!(x, Some(7));
+
1.0.0 · source

pub fn take(&mut self) -> Option<T>

Takes the value out of the option, leaving a None in its place.

+
Examples
+
let mut x = Some(2);
+let y = x.take();
+assert_eq!(x, None);
+assert_eq!(y, Some(2));
+
+let mut x: Option<u32> = None;
+let y = x.take();
+assert_eq!(x, None);
+assert_eq!(y, None);
+
1.31.0 · source

pub fn replace(&mut self, value: T) -> Option<T>

Replaces the actual value in the option by the value given in parameter, +returning the old value if present, +leaving a Some in its place without deinitializing either one.

+
Examples
+
let mut x = Some(2);
+let old = x.replace(5);
+assert_eq!(x, Some(5));
+assert_eq!(old, Some(2));
+
+let mut x = None;
+let old = x.replace(3);
+assert_eq!(x, Some(3));
+assert_eq!(old, None);
+

Trait Implementations§

source§

impl<T> AsMut<Option<T>> for Option<T>

source§

fn as_mut(&mut self) -> &mut Option<T>

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T> AsRef<Option<T>> for Option<T>

source§

fn as_ref(&self) -> &Option<T>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Clone> Clone for Option<T>

source§

fn clone(&self) -> Option<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for Option<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default> Default for Option<T>

source§

fn default() -> Option<T>

Returns the “default value” for a type. Read more
source§

impl<T> Deref for Option<T>

§

type Target = Option<T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T> DerefMut for Option<T>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<'de, T> Deserialize<'de> for Option<T>where + T: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> From<Option<T>> for Option<T>

source§

fn from(x: Option<T>) -> Self

Converts to this type from the input type.
source§

impl<T> From<Option<T>> for Option<T>

source§

fn from(x: Option<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Hash> Hash for Option<T>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T: Miniconf> Miniconf for Option<T>

source§

fn set_path<'a, P: Peekable<Item = &'a str>>( + &mut self, + path_parts: &'a mut P, + value: &[u8] +) -> Result<usize, Error>

Deserialize an element by path. Read more
source§

fn get_path<'a, P: Peekable<Item = &'a str>>( + &self, + path_parts: &'a mut P, + value: &mut [u8] +) -> Result<usize, Error>

Serialize an element by path. Read more
source§

fn metadata() -> Metadata

Get metadata about the paths in the namespace.
source§

fn next_path<const TS: usize>( + state: &mut [usize], + path: &mut String<TS> +) -> Result<bool, IterError>

Get the next path in the namespace. Read more
source§

fn set(&mut self, path: &str, data: &[u8]) -> Result<usize, Error>

Update an element by path. Read more
source§

fn get(&self, path: &str, data: &mut [u8]) -> Result<usize, Error>

Retrieve a serialized value by path. Read more
source§

fn iter_paths<const L: usize, const TS: usize>( + +) -> Result<MiniconfIter<Self, L, TS>, IterError>

Create an iterator of all possible paths. Read more
source§

fn unchecked_iter_paths<const L: usize, const TS: usize>( + count: Option<usize> +) -> MiniconfIter<Self, L, TS>

Create an iterator of all possible paths. Read more
source§

impl<T: Ord> Ord for Option<T>

source§

fn cmp(&self, other: &Option<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere + Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<T: PartialEq> PartialEq<Option<T>> for Option<T>

source§

fn eq(&self, other: &Option<T>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl<T: PartialOrd> PartialOrd<Option<T>> for Option<T>

source§

fn partial_cmp(&self, other: &Option<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
source§

impl<T> Serialize for Option<T>where + T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Copy> Copy for Option<T>

source§

impl<T: Eq> Eq for Option<T>

source§

impl<T> StructuralEq for Option<T>

source§

impl<T> StructuralPartialEq for Option<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Option<T>where + T: RefUnwindSafe,

§

impl<T> Send for Option<T>where + T: Send,

§

impl<T> Sync for Option<T>where + T: Sync,

§

impl<T> Unpin for Option<T>where + T: Unpin,

§

impl<T> UnwindSafe for Option<T>where + T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/miniconf/trait.Miniconf.html b/firmware/miniconf/trait.Miniconf.html new file mode 100644 index 0000000000..2992fb2427 --- /dev/null +++ b/firmware/miniconf/trait.Miniconf.html @@ -0,0 +1,140 @@ +Miniconf in miniconf - Rust

Trait miniconf::Miniconf

source ·
pub trait Miniconf {
+    // Required methods
+    fn set_path<'a, P: Peekable<Item = &'a str>>(
+        &mut self,
+        path_parts: &'a mut P,
+        value: &[u8]
+    ) -> Result<usize, Error>;
+    fn get_path<'a, P: Peekable<Item = &'a str>>(
+        &self,
+        path_parts: &'a mut P,
+        value: &mut [u8]
+    ) -> Result<usize, Error>;
+    fn next_path<const TS: usize>(
+        state: &mut [usize],
+        path: &mut String<TS>
+    ) -> Result<bool, IterError>;
+    fn metadata() -> Metadata;
+
+    // Provided methods
+    fn set(&mut self, path: &str, data: &[u8]) -> Result<usize, Error> { ... }
+    fn get(&self, path: &str, data: &mut [u8]) -> Result<usize, Error> { ... }
+    fn iter_paths<const L: usize, const TS: usize>(
+        
+    ) -> Result<MiniconfIter<Self, L, TS>, IterError> { ... }
+    fn unchecked_iter_paths<const L: usize, const TS: usize>(
+        count: Option<usize>
+    ) -> MiniconfIter<Self, L, TS>  { ... }
+}
Expand description

Trait exposing serialization/deserialization of elements by path.

+

Required Methods§

source

fn set_path<'a, P: Peekable<Item = &'a str>>( + &mut self, + path_parts: &'a mut P, + value: &[u8] +) -> Result<usize, Error>

Deserialize an element by path.

+
Args
+
    +
  • path_parts: A Peekable Iterator identifying the element.
  • +
  • value: A slice containing the data to be deserialized.
  • +
+
Returns
+

The number of bytes consumed from value or an Error.

+
source

fn get_path<'a, P: Peekable<Item = &'a str>>( + &self, + path_parts: &'a mut P, + value: &mut [u8] +) -> Result<usize, Error>

Serialize an element by path.

+
Args
+
    +
  • path_parts: A Peekable Iterator identifying the element.
  • +
  • value: A slice for the value to be serialized into.
  • +
+
Returns
+

The number of bytes written to value or an Error.

+
source

fn next_path<const TS: usize>( + state: &mut [usize], + path: &mut String<TS> +) -> Result<bool, IterError>

Get the next path in the namespace.

+

This is usually not called directly but through a MiniconfIter returned by Miniconf::iter_paths.

+
Args
+
    +
  • state: A state array indicating the path to be retrieved. +A zeroed vector indicates the first path. The vector is advanced +such that the next element will be retrieved when called again. +The array needs to be at least as long as the maximum path depth.
  • +
  • path: A string to write the path into.
  • +
+
Returns
+

A bool indicating a valid path was written to path from the given state. +If false, path is invalid and there are no more paths within self at and +beyond state. +May return IterError indicating insufficient state or path size.

+
source

fn metadata() -> Metadata

Get metadata about the paths in the namespace.

+

Provided Methods§

source

fn set(&mut self, path: &str, data: &[u8]) -> Result<usize, Error>

Update an element by path.

+
Args
+
    +
  • path - The path to the element with ‘/’ as the separator.
  • +
  • data - The serialized data making up the content.
  • +
+
Returns
+

The number of bytes consumed from data or an Error.

+
source

fn get(&self, path: &str, data: &mut [u8]) -> Result<usize, Error>

Retrieve a serialized value by path.

+
Args
+
    +
  • path - The path to the element with ‘/’ as the separator.
  • +
  • data - The buffer to serialize the data into.
  • +
+
Returns
+

The number of bytes used in the data buffer or an Error.

+
source

fn iter_paths<const L: usize, const TS: usize>( + +) -> Result<MiniconfIter<Self, L, TS>, IterError>

Create an iterator of all possible paths.

+

This is a depth-first walk. +The iterator will walk all paths, even those that may be absent at run-time (see Option). +The iterator has an exact and trusted Iterator::size_hint.

+
Template Arguments
+
    +
  • L - The maximum depth of the path, i.e. number of separators plus 1.
  • +
  • TS - The maximum length of the path in bytes.
  • +
+
Returns
+

A MiniconfIter of paths or an IterError if L or TS are insufficient.

+
source

fn unchecked_iter_paths<const L: usize, const TS: usize>( + count: Option<usize> +) -> MiniconfIter<Self, L, TS>

Create an iterator of all possible paths.

+

This is a depth-first walk. +It will return all paths, even those that may be absent at run-time.

+
Note
+

This does not check that the path size or state vector are large enough. If they are not, +panics may be generated internally by the library.

+
Args
+
    +
  • count: Optional iterator length if known.
  • +
+
Template Arguments
+
    +
  • L - The maximum depth of the path, i.e. number of separators plus 1.
  • +
  • TS - The maximum length of the path in bytes.
  • +
+

Implementations on Foreign Types§

source§

impl<T: Serialize + DeserializeOwned> Miniconf for Option<T>

source§

fn set_path<'a, P: Peekable<Item = &'a str>>( + &mut self, + path_parts: &mut P, + value: &[u8] +) -> Result<usize, Error>

source§

fn get_path<'a, P: Peekable<Item = &'a str>>( + &self, + path_parts: &mut P, + value: &mut [u8] +) -> Result<usize, Error>

source§

fn metadata() -> Metadata

source§

fn next_path<const TS: usize>( + state: &mut [usize], + path: &mut String<TS> +) -> Result<bool, IterError>

source§

impl<T: Serialize + DeserializeOwned, const N: usize> Miniconf for [T; N]

source§

fn set_path<'a, P: Peekable<Item = &'a str>>( + &mut self, + path_parts: &mut P, + value: &[u8] +) -> Result<usize, Error>

source§

fn get_path<'a, P: Peekable<Item = &'a str>>( + &self, + path_parts: &mut P, + value: &mut [u8] +) -> Result<usize, Error>

source§

fn metadata() -> Metadata

source§

fn next_path<const TS: usize>( + state: &mut [usize], + path: &mut String<TS> +) -> Result<bool, IterError>

Implementors§

source§

impl<T: Miniconf> Miniconf for miniconf::Option<T>

source§

impl<T: Miniconf, const N: usize> Miniconf for Array<T, N>

\ No newline at end of file diff --git a/firmware/miniconf/trait.Peekable.html b/firmware/miniconf/trait.Peekable.html new file mode 100644 index 0000000000..678f4c22a5 --- /dev/null +++ b/firmware/miniconf/trait.Peekable.html @@ -0,0 +1,5 @@ +Peekable in miniconf - Rust

Trait miniconf::Peekable

source ·
pub trait Peekable: Iterator {
+    // Required method
+    fn peek(&mut self) -> Option<&Self::Item>;
+}
Expand description

Helper trait for core::iter::Peekable.

+

Required Methods§

source

fn peek(&mut self) -> Option<&Self::Item>

Implementations on Foreign Types§

source§

impl<I: Iterator> Peekable for Peekable<I>

source§

fn peek(&mut self) -> Option<&Self::Item>

Implementors§

\ No newline at end of file diff --git a/firmware/search-index.js b/firmware/search-index.js new file mode 100644 index 0000000000..8386dd1ff8 --- /dev/null +++ b/firmware/search-index.js @@ -0,0 +1,10 @@ +var searchIndex = JSON.parse('{\ +"ad9959":{"doc":"","t":"NSDNNNNNNNNNNNNNNNNNNNNDNEQNSNNNNINNESNDNENNSSNLLLLLLLLLLLLLLLLLLLLLLLKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLK","n":["ACR","ALL","Ad9959","Bounds","CFR","CFTW0","CPOW0","CSR","CW1","CW10","CW11","CW12","CW13","CW14","CW15","CW2","CW3","CW4","CW5","CW6","CW7","CW8","CW9","Channel","Check","Error","Error","FDW","FOUR","FR1","FR2","FourBitSerial","Frequency","Interface","Interface","LSRR","Mode","ONE","Pin","ProfileSerializer","RDW","Register","SingleBitThreeWire","SingleBitTwoWire","THREE","TWO","TwoBitSerial","all","bitand","bitand_assign","bitor","bitor_assign","bits","bits","bitxor","bitxor_assign","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","complement","configure_mode","contains","difference","empty","eq","extend","finalize","fmt","fmt","fmt","fmt","fmt","freeze","from","from","from","from","from","from","from_bits","from_bits_retain","from_bits_retain","from_bits_truncate","from_iter","from_name","get_amplitude","get_frequency","get_phase","get_reference_clock_frequency","get_reference_clock_multiplier","insert","intersection","intersects","into","into","into","into","into","into","into_iter","is_all","is_empty","iter","iter_names","new","new","not","read","remove","self_test","set","set_amplitude","set_frequency","set_phase","sub","sub_assign","symmetric_difference","toggle","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","union","update_channels","write"],"q":[[0,"ad9959"]],"d":["","","A device driver for the AD9959 direct digital synthesis …","","","","","","","","","","","","","","","","","","","","","Specifies an output channel of the AD9959 DDS chip.","","Possible errors generated by the AD9959 driver.","","","","","","","","A trait that allows a HAL to provide a means of …","","","Indicates various communication modes of the DDS. The …","","","Represents a means of serializing a DDS profile for …","","The configuration registers within the AD9959 DDS device. …","","","","","","Returns the set containing all flags.","Returns the intersection between the two sets of flags.","Disables all flags disabled in the set.","Returns the union of the two sets of flags.","Adds the set of flags.","Returns the raw value of the flags currently stored.","","Returns the left flags, but with all the right flags …","Toggles the set of flags.","","","","","","","","","","","","","","Returns the complement of this set of flags.","","Returns true if all of the flags in other are contained …","Returns the difference between the flags in self and other.","Returns an empty set of flags.","","","Get the serialized profile as a slice of 32-bit words.","","","","","","Finalize DDS configuration","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Convert from underlying bit representation, unless that …","","Convert from underlying bit representation, preserving all …","Convert from underlying bit representation, dropping any …","","Get the value for a flag from its stringified name.","Get the configured amplitude of a channel.","Get the frequency of a channel.","Get the current phase of a specified channel.","Get the current reference clock frequency in Hz.","Get the current reference clock multiplier.","Inserts the specified flags in-place.","Returns the intersection between the flags in self and …","Returns true if there are flags common to both self and …","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Returns true if all flags are currently set.","Returns true if no flags are currently stored.","Iterate over enabled flag values.","Iterate over enabled flag values with their stringified …","Construct and initialize the DDS.","Construct a new serializer.","Returns the complement of this set of flags.","","Removes the specified flags in-place.","Perform a self-test of the communication interface.","Inserts or removes the specified flags depending on the …","Configure the amplitude of a specified channel.","Configure the frequency of a specified channel.","Configure the phase of a specified channel.","Returns the set difference of the two sets of flags.","Disables all flags enabled in the set.","Returns the symmetric difference between the flags in self …","Toggles the specified flags in-place.","","","","","","","","","","","","","","","","","","","Returns the union of between the flags in self and other.","Update a number of channels with the requested profile.",""],"i":[23,1,0,10,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,0,10,0,11,23,1,23,23,3,10,0,10,23,0,1,10,0,23,0,3,3,1,1,3,1,1,1,1,1,1,1,1,1,12,23,7,3,1,10,12,23,7,3,1,10,3,1,11,1,1,1,3,1,7,1,1,1,1,10,12,12,23,7,3,1,10,1,1,1,1,1,1,12,12,12,12,12,1,1,1,12,23,7,3,1,10,1,1,1,1,1,12,7,1,11,1,12,1,12,12,12,1,1,1,1,12,23,7,3,1,10,12,23,7,3,1,10,12,23,7,3,1,10,1,7,11],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],1],[[1,1],1],[[1,1]],[[1,1],1],[[1,1]],[1,2],[1,2],[[1,1],1],[[1,1]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[3,3],[1,1],[3,4],[[1,1],5],[[1,1],1],[[],1],[[3,3],5],[[1,6]],[7],[[1,8],9],[[1,8],9],[[1,8],9],[[1,8],9],[[10,8],9],[[[12,[11]]]],[[]],[[]],[[]],[[]],[[]],[[]],[2,[[13,[1]]]],[2,1],[2,1],[2,1],[6,1],[14,[[13,[1]]]],[[[12,[11]],1],[[4,[15,10]]]],[[[12,[11]],1],[[4,[15,10]]]],[[[12,[11]],1],[[4,[15,10]]]],[[[12,[11]]],15],[[[12,[11]]],[[4,[2,10]]]],[[1,1]],[[1,1],1],[[1,1],5],[[]],[[]],[[]],[[]],[[]],[[]],[1],[1,5],[1,5],[1,[[16,[1]]]],[1,[[17,[1]]]],[[11,18,18,[19,[2]],3,15,2],[[4,[[12,[11]],10]]]],[3,7],[1,1],[2,4],[[1,1]],[[[12,[11]]],[[4,[5,10]]]],[[1,1,5]],[[[12,[11]],1,15],[[4,[15,10]]]],[[[12,[11]],1,15],[[4,[15,10]]]],[[[12,[11]],1,15],[[4,[15,10]]]],[[1,1],1],[[1,1]],[[1,1],1],[[1,1]],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[1,1],1],[[7,1,[13,[21]],[13,[22]],[13,[21]]]],[2,4]],"c":[],"p":[[3,"Channel"],[15,"u8"],[4,"Mode"],[4,"Result"],[15,"bool"],[8,"IntoIterator"],[3,"ProfileSerializer"],[3,"Formatter"],[6,"Result"],[4,"Error"],[8,"Interface"],[3,"Ad9959"],[4,"Option"],[15,"str"],[15,"f32"],[3,"Iter"],[3,"IterNames"],[8,"OutputPin"],[8,"DelayUs"],[3,"TypeId"],[15,"u32"],[15,"u16"],[4,"Register"]]},\ +"dual_iir":{"doc":"Dual IIR","t":"RRRRRRDMMALLLLLMLLMLLLLMMMLLLRRRRFFFDGRRRRRRRRFFFFDFCDDDDFFFDDDDDDDDDFFFDDDDDDFFFDDDFFFMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMAFAFLLLLLLLLLLLLLLLLLLLLLLLLMMAFMMAFLLLLLLLLLLLLLLLLLLLLLLLLMMMMAMMMMMAFMMMMMMAFMMMMMAMMMAFAFAFAFAFAFMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDDDCMMFCCDDMMDDMMMACFDDDMMMMMMMMMMDDDCMMMMMMFCCDDDDDDCMMFCCDDDCMMMMMFCCM","n":["BATCH_SIZE","IIR_CASCADE_LENGTH","SAMPLE_PERIOD","SAMPLE_TICKS","SAMPLE_TICKS_LOG2","SCALE","Settings","afe","allow_hold","app","borrow","borrow_mut","clone","default","fmt","force_hold","from","get_path","iir_ch","into","metadata","next_path","set_path","signal_generator","stream_target","telemetry_period","try_from","try_into","type_id","CEILING","CEILING","CEILING","CEILING","DCMI","DMA1_STR4","ETH","Local","Monotonic","N","PRIORITY","PRIORITY","PRIORITY","PRIORITY","PRIORITY","PRIORITY","PRIORITY","SPI2","SPI3","SPI4","SPI5","Shared","SysTick","_","__rtic_internal_Monotonics","__rtic_internal_eth_Context","__rtic_internal_ethernet_linkSharedResources","__rtic_internal_ethernet_link_Context","__rtic_internal_ethernet_link_Monotonic_spawn_after","__rtic_internal_ethernet_link_Monotonic_spawn_at","__rtic_internal_ethernet_link_spawn","__rtic_internal_idleSharedResources","__rtic_internal_idle_Context","__rtic_internal_init_Context","__rtic_internal_processLocalResources","__rtic_internal_processSharedResources","__rtic_internal_process_Context","__rtic_internal_settings_updateLocalResources","__rtic_internal_settings_updateSharedResources","__rtic_internal_settings_update_Context","__rtic_internal_settings_update_Monotonic_spawn_after","__rtic_internal_settings_update_Monotonic_spawn_at","__rtic_internal_settings_update_spawn","__rtic_internal_spi2_Context","__rtic_internal_spi3_Context","__rtic_internal_spi4_Context","__rtic_internal_spi5_Context","__rtic_internal_startLocalResources","__rtic_internal_start_Context","__rtic_internal_start_Monotonic_spawn_after","__rtic_internal_start_Monotonic_spawn_at","__rtic_internal_start_spawn","__rtic_internal_telemetryLocalResources","__rtic_internal_telemetrySharedResources","__rtic_internal_telemetry_Context","__rtic_internal_telemetry_Monotonic_spawn_after","__rtic_internal_telemetry_Monotonic_spawn_at","__rtic_internal_telemetry_spawn","adcs","adcs","afes","afes","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","core","cpu_temp_sensor","cpu_temp_sensor","cs","dacs","dacs","device","digital_inputs","digital_inputs","eth","eth","ethernet_link","ethernet_link","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","generator","generator","idle","idle","iir_state","iir_state","init","init","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","local","local","local","local","monotonics","network","network","network","network","network","process","process","sampling_timer","sampling_timer","settings","settings","settings","settings","settings_update","settings_update","shared","shared","shared","shared","shared","shared_resources","signal_generator","signal_generator","signal_generator","spi2","spi2","spi3","spi3","spi4","spi4","spi5","spi5","start","start","telemetry","telemetry","telemetry","telemetry","telemetry","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","Context","Context","SharedResources","SpawnHandle","network","shared","spawn","spawn_after","spawn_at","Context","SharedResources","network","shared","Context","Monotonics","core","cs","device","Monotonic","now","now","Context","LocalResources","SharedResources","adcs","dacs","digital_inputs","generator","iir_state","local","settings","shared","signal_generator","telemetry","Context","LocalResources","SharedResources","SpawnHandle","afes","local","network","settings","shared","signal_generator","spawn","spawn_after","spawn_at","Context","Context","Context","Context","Context","LocalResources","SpawnHandle","local","sampling_timer","spawn","spawn_after","spawn_at","Context","LocalResources","SharedResources","SpawnHandle","cpu_temp_sensor","local","network","settings","shared","spawn","spawn_after","spawn_at","telemetry"],"q":[[0,"dual_iir"],[29,"dual_iir::app"],[324,"dual_iir::app::eth"],[325,"dual_iir::app::ethernet_link"],[333,"dual_iir::app::idle"],[337,"dual_iir::app::init"],[342,"dual_iir::app::monotonics"],[344,"dual_iir::app::monotonics::Monotonic"],[345,"dual_iir::app::process"],[358,"dual_iir::app::settings_update"],[371,"dual_iir::app::spi2"],[372,"dual_iir::app::spi3"],[373,"dual_iir::app::spi4"],[374,"dual_iir::app::spi5"],[375,"dual_iir::app::start"],[383,"dual_iir::app::telemetry"]],"d":["","","","","","","","Configure the Analog Front End (AFE) gain.","Specified true if DI1 should be used as a “hold” input.","The RTIC application module","","","","","","Specified true if “hold” should be forced regardless …","Returns the argument unchanged.","","Configure the IIR filter parameters.","Calls U::from(self).","","","","Specifies the config for signal generators to add on to …","Specifies the target for data livestreaming.","Specifies the telemetry output period in seconds.","","","","Priority ceiling","Priority ceiling","Priority ceiling","Priority ceiling","Interrupt handler to dispatch tasks at priority 1","User HW task ISR trampoline for process","User HW task ISR trampoline for eth","RTIC local resource struct","User code from within the module","","","","The priority of this interrupt handler","","","","","User HW task ISR trampoline for spi2","User HW task ISR trampoline for spi3","User HW task ISR trampoline for spi4","User HW task ISR trampoline for spi5","RTIC shared resource struct","","","Monotonics used by the system","Execution context","Shared resources ethernet_link has access to","Execution context","Spawns the task after a set duration relative to the …","Spawns the task at a fixed time instant","Spawns the task directly","Shared resources idle has access to","Execution context","Execution context","Local resources process has access to","Shared resources process has access to","Execution context","Local resources settings_update has access to","Shared resources settings_update has access to","Execution context","Spawns the task after a set duration relative to the …","Spawns the task at a fixed time instant","Spawns the task directly","Execution context","Execution context","Execution context","Execution context","Local resources start has access to","Execution context","Spawns the task after a set duration relative to the …","Spawns the task at a fixed time instant","Spawns the task directly","Local resources telemetry has access to","Shared resources telemetry has access to","Execution context","Spawns the task after a set duration relative to the …","Spawns the task at a fixed time instant","Spawns the task directly","","Local resource adcs","","Local resource afes","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Core (Cortex-M) peripherals","","Local resource cpu_temp_sensor","Critical section token for init","","Local resource dacs","Device peripherals","","Local resource digital_inputs","Hardware task","User HW task: eth","Software task","User SW task ethernet_link","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Local resource generator","Idle loop","User provided idle function","","Local resource iir_state","Initialization function","User code end User provided init function","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Local Resources this task has access to","Local Resources this task has access to","Local Resources this task has access to","Local Resources this task has access to","Holds static methods for each monotonic.","","Resource proxy resource network. Use method .lock() to …","Resource proxy resource network. Use method .lock() to …","Resource proxy resource network. Use method .lock() to …","Resource proxy resource network. Use method .lock() to …","Hardware task","User HW task: process","","Local resource sampling_timer","","Resource proxy resource settings. Use method .lock() to …","Resource proxy resource settings. Use method .lock() to …","Resource proxy resource settings. Use method .lock() to …","Software task","User SW task settings_update","Shared Resources this task has access to","Shared Resources this task has access to","Shared Resources this task has access to","Shared Resources this task has access to","Shared Resources this task has access to","","","Resource proxy resource signal_generator. Use method …","Resource proxy resource signal_generator. Use method …","Hardware task","User HW task: spi2","Hardware task","User HW task: spi3","Hardware task","User HW task: spi4","Hardware task","User HW task: spi5","Software task","User SW task start","Software task","User SW task telemetry","","Resource proxy resource telemetry. Use method .lock() to …","Resource proxy resource telemetry. Use method .lock() to …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Execution context","Execution context","Shared resources ethernet_link has access to","","Resource proxy resource network. Use method .lock() to …","Shared Resources this task has access to","Spawns the task directly","","","Execution context","Shared resources idle has access to","Resource proxy resource network. Use method .lock() to …","Shared Resources this task has access to","Execution context","Monotonics used by the system","Core (Cortex-M) peripherals","Critical section token for init","Device peripherals","This module holds the static implementation for …","","Read the current time from this monotonic","Execution context","Local resources process has access to","Shared resources process has access to","Local resource adcs","Local resource dacs","Local resource digital_inputs","Local resource generator","Local resource iir_state","Local Resources this task has access to","Resource proxy resource settings. Use method .lock() to …","Shared Resources this task has access to","Resource proxy resource signal_generator. Use method …","Resource proxy resource telemetry. Use method .lock() to …","Execution context","Local resources settings_update has access to","Shared resources settings_update has access to","","Local resource afes","Local Resources this task has access to","Resource proxy resource network. Use method .lock() to …","Resource proxy resource settings. Use method .lock() to …","Shared Resources this task has access to","Resource proxy resource signal_generator. Use method …","Spawns the task directly","","","Execution context","Execution context","Execution context","Execution context","Execution context","Local resources start has access to","","Local Resources this task has access to","Local resource sampling_timer","Spawns the task directly","","","Execution context","Local resources telemetry has access to","Shared resources telemetry has access to","","Local resource cpu_temp_sensor","Local Resources this task has access to","Resource proxy resource network. Use method .lock() to …","Resource proxy resource settings. Use method .lock() to …","Shared Resources this task has access to","Spawns the task directly","","","Resource proxy resource telemetry. Use method .lock() to …"],"i":[0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,27,26,28,29,26,30,17,31,15,27,32,18,13,20,21,22,23,33,24,28,34,19,35,36,25,37,14,29,26,30,17,31,15,27,32,18,13,20,21,22,23,33,24,28,34,19,35,36,25,37,14,17,26,35,17,26,27,17,26,27,0,0,0,0,29,26,30,17,31,15,27,32,18,13,20,21,22,23,33,24,28,34,19,35,36,25,37,14,26,27,0,0,26,27,0,0,29,26,30,17,31,15,27,32,18,13,20,21,22,23,33,24,28,34,19,35,36,25,37,14,18,24,19,25,0,29,31,34,36,37,0,0,26,33,29,32,34,36,0,0,15,18,19,25,14,0,29,32,34,0,0,0,0,0,0,0,0,0,0,0,0,29,32,36,29,26,30,17,31,15,27,32,18,13,20,21,22,23,33,24,28,34,19,35,36,25,37,14,29,26,30,17,31,15,27,32,18,13,20,21,22,23,33,24,28,34,19,35,36,25,37,14,29,26,30,17,31,15,27,32,18,13,20,21,22,23,33,24,28,34,19,35,36,25,37,14,0,0,0,0,37,14,0,0,0,0,0,31,15,0,0,17,17,17,0,0,0,0,0,0,27,27,27,27,27,18,32,18,32,32,0,0,0,0,28,19,34,34,19,34,0,0,0,0,0,0,0,0,0,0,24,33,0,0,0,0,0,0,0,35,25,36,36,25,0,0,0,36],"f":[0,0,0,0,0,0,0,0,0,0,[[]],[[]],[1,1],[[],1],[[1,2],3],0,[[]],[[1,4],[[7,[5,6]]]],0,[[]],[[],8],[9,[[7,[10,11]]]],[[1,4],[[7,[5,6]]]],0,0,0,[[],7],[[],7],[[],12],0,0,0,0,[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],0,[[]],0,0,0,0,0,[[],[[7,[0]]]],[[],[[7,[0]]]],[[],7],0,0,0,0,0,0,0,0,0,[[],[[7,[0]]]],[[],[[7,[0]]]],[[],7],0,0,0,0,0,0,[[],[[7,[0]]]],[[],[[7,[0]]]],[[],7],0,0,0,[[],[[7,[0]]]],[[],[[7,[0]]]],[[],7],0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,[13],0,[14],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[15,16],0,0,0,[17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,[18],0,0,0,0,0,0,0,[19],0,0,0,0,0,0,0,0,0,0,[20],0,[21],0,[22],0,[23],0,[24],0,[25],0,0,0,[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],7],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],0,0,0,0,0,0,[[],7],0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],7],0,0,0,0,0,0,0,0,0,0,0,[[],7],0,0,0,0,0,0,0,0,0,0,0,[[],7],0,0,0],"c":[],"p":[[3,"Settings"],[3,"Formatter"],[6,"Result"],[8,"Peekable"],[15,"usize"],[4,"Error"],[4,"Result"],[3,"Metadata"],[3,"String"],[15,"bool"],[4,"IterError"],[3,"TypeId"],[3,"__rtic_internal_eth_Context"],[3,"__rtic_internal_ethernet_link_Context"],[3,"__rtic_internal_idle_Context"],[15,"never"],[3,"__rtic_internal_init_Context"],[3,"__rtic_internal_process_Context"],[3,"__rtic_internal_settings_update_Context"],[3,"__rtic_internal_spi2_Context"],[3,"__rtic_internal_spi3_Context"],[3,"__rtic_internal_spi4_Context"],[3,"__rtic_internal_spi5_Context"],[3,"__rtic_internal_start_Context"],[3,"__rtic_internal_telemetry_Context"],[3,"Local"],[3,"__rtic_internal_processLocalResources"],[3,"__rtic_internal_settings_updateLocalResources"],[3,"Shared"],[3,"__rtic_internal_Monotonics"],[3,"__rtic_internal_idleSharedResources"],[3,"__rtic_internal_processSharedResources"],[3,"__rtic_internal_startLocalResources"],[3,"__rtic_internal_settings_updateSharedResources"],[3,"__rtic_internal_telemetryLocalResources"],[3,"__rtic_internal_telemetrySharedResources"],[3,"__rtic_internal_ethernet_linkSharedResources"]]},\ +"idsp":{"doc":"","t":"DDIDDIDDDFKLLLLLLLLLLLLLKLLFLLLLLLLLLLLLLLLLLLLLLLFFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLKLLLLLLLLLLLLLLLLLLLAAMLLLLLLLLLLLLLLLLLLKLFFLLLLLLLLLLLLLLLLKLLLLLLLLLLLLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLLLLKLFKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDGMLLLLLLLLLLLLLLLLLLMMMDSGMLLLLLLLLLLLLLMMM","n":["Accu","Complex","ComplexExt","Lockin","Lowpass","MulScaled","PLL","RPLL","Unwrapper","abs","abs_sqr","abs_sqr","add","add","add","add","add","add","add","add","add_assign","add_assign","add_assign","add_assign","arg","arg","as_","atan2","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","conj","copysign","cossin","default","default","default","default","default","default","default","deserialize","deserialize","deserialize","div","div","div","div","div","div","div","div","div_assign","div_assign","div_assign","div_assign","eq","eq","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","frequency","frequency","from","from","from","from","from","from","from","from","from","from","from_angle","from_angle","from_f32","from_f64","from_i128","from_i16","from_i32","from_i64","from_i8","from_isize","from_str","from_str_radix","from_u128","from_u16","from_u32","from_u64","from_u8","from_usize","hash","i","iir","iir_int","im","into","into","into","into","into","into","into","into_iter","inv","inv","inv","is_finite","is_infinite","is_nan","is_normal","is_one","is_zero","l1_norm","log2","log2","macc","macc_i32","mul","mul","mul","mul","mul","mul","mul","mul","mul_add","mul_add","mul_add_assign","mul_add_assign","mul_assign","mul_assign","mul_assign","mul_assign","mul_scaled","mul_scaled","mul_scaled","mul_scaled","neg","neg","new","new","new","next","norm_sqr","one","output","overflowing_sub","phase","phase","phase","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","pow","powi","powu","product","product","re","rem","rem","rem","rem","rem","rem","rem","rem","rem_assign","rem_assign","rem_assign","rem_assign","saturating_add","saturating_add","saturating_scale","saturating_sub","saturating_sub","scale","serialize","serialize","serialize","set_one","set_zero","sub","sub","sub","sub","sub","sub","sub","sub","sub_assign","sub_assign","sub_assign","sub_assign","sum","sum","to_f32","to_f64","to_i128","to_i16","to_i32","to_i64","to_i8","to_isize","to_u128","to_u16","to_u32","to_u64","to_u8","to_usize","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unscale","update","update","update","update","update","update_iq","wraps","zero","IIR","Vec5","ba","borrow","borrow_mut","clone","default","deserialize","fmt","from","get_k","get_x_offset","into","new","serialize","set_pi","set_x_offset","try_from","try_into","type_id","update","y_max","y_min","y_offset","IIR","SHIFT","Vec5","ba","borrow","borrow_mut","clone","default","deserialize","fmt","from","into","serialize","try_from","try_into","type_id","update","y_max","y_min","y_offset"],"q":[[0,"idsp"],[285,"idsp::iir"],[309,"idsp::iir_int"]],"d":["","A complex number in Cartesian form.","Complex extension trait offering DSP (fast, good accuracy) …","","Arbitrary order, high dynamic range, wide coefficient …","Full scale fixed point multiplication.","Type-II, sampled phase, discrete time PLL","Reciprocal PLL.","Overflow unwrapper.","","","Return the absolute square (the squared magnitude).","","","","","","","","","","","","","","Return the angle.","","2-argument arctangent function.","","","","","","","","","","","","","","","","","","","","","","Returns the complex conjugate. i.e. re - i im","","Compute the cosine and sine of an angle. This is ported …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Return the current frequency estimate","Return the current frequency estimate","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","Returns the argument unchanged.","","Return a Complex on the unit circle given an angle.","","","","","","","","","Parses a +/- bi; ai +/- b; a; or bi where a and b are of …","Parses a +/- bi; ai +/- b; a; or bi where a and b are of …","","","","","","","","Returns imaginary unit","","","Imaginary portion of the complex number","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Returns 1/self","","","Checks if the given complex number is finite","Checks if the given complex number is infinite","Checks if the given complex number is NaN","Checks if the given complex number is normal","","","Returns the L1 norm |re| + |im| – the Manhattan distance …","","log2(power) re full scale approximation","","","","","","","","","","","","","","","","","","","","","","","","","","Create a new RPLL instance.","Create a new Complex","","Returns the square of the norm (since T doesn’t …","","Return the current filter output","Subtract y - x with signed overflow.","Return the current phase estimate","Return the current phase estimate","Return the last known phase","","","","","","","","","","","","","","","","","","","","","","","","","Raises self to a signed integer power.","Raises self to an unsigned integer power.","","","Real portion of the complex number","","","","","","","","","","","","","","","Combine high and low i32 into a single downscaled i32, …","","","Multiplies self by the scalar t.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Divides self by the scalar t.","Update the lockin with a sample taken at a given phase.","Update the filter with a new sample.","Update the PLL with a new phase sample. This needs to be …","Advance the RPLL and optionally supply a new timestamp.","Unwrap a new sample from a sequence and update the …","Update the lockin with a sample taken at a local …","Return the current number of wraps","","IIR configuration.","IIR state and coefficients type.","","","","","","","","Returns the argument unchanged.","Compute the overall (DC feed-forward) gain.","","Calls U::from(self).","","","Configures IIR filter coefficients for …","Convert input (x) offset to equivalent output (y) offset …","","","","Feed a new input value into the filter, update the filter …","","","","Integer biquad IIR","Coefficient fixed point format: signed Q2.30. Tailored to …","Generic vector for integer IIR filter. This struct is used …","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","Feed a new input value into the filter, update the filter …","","",""],"i":[0,0,0,0,0,0,0,0,0,0,73,5,5,5,5,5,5,5,5,5,5,5,5,5,73,5,5,0,12,13,14,15,16,17,5,12,13,14,15,16,17,5,12,13,14,15,16,17,5,5,0,0,12,13,14,15,16,17,5,15,17,5,5,5,5,5,5,5,5,5,5,5,5,5,12,5,12,5,5,5,5,5,5,5,5,15,16,12,13,14,15,16,17,5,5,5,5,73,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,0,0,5,12,13,14,15,16,17,5,12,5,5,5,5,5,5,5,5,5,5,73,5,0,0,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,74,5,5,5,5,5,12,16,5,12,5,5,14,0,15,16,17,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,73,5,0,73,5,5,15,17,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,12,13,14,15,16,17,5,12,13,14,15,16,17,5,12,13,14,15,16,17,5,5,13,14,15,16,17,13,17,5,0,0,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,0,71,0,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71],"f":[0,0,0,0,0,0,0,0,0,[[[0,[1,2,3]]],[[0,[1,2,3]]]],[[]],[[[5,[4]]],6],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[]],[[[5,[4]]],4],[[[5,[[11,[10]]]]],10],[[4,4],4],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[12,[7]]],[[12,[7]]]],[13,13],[14,14],[15,15],[16,16],[[[17,[7]]],[[17,[7]]]],[[[5,[7]]],[[5,[7]]]],[[[5,[[0,[7,8,3]]]]],[[5,[[0,[7,8,3]]]]]],[[[0,[1,2,3]],[0,[1,2,3]]],[[0,[1,2,3]]]],[4],[[],[[12,[2]]]],[[],13],[[],14],[[],15],[[],16],[[],[[17,[2]]]],[[],[[5,[2]]]],[18,[[19,[15]]]],[18,[[19,[[17,[20]]]]]],[18,[[19,[[5,[[0,[20,8,7]]]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[12,[21]],[12,[21]]],22],[[[5,[[21,[[21,[[21,[21]]]]]]]],[5,[[21,[[21,[[21,[21]]]]]]]]],22],[[[12,[23]],24],25],[[[5,[[0,[26,8,[1,[[0,[26,8,[1,[[0,[26,8,[1,[[0,[26,8,1,7]]]],7]]]],7]]]],7]]]],24],[[19,[27]]]],[[[5,[[0,[28,8,[1,[[0,[28,8,[1,[[0,[28,8,[1,[[0,[28,8,1,7]]]],7]]]],7]]]],7]]]],24],[[19,[27]]]],[[[5,[[0,[29,8,[1,[[0,[29,8,[1,[[0,[29,8,[1,[[0,[29,8,1,7]]]],7]]]],7]]]],7]]]],24],[[19,[27]]]],[[[5,[[0,[30,8,[1,[[0,[30,8,[1,[[0,[30,8,[1,[[0,[30,8,1,7]]]],7]]]],7]]]],7]]]],24],[[19,[27]]]],[[[5,[[0,[31,8,[1,[[0,[31,8,[1,[[0,[31,8,[1,[[0,[31,8,1,7]]]],7]]]],7]]]],7]]]],24],[[19,[27]]]],[[[5,[[0,[32,8,[1,[[0,[32,8,[1,[[0,[32,8,[1,[[0,[32,8,1,7]]]],7]]]],7]]]],7]]]],24],[[19,[27]]]],[[[5,[[0,[33,8,[1,[[0,[33,8,[1,[[0,[33,8,[1,[[0,[33,8,1,7]]]],7]]]],7]]]],7]]]],24],[[19,[27]]]],[[[5,[23]],24],[[19,[27]]]],[15,4],[16,6],[[]],[[]],[[]],[[]],[[]],[[]],[[[0,[7,8]]],[[5,[[0,[7,8]]]]]],[[[0,[7,8]]],[[5,[[0,[7,8]]]]]],[34,[[36,[[5,[[0,[35,8]]]]]]]],[[]],[[]],[4,[[5,[4]]]],[37,[[36,[[5,[[0,[38,8]]]]]]]],[39,[[36,[[5,[[0,[38,8]]]]]]]],[40,[[36,[[5,[[0,[38,8]]]]]]]],[41,[[36,[[5,[[0,[38,8]]]]]]]],[4,[[36,[[5,[[0,[38,8]]]]]]]],[42,[[36,[[5,[[0,[38,8]]]]]]]],[43,[[36,[[5,[[0,[38,8]]]]]]]],[44,[[36,[[5,[[0,[38,8]]]]]]]],[45,[[19,[[5,[[0,[46,8,7]]]]]]]],[[45,6],[[19,[[5,[[0,[8,7]]]]]]]],[47,[[36,[[5,[[0,[38,8]]]]]]]],[48,[[36,[[5,[[0,[38,8]]]]]]]],[6,[[36,[[5,[[0,[38,8]]]]]]]],[49,[[36,[[5,[[0,[38,8]]]]]]]],[50,[[36,[[5,[[0,[38,8]]]]]]]],[51,[[36,[[5,[[0,[38,8]]]]]]]],[[[5,[52]],53]],[[],[[5,[[0,[7,8]]]]]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[5,[[0,[7,8,3]]]]],[[5,[[0,[7,8,3]]]]]],[[[5,[[0,[7,8,3]]]]]],[[[5,[[0,[7,8,3]]]]]],[[[5,[54]]],22],[[[5,[54]]],22],[[[5,[54]]],22],[[[5,[54]]],22],[[[5,[[0,[7,8]]]]],22],[[[5,[[0,[7,8]]]]],22],[[[5,[[0,[7,55]]]]],[[0,[7,55]]]],[[]],[[[5,[4]]],4],[[[0,[56,57,10]]],[[0,[56,57,10]]]],[[4,6],4],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]],[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]]]]]]]],[5,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]],[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]]]]]]]],[5,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]],[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]]]]]]]]],[[5,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]],[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]]]]]]]]]],[[[5,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]],[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]]]]]]]],[5,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]],[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]]]]]]]],[5,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]],[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]]]]]]]]],[[5,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]],[0,[7,8,[58,[[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]],[0,[7,8,[58,[[0,[7,8,58]],[0,[7,8,58]]]]]]]]]]]]]]]]]],[[[5,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]],[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]]]]]]]],[5,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]],[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]]]]]]]],[5,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]],[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]]]]]]]]]],[[[5,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]],[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]]]]]]]],[5,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]],[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]]]]]]]],[5,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]],[0,[7,9,[59,[[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]],[0,[7,9,[59,[[0,[7,9,59]],[0,[7,9,59]]]]]]]]]]]]]]]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[]],[[[5,[4]],4],[[5,[4]]]],[[[5,[4]],[5,[4]]],[[5,[4]]]],[[[5,[4]],41],[[5,[4]]]],[[[5,[[0,[7,8,3]]]]]],[[[5,[[0,[7,8,3]]]]]],[[],12],[6,16],[[],5],[[[12,[[0,[60,10]]]]],[[36,[[0,[60,10]]]]]],[[[5,[[0,[7,8]]]]],[[0,[7,8]]]],[[],[[5,[[0,[7,8]]]]]],[14,4],[[[0,[61,62,1]],[0,[61,62,1]]]],[15,4],[16,4],[[[17,[[0,[61,62,1,10]]]]],[[0,[61,62,1,10]]]],[[[5,[[0,[7,8,3]]]],42]],[[[5,[[0,[7,8]]]],47]],[[[5,[[0,[7,8]]]],48]],[[[5,[[0,[7,8,3]]]],41]],[[[5,[[0,[7,8,3]]]],44]],[[[5,[[0,[7,8,3]]]],43]],[[[5,[[0,[7,8,3]]]],42]],[[[5,[[0,[7,8]]]],49]],[[[5,[[0,[7,8,3]]]],41]],[[[5,[[0,[7,8,3]]]],44]],[[[5,[[0,[7,8,3]]]],40]],[[[5,[[0,[7,8,3]]]],4]],[[[5,[[0,[7,8]]]],47]],[[[5,[[0,[7,8,3]]]],4]],[[[5,[[0,[7,8]]]],6]],[[[5,[[0,[7,8]]]],48]],[[[5,[[0,[7,8]]]],51]],[[[5,[[0,[7,8,3]]]],40]],[[[5,[[0,[7,8]]]],6]],[[[5,[[0,[7,8]]]],49]],[[[5,[[0,[7,8]]]],51]],[[[5,[[0,[7,8]]]],50]],[[[5,[[0,[7,8]]]],50]],[[[5,[[0,[7,8,3]]]],43]],[[[5,[[0,[7,8,3]]]],4],[[5,[[0,[7,8,3]]]]]],[[[5,[[0,[7,8]]]],6],[[5,[[0,[7,8]]]]]],[63,[[5,[[0,[8,7]]]]]],[63,[[5,[[0,[8,7]]]]]],0,[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[]],[[[5,[4]],[5,[4]]],[[5,[4]]]],[[4,4,6],4],[[]],[[[5,[4]],[5,[4]]],[[5,[4]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]],[[5,[[0,[7,8]]]]]],[[15,64],19],[[[17,[65]],64],19],[[[5,[65]],64],19],[[[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[0,[7,8]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,8]]]],[5,[[0,[7,8]]]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[5,[[0,[7,9]]]],[0,[7,9]]]],[[[5,[[0,[7,9]]]],[5,[[0,[7,9]]]]]],[63,[[5,[[0,[8,7]]]]]],[63,[[5,[[0,[8,7]]]]]],[[[5,[[0,[34,8]]]]],[[36,[37]]]],[[[5,[[0,[34,8]]]]],[[36,[39]]]],[[[5,[[0,[34,8]]]]],[[36,[40]]]],[[[5,[[0,[34,8]]]]],[[36,[41]]]],[[[5,[[0,[34,8]]]]],[[36,[4]]]],[[[5,[[0,[34,8]]]]],[[36,[42]]]],[[[5,[[0,[34,8]]]]],[[36,[43]]]],[[[5,[[0,[34,8]]]]],[[36,[44]]]],[[[5,[[0,[34,8]]]]],[[36,[47]]]],[[[5,[[0,[34,8]]]]],[[36,[48]]]],[[[5,[[0,[34,8]]]]],[[36,[6]]]],[[[5,[[0,[34,8]]]]],[[36,[49]]]],[[[5,[[0,[34,8]]]]],[[36,[50]]]],[[[5,[[0,[34,8]]]]],[[36,[51]]]],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],66],[[],66],[[],66],[[],66],[[],66],[[],66],[[],66],[[[5,[[0,[7,8]]]],[0,[7,8]]],[[5,[[0,[7,8]]]]]],[[13,4,4,6],[[5,[4]]]],[[14,4,6],4],[[15,[36,[4]],6,6]],[[16,[36,[4]],6,6]],[[[17,[[0,[61,62,1,10]]]],[0,[61,62,1,10]]]],[[13,4,[5,[4]],6],[[5,[4]]]],[[[17,[[0,[61,62,1,10]]]]],4],[[],[[5,[[0,[7,8]]]]]],0,0,0,[[]],[[]],[[[67,[7]]],[[67,[7]]]],[[],[[67,[2]]]],[18,[[19,[[67,[20]]]]]],[[[67,[23]],24],25],[[]],[[[67,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]],[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]]]],[[[67,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]],[[19,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]],45]]]],[[]],[[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]],[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]],[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]]],[[67,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]],[[[67,[65]],64],19],[[[67,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]],[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]],[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]],[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]]],[[19,[45]]]],[[[67,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]],[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]]]],[[],19],[[],19],[[],66],[[[67,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]],[70,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]],[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]],22],[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,[69,[[0,[68,2,69]]]]]]]]]]]]]]]]]]]],0,0,0,0,0,0,0,[[]],[[]],[71,71],[[],71],[18,[[19,[71]]]],[[71,24],25],[[]],[[]],[[71,64],19],[[],19],[[],19],[[],66],[[71,72,4],4],0,0,0],"c":[],"p":[[8,"PartialOrd"],[8,"Default"],[8,"Neg"],[15,"i32"],[3,"Complex"],[15,"u32"],[8,"Clone"],[8,"Num"],[8,"NumAssign"],[8,"Copy"],[8,"AsPrimitive"],[3,"Accu"],[3,"Lockin"],[3,"Lowpass"],[3,"PLL"],[3,"RPLL"],[3,"Unwrapper"],[8,"Deserializer"],[4,"Result"],[8,"Deserialize"],[8,"PartialEq"],[15,"bool"],[8,"Debug"],[3,"Formatter"],[6,"Result"],[8,"Binary"],[3,"Error"],[8,"LowerHex"],[8,"UpperExp"],[8,"Display"],[8,"UpperHex"],[8,"Octal"],[8,"LowerExp"],[8,"ToPrimitive"],[8,"NumCast"],[4,"Option"],[15,"f32"],[8,"FromPrimitive"],[15,"f64"],[15,"i128"],[15,"i16"],[15,"i64"],[15,"i8"],[15,"isize"],[15,"str"],[8,"FromStr"],[15,"u128"],[15,"u16"],[15,"u64"],[15,"u8"],[15,"usize"],[8,"Hash"],[8,"Hasher"],[8,"FloatCore"],[8,"Signed"],[8,"Add"],[8,"Mul"],[8,"MulAdd"],[8,"MulAddAssign"],[8,"WrappingAdd"],[8,"WrappingSub"],[8,"Zero"],[8,"Iterator"],[8,"Serializer"],[8,"Serialize"],[3,"TypeId"],[3,"IIR"],[8,"Float"],[8,"Sum"],[6,"Vec5"],[3,"IIR"],[6,"Vec5"],[8,"ComplexExt"],[8,"MulScaled"]]},\ +"lockin":{"doc":"Lockin","t":"RRENNNENNNNNNRRDMALLLLLLLLLLLLLLLLLLLLLLLMMMMLLMMLLLMMLLLLLLLLLRRRFFFDGRRRRDFCDDDDFFFDDDDDDDDDFFFDDFFFDDDFFFMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMAFAFLLLLLLLLLLLLLLLLLLLLMMAFAFLLLLLLLLLLLLLLLLLLLLMMMMMMAMMMMMMMAFMMMMMMAFMMMMMAMMAFAFMMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDDDCMMFCCDDMMDDMMMACFDDDMMMMMMMMMMMDDDCMMMMMFCCDDCMMFCCDDDCMMMMMMFCCM","n":["BATCH_SIZE","BATCH_SIZE_LOG2","Conf","External","InPhase","Internal","LockinMode","LogPower","Magnitude","Modulation","Phase","Quadrature","ReferenceFrequency","SAMPLE_TICKS","SAMPLE_TICKS_LOG2","Settings","afe","app","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","default","deserialize","deserialize","eq","fmt","fmt","fmt","from","from","from","get_path","into","into","into","lockin_harmonic","lockin_mode","lockin_phase","lockin_tc","metadata","next_path","output_conf","pll_tc","serialize","serialize","set_path","stream_target","telemetry_period","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","CEILING","CEILING","CEILING","DCMI","DMA1_STR4","ETH","Local","Monotonic","N","PRIORITY","PRIORITY","PRIORITY","Shared","SysTick","_","__rtic_internal_Monotonics","__rtic_internal_eth_Context","__rtic_internal_ethernet_linkSharedResources","__rtic_internal_ethernet_link_Context","__rtic_internal_ethernet_link_Monotonic_spawn_after","__rtic_internal_ethernet_link_Monotonic_spawn_at","__rtic_internal_ethernet_link_spawn","__rtic_internal_idleSharedResources","__rtic_internal_idle_Context","__rtic_internal_init_Context","__rtic_internal_processLocalResources","__rtic_internal_processSharedResources","__rtic_internal_process_Context","__rtic_internal_settings_updateLocalResources","__rtic_internal_settings_updateSharedResources","__rtic_internal_settings_update_Context","__rtic_internal_settings_update_Monotonic_spawn_after","__rtic_internal_settings_update_Monotonic_spawn_at","__rtic_internal_settings_update_spawn","__rtic_internal_startLocalResources","__rtic_internal_start_Context","__rtic_internal_start_Monotonic_spawn_after","__rtic_internal_start_Monotonic_spawn_at","__rtic_internal_start_spawn","__rtic_internal_telemetryLocalResources","__rtic_internal_telemetrySharedResources","__rtic_internal_telemetry_Context","__rtic_internal_telemetry_Monotonic_spawn_after","__rtic_internal_telemetry_Monotonic_spawn_at","__rtic_internal_telemetry_spawn","adcs","adcs","afes","afes","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","core","cpu_temp_sensor","cpu_temp_sensor","cs","dacs","dacs","device","digital_inputs","digital_inputs","eth","eth","ethernet_link","ethernet_link","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","generator","generator","idle","idle","init","init","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","local","local","local","local","lockin","lockin","monotonics","network","network","network","network","network","pll","pll","process","process","sampling_timer","sampling_timer","settings","settings","settings","settings","settings_update","settings_update","shared","shared","shared","shared","shared","shared_resources","signal_generator","signal_generator","start","start","telemetry","telemetry","telemetry","telemetry","telemetry","timestamper","timestamper","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","Context","Context","SharedResources","SpawnHandle","network","shared","spawn","spawn_after","spawn_at","Context","SharedResources","network","shared","Context","Monotonics","core","cs","device","Monotonic","now","now","Context","LocalResources","SharedResources","adcs","dacs","generator","local","lockin","pll","settings","shared","signal_generator","telemetry","timestamper","Context","LocalResources","SharedResources","SpawnHandle","afes","local","network","settings","shared","spawn","spawn_after","spawn_at","Context","LocalResources","SpawnHandle","local","sampling_timer","spawn","spawn_after","spawn_at","Context","LocalResources","SharedResources","SpawnHandle","cpu_temp_sensor","digital_inputs","local","network","settings","shared","spawn","spawn_after","spawn_at","telemetry"],"q":[[0,"lockin"],[63,"lockin::app"],[312,"lockin::app::eth"],[313,"lockin::app::ethernet_link"],[321,"lockin::app::idle"],[325,"lockin::app::init"],[330,"lockin::app::monotonics"],[332,"lockin::app::monotonics::Monotonic"],[333,"lockin::app::process"],[347,"lockin::app::settings_update"],[359,"lockin::app::start"],[367,"lockin::app::telemetry"]],"d":["","","","Utilize an external modulation signal supplied to DI0","Output the in-phase component of the lockin signal.","Utilize an internally generated reference for demodulation","","Output the logarithmic power of the lockin","Output the lockin magnitude.","Output the lockin internal modulation frequency as a …","Output the phase of the lockin","Output the quadrature component of the lockin signal.","Output the lockin reference frequency as a sinusoid","","","","Configure the Analog Front End (AFE) gain.","The RTIC application module","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Specifies which harmonic to use for the lockin.","Specifies the operational mode of the lockin.","Specifies the LO phase offset.","Specifies the lockin time constant.","","","Specifies DAC output mode.","Specifis the PLL time constant.","","","","Specifies the target for data livestreaming.","Specifies the telemetry output period in seconds.","","","","","","","","","","Priority ceiling","Priority ceiling","Priority ceiling","Interrupt handler to dispatch tasks at priority 1","User HW task ISR trampoline for process","User HW task ISR trampoline for eth","RTIC local resource struct","User code from within the module","","","","The priority of this interrupt handler","RTIC shared resource struct","","","Monotonics used by the system","Execution context","Shared resources ethernet_link has access to","Execution context","Spawns the task after a set duration relative to the …","Spawns the task at a fixed time instant","Spawns the task directly","Shared resources idle has access to","Execution context","Execution context","Local resources process has access to","Shared resources process has access to","Execution context","Local resources settings_update has access to","Shared resources settings_update has access to","Execution context","Spawns the task after a set duration relative to the …","Spawns the task at a fixed time instant","Spawns the task directly","Local resources start has access to","Execution context","Spawns the task after a set duration relative to the …","Spawns the task at a fixed time instant","Spawns the task directly","Local resources telemetry has access to","Shared resources telemetry has access to","Execution context","Spawns the task after a set duration relative to the …","Spawns the task at a fixed time instant","Spawns the task directly","","Local resource adcs","","Local resource afes","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Core (Cortex-M) peripherals","","Local resource cpu_temp_sensor","Critical section token for init","","Local resource dacs","Device peripherals","","Local resource digital_inputs","Hardware task","User HW task: eth","Software task","User SW task ethernet_link","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Local resource generator","Idle loop","User provided idle function","Initialization function","User code end User provided init function","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Local Resources this task has access to","Local Resources this task has access to","Local Resources this task has access to","Local Resources this task has access to","","Local resource lockin","Holds static methods for each monotonic.","","Resource proxy resource network. Use method .lock() to …","Resource proxy resource network. Use method .lock() to …","Resource proxy resource network. Use method .lock() to …","Resource proxy resource network. Use method .lock() to …","","Local resource pll","Hardware task","User HW task: process","","Local resource sampling_timer","","Resource proxy resource settings. Use method .lock() to …","Resource proxy resource settings. Use method .lock() to …","Resource proxy resource settings. Use method .lock() to …","Software task","User SW task settings_update","Shared Resources this task has access to","Shared Resources this task has access to","Shared Resources this task has access to","Shared Resources this task has access to","Shared Resources this task has access to","","","Local resource signal_generator","Software task","User SW task start","Software task","User SW task telemetry","","Resource proxy resource telemetry. Use method .lock() to …","Resource proxy resource telemetry. Use method .lock() to …","","Local resource timestamper","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Execution context","Execution context","Shared resources ethernet_link has access to","","Resource proxy resource network. Use method .lock() to …","Shared Resources this task has access to","Spawns the task directly","","","Execution context","Shared resources idle has access to","Resource proxy resource network. Use method .lock() to …","Shared Resources this task has access to","Execution context","Monotonics used by the system","Core (Cortex-M) peripherals","Critical section token for init","Device peripherals","This module holds the static implementation for …","","Read the current time from this monotonic","Execution context","Local resources process has access to","Shared resources process has access to","Local resource adcs","Local resource dacs","Local resource generator","Local Resources this task has access to","Local resource lockin","Local resource pll","Resource proxy resource settings. Use method .lock() to …","Shared Resources this task has access to","Local resource signal_generator","Resource proxy resource telemetry. Use method .lock() to …","Local resource timestamper","Execution context","Local resources settings_update has access to","Shared resources settings_update has access to","","Local resource afes","Local Resources this task has access to","Resource proxy resource network. Use method .lock() to …","Resource proxy resource settings. Use method .lock() to …","Shared Resources this task has access to","Spawns the task directly","","","Execution context","Local resources start has access to","","Local Resources this task has access to","Local resource sampling_timer","Spawns the task directly","","","Execution context","Local resources telemetry has access to","Shared resources telemetry has access to","","Local resource cpu_temp_sensor","Local resource digital_inputs","Local Resources this task has access to","Resource proxy resource network. Use method .lock() to …","Resource proxy resource settings. Use method .lock() to …","Shared Resources this task has access to","Spawns the task directly","","","Resource proxy resource telemetry. Use method .lock() to …"],"i":[0,0,0,2,1,2,0,1,1,1,1,1,1,0,0,0,3,0,1,2,3,1,2,3,1,2,3,3,1,2,2,1,2,3,1,2,3,3,1,2,3,3,3,3,3,3,3,3,3,1,2,3,3,3,1,2,3,1,2,3,1,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,27,26,28,29,26,30,21,31,19,27,32,22,17,33,24,28,34,23,35,36,25,37,18,29,26,30,21,31,19,27,32,22,17,33,24,28,34,23,35,36,25,37,18,21,26,35,21,26,27,21,26,35,0,0,0,0,29,26,30,21,31,19,27,32,22,17,33,24,28,34,23,35,36,25,37,18,26,27,0,0,0,0,29,26,30,21,31,19,27,32,22,17,33,24,28,34,23,35,36,25,37,18,22,24,23,25,26,27,0,29,31,34,36,37,26,27,0,0,26,33,29,32,34,36,0,0,19,22,23,25,18,0,26,27,0,0,0,0,29,32,36,26,27,29,26,30,21,31,19,27,32,22,17,33,24,28,34,23,35,36,25,37,18,29,26,30,21,31,19,27,32,22,17,33,24,28,34,23,35,36,25,37,18,29,26,30,21,31,19,27,32,22,17,33,24,28,34,23,35,36,25,37,18,0,0,0,0,37,18,0,0,0,0,0,31,19,0,0,21,21,21,0,0,0,0,0,0,27,27,27,22,27,27,32,22,27,32,27,0,0,0,0,28,23,34,34,23,0,0,0,0,0,0,24,33,0,0,0,0,0,0,0,35,35,25,36,36,25,0,0,0,36],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[1,1],[2,2],[3,3],[[],3],[4,[[5,[1]]]],[4,[[5,[2]]]],[[2,2],6],[[1,7],8],[[2,7],8],[[3,7],8],[[]],[[]],[[]],[[3,9],[[5,[10,11]]]],[[]],[[]],[[]],0,0,0,0,[[],12],[13,[[5,[6,14]]]],0,0,[[1,15],5],[[2,15],5],[[3,9],[[5,[10,11]]]],0,0,[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],16],[[],16],[[],16],0,0,0,[[]],[[]],[[]],0,0,0,0,0,0,0,[[]],0,0,0,0,0,[[],[[5,[0]]]],[[],[[5,[0]]]],[[],5],0,0,0,0,0,0,0,0,0,[[],[[5,[0]]]],[[],[[5,[0]]]],[[],5],0,0,[[],[[5,[0]]]],[[],[[5,[0]]]],[[],5],0,0,0,[[],[[5,[0]]]],[[],[[5,[0]]]],[[],5],0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,[17],0,[18],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[19,20],0,[21],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[22],0,0,0,0,0,0,0,[23],0,0,0,0,0,0,0,0,0,[24],0,[25],0,0,0,0,0,[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],5],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],0,0,0,0,0,0,[[],5],0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],5],0,0,0,0,0,0,0,[[],5],0,0,0,0,0,0,0,0,0,0,0,0,[[],5],0,0,0],"c":[],"p":[[4,"Conf"],[4,"LockinMode"],[3,"Settings"],[8,"Deserializer"],[4,"Result"],[15,"bool"],[3,"Formatter"],[6,"Result"],[8,"Peekable"],[15,"usize"],[4,"Error"],[3,"Metadata"],[3,"String"],[4,"IterError"],[8,"Serializer"],[3,"TypeId"],[3,"__rtic_internal_eth_Context"],[3,"__rtic_internal_ethernet_link_Context"],[3,"__rtic_internal_idle_Context"],[15,"never"],[3,"__rtic_internal_init_Context"],[3,"__rtic_internal_process_Context"],[3,"__rtic_internal_settings_update_Context"],[3,"__rtic_internal_start_Context"],[3,"__rtic_internal_telemetry_Context"],[3,"Local"],[3,"__rtic_internal_processLocalResources"],[3,"__rtic_internal_settings_updateLocalResources"],[3,"Shared"],[3,"__rtic_internal_Monotonics"],[3,"__rtic_internal_idleSharedResources"],[3,"__rtic_internal_processSharedResources"],[3,"__rtic_internal_startLocalResources"],[3,"__rtic_internal_settings_updateSharedResources"],[3,"__rtic_internal_telemetryLocalResources"],[3,"__rtic_internal_telemetrySharedResources"],[3,"__rtic_internal_ethernet_linkSharedResources"]]},\ +"miniconf":{"doc":"Miniconf","t":"DNNEEDIYDDDNNNNNNINLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLCLLLLLLLLLLLLLLLLLLLLLLLLLKLLLLLCLLLLLLLLLLLLMMKLLCLLLKLLLLKCCLLKLLLLLLLLLLLLLLLLLLLLLLLLLLL","n":["Array","BadIndex","Deserialization","Error","IterError","Metadata","Miniconf","Miniconf","MiniconfIter","MqttClient","Option","PathAbsent","PathDepth","PathLength","PathNotFound","PathTooLong","PathTooShort","Peekable","Serialization","as_mut","as_mut","as_ref","as_ref","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","cmp","cmp","count","default","default","default","default","deref","deref","deref_mut","deref_mut","deserialize","embedded_time","eq","eq","eq","eq","eq","eq","fmt","fmt","fmt","fmt","fmt","fmt","force_republish","from","from","from","from","from","from","from","from","from","from","from","get","get_path","get_path","get_path","handled_update","hash","hash","heapless","into","into","into","into","into","into","into","into_iter","into_iter","into_iter","into_iter","iter_paths","max_depth","max_length","metadata","metadata","metadata","minimq","new","new","next","next_path","next_path","next_path","partial_cmp","partial_cmp","peek","serde","serde_json_core","serialize","set","set_path","set_path","set_path","settings","size_hint","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unchecked_iter_paths","update"],"q":[[0,"miniconf"]],"d":["An array that exposes each element through their Miniconf …","When indexing into an array, the index provided was out of …","The value provided for configuration could not be …","Errors that can occur when using the Miniconf API.","Errors that occur during iteration over topic paths.","Metadata about a Miniconf namespace.","Trait exposing serialization/deserialization of elements …","Derive the Miniconf trait for custom types.","An iterator over the paths in a Miniconf namespace.","MQTT settings interface.","An Option that exposes its value through their Miniconf …","The path does not exist at runtime.","The provided state vector is not long enough.","The provided topic length is not long enough.","The provided path wasn’t found in the structure.","The provided path was valid, but there was trailing data …","The provided path was valid, but did not specify a value …","Helper trait for core::iter::Peekable.","The value provided could not be serialized.","","","","","","","","","","","","","","","","","","","","","","","","","","","The number of paths.","","","","","","","","","","","","","","","","","","","","","","","Force republication of the current settings.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Retrieve a serialized value by path.","Serialize an element by path.","","","Update the MQTT interface and service the network. Pass …","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","Create an iterator of all possible paths.","The maximum path depth.","The maximum length of a path.","Get metadata about the paths in the namespace.","","","","Construct a new MQTT settings interface.","","","Get the next path in the namespace.","","","","","","","","","Update an element by path.","Deserialize an element by path.","","","Get the current settings from miniconf.","","","","","","","","","","","","","","","","","","","","","","","Create an iterator of all possible paths.","Update the settings from the network stack without any …"],"i":[0,7,7,0,0,0,0,0,0,0,0,7,8,8,7,7,7,0,7,1,2,1,2,25,1,6,2,7,8,9,25,1,6,2,7,8,9,1,6,2,7,8,9,1,2,9,1,6,2,9,1,2,1,2,2,0,1,6,2,7,8,9,1,6,2,7,8,9,25,25,1,1,6,2,2,7,7,7,8,9,22,22,1,2,25,1,2,0,25,1,6,2,7,8,9,1,1,1,6,22,9,9,22,1,2,0,25,6,6,22,1,2,1,2,30,0,0,2,22,22,1,2,25,6,25,1,6,2,7,8,9,25,1,6,2,7,8,9,25,1,6,2,7,8,9,22,25],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[1],[2,3],[1],[2,3],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[1,[4]]],[[1,[4]]]],[[[6,[[0,[4,5]]]]],[[6,[[0,[4,5]]]]]],[[[2,[4]]],[[2,[4]]]],[7,7],[8,8],[9,9],[[[1,[10]],[1,[10]]],11],[[[2,[10]],[2,[10]]],11],0,[[],[[1,[[0,[12,13]]]]]],[[],[[6,[5]]]],[[],[[2,[12]]]],[[],9],[1],[2],[1],[2],[14,[[16,[[2,[15]]]]]],0,[[[1,[17]],[1,[17]]],18],[[[6,[[0,[17,5]]]],[6,[[0,[17,5]]]]],18],[[[2,[17]],[2,[17]]],18],[[7,7],18],[[8,8],18],[[9,9],18],[[[1,[19]],20],21],[[[6,[[0,[19,5]]]],20],21],[[[2,[19]],20],21],[[7,20],21],[[8,20],21],[[9,20],21],[[[25,[[0,[22,4]],23,[0,[24,4]]]]]],[[]],[[]],[[],1],[[]],[[]],[3,2],[26,7],[27,7],[[]],[[]],[[]],[28,[[16,[29,7]]]],[30,[[16,[29,7]]]],[[[1,[22]],30],[[16,[29,7]]]],[[[2,[22]],30],[[16,[29,7]]]],[[[25,[[0,[22,4]],23,[0,[24,4]]]],31],[[16,[18,32]]]],[[[1,[33]],34]],[[[2,[33]],34]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[1],[1],[1],[[]],[[],[[16,[6,8]]]],0,0,[[],9],[[],9],[[],9],0,[[23,28,28,35,[0,[24,4]],[0,[22,4]]],[[16,[[25,[[0,[22,4]],23,[0,[24,4]]]],32]]]],[[[3,[29]]],[[6,[5]]]],[[[6,[[0,[22,5]]]]],3],[36,[[16,[18,8]]]],[36,[[16,[18,8]]]],[36,[[16,[18,8]]]],[[[1,[37]],[1,[37]]],[[3,[11]]]],[[[2,[37]],[2,[37]]],[[3,[11]]]],[[],3],0,0,[[[2,[38]],39],16],[28,[[16,[29,7]]]],[30,[[16,[29,7]]]],[[[1,[22]],30],[[16,[29,7]]]],[[[2,[22]],30],[[16,[29,7]]]],[[[25,[[0,[22,4]],23,[0,[24,4]]]]],[[0,[22,4]]]],[[[6,[[0,[22,5]]]]]],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[[3,[29]]],6],[[[25,[[0,[22,4]],23,[0,[24,4]]]]],[[16,[18,32]]]]],"c":[],"p":[[3,"Array"],[3,"Option"],[4,"Option"],[8,"Clone"],[8,"Sized"],[3,"MiniconfIter"],[4,"Error"],[4,"IterError"],[3,"Metadata"],[8,"Ord"],[4,"Ordering"],[8,"Default"],[8,"Copy"],[8,"Deserializer"],[8,"Deserialize"],[4,"Result"],[8,"PartialEq"],[15,"bool"],[8,"Debug"],[3,"Formatter"],[6,"Result"],[8,"Miniconf"],[8,"TcpClientStack"],[8,"Clock"],[3,"MqttClient"],[4,"Error"],[4,"Error"],[15,"str"],[15,"usize"],[8,"Peekable"],[8,"FnMut"],[4,"Error"],[8,"Hash"],[8,"Hasher"],[4,"IpAddr"],[3,"String"],[8,"PartialOrd"],[8,"Serialize"],[8,"Serializer"],[3,"TypeId"]]},\ +"stabilizer":{"doc":"","t":"AAGGGGGGGGGGGRGGGGAAAAAACCAAAAAADDDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNEDLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLDDDSSSLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLRRRRRRRRRRRGRRDLLLLLLLLLLNNNNNNNEDDDENENNNDNNNNNNNNNNNNDDNDNMMMMALLLLLLLLLLLLLLLLLLLLMLLLLLLLLLALLLLLMMLLLLLLLLLMLLLLLLLLLLLLALLLLLLLLLLLLMMMLLLMMMLMLMLALLLLLLLLLLALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLILKKLKDDLLLLLLLLLLLLLLLLLLLEDNNLLLLLLLLLLLLLLLLLILKDLLLLLLLLLLLDDDDDDDMMMLLLLLLLLLLLLLLLLMMLMMLLLLLLLLLLLLLLMMMMMMMMMFMMMMMMMMLLLLLLLLLLLLLLLLLLLLLMDENDLLLLLLLLLLLLLLLLLLLLLLLLLLLDDNENNNEDNNNMMLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLLLLLLLLMMMLLMMMLLLLLLLLLLLLLLLLLNNNNNNNNNNNNNEDENDDEDNNNNNEENLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLAAAALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLEEEEDDDDDDDDDNNNNNNNNNNNNDLLLLLLLLLLLLLLLLLLLLLLLLMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLEEEEDDDDDDDDDNNNNNNNNNNNNDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLEEEEDDDDDDDDDNNNNNNNNNNNNDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLEEEEDDDDDDDDDNNNNNNNNNNNNDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLRGEDNNNENNLLLLLLLALLLLFCLLLCMALMCAMLLLLLLLLLLNDNDEDNLLLLLLLLLLLLLLLLLLLLLLLLMMLLLFLLLLLLLLLLLLDLLLLLLMLLLLDDDMMLLLLLLLMMMLMMLLLLLLLLLLLLLLLLLLLL","n":["hardware","net","AFE0","AFE1","DigitalInput0","DigitalInput1","EemDigitalInput0","EemDigitalInput1","EemDigitalOutput0","EemDigitalOutput1","EthernetPhy","I2c1","I2c1Proxy","MONOTONIC_FREQUENCY","NetworkManager","NetworkStack","SystemTimer","Systick","adc","afe","cpu_temp_sensor","dac","delay","design_parameters","embedded_hal","hal","input_stamper","pounder","setup","shared_adc","signal_generator","timers","Adc0Input","Adc1Input","AdcCode","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","from","from","from","from","from","into","into","into","lock","lock","new","new","start","start","try_from","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","with_buffer","with_buffer","G1","G10","G2","G5","Gain","ProgrammableGainAmplifier","as_multiplier","borrow","borrow","borrow_mut","borrow_mut","clone","deserialize","fmt","from","from","get_gain","into","into","new","serialize","set_gain","try_from","try_from","try_from","try_from_primitive","try_into","try_into","type_id","type_id","CpuTempSensor","borrow","borrow_mut","from","get_temperature","into","new","try_from","try_into","type_id","Dac0Output","Dac1Output","DacCode","FULL_SCALE","LSB_PER_VOLT","VOLT_PER_LSB","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","from","from","from","from","from","into","into","into","lock","lock","new","new","start","start","try_from","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","with_buffer","with_buffer","AsmDelay","borrow","borrow_mut","delay_ms","delay_us","from","into","new","try_from","try_into","type_id","ADC_DAC_SCK_MAX","ADC_SETUP_TIME","DDS_MULTIPLIER","DDS_REF_CLK","DDS_SYNC_CLK_DIV","DDS_SYSTEM_CLK","MAX_SAMPLE_BUFFER_SIZE","POUNDER_IO_UPDATE_DELAY","POUNDER_IO_UPDATE_DURATION","POUNDER_QSPI_FREQUENCY","SYSCLK","SampleBuffer","TIMER_FREQUENCY","TIMER_PERIOD","InputStamper","borrow","borrow_mut","from","into","latest_timestamp","new","start","try_from","try_into","type_id","Adc","AttLe0","AttLe1","AttLe2","AttLe3","AttRstN","Bounds","Channel","ChannelState","DdsChannelState","DdsClockConfig","Error","ExtClkSel","GpioPin","I2c","In0","In1","InputChannelState","InvalidAddress","InvalidChannel","InvalidState","Led4Green","Led5Red","Led6Green","Led7Red","Led8Green","Led9Red","OscEnN","Out0","Out1","OutputChannelState","PounderDevices","Qspi","QspiInterface","Spi","amplitude","attenuation","attenuation","attenuation","attenuators","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","channel","clone","clone","clone","clone","clone","clone","clone","clone","configure_mode","dds_output","deserialize","deserialize","deserialize","deserialize","deserialize","enabled","external_clock","first","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","frequency","from","from","from","from","from","from","from","from","from","from","from","from","hrtimer","into","into","into","into","into","into","into","into","into","into","last","latch_attenuator","lm75","mixer","multiplier","new","new","next","parameters","phase_offset","power","previous","qspi","read","reference_clock","reset_attenuators","rf_power","sample_aux_adc","sample_converter","serialize","serialize","serialize","serialize","serialize","set_ext_clk","set_gpio_pin","start_stream","timestamp","transfer_attenuators","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","write","AttenuatorInterface","get_attenuation","latch_attenuator","reset_attenuators","set_attenuation","transfer_attenuators","DdsOutput","ProfileBuilder","borrow","borrow","borrow_mut","borrow_mut","builder","from","from","into","into","new","try_from","try_from","try_into","try_into","type_id","type_id","update_channels","write","write","Channel","HighResTimerE","One","Two","borrow","borrow","borrow_mut","borrow_mut","configure_single_shot","from","from","into","into","new","trigger","try_from","try_from","try_into","try_into","type_id","type_id","PowerMeasurementInterface","measure_power","sample_converter","Timestamper","borrow","borrow_mut","from","into","latest_timestamp","new","start","try_from","try_into","type_id","update_period","EemGpioDevices","NetStorage","NetworkDevices","PounderDevices","StabilizerDevices","TcpSocketStorage","UdpSocketStorage","adc_dac_timer","adcs","afes","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","dacs","dds_output","default","digital_inputs","eem_gpio","from","from","from","from","from","from","from","into","into","into","into","into","into","into","ip_addrs","lvds4","lvds5","lvds6","lvds7","mac_address","net","phy","pounder","setup","sockets","stack","systick","tcp_socket_storage","temperature_sensor","timestamp_timer","timestamper","timestamper","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","udp_socket_storage","AdcChannel","AdcError","InUse","SharedAdc","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","create_channel","fmt","from","from","from","into","into","into","new","read_normalized","read_raw","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","BasicConfig","Config","Cosine","Error","InvalidAmplitude","InvalidFrequency","InvalidSymmetry","Signal","SignalGenerator","Square","Triangle","WhiteNoise","amplitude","amplitude","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clear_phase_accumulator","clone","clone","clone","clone","default","default","deserialize","fmt","fmt","fmt","fmt","fmt","frequency","from","from","from","from","from","get_path","into","into","into","into","into","into_iter","metadata","new","next","next_path","phase","phase_increment","phase_offset","serialize","set_path","signal","signal","symmetry","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into_config","type_id","type_id","type_id","type_id","type_id","update_waveform","Ch1Compare","Ch2Compare","Ch3Compare","Ch4Compare","ComparePulse","Disabled","Div1","Div1N1","Div1N8","Div2","Div4","Div8","Enable","InputFilter","PounderTimestampTimer","Prescaler","Reset","SamplingTimer","ShadowSamplingTimer","SlaveMode","TimestampTimer","Trigger","Trigger0","Trigger1","Trigger2","Trigger3","TriggerGenerator","TriggerSource","Update","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","channels","channels","channels","channels","from","from","from","from","from","from","from","from","from","generate_trigger","generate_trigger","generate_trigger","generate_trigger","get_period","get_period","get_period","get_period","into","into","into","into","into","into","into","into","into","new","new","new","new","set_external_clock","set_external_clock","set_external_clock","set_external_clock","set_period_ticks","set_period_ticks","set_period_ticks","set_period_ticks","set_slave_mode","set_slave_mode","set_slave_mode","set_slave_mode","set_trigger_source","set_trigger_source","set_trigger_source","set_trigger_source","start","start","start","start","tim2","tim3","tim5","tim8","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from_primitive","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_event","update_event","update_event","update_event","CaptureSource1","CaptureSource2","CaptureSource3","CaptureSource4","Channel1","Channel1InputCapture","Channel2","Channel2InputCapture","Channel3","Channel3InputCapture","Channel4","Channel4InputCapture","Channels","Ti1","Ti1","Ti2","Ti2","Ti3","Ti3","Ti4","Ti4","Trc","Trc","Trc","Trc","UpdateEvent","address","address","address","address","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","ch1","ch2","ch3","ch4","check_overcapture","check_overcapture","check_overcapture","check_overcapture","configure_filter","configure_filter","configure_filter","configure_filter","configure_prescaler","configure_prescaler","configure_prescaler","configure_prescaler","enable","enable","enable","enable","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into","into_input_capture","into_input_capture","into_input_capture","into_input_capture","latest_capture","latest_capture","latest_capture","latest_capture","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","new","new","to_output_compare","to_output_compare","to_output_compare","to_output_compare","trigger","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","CaptureSource1","CaptureSource2","CaptureSource3","CaptureSource4","Channel1","Channel1InputCapture","Channel2","Channel2InputCapture","Channel3","Channel3InputCapture","Channel4","Channel4InputCapture","Channels","Ti1","Ti1","Ti2","Ti2","Ti3","Ti3","Ti4","Ti4","Trc","Trc","Trc","Trc","UpdateEvent","address","address","address","address","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","ch1","ch2","ch3","ch4","check_overcapture","check_overcapture","check_overcapture","check_overcapture","clone","clone","clone","clone","configure_filter","configure_filter","configure_filter","configure_filter","configure_prescaler","configure_prescaler","configure_prescaler","configure_prescaler","enable","enable","enable","enable","eq","eq","eq","eq","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_input_capture","into_input_capture","into_input_capture","into_input_capture","latest_capture","latest_capture","latest_capture","latest_capture","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","new","new","to_output_compare","to_output_compare","to_output_compare","to_output_compare","trigger","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","CaptureSource1","CaptureSource2","CaptureSource3","CaptureSource4","Channel1","Channel1InputCapture","Channel2","Channel2InputCapture","Channel3","Channel3InputCapture","Channel4","Channel4InputCapture","Channels","Ti1","Ti1","Ti2","Ti2","Ti3","Ti3","Ti4","Ti4","Trc","Trc","Trc","Trc","UpdateEvent","address","address","address","address","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","ch1","ch2","ch3","ch4","check_overcapture","check_overcapture","check_overcapture","check_overcapture","clone","clone","clone","clone","configure_filter","configure_filter","configure_filter","configure_filter","configure_prescaler","configure_prescaler","configure_prescaler","configure_prescaler","enable","enable","enable","enable","eq","eq","eq","eq","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_input_capture","into_input_capture","into_input_capture","into_input_capture","latest_capture","latest_capture","latest_capture","latest_capture","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","new","new","to_output_compare","to_output_compare","to_output_compare","to_output_compare","trigger","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","CaptureSource1","CaptureSource2","CaptureSource3","CaptureSource4","Channel1","Channel1InputCapture","Channel2","Channel2InputCapture","Channel3","Channel3InputCapture","Channel4","Channel4InputCapture","Channels","Ti1","Ti1","Ti2","Ti2","Ti3","Ti3","Ti4","Ti4","Trc","Trc","Trc","Trc","UpdateEvent","address","address","address","address","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","ch1","ch2","ch3","ch4","check_overcapture","check_overcapture","check_overcapture","check_overcapture","clone","clone","clone","clone","configure_filter","configure_filter","configure_filter","configure_filter","configure_prescaler","configure_prescaler","configure_prescaler","configure_prescaler","enable","enable","enable","enable","eq","eq","eq","eq","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_input_capture","into_input_capture","into_input_capture","into_input_capture","latest_capture","latest_capture","latest_capture","latest_capture","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","listen_dma","new","new","to_output_compare","to_output_compare","to_output_compare","to_output_compare","trigger","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","DEFAULT_MQTT_BROKER","NetworkReference","NetworkState","NetworkUsers","NoChange","NoChange","SettingsChanged","UpdateState","Updated","Updated","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","configure_streaming","data_stream","direct_stream","from","from","from","get_device_prefix","heapless","into","into","into","miniconf","miniconf","network_processor","new","processor","serde","telemetry","telemetry","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","update","AdcDacData","DataStream","Fls","FrameGenerator","StreamFormat","StreamTarget","Unknown","add","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","default","deserialize","eq","fmt","fmt","from","from","from","from","into","into","into","into","ip","port","process","serialize","set_remote","setup_streaming","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","NetworkProcessor","borrow","borrow_mut","from","handle_link","into","new","stack","try_from","try_into","type_id","update","Telemetry","TelemetryBuffer","TelemetryClient","adcs","adcs","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","cpu_temp","dacs","dacs","default","digital_inputs","digital_inputs","finalize","from","from","from","into","into","into","new","publish","serialize","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","update"],"q":[[0,"stabilizer"],[2,"stabilizer::hardware"],[32,"stabilizer::hardware::adc"],[68,"stabilizer::hardware::afe"],[98,"stabilizer::hardware::cpu_temp_sensor"],[108,"stabilizer::hardware::dac"],[147,"stabilizer::hardware::delay"],[158,"stabilizer::hardware::design_parameters"],[172,"stabilizer::hardware::input_stamper"],[183,"stabilizer::hardware::pounder"],[354,"stabilizer::hardware::pounder::attenuators"],[360,"stabilizer::hardware::pounder::dds_output"],[381,"stabilizer::hardware::pounder::hrtimer"],[402,"stabilizer::hardware::pounder::rf_power"],[405,"stabilizer::hardware::pounder::timestamp"],[417,"stabilizer::hardware::setup"],[502,"stabilizer::hardware::shared_adc"],[533,"stabilizer::hardware::signal_generator"],[612,"stabilizer::hardware::timers"],[750,"stabilizer::hardware::timers::tim2"],[894,"stabilizer::hardware::timers::tim3"],[1078,"stabilizer::hardware::timers::tim5"],[1262,"stabilizer::hardware::timers::tim8"],[1446,"stabilizer::net"],[1491,"stabilizer::net::data_stream"],[1540,"stabilizer::net::network_processor"],[1552,"stabilizer::net::telemetry"]],"d":["","","","","","","","","","","","","","System timer (RTIC Monotonic) tick frequency","","","","","","","STM32 Temperature Sensor Driver","","Basic blocking delay","","","! Module for all hardware-specific setup of Stabilizer","","","","","","","Represents data associated with ADC.","Represents data associated with ADC.","A type representing an ADC sample.","","","","","","","","Construct an ADC code from the stabilizer-defined code …","Returns the argument unchanged.","Construct an ADC code from a provided binary …","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","Construct the ADC input channel.","Construct the ADC input channel.","Enable the ADC DMA transfer sequence.","Enable the ADC DMA transfer sequence.","","","","","","","","","","","Wait for the transfer of the currently active buffer to …","Wait for the transfer of the currently active buffer to …","","","","","","A programmable gain amplifier that allows for setting the …","Get the AFE gain as a numerical value.","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Get the programmed gain of the analog front-end.","Calls U::from(self).","Calls U::from(self).","Construct a new programmable gain driver.","","Set the gain of the front-end.","","","","","","","","","A driver to access the CPU temeprature sensor.","","","Returns the argument unchanged.","Get the temperature of the CPU in degrees Celsius.","Calls U::from(self).","Construct the temperature sensor.","","","","Represents data associated with DAC.","Represents data associated with DAC.","Custom type for referencing DAC output codes. The internal …","","","","","","","","","","","Returns the argument unchanged.","Encode signed 16-bit values into DAC offset binary for a …","Create a dac code from the provided DAC output code.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","Construct the DAC output channel.","Construct the DAC output channel.","","","","","","","","","","","","","Wait for the transfer of the currently active buffer to …","Wait for the transfer of the currently active buffer to …","A basic delay implementation.","","","","","Returns the argument unchanged.","Calls U::from(self).","Create a new delay.","","","","The maximum DAC/ADC serial clock line frequency. This is a …","The ADC setup time is the number of seconds after the CSn …","The multiplier used for the DDS reference clock PLL.","The DDS reference clock frequency in MHz.","The divider from the DDS system clock to the SYNC_CLK …","The DDS system clock frequency after the internal PLL …","The maximum ADC/DAC sample processing buffer size.","The delay after initiating a QSPI transfer before …","The duration to assert IO_Update for the pounder DDS.","The QSPI frequency for communicating with the pounder DDS.","The system clock, used in various timer calculations","","The optimal counting frequency of the hardware timers used …","","The timestamper for DI0 reference clock inputs.","","","Returns the argument unchanged.","Calls U::from(self).","Get the latest timestamp that has occurred.","Construct the DI0 input timestamper.","Start to capture timestamps on DI0.","","","","","","","","","","","The numerical value (discriminant) of the Channel enum is …","","","","","","","","","","","","","","","","","","","","","","","","A structure containing implementation for Pounder hardware.","","A structure for the QSPI interface for the DDS.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Configure the operations mode of the interface.","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Latch a configuration into a digital attenuator.","","","","Initialize the QSPI interface.","Construct and initialize pounder-specific hardware.","","","","","","","","","Reset all of the attenuators to a power-on default state.","","Sample one of the two auxiliary ADC channels associated …","Sample an ADC channel.","","","","","","Select external reference clock input.","Set the state (its electrical level) of the given GPIO pin …","","","Read the raw attenuation codes stored in the attenuator …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Write data over QSPI to the DDS.","Provide an interface for managing digital attenuators on …","Get the attenuation of a channel.","","","Set the attenuation of a single channel.","","The DDS profile update stream.","A temporary builder for serializing and writing profiles.","","","","","Get a builder for serializing a Pounder DDS profile.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Construct a new DDS output stream.","","","","","","","Update a number of channels with the provided configuration","Write a profile to the stream.","Write the profile to the DDS asynchronously.","A HRTimer output channel.","The high resolution timer. Currently, only Timer E is …","","","","","","","Configure the timer to operate in single-shot mode.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Construct a new high resolution timer for generating …","Generate a single trigger of the timer to start the output …","","","","","","","Provide an interface to measure RF input power in dBm.","Measure the power of an input channel in dBm.","","Software unit to timestamp stabilizer ADC samples using an …","","","Returns the argument unchanged.","Calls U::from(self).","Obtain a timestamp.","Construct the pounder sample timestamper.","Start collecting timestamps.","","","","Update the period of the underlying timestamp timer.","The GPIO pins available on the EEM connector, if Pounder …","","The available networking devices on Stabilizer.","The available Pounder-specific hardware interfaces.","The available hardware interfaces on Stabilizer.","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","Configure the stabilizer hardware for operation.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A single channel on an ADC peripheral.","","Indicates that the ADC is already in use","An ADC peripheral that can provide ownership of individual …","","","","","","","","Allocate an ADC channel for usage.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Construct a new shared ADC driver.","Read the ADC channel and normalize the result.","Read the raw ADC sample for the channel.","","","","","","","","","","Basic configuration for a generated signal.","","","Represents the errors that can occur when attempting to …","The provided amplitude is out-of-range.","The provided frequency is out of range.","The provided symmetry is out of range.","Types of signals that can be generated.","","","","","The amplitude of the output signal in volts.","The full-scale output code of the signal","","","","","","","","","","","Clear the phase accumulator.","","","","","","","","","","","","","The frequency of the generated signal in Hertz.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","Construct a new signal generator with some specific config.","Get the next value in the generator sequence.","","The phase of the output signal in turns.","The frequency tuning word of the signal. Phase is …","The phase offset","","","The signal type that should be generated. See Signal …","The type of signal being generated","The normalized symmetry of the signal. At 0% symmetry, the …","","","","","","","","","","","Convert configuration into signal generator values.","","","","","","Update waveform generation settings.","","","","","","","","","","","","","","Optional input capture preconditioning filter …","The timer used for managing ADC sampling.","Prescalers for externally-supplied reference clocks.","","The timer used for managing ADC sampling.","The timer used for managing ADC sampling.","Optional slave operation modes of a timer.","The timer used for managing ADC sampling.","","","","","","The event that should generate an external trigger from …","Selects the trigger source for the timer peripheral.","","","","","","","","","","","","","","","","","","","","Get the timer capture/compare channels.","Get the timer capture/compare channels.","Get the timer capture/compare channels.","Get the timer capture/compare channels.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Configure the timer peripheral to generate a trigger based …","Configure the timer peripheral to generate a trigger based …","Configure the timer peripheral to generate a trigger based …","Configure the timer peripheral to generate a trigger based …","Get the period of the timer.","Get the period of the timer.","Get the period of the timer.","Get the period of the timer.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Construct the sampling timer.","Construct the sampling timer.","Construct the sampling timer.","Construct the sampling timer.","Clock the timer from an external source.","Clock the timer from an external source.","Clock the timer from an external source.","Clock the timer from an external source.","Manually set the period of the timer.","Manually set the period of the timer.","Manually set the period of the timer.","Manually set the period of the timer.","","","","","Select a trigger source for the timer peripheral.","Select a trigger source for the timer peripheral.","Select a trigger source for the timer peripheral.","Select a trigger source for the timer peripheral.","Start the timer.","Start the timer.","Start the timer.","Start the timer.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Get the timer update event.","Get the timer update event.","Get the timer update event.","Get the timer update event.","Capture/Compare 1 selection","Capture/Compare 2 selection","Capture/compare 3 selection","Capture/Compare 4 selection","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","The channels representing the timer.","2: CC2 channel is configured as input, IC2 is mapped on TI1","1: CC1 channel is configured as input, IC1 is mapped on TI1","1: CC2 channel is configured as input, IC2 is mapped on TI2","2: CC1 channel is configured as input, IC1 is mapped on TI2","2: CC4 channel is configured as input, IC4 is mapped on TI3","1: CC3 channel is configured as input, IC3 is mapped on TI3","1: CC4 channel is configured as input, IC4 is mapped on TI4","2: CC3 channel is configured as input, IC3 is mapped on TI4","3: CC2 channel is configured as input, IC2 is mapped on TRC","3: CC1 channel is configured as input, IC1 is mapped on TRC","3: CC4 channel is configured as input, IC4 is mapped on TRC","3: CC3 channel is configured as input, IC3 is mapped on TRC","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture prescaler.","Configure the input capture prescaler.","Configure the input capture prescaler.","Configure the input capture prescaler.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Get the latest capture from the channel.","Get the latest capture from the channel.","Get the latest capture from the channel.","Get the latest capture from the channel.","Enable DMA requests upon timer updates.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Create a new update event","Construct a new set of channels.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Trigger a DMA request manually","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Capture/Compare 1 selection","Capture/Compare 2 selection","Capture/compare 3 selection","Capture/Compare 4 selection","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","The channels representing the timer.","2: CC2 channel is configured as input, IC2 is mapped on TI1","1: CC1 channel is configured as input, IC1 is mapped on TI1","1: CC2 channel is configured as input, IC2 is mapped on TI2","2: CC1 channel is configured as input, IC1 is mapped on TI2","2: CC4 channel is configured as input, IC4 is mapped on TI3","1: CC3 channel is configured as input, IC3 is mapped on TI3","1: CC4 channel is configured as input, IC4 is mapped on TI4","2: CC3 channel is configured as input, IC3 is mapped on TI4","3: CC2 channel is configured as input, IC2 is mapped on TRC","3: CC1 channel is configured as input, IC1 is mapped on TRC","3: CC4 channel is configured as input, IC4 is mapped on TRC","3: CC3 channel is configured as input, IC3 is mapped on TRC","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","","","","","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture prescaler.","Configure the input capture prescaler.","Configure the input capture prescaler.","Configure the input capture prescaler.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Get the latest capture from the channel.","Get the latest capture from the channel.","Get the latest capture from the channel.","Get the latest capture from the channel.","Enable DMA requests upon timer updates.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Create a new update event","Construct a new set of channels.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Trigger a DMA request manually","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Capture/Compare 1 selection","Capture/Compare 2 selection","Capture/compare 3 selection","Capture/Compare 4 selection","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","The channels representing the timer.","2: CC2 channel is configured as input, IC2 is mapped on TI1","1: CC1 channel is configured as input, IC1 is mapped on TI1","1: CC2 channel is configured as input, IC2 is mapped on TI2","2: CC1 channel is configured as input, IC1 is mapped on TI2","2: CC4 channel is configured as input, IC4 is mapped on TI3","1: CC3 channel is configured as input, IC3 is mapped on TI3","1: CC4 channel is configured as input, IC4 is mapped on TI4","2: CC3 channel is configured as input, IC3 is mapped on TI4","3: CC2 channel is configured as input, IC2 is mapped on TRC","3: CC1 channel is configured as input, IC1 is mapped on TRC","3: CC4 channel is configured as input, IC4 is mapped on TRC","3: CC3 channel is configured as input, IC3 is mapped on TRC","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","","","","","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture prescaler.","Configure the input capture prescaler.","Configure the input capture prescaler.","Configure the input capture prescaler.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Get the latest capture from the channel.","Get the latest capture from the channel.","Get the latest capture from the channel.","Get the latest capture from the channel.","Enable DMA requests upon timer updates.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Create a new update event","Construct a new set of channels.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Trigger a DMA request manually","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Capture/Compare 1 selection","Capture/Compare 2 selection","Capture/compare 3 selection","Capture/Compare 4 selection","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","A capture/compare channel of the timer.","A capture channel of the timer.","The channels representing the timer.","2: CC2 channel is configured as input, IC2 is mapped on TI1","1: CC1 channel is configured as input, IC1 is mapped on TI1","1: CC2 channel is configured as input, IC2 is mapped on TI2","2: CC1 channel is configured as input, IC1 is mapped on TI2","2: CC4 channel is configured as input, IC4 is mapped on TI3","1: CC3 channel is configured as input, IC3 is mapped on TI3","1: CC4 channel is configured as input, IC4 is mapped on TI4","2: CC3 channel is configured as input, IC3 is mapped on TI4","3: CC2 channel is configured as input, IC2 is mapped on TRC","3: CC1 channel is configured as input, IC1 is mapped on TRC","3: CC4 channel is configured as input, IC4 is mapped on TRC","3: CC3 channel is configured as input, IC3 is mapped on TRC","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","Check if an over-capture event has occurred.","","","","","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture input pre-filter.","Configure the input capture prescaler.","Configure the input capture prescaler.","Configure the input capture prescaler.","Configure the input capture prescaler.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","Enable the input capture to begin capturing timer values.","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Operate the channel in input-capture mode.","Get the latest capture from the channel.","Get the latest capture from the channel.","Get the latest capture from the channel.","Get the latest capture from the channel.","Enable DMA requests upon timer updates.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Allow the channel to generate DMA requests.","Create a new update event","Construct a new set of channels.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Operate the channel as an output-compare.","Trigger a DMA request manually","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","The default MQTT broker IP address if unspecified.","","","A structure of Stabilizer’s default network users.","","","","","","","","","","","","","Enable live data streaming.","Stabilizer data stream capabilities","Direct the stream to the provided remote target.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Get the MQTT prefix of a device.","! Stabilizer network management module ! ! # Design ! The …","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","Construct Stabilizer’s default network users.","","","","","","","","","","","","","","Update and process all of the network users state.","Streamed data contains ADC0, ADC1, DAC0, and DAC1 …","The “consumer” portion of the data stream.","Streamed data in FLS (fiber length stabilization) format. …","The data generator for a stream.","Specifies the format of streamed data","Represents the destination for the UDP stream to send data …","Reserved, unused format specifier.","Add a batch to the current stream frame.","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","Process any data for transmission.","","Configure the remote endpoint of the stream.","Configure streaming on a device.","","","","","","","","","","","","","Processor for managing network hardware.","","","Returns the argument unchanged.","Handle ethernet link connection status.","Calls U::from(self).","Construct a new network processor.","","","","","Process and update the state of the network.","The telemetry structure is data that is ultimately …","The telemetry buffer is used for storing sample values …","The telemetry client for reporting telemetry data over …","The latest input sample on ADC0/ADC1.","Most recent input voltage measurement.","","","","","","","","The CPU temperature in degrees Celsius.","The latest output code on DAC0/DAC1.","Most recent output voltage.","","The latest digital input states during processing.","Most recent digital input assertion state.","Convert the telemetry buffer to finalized, SI-unit …","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Construct a new telemetry client.","Publish telemetry over MQTT","","","","","","","","","","","Update the telemetry client"],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,4,6,1,4,6,1,1,1,1,4,6,1,4,6,4,6,4,6,4,6,1,1,4,6,1,4,6,1,4,6,4,6,27,27,27,27,0,0,27,32,27,32,27,27,27,27,32,27,32,32,27,32,27,32,32,27,27,27,32,27,32,27,0,36,36,36,36,36,36,36,36,36,0,0,0,41,41,41,41,42,43,41,42,43,41,41,41,41,42,43,41,42,43,42,43,42,43,42,43,41,41,42,43,41,42,43,41,42,43,42,43,0,50,50,50,50,50,50,50,50,50,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,53,53,53,53,53,53,53,53,53,53,59,58,58,58,58,58,59,0,0,0,0,0,58,0,59,60,60,0,59,59,59,58,58,58,58,58,58,58,60,60,0,0,59,0,59,61,62,63,64,0,66,69,58,59,60,61,62,63,64,65,66,69,58,59,60,61,62,63,64,65,64,58,59,60,61,62,63,64,65,66,0,61,62,63,64,65,61,65,58,58,59,60,61,62,63,64,65,61,66,69,58,58,59,59,60,61,62,63,64,65,0,66,69,58,59,60,61,62,63,64,65,58,69,69,63,65,66,69,58,62,61,63,58,66,66,65,69,0,69,69,61,62,63,64,65,69,69,66,0,69,66,69,58,59,60,61,62,63,64,65,66,69,58,59,60,61,62,63,64,65,66,69,58,59,60,61,62,63,64,65,66,0,202,202,202,202,202,0,0,87,88,87,88,87,87,88,87,88,87,87,88,87,88,87,88,88,87,88,0,0,91,91,91,89,91,89,89,91,89,91,89,89,89,91,89,91,89,91,89,0,203,203,0,97,97,97,97,97,97,97,97,97,97,97,0,0,0,0,0,0,0,204,204,204,104,205,206,204,207,102,103,104,205,206,204,207,102,103,102,103,204,207,104,204,204,104,205,206,204,207,102,103,104,205,206,204,207,102,103,104,206,206,206,206,205,204,205,207,0,104,205,204,104,204,204,204,207,104,205,206,204,207,102,103,104,205,206,204,207,102,103,104,205,206,204,207,102,103,104,0,0,37,0,40,108,37,40,108,37,37,108,37,40,108,37,40,108,37,108,40,40,40,108,37,40,108,37,40,108,37,0,0,113,0,115,115,115,0,0,113,113,113,114,116,113,114,115,116,112,113,114,115,116,112,112,113,114,115,116,114,116,113,113,114,115,116,112,114,113,114,115,116,112,114,113,114,115,116,112,112,114,112,112,114,114,116,116,113,114,114,116,114,113,114,115,116,112,113,114,115,116,112,114,113,114,115,116,112,112,128,128,128,128,128,136,134,145,145,134,134,134,128,0,0,0,128,0,0,0,0,136,135,135,135,135,0,0,128,128,135,136,145,134,100,123,125,98,128,135,136,145,134,100,123,125,98,100,123,125,98,128,135,136,145,134,100,123,125,98,100,123,125,98,100,123,125,98,128,135,136,145,134,100,123,125,98,100,123,125,98,100,123,125,98,100,123,125,98,100,123,125,98,100,123,125,98,100,123,125,98,0,0,0,0,128,135,136,145,134,134,100,123,125,98,134,128,135,136,145,134,100,123,125,98,128,135,136,145,134,100,123,125,98,100,123,125,98,0,0,0,0,0,0,0,0,0,0,0,0,0,147,146,147,146,149,148,149,148,147,146,149,148,0,141,142,143,144,137,122,14,141,21,142,46,143,49,144,137,122,14,141,21,142,46,143,49,144,122,122,122,122,141,142,143,144,141,142,143,144,141,142,143,144,141,142,143,144,137,122,14,141,21,142,46,143,49,144,137,122,14,141,21,142,46,143,49,144,14,21,46,49,141,142,143,144,137,14,141,21,142,46,143,49,144,137,122,14,21,46,49,137,137,122,14,141,21,142,46,143,49,144,137,122,14,141,21,142,46,143,49,144,137,122,14,141,21,142,46,143,49,144,0,0,0,0,0,0,0,0,0,0,0,0,0,154,155,154,155,156,157,156,157,154,155,156,157,0,150,151,152,153,138,124,15,150,22,151,159,152,160,153,154,155,156,157,138,124,15,150,22,151,159,152,160,153,154,155,156,157,124,124,124,124,150,151,152,153,154,155,156,157,150,151,152,153,150,151,152,153,150,151,152,153,154,155,156,157,154,155,156,157,138,124,15,150,22,151,159,152,160,153,154,155,156,157,138,124,15,150,22,151,159,152,160,153,154,155,156,157,15,22,159,160,150,151,152,153,138,15,150,22,151,159,152,160,153,138,124,15,22,159,160,138,138,124,15,150,22,151,159,152,160,153,154,155,156,157,138,124,15,150,22,151,159,152,160,153,154,155,156,157,138,124,15,150,22,151,159,152,160,153,154,155,156,157,0,0,0,0,0,0,0,0,0,0,0,0,0,147,146,147,146,149,148,149,148,147,146,149,148,0,161,162,163,164,139,126,165,161,166,162,167,163,57,164,147,146,149,148,139,126,165,161,166,162,167,163,57,164,147,146,149,148,126,126,126,126,161,162,163,164,147,146,149,148,161,162,163,164,161,162,163,164,161,162,163,164,147,146,149,148,147,146,149,148,139,126,165,161,166,162,167,163,57,164,147,146,149,148,139,126,165,161,166,162,167,163,57,164,147,146,149,148,165,166,167,57,161,162,163,164,139,165,161,166,162,167,163,57,164,139,126,165,166,167,57,139,139,126,165,161,166,162,167,163,57,164,147,146,149,148,139,126,165,161,166,162,167,163,57,164,147,146,149,148,139,126,165,161,166,162,167,163,57,164,147,146,149,148,0,0,0,0,0,0,0,0,0,0,0,0,0,172,173,172,173,174,175,174,175,172,173,174,175,0,168,169,170,171,140,127,99,168,176,169,177,170,178,171,172,173,174,175,140,127,99,168,176,169,177,170,178,171,172,173,174,175,127,127,127,127,168,169,170,171,172,173,174,175,168,169,170,171,168,169,170,171,168,169,170,171,172,173,174,175,172,173,174,175,140,127,99,168,176,169,177,170,178,171,172,173,174,175,140,127,99,168,176,169,177,170,178,171,172,173,174,175,99,176,177,178,168,169,170,171,140,99,168,176,169,177,170,178,171,140,127,99,176,177,178,140,140,127,99,168,176,169,177,170,178,171,172,173,174,175,140,127,99,168,176,169,177,170,178,171,172,173,174,175,140,127,99,168,176,169,177,170,178,171,172,173,174,175,0,0,0,0,198,191,191,0,198,191,198,191,183,198,191,183,183,0,183,198,191,183,0,0,198,191,183,0,183,0,183,183,0,0,183,198,191,183,198,191,183,198,191,183,183,194,0,194,0,0,0,194,184,184,195,193,194,184,195,193,194,193,194,193,193,194,193,194,184,195,193,194,184,195,193,194,193,193,195,193,195,0,184,195,193,194,184,195,193,194,184,195,193,194,0,197,197,197,197,197,197,197,197,197,197,197,0,0,0,199,200,201,199,200,201,199,200,199,200,199,200,199,199,200,199,201,199,200,201,199,200,201,201,200,201,199,200,201,199,200,201,199,200,201],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[1,1],[2,1],[[]],[3,1],[[]],[[]],[[]],[[]],[[]],[[4,5]],[[6,5]],[[[9,[7,8,3]],[11,[10]],[12,[10]],[13,[10]],14,15,16],4],[[[9,[17,8,3]],[18,[10]],[19,[10]],[20,[10]],21,22,16],6],[4],[6],[23,[[24,[1]]]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[4,5],[[24,[26]]]],[[6,5],[[24,[26]]]],0,0,0,0,0,0,[27,23],[[]],[[]],[[]],[[]],[27,27],[28,[[24,[27]]]],[[27,29],30],[[]],[[]],[[[32,[31,31]]],27],[[]],[[]],[[31,31],[[32,[31,31]]]],[[27,33],24],[[[32,[31,31]],27]],[[],24],[34,[[24,[27,[35,[27]]]]]],[[],24],[[],[[24,[27,[35,[27]]]]]],[[],24],[[],24],[[],25],[[],25],0,[[]],[[]],[[]],[36,[[24,[23,37]]]],[[]],[[[40,[38,39]]],36],[[],24],[[],24],[[],25],0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[41,41],[[]],[2,41],[3,41],[[]],[[]],[[]],[[]],[[]],[[42,5]],[[43,5]],[[[9,[44,8,3]],[45,[10]],46,16],42],[[[9,[47,8,3]],[48,[10]],49,16],43],[42],[43],[23,[[24,[41]]]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[42,5],[[24,[26]]]],[[43,5],[[24,[26]]]],0,[[]],[[]],[[50,[52,[51]]]],[[50,[52,[51]]]],[[]],[[]],[51,50],[[],24],[[],24],[[],25],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[53,[[24,[[54,[51]],[54,[51]]]]]],[[[56,[55]],57],53],[53],[[],24],[[],24],[[],25],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[58,58],[59,59],[60,60],[61,61],[62,62],[63,63],[64,64],[65,65],[[66,67],[[24,[59]]]],0,[28,[[24,[61]]]],[28,[[24,[62]]]],[28,[[24,[63]]]],[28,[[24,[64]]]],[28,[[24,[65]]]],0,0,[[],[[54,[58]]]],[[58,29],30],[[59,29],30],[[60,29],30],[[61,29],30],[[62,29],30],[[63,29],30],[[64,29],30],[[65,29],30],0,[[]],[[]],[60,58],[[]],[[]],[68,59],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],[[54,[58]]]],[[69,60],[[24,[59]]]],0,0,0,[[[71,[70]]],[[24,[66,59]]]],[[[74,[72,73]],[76,[72,75]],[9,[77,8,34]],[40,[78,[80,[79]]]],[40,[81,[82,[79]]]],[40,[38,[83,[79]]]],[40,[38,[84,[79]]]]],[[24,[69,59]]]],[58,[[54,[58]]]],0,0,0,[58,[[54,[58]]]],0,[[66,34],[[24,[59]]]],0,[69,[[24,[59]]]],0,[[69,60],[[24,[23,59]]]],[[69,60],[[24,[23,59]]]],[[61,33],24],[[62,33],24],[[63,33],24],[[64,33],24],[[65,33],24],[[69,85],[[24,[59]]]],[[69,58,86],[[24,[59]]]],[66,[[24,[59]]]],0,[69,[[24,[59]]]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[66,34],[[24,[59]]]],0,[60,[[24,[23,59]]]],[60,[[24,[59]]]],[[],[[24,[59]]]],[[60,23],[[24,[23,59]]]],[[],[[24,[59]]]],0,0,[[]],[[]],[[]],[[]],[87,88],[[]],[[]],[[]],[[]],[[66,89,67],87],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[88,90,[54,[51]],[54,[3]],[54,[51]]],88],[87],[88],0,0,0,0,[[]],[[]],[[]],[[]],[[89,91,23,23]],[[]],[[]],[[]],[[]],[[92,93,94,95,96],89],[89],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],0,[60,[[24,[23,59]]]],[60,[[24,[23,59]]]],0,[[]],[[]],[[]],[[]],[97,[[24,[[54,[3]],[54,[3]]]]]],[[98,99,100,[101,[55]],16],97],[97],[[],24],[[],24],[[],25],[[97,3]],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[102,102],[103,103],0,0,[[],104],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,[[105,106,107,16,51]],0,0,0,0,0,0,0,0,[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[37,37],[[108,109],[[40,[109]]]],[[37,29],30],[[]],[[]],[[]],[[]],[[]],[[]],[[23,[111,[110]]],108],[[[40,[109]]],[[24,[23,37]]]],[[[40,[109]]],[[24,[51,37]]]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[112],[113,113],[114,114],[115,115],[116,116],[[],114],[[],116],[28,[[24,[113]]]],[[113,29],30],[[114,29],30],[[115,29],30],[[116,29],30],[[112,29],30],0,[[]],[[]],[[]],[[]],[[]],[[114,117],[[24,[16,118]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[],119],[116,112],[112,[[54,[2]]]],[120,[[24,[85,121]]]],0,0,0,[[113,33],24],[[114,117],[[24,[16,118]]]],0,0,0,[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[114,23,23],[[24,[116,115]]]],[[],25],[[],25],[[],25],[[],25],[[],25],[[112,116]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[100,122],[123,124],[125,126],[98,127],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[100,128]],[[123,128]],[[125,128]],[[98,128]],[100,51],[123,3],[125,51],[98,3],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[130,[129]]],100],[[[130,[131]]],123],[[[130,[132]]],125],[[[130,[133]]],98],[[100,134]],[[123,134]],[[125,134]],[[98,134]],[[100,51]],[[123,3]],[[125,51]],[[98,3]],[[100,135,136]],[[123,135,136]],[[125,135,136]],[[98,135,136]],[[100,135]],[[123,135]],[[125,135]],[[98,135]],[100],[123],[125],[98],0,0,0,0,[[],24],[[],24],[[],24],[[],24],[[],24],[34,[[24,[134,[35,[134]]]]]],[[],24],[[],24],[[],24],[[],24],[[],[[24,[134,[35,[134]]]]]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[100,137],[123,138],[125,139],[98,140],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[141,16],[142,16],[143,16],[144,16],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[141,85],[142,85],[143,85],[144,85],[[141,145]],[[142,145]],[[143,145]],[[144,145]],[[141,134]],[[142,134]],[[143,134]],[[144,134]],[141],[142],[143],[144],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[14,146],141],[[21,147],142],[[46,148],143],[[49,149],144],[141,[[24,[[54,[51]],[54,[51]]]]]],[142,[[24,[[54,[51]],[54,[51]]]]]],[143,[[24,[[54,[51]],[54,[51]]]]]],[144,[[24,[[54,[51]],[54,[51]]]]]],[137],[14],[141],[21],[142],[46],[143],[49],[144],[[],137],[[],122],[[14,51]],[[21,51]],[[46,51]],[[49,51]],[137],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[150,16],[151,16],[152,16],[153,16],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[150,85],[151,85],[152,85],[153,85],[154,154],[155,155],[156,156],[157,157],[[150,145]],[[151,145]],[[152,145]],[[153,145]],[[150,134]],[[151,134]],[[152,134]],[[153,134]],[150],[151],[152],[153],[[154,154],85],[[155,155],85],[[156,156],85],[[157,157],85],[[154,29],[[24,[158]]]],[[155,29],[[24,[158]]]],[[156,29],[[24,[158]]]],[[157,29],[[24,[158]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[15,155],150],[[22,154],151],[[159,157],152],[[160,156],153],[150,[[24,[[54,[3]],[54,[3]]]]]],[151,[[24,[[54,[3]],[54,[3]]]]]],[152,[[24,[[54,[3]],[54,[3]]]]]],[153,[[24,[[54,[3]],[54,[3]]]]]],[138],[15],[150],[22],[151],[159],[152],[160],[153],[[],138],[[],124],[[15,3]],[[22,3]],[[159,3]],[[160,3]],[138],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[161,16],[162,16],[163,16],[164,16],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[161,85],[162,85],[163,85],[164,85],[147,147],[146,146],[149,149],[148,148],[[161,145]],[[162,145]],[[163,145]],[[164,145]],[[161,134]],[[162,134]],[[163,134]],[[164,134]],[161],[162],[163],[164],[[147,147],85],[[146,146],85],[[149,149],85],[[148,148],85],[[147,29],[[24,[158]]]],[[146,29],[[24,[158]]]],[[149,29],[[24,[158]]]],[[148,29],[[24,[158]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[165,146],161],[[166,147],162],[[167,148],163],[[57,149],164],[161,[[24,[[54,[51]],[54,[51]]]]]],[162,[[24,[[54,[51]],[54,[51]]]]]],[163,[[24,[[54,[51]],[54,[51]]]]]],[164,[[24,[[54,[51]],[54,[51]]]]]],[139],[165],[161],[166],[162],[167],[163],[57],[164],[[],139],[[],126],[[165,51]],[[166,51]],[[167,51]],[[57,51]],[139],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[168,16],[169,16],[170,16],[171,16],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[168,85],[169,85],[170,85],[171,85],[172,172],[173,173],[174,174],[175,175],[[168,145]],[[169,145]],[[170,145]],[[171,145]],[[168,134]],[[169,134]],[[170,134]],[[171,134]],[168],[169],[170],[171],[[172,172],85],[[173,173],85],[[174,174],85],[[175,175],85],[[172,29],[[24,[158]]]],[[173,29],[[24,[158]]]],[[174,29],[[24,[158]]]],[[175,29],[[24,[158]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[99,173],168],[[176,172],169],[[177,175],170],[[178,174],171],[168,[[24,[[54,[3]],[54,[3]]]]]],[169,[[24,[[54,[3]],[54,[3]]]]]],[170,[[24,[[54,[3]],[54,[3]]]]]],[171,[[24,[[54,[3]],[54,[3]]]]]],[140],[99],[168],[176],[169],[177],[170],[178],[171],[[],140],[[],127],[[99,3]],[[176,3]],[[177,3]],[[178,3]],[140],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[[183,[[0,[179,180,181]],182]],[52,[34]],34],184],0,[[[183,[[0,[179,180,181]],182]],185]],[[]],[[]],[[]],[[186,187],120],0,[[]],[[]],[[]],0,0,0,[[188,189,107,186,187,190],[[183,[[0,[179,180,181]],182]]]],0,0,0,0,[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[[183,[[0,[179,180,181]],182]]],191],0,0,0,0,0,0,0,[[184,192]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[193,193],[194,194],[[],193],[28,[[24,[193]]]],[[194,194],85],[[193,29],30],[[194,29],30],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[195],[[193,33],24],[[195,185]],[196],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[],25],0,[[]],[[]],[[]],[197],[[]],[[196,189],197],0,[[],24],[[],24],[[],25],[197,198],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[199,199],0,0,0,[[],199],0,0,[[199,27,27,23],200],[[]],[[]],[[]],[[]],[[]],[[]],[[196,107,186,186,190],[[201,[182]]]],[[[201,[182]],182]],[[200,33],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],25],[[],25],[[],25],[[[201,[182]]]]],"c":[],"p":[[3,"AdcCode"],[15,"i16"],[15,"u16"],[3,"Adc0Input"],[8,"FnOnce"],[3,"Adc1Input"],[3,"SPI2"],[3,"Enabled"],[3,"Spi"],[3,"DMA1"],[6,"Stream0"],[6,"Stream1"],[6,"Stream2"],[3,"Channel1"],[3,"Channel1"],[15,"usize"],[3,"SPI3"],[6,"Stream3"],[6,"Stream4"],[6,"Stream5"],[3,"Channel2"],[3,"Channel2"],[15,"f32"],[4,"Result"],[3,"TypeId"],[4,"DMAError"],[4,"Gain"],[8,"Deserializer"],[3,"Formatter"],[6,"Result"],[8,"StatefulOutputPin"],[3,"ProgrammableGainAmplifier"],[8,"Serializer"],[15,"u8"],[3,"TryFromPrimitiveError"],[3,"CpuTempSensor"],[4,"AdcError"],[3,"ADC3"],[3,"Temperature"],[3,"AdcChannel"],[3,"DacCode"],[3,"Dac0Output"],[3,"Dac1Output"],[3,"SPI4"],[6,"Stream6"],[3,"Channel3"],[3,"SPI5"],[6,"Stream7"],[3,"Channel4"],[3,"AsmDelay"],[15,"u32"],[8,"Into"],[3,"InputStamper"],[4,"Option"],[3,"Alternate"],[6,"PA3"],[3,"Channel4"],[4,"GpioPin"],[4,"Error"],[4,"Channel"],[3,"DdsChannelState"],[3,"ChannelState"],[3,"InputChannelState"],[3,"OutputChannelState"],[3,"DdsClockConfig"],[3,"QspiInterface"],[4,"Mode"],[4,"XspiError"],[3,"PounderDevices"],[3,"QUADSPI"],[3,"Xspi"],[6,"I2c1Proxy"],[3,"Lm75"],[3,"Lm75"],[4,"Mcp23017"],[3,"Mcp230xx"],[3,"SPI1"],[3,"ADC1"],[3,"Analog"],[6,"PF11"],[3,"ADC2"],[6,"PF14"],[6,"PF3"],[6,"PF4"],[15,"bool"],[4,"Level"],[3,"DdsOutput"],[3,"ProfileBuilder"],[3,"HighResTimerE"],[3,"Channel"],[4,"Channel"],[3,"HRTIM_TIME"],[3,"HRTIM_MASTER"],[3,"HRTIM_COMMON"],[3,"CoreClocks"],[3,"Hrtim"],[3,"Timestamper"],[3,"PounderTimestampTimer"],[3,"Channel1"],[3,"SamplingTimer"],[6,"PA0"],[3,"UdpSocketStorage"],[3,"TcpSocketStorage"],[3,"NetStorage"],[3,"Peripherals"],[3,"Peripherals"],[6,"SystemTimer"],[3,"SharedAdc"],[8,"Channel"],[3,"Enabled"],[3,"Adc"],[3,"SignalGenerator"],[4,"Signal"],[3,"BasicConfig"],[4,"Error"],[3,"Config"],[8,"Peekable"],[4,"Error"],[3,"Metadata"],[3,"String"],[4,"IterError"],[3,"Channels"],[3,"ShadowSamplingTimer"],[3,"Channels"],[3,"TimestampTimer"],[3,"Channels"],[3,"Channels"],[4,"TriggerGenerator"],[3,"TIM2"],[3,"Timer"],[3,"TIM3"],[3,"TIM5"],[3,"TIM8"],[4,"Prescaler"],[4,"TriggerSource"],[4,"SlaveMode"],[3,"UpdateEvent"],[3,"UpdateEvent"],[3,"UpdateEvent"],[3,"UpdateEvent"],[3,"Channel1InputCapture"],[3,"Channel2InputCapture"],[3,"Channel3InputCapture"],[3,"Channel4InputCapture"],[4,"InputFilter"],[4,"CaptureSource1"],[4,"CaptureSource2"],[4,"CaptureSource3"],[4,"CaptureSource4"],[3,"Channel1InputCapture"],[3,"Channel2InputCapture"],[3,"Channel3InputCapture"],[3,"Channel4InputCapture"],[4,"CaptureSource2"],[4,"CaptureSource1"],[4,"CaptureSource4"],[4,"CaptureSource3"],[3,"Error"],[3,"Channel3"],[3,"Channel4"],[3,"Channel1InputCapture"],[3,"Channel2InputCapture"],[3,"Channel3InputCapture"],[3,"Channel4InputCapture"],[3,"Channel1"],[3,"Channel2"],[3,"Channel3"],[3,"Channel1InputCapture"],[3,"Channel2InputCapture"],[3,"Channel3InputCapture"],[3,"Channel4InputCapture"],[4,"CaptureSource2"],[4,"CaptureSource1"],[4,"CaptureSource4"],[4,"CaptureSource3"],[3,"Channel2"],[3,"Channel3"],[3,"Channel4"],[8,"Default"],[8,"Miniconf"],[8,"Clone"],[8,"Serialize"],[3,"NetworkUsers"],[3,"FrameGenerator"],[4,"SocketAddr"],[15,"str"],[3,"Address"],[6,"NetworkStack"],[6,"EthernetPhy"],[4,"IpAddr"],[4,"NetworkState"],[8,"FnMut"],[3,"StreamTarget"],[4,"StreamFormat"],[3,"DataStream"],[6,"NetworkReference"],[3,"NetworkProcessor"],[4,"UpdateState"],[3,"TelemetryBuffer"],[3,"Telemetry"],[3,"TelemetryClient"],[8,"AttenuatorInterface"],[8,"PowerMeasurementInterface"],[3,"StabilizerDevices"],[3,"NetworkDevices"],[3,"EemGpioDevices"],[3,"PounderDevices"]]}\ +}'); +if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)}; +if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex}; diff --git a/firmware/settings.html b/firmware/settings.html new file mode 100644 index 0000000000..72f9b3c13d --- /dev/null +++ b/firmware/settings.html @@ -0,0 +1 @@ +Rustdoc settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/firmware/source-files.js b/firmware/source-files.js new file mode 100644 index 0000000000..19ccdc7456 --- /dev/null +++ b/firmware/source-files.js @@ -0,0 +1,9 @@ +var sourcesIndex = JSON.parse('{\ +"ad9959":["",[],["lib.rs"]],\ +"dual_iir":["",[],["dual-iir.rs"]],\ +"idsp":["",[],["accu.rs","atan2.rs","complex.rs","cossin.rs","iir.rs","iir_int.rs","lib.rs","lockin.rs","lowpass.rs","pll.rs","rpll.rs","tools.rs","unwrap.rs"]],\ +"lockin":["",[],["lockin.rs"]],\ +"miniconf":["",[["mqtt_client",[],["mod.rs"]]],["array.rs","iter.rs","lib.rs","option.rs"]],\ +"stabilizer":["",[["hardware",[["pounder",[],["attenuators.rs","dds_output.rs","hrtimer.rs","mod.rs","rf_power.rs","timestamp.rs"]]],["adc.rs","afe.rs","cpu_temp_sensor.rs","dac.rs","delay.rs","design_parameters.rs","eeprom.rs","input_stamper.rs","mod.rs","setup.rs","shared_adc.rs","signal_generator.rs","timers.rs"]],["net",[],["data_stream.rs","mod.rs","network_processor.rs","telemetry.rs"]]],["lib.rs"]]\ +}'); +createSourceSidebar(); diff --git a/firmware/src/ad9959/lib.rs.html b/firmware/src/ad9959/lib.rs.html new file mode 100644 index 0000000000..2e2890952c --- /dev/null +++ b/firmware/src/ad9959/lib.rs.html @@ -0,0 +1,1213 @@ +lib.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+403
+404
+405
+406
+407
+408
+409
+410
+411
+412
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+444
+445
+446
+447
+448
+449
+450
+451
+452
+453
+454
+455
+456
+457
+458
+459
+460
+461
+462
+463
+464
+465
+466
+467
+468
+469
+470
+471
+472
+473
+474
+475
+476
+477
+478
+479
+480
+481
+482
+483
+484
+485
+486
+487
+488
+489
+490
+491
+492
+493
+494
+495
+496
+497
+498
+499
+500
+501
+502
+503
+504
+505
+506
+507
+508
+509
+510
+511
+512
+513
+514
+515
+516
+517
+518
+519
+520
+521
+522
+523
+524
+525
+526
+527
+528
+529
+530
+531
+532
+533
+534
+535
+536
+537
+538
+539
+540
+541
+542
+543
+544
+545
+546
+547
+548
+549
+550
+551
+552
+553
+554
+555
+556
+557
+558
+559
+560
+561
+562
+563
+564
+565
+566
+567
+568
+569
+570
+571
+572
+573
+574
+575
+576
+577
+578
+579
+580
+581
+582
+583
+584
+585
+586
+587
+588
+589
+590
+591
+592
+593
+594
+595
+596
+597
+598
+599
+600
+601
+602
+603
+604
+605
+606
+
#![no_std]
+
+use bit_field::BitField;
+use bitflags::bitflags;
+use embedded_hal::{blocking::delay::DelayUs, digital::v2::OutputPin};
+
+/// A device driver for the AD9959 direct digital synthesis (DDS) chip.
+///
+/// This chip provides four independently controllable digital-to-analog output sinusoids with
+/// configurable phase, amplitude, and frequency. All channels are inherently synchronized as they
+/// are derived off a common system clock.
+///
+/// The chip contains a configurable PLL and supports system clock frequencies up to 500 MHz.
+///
+/// The chip supports a number of serial interfaces to improve data throughput, including normal,
+/// dual, and quad SPI configurations.
+pub struct Ad9959<INTERFACE> {
+    interface: INTERFACE,
+    reference_clock_frequency: f32,
+    system_clock_multiplier: u8,
+    communication_mode: Mode,
+}
+
+/// A trait that allows a HAL to provide a means of communicating with the AD9959.
+pub trait Interface {
+    type Error;
+
+    fn configure_mode(&mut self, mode: Mode) -> Result<(), Self::Error>;
+
+    fn write(&mut self, addr: u8, data: &[u8]) -> Result<(), Self::Error>;
+
+    fn read(&mut self, addr: u8, dest: &mut [u8]) -> Result<(), Self::Error>;
+}
+
+/// Indicates various communication modes of the DDS. The value of this enumeration is equivalent to
+/// the configuration bits of the DDS CSR register.
+#[derive(Copy, Clone, PartialEq, Eq)]
+#[repr(u8)]
+pub enum Mode {
+    SingleBitTwoWire = 0b000,
+    SingleBitThreeWire = 0b010,
+    TwoBitSerial = 0b100,
+    FourBitSerial = 0b110,
+}
+
+bitflags! {
+    /// Specifies an output channel of the AD9959 DDS chip.
+    pub struct Channel: u8 {
+        const ONE   = 0b00010000;
+        const TWO   = 0b00100000;
+        const THREE = 0b01000000;
+        const FOUR  = 0b10000000;
+        const ALL   = Self::ONE.bits() | Self::TWO.bits() | Self::THREE.bits() | Self::FOUR.bits();
+    }
+}
+
+/// The configuration registers within the AD9959 DDS device. The values of each register are
+/// equivalent to the address.
+#[allow(clippy::upper_case_acronyms)]
+#[repr(u8)]
+pub enum Register {
+    CSR = 0x00,
+    FR1 = 0x01,
+    FR2 = 0x02,
+    CFR = 0x03,
+    CFTW0 = 0x04,
+    CPOW0 = 0x05,
+    ACR = 0x06,
+    LSRR = 0x07,
+    RDW = 0x08,
+    FDW = 0x09,
+    CW1 = 0x0a,
+    CW2 = 0x0b,
+    CW3 = 0x0c,
+    CW4 = 0x0d,
+    CW5 = 0x0e,
+    CW6 = 0x0f,
+    CW7 = 0x10,
+    CW8 = 0x11,
+    CW9 = 0x12,
+    CW10 = 0x13,
+    CW11 = 0x14,
+    CW12 = 0x15,
+    CW13 = 0x16,
+    CW14 = 0x17,
+    CW15 = 0x18,
+}
+
+/// Possible errors generated by the AD9959 driver.
+#[derive(Debug)]
+pub enum Error {
+    Interface,
+    Check,
+    Bounds,
+    Pin,
+    Frequency,
+}
+
+impl<I: Interface> Ad9959<I> {
+    /// Construct and initialize the DDS.
+    ///
+    /// Args:
+    /// * `interface` - An interface to the DDS.
+    /// * `reset_pin` - A pin connected to the DDS reset input.
+    /// * `io_update` - A pin connected to the DDS io_update input.
+    /// * `delay` - A delay implementation for blocking operation for specific amounts of time.
+    /// * `desired_mode` - The desired communication mode of the interface to the DDS.
+    /// * `clock_frequency` - The clock frequency of the reference clock input.
+    /// * `multiplier` - The desired clock multiplier for the system clock. This multiplies
+    ///   `clock_frequency` to generate the system clock.
+    pub fn new(
+        interface: I,
+        mut reset_pin: impl OutputPin,
+        io_update: &mut impl OutputPin,
+        delay: &mut impl DelayUs<u8>,
+        desired_mode: Mode,
+        clock_frequency: f32,
+        multiplier: u8,
+    ) -> Result<Self, Error> {
+        let mut ad9959 = Ad9959 {
+            interface,
+            reference_clock_frequency: clock_frequency,
+            system_clock_multiplier: 1,
+            communication_mode: desired_mode,
+        };
+
+        io_update.set_low().or(Err(Error::Pin))?;
+
+        // Reset the AD9959
+        reset_pin.set_high().or(Err(Error::Pin))?;
+
+        // Delay for at least 1 SYNC_CLK period for the reset to occur. The SYNC_CLK is guaranteed
+        // to be at least 250KHz (1/4 of 1MHz minimum REF_CLK). We use 5uS instead of 4uS to
+        // guarantee conformance with datasheet requirements.
+        delay.delay_us(5);
+
+        reset_pin.set_low().or(Err(Error::Pin))?;
+
+        ad9959
+            .interface
+            .configure_mode(Mode::SingleBitTwoWire)
+            .or(Err(Error::Interface))?;
+
+        // Program the interface configuration in the AD9959. Default to all channels enabled.
+        let csr = [Channel::ALL.bits() | desired_mode as u8];
+        ad9959.write(Register::CSR, &csr)?;
+
+        // Latch the new interface configuration.
+        io_update.set_high().or(Err(Error::Pin))?;
+
+        // Delay for at least 1 SYNC_CLK period for the update to occur. The SYNC_CLK is guaranteed
+        // to be at least 250KHz (1/4 of 1MHz minimum REF_CLK). We use 5uS instead of 4uS to
+        // guarantee conformance with datasheet requirements.
+        delay.delay_us(5);
+
+        io_update.set_low().or(Err(Error::Pin))?;
+
+        ad9959
+            .interface
+            .configure_mode(desired_mode)
+            .or(Err(Error::Interface))?;
+
+        // Empirical evidence indicates a delay is necessary here for the IO update to become
+        // active. This is likely due to needing to wait at least 1 clock cycle of the DDS for the
+        // interface update to occur.
+        // Delay for at least 1 SYNC_CLK period for the update to occur. The SYNC_CLK is guaranteed
+        // to be at least 250KHz (1/4 of 1MHz minimum REF_CLK). We use 5uS instead of 4uS to
+        // guarantee conformance with datasheet requirements.
+        delay.delay_us(5);
+
+        // Read back the CSR to ensure it specifies the mode correctly.
+        let mut updated_csr: [u8; 1] = [0];
+        ad9959.read(Register::CSR, &mut updated_csr)?;
+        if updated_csr[0] != csr[0] {
+            return Err(Error::Check);
+        }
+
+        // Set the clock frequency to configure the device as necessary.
+        ad9959.configure_system_clock(clock_frequency, multiplier)?;
+
+        // Latch the new clock configuration.
+        io_update.set_high().or(Err(Error::Pin))?;
+
+        // Delay for at least 1 SYNC_CLK period for the update to occur. The SYNC_CLK is guaranteed
+        // to be at least 250KHz (1/4 of 1MHz minimum REF_CLK). We use 5uS instead of 4uS to
+        // guarantee conformance with datasheet requirements.
+        delay.delay_us(5);
+
+        io_update.set_low().or(Err(Error::Pin))?;
+
+        Ok(ad9959)
+    }
+
+    fn read(&mut self, reg: Register, data: &mut [u8]) -> Result<(), Error> {
+        self.interface
+            .read(reg as u8, data)
+            .or(Err(Error::Interface))
+    }
+
+    fn write(&mut self, reg: Register, data: &[u8]) -> Result<(), Error> {
+        self.interface
+            .write(reg as u8, data)
+            .or(Err(Error::Interface))
+    }
+
+    /// Configure the internal system clock of the chip.
+    ///
+    /// Arguments:
+    /// * `reference_clock_frequency` - The reference clock frequency provided to the AD9959 core.
+    /// * `multiplier` - The frequency multiplier of the system clock. Must be 1 or 4-20.
+    ///
+    /// Returns:
+    /// The actual frequency configured for the internal system clock.
+    fn configure_system_clock(
+        &mut self,
+        reference_clock_frequency: f32,
+        multiplier: u8,
+    ) -> Result<f32, Error> {
+        self.reference_clock_frequency = reference_clock_frequency;
+
+        if multiplier != 1 && !(4..=20).contains(&multiplier) {
+            return Err(Error::Bounds);
+        }
+
+        let frequency = multiplier as f32 * self.reference_clock_frequency;
+        if frequency > 500_000_000.0f32 {
+            return Err(Error::Frequency);
+        }
+
+        // TODO: Update / disable any enabled channels?
+        let mut fr1: [u8; 3] = [0, 0, 0];
+        self.read(Register::FR1, &mut fr1)?;
+        fr1[0].set_bits(2..=6, multiplier);
+
+        let vco_range = frequency > 255e6;
+        fr1[0].set_bit(7, vco_range);
+
+        self.write(Register::FR1, &fr1)?;
+        self.system_clock_multiplier = multiplier;
+
+        Ok(self.system_clock_frequency())
+    }
+
+    /// Get the current reference clock frequency in Hz.
+    pub fn get_reference_clock_frequency(&self) -> f32 {
+        self.reference_clock_frequency
+    }
+
+    /// Get the current reference clock multiplier.
+    pub fn get_reference_clock_multiplier(&mut self) -> Result<u8, Error> {
+        let mut fr1: [u8; 3] = [0, 0, 0];
+        self.read(Register::FR1, &mut fr1)?;
+
+        Ok(fr1[0].get_bits(2..=6))
+    }
+
+    /// Perform a self-test of the communication interface.
+    ///
+    /// Note:
+    /// This modifies the existing channel enables. They are restored upon exit.
+    ///
+    /// Returns:
+    /// True if the self test succeeded. False otherwise.
+    pub fn self_test(&mut self) -> Result<bool, Error> {
+        let mut csr: [u8; 1] = [0];
+        self.read(Register::CSR, &mut csr)?;
+        let old_csr = csr[0];
+
+        // Enable all channels.
+        csr[0].set_bits(4..8, 0xF);
+        self.write(Register::CSR, &csr)?;
+
+        // Read back the enable.
+        csr[0] = 0;
+        self.read(Register::CSR, &mut csr)?;
+        if csr[0].get_bits(4..8) != 0xF {
+            return Ok(false);
+        }
+
+        // Clear all channel enables.
+        csr[0].set_bits(4..8, 0x0);
+        self.write(Register::CSR, &csr)?;
+
+        // Read back the enable.
+        csr[0] = 0xFF;
+        self.read(Register::CSR, &mut csr)?;
+        if csr[0].get_bits(4..8) != 0 {
+            return Ok(false);
+        }
+
+        // Restore the CSR.
+        csr[0] = old_csr;
+        self.write(Register::CSR, &csr)?;
+
+        Ok(true)
+    }
+
+    /// Get the current system clock frequency in Hz.
+    fn system_clock_frequency(&self) -> f32 {
+        self.system_clock_multiplier as f32 * self.reference_clock_frequency
+    }
+
+    /// Update an output channel configuration register.
+    ///
+    /// Args:
+    /// * `channel` - The channel to configure.
+    /// * `register` - The register to update.
+    /// * `data` - The contents to write to the provided register.
+    fn modify_channel(
+        &mut self,
+        channel: Channel,
+        register: Register,
+        data: &[u8],
+    ) -> Result<(), Error> {
+        // Disable all other outputs so that we can update the configuration register of only the
+        // specified channel.
+        let csr = [self.communication_mode as u8 | channel.bits()];
+
+        self.write(Register::CSR, &csr)?;
+        self.write(register, data)?;
+
+        Ok(())
+    }
+
+    /// Read a configuration register of a specific channel.
+    ///
+    /// Args:
+    /// * `channel` - The channel to read.
+    /// * `register` - The register to read.
+    /// * `data` - A location to store the read register contents.
+    fn read_channel(
+        &mut self,
+        channel: Channel,
+        register: Register,
+        data: &mut [u8],
+    ) -> Result<(), Error> {
+        // Disable all other channels in the CSR so that we can read the configuration register of
+        // only the desired channel.
+        let mut csr = [0];
+        self.read(Register::CSR, &mut csr)?;
+        let new_csr = [self.communication_mode as u8 | channel.bits()];
+
+        self.write(Register::CSR, &new_csr)?;
+        self.read(register, data)?;
+
+        // Restore the previous CSR. Note that the re-enable of the channel happens immediately, so
+        // the CSR update does not need to be latched.
+        self.write(Register::CSR, &csr)?;
+
+        Ok(())
+    }
+
+    /// Configure the phase of a specified channel.
+    ///
+    /// Arguments:
+    /// * `channel` - The channel to configure the frequency of.
+    /// * `phase_turns` - The desired phase offset in turns.
+    ///
+    /// Returns:
+    /// The actual programmed phase offset of the channel in turns.
+    pub fn set_phase(
+        &mut self,
+        channel: Channel,
+        phase_turns: f32,
+    ) -> Result<f32, Error> {
+        let phase_offset: u16 =
+            (phase_turns * (1 << 14) as f32) as u16 & 0x3FFFu16;
+
+        self.modify_channel(
+            channel,
+            Register::CPOW0,
+            &phase_offset.to_be_bytes(),
+        )?;
+
+        Ok((phase_offset as f32) / ((1 << 14) as f32))
+    }
+
+    /// Get the current phase of a specified channel.
+    ///
+    /// Args:
+    /// * `channel` - The channel to get the phase of.
+    ///
+    /// Returns:
+    /// The phase of the channel in turns.
+    pub fn get_phase(&mut self, channel: Channel) -> Result<f32, Error> {
+        let mut phase_offset: [u8; 2] = [0; 2];
+        self.read_channel(channel, Register::CPOW0, &mut phase_offset)?;
+
+        let phase_offset = u16::from_be_bytes(phase_offset) & 0x3FFFu16;
+
+        Ok((phase_offset as f32) / ((1 << 14) as f32))
+    }
+
+    /// Configure the amplitude of a specified channel.
+    ///
+    /// Arguments:
+    /// * `channel` - The channel to configure the frequency of.
+    /// * `amplitude` - A normalized amplitude setting [0, 1].
+    ///
+    /// Returns:
+    /// The actual normalized amplitude of the channel relative to full-scale range.
+    pub fn set_amplitude(
+        &mut self,
+        channel: Channel,
+        amplitude: f32,
+    ) -> Result<f32, Error> {
+        if !(0.0..=1.0).contains(&amplitude) {
+            return Err(Error::Bounds);
+        }
+
+        let amplitude_control: u16 = (amplitude * (1 << 10) as f32) as u16;
+
+        let mut acr: [u8; 3] = [0; 3];
+
+        // Enable the amplitude multiplier for the channel if required. The amplitude control has
+        // full-scale at 0x3FF (amplitude of 1), so the multiplier should be disabled whenever
+        // full-scale is used.
+        if amplitude_control < (1 << 10) {
+            let masked_control = amplitude_control & 0x3FF;
+            acr[1] = masked_control.to_be_bytes()[0];
+            acr[2] = masked_control.to_be_bytes()[1];
+
+            // Enable the amplitude multiplier
+            acr[1].set_bit(4, true);
+        }
+
+        self.modify_channel(channel, Register::ACR, &acr)?;
+
+        Ok(amplitude_control as f32 / (1 << 10) as f32)
+    }
+
+    /// Get the configured amplitude of a channel.
+    ///
+    /// Args:
+    /// * `channel` - The channel to get the amplitude of.
+    ///
+    /// Returns:
+    /// The normalized amplitude of the channel.
+    pub fn get_amplitude(&mut self, channel: Channel) -> Result<f32, Error> {
+        let mut acr: [u8; 3] = [0; 3];
+        self.read_channel(channel, Register::ACR, &mut acr)?;
+
+        if acr[1].get_bit(4) {
+            let amplitude_control: u16 =
+                (((acr[1] as u16) << 8) | (acr[2] as u16)) & 0x3FF;
+            Ok(amplitude_control as f32 / (1 << 10) as f32)
+        } else {
+            Ok(1.0)
+        }
+    }
+
+    /// Configure the frequency of a specified channel.
+    ///
+    /// Arguments:
+    /// * `channel` - The channel to configure the frequency of.
+    /// * `frequency` - The desired output frequency in Hz.
+    ///
+    /// Returns:
+    /// The actual programmed frequency of the channel.
+    pub fn set_frequency(
+        &mut self,
+        channel: Channel,
+        frequency: f32,
+    ) -> Result<f32, Error> {
+        if frequency < 0.0 || frequency > self.system_clock_frequency() {
+            return Err(Error::Bounds);
+        }
+
+        // The function for channel frequency is `f_out = FTW * f_s / 2^32`, where FTW is the
+        // frequency tuning word and f_s is the system clock rate.
+        let tuning_word: u32 = ((frequency / self.system_clock_frequency())
+            * 1u64.wrapping_shl(32) as f32)
+            as u32;
+
+        self.modify_channel(
+            channel,
+            Register::CFTW0,
+            &tuning_word.to_be_bytes(),
+        )?;
+        Ok((tuning_word as f32 / 1u64.wrapping_shl(32) as f32)
+            * self.system_clock_frequency())
+    }
+
+    /// Get the frequency of a channel.
+    ///
+    /// Arguments:
+    /// * `channel` - The channel to get the frequency of.
+    ///
+    /// Returns:
+    /// The frequency of the channel in Hz.
+    pub fn get_frequency(&mut self, channel: Channel) -> Result<f32, Error> {
+        // Read the frequency tuning word for the channel.
+        let mut tuning_word: [u8; 4] = [0; 4];
+        self.read_channel(channel, Register::CFTW0, &mut tuning_word)?;
+        let tuning_word = u32::from_be_bytes(tuning_word);
+
+        // Convert the tuning word into a frequency.
+        Ok((tuning_word as f32 * self.system_clock_frequency())
+            / (1u64 << 32) as f32)
+    }
+
+    /// Finalize DDS configuration
+    ///
+    /// # Note
+    /// This is intended for when the DDS profiles will be written as a stream of data to the DDS.
+    ///
+    /// # Returns
+    /// (i, mode) where `i` is the interface to the DDS and `mode` is the frozen `Mode`.
+    pub fn freeze(self) -> (I, Mode) {
+        (self.interface, self.communication_mode)
+    }
+}
+
+/// Represents a means of serializing a DDS profile for writing to a stream.
+pub struct ProfileSerializer {
+    // heapless::Vec<u8, 32>, especially its extend_from_slice() is slow
+    data: [u8; 32],
+    index: usize,
+    // make mode u32 to work around https://github.com/japaric/heapless/issues/305
+    mode: u32,
+}
+
+impl ProfileSerializer {
+    /// Construct a new serializer.
+    ///
+    /// # Args
+    /// * `mode` - The communication mode of the DDS.
+    pub fn new(mode: Mode) -> Self {
+        Self {
+            mode: mode as _,
+            data: [0; 32],
+            index: 0,
+        }
+    }
+
+    /// Update a number of channels with the requested profile.
+    ///
+    /// # Args
+    /// * `channels` - A set of channels to apply the configuration to.
+    /// * `ftw` - If provided, indicates a frequency tuning word for the channels.
+    /// * `pow` - If provided, indicates a phase offset word for the channels.
+    /// * `acr` - If provided, indicates the amplitude control register for the channels. The ACR
+    ///   should be stored in the 3 LSB of the word. Note that if amplitude scaling is to be used,
+    ///   the "Amplitude multiplier enable" bit must be set.
+    #[inline]
+    pub fn update_channels(
+        &mut self,
+        channels: Channel,
+        ftw: Option<u32>,
+        pow: Option<u16>,
+        acr: Option<u32>,
+    ) {
+        let csr = [self.mode as u8 | channels.bits()];
+        self.add_write(Register::CSR, &csr);
+
+        if let Some(ftw) = ftw {
+            self.add_write(Register::CFTW0, &ftw.to_be_bytes());
+        }
+
+        if let Some(pow) = pow {
+            self.add_write(Register::CPOW0, &pow.to_be_bytes());
+        }
+
+        if let Some(acr) = acr {
+            self.add_write(Register::ACR, &acr.to_be_bytes()[1..]);
+        }
+    }
+
+    /// Add a register write to the serialization data.
+    fn add_write(&mut self, register: Register, value: &[u8]) {
+        let data = &mut self.data[self.index..];
+        data[0] = register as u8;
+        data[1..][..value.len()].copy_from_slice(value);
+        self.index += value.len() + 1;
+    }
+
+    #[inline]
+    fn pad(&mut self) {
+        // Pad the buffer to 32-bit (4 byte) alignment by adding dummy writes to CSR and LSRR.
+        // In the case of 1 byte padding, this instead pads with 5 bytes as there is no
+        // valid single-byte write that could be used.
+        if self.index & 1 != 0 {
+            // Pad with 3 bytes
+            self.add_write(Register::LSRR, &[0, 0]);
+        }
+        if self.index & 2 != 0 {
+            // Pad with 2 bytes
+            self.add_write(Register::CSR, &[self.mode as _]);
+        }
+        debug_assert_eq!(self.index & 3, 0);
+    }
+
+    /// Get the serialized profile as a slice of 32-bit words.
+    ///
+    /// # Note
+    /// The serialized profile will be padded to the next 32-bit word boundary by adding dummy
+    /// writes to the CSR or LSRR registers.
+    ///
+    /// # Returns
+    /// A slice of `u32` words representing the serialized profile.
+    #[inline]
+    pub fn finalize(&mut self) -> &[u32] {
+        self.pad();
+        bytemuck::cast_slice(&self.data[..self.index])
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/dual_iir/dual-iir.rs.html b/firmware/src/dual_iir/dual-iir.rs.html new file mode 100644 index 0000000000..2628970127 --- /dev/null +++ b/firmware/src/dual_iir/dual-iir.rs.html @@ -0,0 +1,983 @@ +dual-iir.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+403
+404
+405
+406
+407
+408
+409
+410
+411
+412
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+444
+445
+446
+447
+448
+449
+450
+451
+452
+453
+454
+455
+456
+457
+458
+459
+460
+461
+462
+463
+464
+465
+466
+467
+468
+469
+470
+471
+472
+473
+474
+475
+476
+477
+478
+479
+480
+481
+482
+483
+484
+485
+486
+487
+488
+489
+490
+491
+
//! # Dual IIR
+//!
+//! The Dual IIR application exposes two configurable channels. Stabilizer samples input at a fixed
+//! rate, digitally filters the data, and then generates filtered output signals on the respective
+//! channel outputs.
+//!
+//! ## Features
+//! * Two indpenendent channels
+//! * up to 800 kHz rate, timed sampling
+//! * Run-time filter configuration
+//! * Input/Output data streaming
+//! * Down to 2 µs latency
+//! * f32 IIR math
+//! * Generic biquad (second order) IIR filter
+//! * Anti-windup
+//! * Derivative kick avoidance
+//!
+//! ## Settings
+//! Refer to the [Settings] structure for documentation of run-time configurable settings for this
+//! application.
+//!
+//! ## Telemetry
+//! Refer to [Telemetry] for information about telemetry reported by this application.
+//!
+//! ## Livestreaming
+//! This application streams raw ADC and DAC data over UDP. Refer to
+//! [stabilizer::net::data_stream](../stabilizer/net/data_stream/index.html) for more information.
+#![deny(warnings)]
+#![no_std]
+#![no_main]
+
+use core::mem::MaybeUninit;
+use core::sync::atomic::{fence, Ordering};
+
+use fugit::ExtU64;
+use mutex_trait::prelude::*;
+
+use idsp::iir;
+
+use stabilizer::{
+    hardware::{
+        self,
+        adc::{Adc0Input, Adc1Input, AdcCode},
+        afe::Gain,
+        dac::{Dac0Output, Dac1Output, DacCode},
+        hal,
+        signal_generator::{self, SignalGenerator},
+        timers::SamplingTimer,
+        DigitalInput0, DigitalInput1, SystemTimer, Systick, AFE0, AFE1,
+    },
+    net::{
+        data_stream::{FrameGenerator, StreamFormat, StreamTarget},
+        miniconf::Miniconf,
+        telemetry::{Telemetry, TelemetryBuffer},
+        NetworkState, NetworkUsers,
+    },
+};
+
+const SCALE: f32 = i16::MAX as _;
+
+// The number of cascaded IIR biquads per channel. Select 1 or 2!
+const IIR_CASCADE_LENGTH: usize = 1;
+
+// The number of samples in each batch process
+const BATCH_SIZE: usize = 8;
+
+// The logarithm of the number of 100MHz timer ticks between each sample. With a value of 2^7 =
+// 128, there is 1.28uS per sample, corresponding to a sampling frequency of 781.25 KHz.
+const SAMPLE_TICKS_LOG2: u8 = 7;
+const SAMPLE_TICKS: u32 = 1 << SAMPLE_TICKS_LOG2;
+const SAMPLE_PERIOD: f32 =
+    SAMPLE_TICKS as f32 * hardware::design_parameters::TIMER_PERIOD;
+
+#[derive(Clone, Copy, Debug, Miniconf)]
+pub struct Settings {
+    /// Configure the Analog Front End (AFE) gain.
+    ///
+    /// # Path
+    /// `afe/<n>`
+    ///
+    /// * `<n>` specifies which channel to configure. `<n>` := [0, 1]
+    ///
+    /// # Value
+    /// Any of the variants of [Gain] enclosed in double quotes.
+    #[miniconf(defer)]
+    afe: [Gain; 2],
+
+    /// Configure the IIR filter parameters.
+    ///
+    /// # Path
+    /// `iir_ch/<n>/<m>`
+    ///
+    /// * `<n>` specifies which channel to configure. `<n>` := [0, 1]
+    /// * `<m>` specifies which cascade to configure. `<m>` := [0, 1], depending on [IIR_CASCADE_LENGTH]
+    ///
+    /// # Value
+    /// See [iir::IIR#miniconf]
+    #[miniconf(defer)]
+    iir_ch: miniconf::Array<[iir::IIR<f32>; IIR_CASCADE_LENGTH], 2>,
+
+    /// Specified true if DI1 should be used as a "hold" input.
+    ///
+    /// # Path
+    /// `allow_hold`
+    ///
+    /// # Value
+    /// "true" or "false"
+    allow_hold: bool,
+
+    /// Specified true if "hold" should be forced regardless of DI1 state and hold allowance.
+    ///
+    /// # Path
+    /// `force_hold`
+    ///
+    /// # Value
+    /// "true" or "false"
+    force_hold: bool,
+
+    /// Specifies the telemetry output period in seconds.
+    ///
+    /// # Path
+    /// `telemetry_period`
+    ///
+    /// # Value
+    /// Any non-zero value less than 65536.
+    telemetry_period: u16,
+
+    /// Specifies the target for data livestreaming.
+    ///
+    /// # Path
+    /// `stream_target`
+    ///
+    /// # Value
+    /// See [StreamTarget#miniconf]
+    stream_target: StreamTarget,
+
+    /// Specifies the config for signal generators to add on to DAC0/DAC1 outputs.
+    ///
+    /// # Path
+    /// `signal_generator/<n>`
+    ///
+    /// * `<n>` specifies which channel to configure. `<n>` := [0, 1]
+    ///
+    /// # Value
+    /// See [signal_generator::BasicConfig#miniconf]
+    #[miniconf(defer)]
+    signal_generator: miniconf::Array<signal_generator::BasicConfig, 2>,
+}
+
+impl Default for Settings {
+    fn default() -> Self {
+        Self {
+            // Analog frontend programmable gain amplifier gains (G1, G2, G5, G10)
+            afe: [Gain::G1, Gain::G1],
+            // IIR filter tap gains are an array `[b0, b1, b2, a1, a2]` such that the
+            // new output is computed as `y0 = a1*y1 + a2*y2 + b0*x0 + b1*x1 + b2*x2`.
+            // The array is `iir_state[channel-index][cascade-index][coeff-index]`.
+            // The IIR coefficients can be mapped to other transfer function
+            // representations, for example as described in https://arxiv.org/abs/1508.06319
+            iir_ch: [[iir::IIR::new(1., -SCALE, SCALE); IIR_CASCADE_LENGTH]; 2]
+                .into(),
+
+            // Permit the DI1 digital input to suppress filter output updates.
+            allow_hold: false,
+            // Force suppress filter output updates.
+            force_hold: false,
+            // The default telemetry period in seconds.
+            telemetry_period: 10,
+
+            signal_generator: [signal_generator::BasicConfig::default(); 2]
+                .into(),
+
+            stream_target: StreamTarget::default(),
+        }
+    }
+}
+
+#[rtic::app(device = stabilizer::hardware::hal::stm32, peripherals = true, dispatchers=[DCMI, JPEG, LTDC, SDMMC])]
+mod app {
+    use super::*;
+
+    #[monotonic(binds = SysTick, default = true, priority = 2)]
+    type Monotonic = Systick;
+
+    #[shared]
+    struct Shared {
+        network: NetworkUsers<Settings, Telemetry>,
+
+        settings: Settings,
+        telemetry: TelemetryBuffer,
+        signal_generator: [SignalGenerator; 2],
+    }
+
+    #[local]
+    struct Local {
+        sampling_timer: SamplingTimer,
+        digital_inputs: (DigitalInput0, DigitalInput1),
+        afes: (AFE0, AFE1),
+        adcs: (Adc0Input, Adc1Input),
+        dacs: (Dac0Output, Dac1Output),
+        iir_state: [[iir::Vec5<f32>; IIR_CASCADE_LENGTH]; 2],
+        generator: FrameGenerator,
+        cpu_temp_sensor: stabilizer::hardware::cpu_temp_sensor::CpuTempSensor,
+    }
+
+    #[init]
+    fn init(c: init::Context) -> (Shared, Local, init::Monotonics) {
+        let clock = SystemTimer::new(|| monotonics::now().ticks() as u32);
+
+        // Configure the microcontroller
+        let (stabilizer, _pounder) = hardware::setup::setup(
+            c.core,
+            c.device,
+            clock,
+            BATCH_SIZE,
+            SAMPLE_TICKS,
+        );
+
+        let mut network = NetworkUsers::new(
+            stabilizer.net.stack,
+            stabilizer.net.phy,
+            clock,
+            env!("CARGO_BIN_NAME"),
+            stabilizer.net.mac_address,
+            option_env!("BROKER")
+                .unwrap_or("10.34.16.1")
+                .parse()
+                .unwrap(),
+        );
+
+        let generator = network
+            .configure_streaming(StreamFormat::AdcDacData, BATCH_SIZE as _);
+
+        let settings = Settings::default();
+
+        let shared = Shared {
+            network,
+            settings,
+            telemetry: TelemetryBuffer::default(),
+            signal_generator: [
+                SignalGenerator::new(
+                    settings.signal_generator[0]
+                        .try_into_config(SAMPLE_PERIOD, DacCode::FULL_SCALE)
+                        .unwrap(),
+                ),
+                SignalGenerator::new(
+                    settings.signal_generator[1]
+                        .try_into_config(SAMPLE_PERIOD, DacCode::FULL_SCALE)
+                        .unwrap(),
+                ),
+            ],
+        };
+
+        let mut local = Local {
+            sampling_timer: stabilizer.adc_dac_timer,
+            digital_inputs: stabilizer.digital_inputs,
+            afes: stabilizer.afes,
+            adcs: stabilizer.adcs,
+            dacs: stabilizer.dacs,
+            iir_state: [[[0.; 5]; IIR_CASCADE_LENGTH]; 2],
+            generator,
+            cpu_temp_sensor: stabilizer.temperature_sensor,
+        };
+
+        // Enable ADC/DAC events
+        local.adcs.0.start();
+        local.adcs.1.start();
+        local.dacs.0.start();
+        local.dacs.1.start();
+
+        // Spawn a settings update for default settings.
+        settings_update::spawn().unwrap();
+        telemetry::spawn().unwrap();
+        ethernet_link::spawn().unwrap();
+        start::spawn_after(100.millis()).unwrap();
+
+        (shared, local, init::Monotonics(stabilizer.systick))
+    }
+
+    #[task(priority = 1, local=[sampling_timer])]
+    fn start(c: start::Context) {
+        // Start sampling ADCs and DACs.
+        c.local.sampling_timer.start();
+    }
+
+    /// Main DSP processing routine.
+    ///
+    /// # Note
+    /// Processing time for the DSP application code is bounded by the following constraints:
+    ///
+    /// DSP application code starts after the ADC has generated a batch of samples and must be
+    /// completed by the time the next batch of ADC samples has been acquired (plus the FIFO buffer
+    /// time). If this constraint is not met, firmware will panic due to an ADC input overrun.
+    ///
+    /// The DSP application code must also fill out the next DAC output buffer in time such that the
+    /// DAC can switch to it when it has completed the current buffer. If this constraint is not met
+    /// it's possible that old DAC codes will be generated on the output and the output samples will
+    /// be delayed by 1 batch.
+    ///
+    /// Because the ADC and DAC operate at the same rate, these two constraints actually implement
+    /// the same time bounds, meeting one also means the other is also met.
+    #[task(binds=DMA1_STR4, local=[digital_inputs, adcs, dacs, iir_state, generator], shared=[settings, signal_generator, telemetry], priority=3)]
+    #[link_section = ".itcm.process"]
+    fn process(c: process::Context) {
+        let process::SharedResources {
+            settings,
+            telemetry,
+            signal_generator,
+        } = c.shared;
+
+        let process::LocalResources {
+            digital_inputs,
+            adcs: (adc0, adc1),
+            dacs: (dac0, dac1),
+            iir_state,
+            generator,
+        } = c.local;
+
+        (settings, telemetry, signal_generator).lock(
+            |settings, telemetry, signal_generator| {
+                let digital_inputs =
+                    [digital_inputs.0.is_high(), digital_inputs.1.is_high()];
+                telemetry.digital_inputs = digital_inputs;
+
+                let hold = settings.force_hold
+                    || (digital_inputs[1] && settings.allow_hold);
+
+                (adc0, adc1, dac0, dac1).lock(|adc0, adc1, dac0, dac1| {
+                    let adc_samples = [adc0, adc1];
+                    let dac_samples = [dac0, dac1];
+
+                    // Preserve instruction and data ordering w.r.t. DMA flag access.
+                    fence(Ordering::SeqCst);
+
+                    for channel in 0..adc_samples.len() {
+                        adc_samples[channel]
+                            .iter()
+                            .zip(dac_samples[channel].iter_mut())
+                            .zip(&mut signal_generator[channel])
+                            .map(|((ai, di), signal)| {
+                                let x = f32::from(*ai as i16);
+                                let y = settings.iir_ch[channel]
+                                    .iter()
+                                    .zip(iir_state[channel].iter_mut())
+                                    .fold(x, |yi, (ch, state)| {
+                                        ch.update(state, yi, hold)
+                                    });
+
+                                // Note(unsafe): The filter limits must ensure that the value is in range.
+                                // The truncation introduces 1/2 LSB distortion.
+                                let y: i16 = unsafe { y.to_int_unchecked() };
+
+                                let y = y.saturating_add(signal);
+
+                                // Convert to DAC code
+                                *di = DacCode::from(y).0;
+                            })
+                            .last();
+                    }
+
+                    // Stream the data.
+                    const N: usize = BATCH_SIZE * core::mem::size_of::<i16>()
+                        / core::mem::size_of::<MaybeUninit<u8>>();
+                    generator.add::<_, { N * 4 }>(|buf| {
+                        for (data, buf) in adc_samples
+                            .iter()
+                            .chain(dac_samples.iter())
+                            .zip(buf.chunks_exact_mut(N))
+                        {
+                            let data = unsafe {
+                                core::slice::from_raw_parts(
+                                    data.as_ptr() as *const MaybeUninit<u8>,
+                                    N,
+                                )
+                            };
+                            buf.copy_from_slice(data)
+                        }
+                    });
+                    // Update telemetry measurements.
+                    telemetry.adcs = [
+                        AdcCode(adc_samples[0][0]),
+                        AdcCode(adc_samples[1][0]),
+                    ];
+
+                    telemetry.dacs = [
+                        DacCode(dac_samples[0][0]),
+                        DacCode(dac_samples[1][0]),
+                    ];
+
+                    // Preserve instruction and data ordering w.r.t. DMA flag access.
+                    fence(Ordering::SeqCst);
+                });
+            },
+        );
+    }
+
+    #[idle(shared=[network])]
+    fn idle(mut c: idle::Context) -> ! {
+        loop {
+            match c.shared.network.lock(|net| net.update()) {
+                NetworkState::SettingsChanged(_path) => {
+                    settings_update::spawn().unwrap()
+                }
+                NetworkState::Updated => {}
+                NetworkState::NoChange => cortex_m::asm::wfi(),
+            }
+        }
+    }
+
+    #[task(priority = 1, local=[afes], shared=[network, settings, signal_generator])]
+    fn settings_update(mut c: settings_update::Context) {
+        let settings = c.shared.network.lock(|net| *net.miniconf.settings());
+        c.shared.settings.lock(|current| *current = settings);
+
+        c.local.afes.0.set_gain(settings.afe[0]);
+        c.local.afes.1.set_gain(settings.afe[1]);
+
+        // Update the signal generators
+        for (i, &config) in settings.signal_generator.iter().enumerate() {
+            match config.try_into_config(SAMPLE_PERIOD, DacCode::FULL_SCALE) {
+                Ok(config) => {
+                    c.shared
+                        .signal_generator
+                        .lock(|generator| generator[i].update_waveform(config));
+                }
+                Err(err) => log::error!(
+                    "Failed to update signal generation on DAC{}: {:?}",
+                    i,
+                    err
+                ),
+            }
+        }
+
+        let target = settings.stream_target.into();
+        c.shared.network.lock(|net| net.direct_stream(target));
+    }
+
+    #[task(priority = 1, shared=[network, settings, telemetry], local=[cpu_temp_sensor])]
+    fn telemetry(mut c: telemetry::Context) {
+        let telemetry: TelemetryBuffer =
+            c.shared.telemetry.lock(|telemetry| *telemetry);
+
+        let (gains, telemetry_period) = c
+            .shared
+            .settings
+            .lock(|settings| (settings.afe, settings.telemetry_period));
+
+        c.shared.network.lock(|net| {
+            net.telemetry.publish(&telemetry.finalize(
+                gains[0],
+                gains[1],
+                c.local.cpu_temp_sensor.get_temperature().unwrap(),
+            ))
+        });
+
+        // Schedule the telemetry task in the future.
+        telemetry::Monotonic::spawn_after((telemetry_period as u64).secs())
+            .unwrap();
+    }
+
+    #[task(priority = 1, shared=[network])]
+    fn ethernet_link(mut c: ethernet_link::Context) {
+        c.shared.network.lock(|net| net.processor.handle_link());
+        ethernet_link::Monotonic::spawn_after(1.secs()).unwrap();
+    }
+
+    #[task(binds = ETH, priority = 1)]
+    fn eth(_: eth::Context) {
+        unsafe { hal::ethernet::interrupt_handler() }
+    }
+
+    #[task(binds = SPI2, priority = 4)]
+    fn spi2(_: spi2::Context) {
+        panic!("ADC0 SPI error");
+    }
+
+    #[task(binds = SPI3, priority = 4)]
+    fn spi3(_: spi3::Context) {
+        panic!("ADC1 SPI error");
+    }
+
+    #[task(binds = SPI4, priority = 4)]
+    fn spi4(_: spi4::Context) {
+        panic!("DAC0 SPI error");
+    }
+
+    #[task(binds = SPI5, priority = 4)]
+    fn spi5(_: spi5::Context) {
+        panic!("DAC1 SPI error");
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/accu.rs.html b/firmware/src/idsp/accu.rs.html new file mode 100644 index 0000000000..1f88095f3e --- /dev/null +++ b/firmware/src/idsp/accu.rs.html @@ -0,0 +1,51 @@ +accu.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+
use num_traits::ops::wrapping::WrappingAdd;
+
+#[derive(Copy, Clone, Default, PartialEq, Eq, Debug)]
+pub struct Accu<T> {
+    state: T,
+    step: T,
+}
+
+impl<T> Accu<T> {
+    pub fn new(state: T, step: T) -> Self {
+        Self { state, step }
+    }
+}
+
+impl<T> Iterator for Accu<T>
+where
+    T: WrappingAdd + Copy,
+{
+    type Item = T;
+    fn next(&mut self) -> Option<T> {
+        let s = self.state;
+        self.state = s.wrapping_add(&self.step);
+        Some(s)
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/atan2.rs.html b/firmware/src/idsp/atan2.rs.html new file mode 100644 index 0000000000..1378cd4954 --- /dev/null +++ b/firmware/src/idsp/atan2.rs.html @@ -0,0 +1,275 @@ +atan2.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+
fn divi(mut y: u32, mut x: u32) -> u32 {
+    debug_assert!(y <= x);
+    let z = y.leading_zeros().min(15);
+    y <<= z;
+    x += (1 << (15 - z)) - 1;
+    x >>= 16 - z;
+    if x == 0 {
+        0 // x == y == 0
+    } else {
+        ((y / x) << 15) + (1 << 14)
+    }
+}
+
+fn atani(x: u32) -> u32 {
+    const A: [i32; 6] = [
+        0x0517c2cd,
+        -0x06c6496b,
+        0x0fbdb026,
+        -0x25b32e58,
+        0x43b34e3c,
+        -0x3bc82700,
+    ];
+    let x = x as i64;
+    let x2 = ((x * x) >> 32) as i32 as i64;
+    let r = A
+        .iter()
+        .rev()
+        .fold(0, |r, a| ((r as i64 * x2) >> 32) as i32 + a);
+    ((r as i64 * x) >> 28) as _
+}
+
+/// 2-argument arctangent function.
+///
+/// This implementation uses all integer arithmetic for fast
+/// computation.
+///
+/// # Arguments
+///
+/// * `y` - Y-axis component.
+/// * `x` - X-axis component.
+///
+/// # Returns
+///
+/// The angle between the x-axis and the ray to the point (x,y). The
+/// result range is from i32::MIN to i32::MAX, where i32::MIN
+/// represents -pi and, equivalently, +pi. i32::MAX represents one
+/// count less than +pi.
+pub fn atan2(mut y: i32, mut x: i32) -> i32 {
+    let mut k = 0u32;
+    if y < 0 {
+        y = y.saturating_neg();
+        k ^= u32::MAX;
+    }
+    if x < 0 {
+        x = x.saturating_neg();
+        k ^= u32::MAX >> 1;
+    }
+    if y > x {
+        (y, x) = (x, y);
+        k ^= u32::MAX >> 2;
+    }
+    let r = atani(divi(y as _, x as _));
+    (r ^ k) as _
+}
+
+#[cfg(test)]
+mod tests {
+    use super::*;
+    use core::f64::consts::PI;
+
+    #[test]
+    fn atan2_error() {
+        const N: isize = 201;
+        for i in 0..N {
+            let p = ((1. - 2. * i as f64 / N as f64) * i32::MIN as f64) as i32;
+            let pf = p as f64 / i32::MIN as f64 * -PI;
+            let y = (pf.sin() * i32::MAX as f64) as i32;
+            let x = (pf.cos() * i32::MAX as f64) as i32;
+            let _p0 = (y as f64).atan2(x as f64);
+            let pp = atan2(y, x);
+            let pe = -(pp as f64 / i32::MIN as f64);
+            println!(
+                "y:{:.5e}, x:{:.5e}, p/PI:{:.5e}: pe:{:.5e}, pe*PI-p0:{:.5e}",
+                y as f64 / i32::MAX as f64,
+                x as f64 / i32::MAX as f64,
+                pf / PI,
+                pe,
+                pe * PI - pf
+            );
+        }
+    }
+
+    fn angle_to_axis(angle: f64) -> f64 {
+        let angle = angle % (PI / 2.);
+        (PI / 2. - angle).min(angle)
+    }
+
+    #[test]
+    fn atan2_absolute_error() {
+        const N: usize = 321;
+        let mut test_vals = [0i32; N + 2];
+        let scale = (1i64 << 31) as f64;
+        for i in 0..N {
+            test_vals[i] = (scale * (-1. + 2. * i as f64 / N as f64)) as i32;
+        }
+
+        assert!(test_vals.contains(&i32::MIN));
+        test_vals[N] = i32::MAX;
+        test_vals[N + 1] = 0;
+
+        let mut rms_err = 0f64;
+        let mut abs_err = 0f64;
+        let mut rel_err = 0f64;
+
+        for &x in test_vals.iter() {
+            for &y in test_vals.iter() {
+                let want = (y as f64).atan2(x as f64);
+                let have = atan2(y, x) as f64 * (PI / scale);
+                let err = (have - want).abs();
+                abs_err = abs_err.max(err);
+                rms_err += err * err;
+                if err > 3e-5 {
+                    println!("{:.5e}/{:.5e}: {:.5e} vs {:.5e}", y, x, have, want);
+                    println!("y/x {} {}", y, x);
+                    rel_err = rel_err.max(err / angle_to_axis(want));
+                }
+            }
+        }
+        rms_err = rms_err.sqrt() / test_vals.len() as f64;
+        println!("max abs err: {:.2e}", abs_err);
+        println!("rms abs err: {:.2e}", rms_err);
+        println!("max rel err: {:.2e}", rel_err);
+        assert!(abs_err < 1.2e-5);
+        assert!(rms_err < 4.2e-6);
+        assert!(rel_err < 1e-12);
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/complex.rs.html b/firmware/src/idsp/complex.rs.html new file mode 100644 index 0000000000..ad78c25ec1 --- /dev/null +++ b/firmware/src/idsp/complex.rs.html @@ -0,0 +1,265 @@ +complex.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+
pub use num_complex::Complex;
+
+use super::{atan2, cossin};
+
+/// Complex extension trait offering DSP (fast, good accuracy) functionality.
+pub trait ComplexExt<T, U> {
+    fn from_angle(angle: T) -> Self;
+    fn abs_sqr(&self) -> U;
+    fn log2(&self) -> T;
+    fn arg(&self) -> T;
+    fn saturating_add(&self, other: Self) -> Self;
+    fn saturating_sub(&self, other: Self) -> Self;
+}
+
+impl ComplexExt<i32, u32> for Complex<i32> {
+    /// Return a Complex on the unit circle given an angle.
+    ///
+    /// Example:
+    ///
+    /// ```
+    /// use idsp::{Complex, ComplexExt};
+    /// Complex::<i32>::from_angle(0);
+    /// Complex::<i32>::from_angle(1 << 30);  // pi/2
+    /// Complex::<i32>::from_angle(-1 << 30);  // -pi/2
+    /// ```
+    fn from_angle(angle: i32) -> Self {
+        let (c, s) = cossin(angle);
+        Self::new(c, s)
+    }
+
+    /// Return the absolute square (the squared magnitude).
+    ///
+    /// Note: Normalization is `1 << 32`, i.e. U0.32.
+    ///
+    /// Note(panic): This will panic for `Complex(i32::MIN, i32::MIN)`
+    ///
+    /// Example:
+    ///
+    /// ```
+    /// use idsp::{Complex, ComplexExt};
+    /// assert_eq!(Complex::new(i32::MIN, 0).abs_sqr(), 1 << 31);
+    /// assert_eq!(Complex::new(i32::MAX, i32::MAX).abs_sqr(), u32::MAX - 3);
+    /// ```
+    fn abs_sqr(&self) -> u32 {
+        (((self.re as i64) * (self.re as i64) + (self.im as i64) * (self.im as i64)) >> 31) as u32
+    }
+
+    /// log2(power) re full scale approximation
+    ///
+    /// TODO: scale up, interpolate
+    ///
+    /// Panic:
+    /// This will panic for `Complex(i32::MIN, i32::MIN)`
+    ///
+    /// Example:
+    ///
+    /// ```
+    /// use idsp::{Complex, ComplexExt};
+    /// assert_eq!(Complex::new(i32::MAX, i32::MAX).log2(), -1);
+    /// assert_eq!(Complex::new(i32::MAX, 0).log2(), -2);
+    /// assert_eq!(Complex::new(1, 0).log2(), -63);
+    /// assert_eq!(Complex::new(0, 0).log2(), -64);
+    /// ```
+    fn log2(&self) -> i32 {
+        let a = (self.re as i64) * (self.re as i64) + (self.im as i64) * (self.im as i64);
+        -(a.leading_zeros() as i32)
+    }
+
+    /// Return the angle.
+    ///
+    /// Note: Normalization is `1 << 31 == pi`.
+    ///
+    /// Example:
+    ///
+    /// ```
+    /// use idsp::{Complex, ComplexExt};
+    /// assert_eq!(Complex::new(0, 0).arg(), 0);
+    /// ```
+    fn arg(&self) -> i32 {
+        atan2(self.im, self.re)
+    }
+
+    fn saturating_add(&self, other: Self) -> Self {
+        Self::new(
+            self.re.saturating_add(other.re),
+            self.im.saturating_add(other.im),
+        )
+    }
+
+    fn saturating_sub(&self, other: Self) -> Self {
+        Self::new(
+            self.re.saturating_sub(other.re),
+            self.im.saturating_sub(other.im),
+        )
+    }
+}
+
+/// Full scale fixed point multiplication.
+pub trait MulScaled<T> {
+    fn mul_scaled(self, other: T) -> Self;
+}
+
+impl MulScaled<Complex<i32>> for Complex<i32> {
+    fn mul_scaled(self, other: Self) -> Self {
+        let a = self.re as i64;
+        let b = self.im as i64;
+        let c = other.re as i64;
+        let d = other.im as i64;
+        Complex {
+            re: ((a * c - b * d + (1 << 30)) >> 31) as i32,
+            im: ((b * c + a * d + (1 << 30)) >> 31) as i32,
+        }
+    }
+}
+
+impl MulScaled<i32> for Complex<i32> {
+    fn mul_scaled(self, other: i32) -> Self {
+        Complex {
+            re: ((other as i64 * self.re as i64 + (1 << 30)) >> 31) as i32,
+            im: ((other as i64 * self.im as i64 + (1 << 30)) >> 31) as i32,
+        }
+    }
+}
+
+impl MulScaled<i16> for Complex<i32> {
+    fn mul_scaled(self, other: i16) -> Self {
+        Complex {
+            re: (other as i32 * (self.re >> 16) + (1 << 14)) >> 15,
+            im: (other as i32 * (self.im >> 16) + (1 << 14)) >> 15,
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/cossin.rs.html b/firmware/src/idsp/cossin.rs.html new file mode 100644 index 0000000000..14d045bf48 --- /dev/null +++ b/firmware/src/idsp/cossin.rs.html @@ -0,0 +1,287 @@ +cossin.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+
include!(concat!(env!("OUT_DIR"), "/cossin_table.rs"));
+
+/// Compute the cosine and sine of an angle.
+/// This is ported from the MiSoC cossin core.
+/// <https://github.com/m-labs/misoc/blob/master/misoc/cores/cossin.py>
+///
+/// # Arguments
+/// * `phase` - 32-bit phase.
+///
+/// # Returns
+/// The cos and sin values of the provided phase as a `(i32, i32)`
+/// tuple. With a 7-bit deep LUT there is 9e-6 max and 4e-6 RMS error
+/// in each quadrature over 20 bit phase.
+pub fn cossin(mut phase: i32) -> (i32, i32) {
+    let mut octant = phase as u32;
+    if octant & (1 << 29) != 0 {
+        // phase = pi/4 - phase
+        phase = !phase;
+    }
+
+    // 16 + 1 bits for cos/sin and 15 for dphi to saturate the i32 range.
+    const ALIGN_MSB: usize = 32 - 16 - 1;
+
+    // Mask off octant bits. This leaves the angle in the range [0, pi/4).
+    phase = (((phase as u32) << 3) >> (32 - COSSIN_DEPTH - ALIGN_MSB)) as _;
+
+    let lookup = COSSIN[(phase >> ALIGN_MSB) as usize];
+    phase &= (1 << ALIGN_MSB) - 1;
+
+    // The phase values used for the LUT are at midpoint for the truncated phase.
+    // Interpolate relative to the LUT entry midpoint.
+    phase -= 1 << (ALIGN_MSB - 1);
+
+    // Cancel the -1 bias that was conditionally introduced above.
+    // This lowers the DC spur from 2e-8 to 2e-10 magnitude.
+    // phase += (octant & 1) as i32;
+
+    // Fixed point pi/4.
+    const PI4: i32 = (core::f64::consts::FRAC_PI_4 * (1 << 16) as f64) as _;
+    // No rounding bias necessary here since we keep enough low bits.
+    let dphi = (phase * PI4) >> 16;
+
+    // 1/2 < cos(0 <= x <= pi/4) <= 1: Shift the cos
+    // values and scale the sine values as encoded in the LUT.
+    let mut cos = (lookup & 0xffff) as i32 + (1 << 16);
+    let mut sin = (lookup >> 16) as i32;
+
+    let dcos = (sin * dphi) >> COSSIN_DEPTH;
+    let dsin = (cos * dphi) >> (COSSIN_DEPTH + 1);
+
+    cos = (cos << (ALIGN_MSB - 1)) - dcos;
+    sin = (sin << ALIGN_MSB) + dsin;
+
+    // Unmap using octant bits.
+    octant ^= octant >> 1;
+    if octant & (1 << 29) != 0 {
+        (cos, sin) = (sin, cos);
+    }
+    if octant & (1 << 30) != 0 {
+        cos = -cos;
+    }
+    if octant & (1 << 31) != 0 {
+        sin = -sin;
+    }
+
+    (cos, sin)
+}
+
+#[cfg(test)]
+mod tests {
+    use super::*;
+    use core::f64::consts::PI;
+
+    #[test]
+    fn cossin_error_max_rms_all_phase() {
+        // Constant amplitude error due to LUT data range.
+        const AMPLITUDE: f64 = (1i64 << 31) as f64 - 0.85 * (1i64 << 15) as f64;
+        const MAX_PHASE: f64 = (1i64 << 32) as _;
+        let mut rms_err = (0f64, 0f64);
+        let mut sum_err = (0f64, 0f64);
+        let mut max_err = (0f64, 0f64);
+        let mut sum = (0f64, 0f64);
+        let mut demod = (0f64, 0f64);
+
+        // use std::{fs::File, io::{BufWriter, prelude::*}, path::Path};
+        // let mut file = BufWriter::new(File::create(Path::new("data.bin")).unwrap());
+
+        // log2 of the number of phase values to check
+        const PHASE_DEPTH: usize = 20;
+
+        for phase in 0..(1 << PHASE_DEPTH) {
+            let phase = (phase << (32 - PHASE_DEPTH)) as i32;
+            let have = cossin(phase);
+            // file.write(&have.0.to_le_bytes()).unwrap();
+            // file.write(&have.1.to_le_bytes()).unwrap();
+
+            let have = (have.0 as f64 / AMPLITUDE, have.1 as f64 / AMPLITUDE);
+
+            let radian_phase = 2. * PI * phase as f64 / MAX_PHASE;
+            let want = (radian_phase.cos(), radian_phase.sin());
+
+            sum.0 += have.0;
+            sum.1 += have.1;
+
+            demod.0 += have.0 * want.0 - have.1 * want.1;
+            demod.1 += have.1 * want.0 + have.0 * want.1;
+
+            let err = (have.0 - want.0, have.1 - want.1);
+
+            sum_err.0 += err.0;
+            sum_err.1 += err.1;
+
+            rms_err.0 += err.0 * err.0;
+            rms_err.1 += err.1 * err.1;
+
+            max_err.0 = max_err.0.max(err.0.abs());
+            max_err.1 = max_err.1.max(err.1.abs());
+        }
+        rms_err.0 /= (1 << PHASE_DEPTH) as f64;
+        rms_err.1 /= (1 << PHASE_DEPTH) as f64;
+
+        println!("sum: {:.2e} {:.2e}", sum.0, sum.1);
+        println!("demod: {:.2e} {:.2e}", demod.0, demod.1);
+        println!("sum_err: {:.2e} {:.2e}", sum_err.0, sum_err.1);
+        println!("rms: {:.2e} {:.2e}", rms_err.0.sqrt(), rms_err.1.sqrt());
+        println!("max: {:.2e} {:.2e}", max_err.0, max_err.1);
+
+        assert!(sum.0.abs() < 4e-10);
+        assert!(sum.1.abs() < 3e-8);
+
+        assert!(demod.0.abs() < 4e-10);
+        assert!(demod.1.abs() < 1e-8);
+
+        assert!(sum_err.0.abs() < 4e-10);
+        assert!(sum_err.1.abs() < 4e-10);
+
+        assert!(rms_err.0.sqrt() < 4e-6);
+        assert!(rms_err.1.sqrt() < 4e-6);
+
+        assert!(max_err.0 < 1e-5);
+        assert!(max_err.1 < 1e-5);
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/iir.rs.html b/firmware/src/idsp/iir.rs.html new file mode 100644 index 0000000000..945b705a6d --- /dev/null +++ b/firmware/src/idsp/iir.rs.html @@ -0,0 +1,319 @@ +iir.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+
use serde::{Deserialize, Serialize};
+
+use super::{abs, copysign, macc};
+use core::iter::Sum;
+use num_traits::{clamp, Float, NumCast};
+
+/// IIR state and coefficients type.
+///
+/// To represent the IIR state (input and output memory) during the filter update
+/// this contains the three inputs (x0, x1, x2) and the two outputs (y1, y2)
+/// concatenated. Lower indices correspond to more recent samples.
+/// To represent the IIR coefficients, this contains the feed-forward
+/// coefficients (b0, b1, b2) followd by the negated feed-back coefficients
+/// (-a1, -a2), all five normalized such that a0 = 1.
+pub type Vec5<T> = [T; 5];
+
+/// IIR configuration.
+///
+/// Contains the coeeficients `ba`, the output offset `y_offset`, and the
+/// output limits `y_min` and `y_max`. Data is represented in variable precision
+/// floating-point. The dataformat is the same for all internal signals, input
+/// and output.
+///
+/// This implementation achieves several important properties:
+///
+/// * Its transfer function is universal in the sense that any biquadratic
+///   transfer function can be implemented (high-passes, gain limits, second
+///   order integrators with inherent anti-windup, notches etc) without code
+///   changes preserving all features.
+/// * It inherits a universal implementation of "integrator anti-windup", also
+///   and especially in the presence of set-point changes and in the presence
+///   of proportional or derivative gain without any back-off that would reduce
+///   steady-state output range.
+/// * It has universal derivative-kick (undesired, unlimited, and un-physical
+///   amplification of set-point changes by the derivative term) avoidance.
+/// * An offset at the input of an IIR filter (a.k.a. "set-point") is
+///   equivalent to an offset at the output. They are related by the
+///   overall (DC feed-forward) gain of the filter.
+/// * It stores only previous outputs and inputs. These have direct and
+///   invariant interpretation (independent of gains and offsets).
+///   Therefore it can trivially implement bump-less transfer.
+/// * Cascading multiple IIR filters allows stable and robust
+///   implementation of transfer functions beyond bequadratic terms.
+///
+/// # Serialization/Deserialization/Miniconf
+///
+/// `{"y_offset": y_offset, "y_min": y_min, "y_max": y_max, "ba": [b0, b1, b2, a1, a2]}`
+///
+/// * `y0` is the output offset code
+/// * `ym` is the lower saturation limit
+/// * `yM` is the upper saturation limit
+///
+/// IIR filter tap gains (`ba`) are an array `[b0, b1, b2, a1, a2]` such that the
+/// new output is computed as `y0 = a1*y1 + a2*y2 + b0*x0 + b1*x1 + b2*x2`.
+/// The IIR coefficients can be mapped to other transfer function
+/// representations, for example as described in <https://arxiv.org/abs/1508.06319>
+#[derive(Copy, Clone, Debug, Default, Deserialize, Serialize)]
+pub struct IIR<T> {
+    pub ba: Vec5<T>,
+    pub y_offset: T,
+    pub y_min: T,
+    pub y_max: T,
+}
+
+impl<T: Float + Default + Sum<T>> IIR<T> {
+    pub fn new(gain: T, y_min: T, y_max: T) -> Self {
+        Self {
+            ba: [gain, T::default(), T::default(), T::default(), T::default()],
+            y_offset: T::default(),
+            y_min,
+            y_max,
+        }
+    }
+
+    /// Configures IIR filter coefficients for proportional-integral behavior
+    /// with gain limit.
+    ///
+    /// # Arguments
+    ///
+    /// * `kp` - Proportional gain. Also defines gain sign.
+    /// * `ki` - Integral gain at Nyquist. Sign taken from `kp`.
+    /// * `g` - Gain limit.
+    pub fn set_pi(&mut self, kp: T, ki: T, g: T) -> Result<(), &str> {
+        let zero: T = T::default();
+        let one: T = NumCast::from(1.0).unwrap();
+        let two: T = NumCast::from(2.0).unwrap();
+        let ki = copysign(ki, kp);
+        let g = copysign(g, kp);
+        let (a1, b0, b1) = if abs(ki) < T::epsilon() {
+            (zero, kp, zero)
+        } else {
+            let c = if abs(g) < T::epsilon() {
+                one
+            } else {
+                one / (one + ki / g)
+            };
+            let a1 = two * c - one;
+            let b0 = ki * c + kp;
+            let b1 = ki * c - a1 * kp;
+            if abs(b0 + b1) < T::epsilon() {
+                return Err("low integrator gain and/or gain limit");
+            }
+            (a1, b0, b1)
+        };
+        self.ba.copy_from_slice(&[b0, b1, zero, a1, zero]);
+        Ok(())
+    }
+
+    /// Compute the overall (DC feed-forward) gain.
+    pub fn get_k(&self) -> T {
+        self.ba[..3].iter().copied().sum()
+    }
+
+    // /// Compute input-referred (`x`) offset from output (`y`) offset.
+    pub fn get_x_offset(&self) -> Result<T, &str> {
+        let k = self.get_k();
+        if abs(k) < T::epsilon() {
+            Err("k is zero")
+        } else {
+            Ok(self.y_offset / k)
+        }
+    }
+    /// Convert input (`x`) offset to equivalent output (`y`) offset and apply.
+    ///
+    /// # Arguments
+    /// * `xo`: Input (`x`) offset.
+    pub fn set_x_offset(&mut self, xo: T) {
+        self.y_offset = xo * self.get_k();
+    }
+
+    /// Feed a new input value into the filter, update the filter state, and
+    /// return the new output. Only the state `xy` is modified.
+    ///
+    /// # Arguments
+    /// * `xy` - Current filter state.
+    /// * `x0` - New input.
+    pub fn update(&self, xy: &mut Vec5<T>, x0: T, hold: bool) -> T {
+        let n = self.ba.len();
+        debug_assert!(xy.len() == n);
+        // `xy` contains       x0 x1 y0 y1 y2
+        // Increment time      x1 x2 y1 y2 y3
+        // Shift               x1 x1 x2 y1 y2
+        // This unrolls better than xy.rotate_right(1)
+        xy.copy_within(0..n - 1, 1);
+        // Store x0            x0 x1 x2 y1 y2
+        xy[0] = x0;
+        // Compute y0 by multiply-accumulate
+        let y0 = if hold {
+            xy[n / 2 + 1]
+        } else {
+            macc(self.y_offset, xy, &self.ba)
+        };
+        // Limit y0
+        let y0 = clamp(y0, self.y_min, self.y_max);
+        // Store y0            x0 x1 y0 y1 y2
+        xy[n / 2] = y0;
+        y0
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/iir_int.rs.html b/firmware/src/idsp/iir_int.rs.html new file mode 100644 index 0000000000..7220924acc --- /dev/null +++ b/firmware/src/idsp/iir_int.rs.html @@ -0,0 +1,193 @@ +iir_int.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+
use super::tools::macc_i32;
+use core::f64::consts::PI;
+use serde::{Deserialize, Serialize};
+
+/// Generic vector for integer IIR filter.
+/// This struct is used to hold the x/y input/output data vector or the b/a coefficient
+/// vector.
+pub type Vec5 = [i32; 5];
+
+trait Coeff {
+    /// Lowpass biquad filter using cutoff and sampling frequencies.  Taken from:
+    /// https://webaudio.github.io/Audio-EQ-Cookbook/audio-eq-cookbook.html
+    ///
+    /// # Args
+    /// * `f` - Corner frequency, or 3dB cutoff frequency (in units of sample rate).
+    ///         This is only accurate for low corner frequencies less than ~0.01.
+    /// * `q` - Quality factor (1/sqrt(2) for critical).
+    /// * `k` - DC gain.
+    ///
+    /// # Returns
+    /// 2nd-order IIR filter coefficients in the form [b0,b1,b2,a1,a2]. a0 is set to -1.
+    fn lowpass(f: f64, q: f64, k: f64) -> Self;
+}
+
+impl Coeff for Vec5 {
+    fn lowpass(f: f64, q: f64, k: f64) -> Self {
+        // 3rd order Taylor approximation of sin and cos.
+        let f = f * 2. * PI;
+        let f2 = f * f * 0.5;
+        let fcos = 1. - f2;
+        let fsin = f * (1. - f2 / 3.);
+        let alpha = fsin / (2. * q);
+        // IIR uses Q2.30 fixed point
+        let a0 = (1. + alpha) / (1 << IIR::SHIFT) as f64;
+        let b0 = (k / 2. * (1. - fcos) / a0 + 0.5) as _;
+        let a1 = (2. * fcos / a0 + 0.5) as _;
+        let a2 = ((alpha - 1.) / a0 + 0.5) as _;
+
+        [b0, 2 * b0, b0, a1, a2]
+    }
+}
+
+/// Integer biquad IIR
+///
+/// See `dsp::iir::IIR` for general implementation details.
+/// Offset and limiting disabled to suit lowpass applications.
+/// Coefficient scaling fixed and optimized.
+#[derive(Copy, Clone, Default, Debug, Serialize, Deserialize)]
+pub struct IIR {
+    pub ba: Vec5,
+    pub y_offset: i32,
+    pub y_min: i32,
+    pub y_max: i32,
+}
+
+impl IIR {
+    /// Coefficient fixed point format: signed Q2.30.
+    /// Tailored to low-passes, PI, II etc.
+    pub const SHIFT: u32 = 30;
+
+    /// Feed a new input value into the filter, update the filter state, and
+    /// return the new output. Only the state `xy` is modified.
+    ///
+    /// # Arguments
+    /// * `xy` - Current filter state.
+    /// * `x0` - New input.
+    pub fn update(&self, xy: &mut Vec5, x0: i32) -> i32 {
+        let n = self.ba.len();
+        debug_assert!(xy.len() == n);
+        // `xy` contains       x0 x1 y0 y1 y2
+        // Increment time      x1 x2 y1 y2 y3
+        // Shift               x1 x1 x2 y1 y2
+        // This unrolls better than xy.rotate_right(1)
+        xy.copy_within(0..n - 1, 1);
+        // Store x0            x0 x1 x2 y1 y2
+        xy[0] = x0;
+        // Compute y0 by multiply-accumulate
+        let y0 = macc_i32(self.y_offset, xy, &self.ba, IIR::SHIFT);
+        // Limit y0
+        let y0 = y0.max(self.y_min).min(self.y_max);
+        // Store y0            x0 x1 y0 y1 y2
+        xy[n / 2] = y0;
+        y0
+    }
+}
+
+#[cfg(test)]
+mod test {
+    use super::{Coeff, Vec5};
+
+    #[test]
+    fn lowpass_gen() {
+        let ba = Vec5::lowpass(1e-5, 1. / 2f64.sqrt(), 2.);
+        println!("{:?}", ba);
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/lib.rs.html b/firmware/src/idsp/lib.rs.html new file mode 100644 index 0000000000..568fa5cfa7 --- /dev/null +++ b/firmware/src/idsp/lib.rs.html @@ -0,0 +1,55 @@ +lib.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+
#![cfg_attr(not(test), no_std)]
+
+mod tools;
+pub use tools::*;
+mod atan2;
+pub use atan2::*;
+mod accu;
+pub use accu::*;
+mod complex;
+pub use complex::*;
+mod cossin;
+pub use cossin::*;
+pub mod iir;
+pub mod iir_int;
+mod lockin;
+pub use lockin::*;
+mod lowpass;
+pub use lowpass::*;
+mod pll;
+pub use pll::*;
+mod rpll;
+pub use rpll::*;
+mod unwrap;
+pub use unwrap::*;
+
+#[cfg(test)]
+pub mod testing;
+
\ No newline at end of file diff --git a/firmware/src/idsp/lockin.rs.html b/firmware/src/idsp/lockin.rs.html new file mode 100644 index 0000000000..06d0cf8ff3 --- /dev/null +++ b/firmware/src/idsp/lockin.rs.html @@ -0,0 +1,53 @@ +lockin.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+
use super::{Complex, ComplexExt, Lowpass, MulScaled};
+
+#[derive(Copy, Clone, Default)]
+pub struct Lockin<const N: usize> {
+    state: [Lowpass<N>; 2],
+}
+
+impl<const N: usize> Lockin<N> {
+    /// Update the lockin with a sample taken at a local oscillator IQ value.
+    pub fn update_iq(&mut self, sample: i32, lo: Complex<i32>, k: u32) -> Complex<i32> {
+        let mix = lo.mul_scaled(sample);
+
+        // Filter with the IIR lowpass,
+        // return IQ (in-phase and quadrature) data.
+        Complex {
+            re: self.state[0].update(mix.re, k),
+            im: self.state[1].update(mix.im, k),
+        }
+    }
+
+    /// Update the lockin with a sample taken at a given phase.
+    pub fn update(&mut self, sample: i32, phase: i32, k: u32) -> Complex<i32> {
+        // Get the LO signal for demodulation and mix the sample;
+        self.update_iq(sample, Complex::from_angle(phase), k)
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/lowpass.rs.html b/firmware/src/idsp/lowpass.rs.html new file mode 100644 index 0000000000..992b09865e --- /dev/null +++ b/firmware/src/idsp/lowpass.rs.html @@ -0,0 +1,89 @@ +lowpass.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+
/// Arbitrary order, high dynamic range, wide coefficient range,
+/// lowpass filter implementation. DC gain is 1.
+///
+/// Type argument N is the filter order.
+#[derive(Copy, Clone)]
+pub struct Lowpass<const N: usize> {
+    // IIR state storage
+    y: [i32; N],
+}
+
+impl<const N: usize> Default for Lowpass<N> {
+    fn default() -> Self {
+        Lowpass { y: [0i32; N] }
+    }
+}
+
+impl<const N: usize> Lowpass<N> {
+    /// Update the filter with a new sample.
+    ///
+    /// # Args
+    /// * `x`: Input data. Needs 1 bit headroom but will saturate cleanly beyond that.
+    /// * `k`: Log2 time constant, 1..=31.
+    ///
+    /// # Return
+    /// Filtered output y.
+    pub fn update(&mut self, x: i32, k: u32) -> i32 {
+        debug_assert!(k & 31 == k);
+        // This is an unrolled and optimized first-order IIR loop
+        // that works for all possible time constants.
+        // Note T-DF-I and the zeros at Nyquist.
+        let mut x = x;
+        for y in self.y.iter_mut() {
+            let dy = x.saturating_sub(*y) >> k;
+            *y += dy;
+            x = *y - (dy >> 1);
+        }
+        x.saturating_add((N as i32) << (k - 1).max(0))
+    }
+
+    /// Return the current filter output
+    pub fn output(&self) -> i32 {
+        self.y[N - 1]
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/pll.rs.html b/firmware/src/idsp/pll.rs.html new file mode 100644 index 0000000000..4305f3930a --- /dev/null +++ b/firmware/src/idsp/pll.rs.html @@ -0,0 +1,257 @@ +pll.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+
use serde::{Deserialize, Serialize};
+
+/// Type-II, sampled phase, discrete time PLL
+///
+/// This PLL tracks the frequency and phase of an input signal with respect to the sampling clock.
+/// The open loop transfer function is I^2,I from input phase to output phase and P,I from input
+/// phase to output frequency.
+///
+/// The transfer functions (for phase and frequency) contain an additional zero at Nyquist.
+///
+/// The PLL locks to any frequency (i.e. it locks to the alias in the first Nyquist zone) and is
+/// stable for any gain (1 <= shift <= 30). It has a single parameter that determines the loop
+/// bandwidth in octave steps. The gain can be changed freely between updates.
+///
+/// The frequency and phase settling time constants for a frequency/phase jump are `1 << shift`
+/// update cycles. The loop bandwidth is `1/(2*pi*(1 << shift))` in units of the sample rate.
+/// While the phase is being settled after settling the frequency, there is a typically very
+/// small frequency overshoot.
+///
+/// All math is naturally wrapping 32 bit integer. Phase and frequency are understood modulo that
+/// overflow in the first Nyquist zone. Expressing the IIR equations in other ways (e.g. single
+/// (T)-DF-{I,II} biquad/IIR) would break on overflow (i.e. every cycle).
+///
+/// There are no floating point rounding errors here. But there is integer quantization/truncation
+/// error of the `shift` lowest bits leading to a phase offset for very low gains. Truncation
+/// bias is applied. Rounding is "half up". The phase truncation error can be removed very
+/// efficiently by dithering.
+///
+/// This PLL does not unwrap phase slips accumulated during (frequency) lock acquisition.
+/// This can and should be implemented elsewhere by unwrapping and scaling the input phase
+/// and un-scaling and wrapping output phase and frequency. This then affects dynamic range,
+/// gain, and noise accordingly.
+///
+/// The extension to I^3,I^2,I behavior to track chirps phase-accurately or to i64 data to
+/// increase resolution for extremely narrowband applications is obvious.
+#[derive(Copy, Clone, Default, Deserialize, Serialize)]
+pub struct PLL {
+    // last input phase
+    x: i32,
+    // filtered frequency
+    f: i32,
+    // filtered output phase
+    y: i32,
+}
+
+impl PLL {
+    /// Update the PLL with a new phase sample. This needs to be called (sampled) periodically.
+    /// The signal's phase/frequency is reconstructed relative to the sampling period.
+    ///
+    /// Args:
+    /// * `x`: New input phase sample or None if a sample has been missed.
+    /// * `shift_frequency`: Frequency error scaling. The frequency gain per update is
+    ///   `1/(1 << shift_frequency)`.
+    /// * `shift_phase`: Phase error scaling. The phase gain is `1/(1 << shift_phase)`
+    ///   per update. A good value is typically `shift_frequency - 1`.
+    ///
+    /// Returns:
+    /// A tuple of instantaneous phase and frequency estimates.
+    pub fn update(&mut self, x: Option<i32>, shift_frequency: u32, shift_phase: u32) -> (i32, i32) {
+        debug_assert!((1..=30).contains(&shift_frequency));
+        debug_assert!((1..=30).contains(&shift_phase));
+        if let Some(x) = x {
+            let df = (1i32 << (shift_frequency - 1))
+                .wrapping_add(x)
+                .wrapping_sub(self.x)
+                .wrapping_sub(self.f)
+                >> shift_frequency;
+            self.x = x;
+            self.f = self.f.wrapping_add(df);
+            let f = self.f.wrapping_sub(df >> 1);
+            self.y = self.y.wrapping_add(f);
+            let dy = (1i32 << (shift_phase - 1))
+                .wrapping_add(x)
+                .wrapping_sub(self.y)
+                >> shift_phase;
+            self.y = self.y.wrapping_add(dy);
+            let y = self.y.wrapping_sub(dy >> 1);
+            (y, f.wrapping_add(dy))
+        } else {
+            self.x = self.x.wrapping_add(self.f);
+            self.y = self.y.wrapping_add(self.f);
+            (self.y, self.f)
+        }
+    }
+
+    /// Return the current phase estimate
+    pub fn phase(&self) -> i32 {
+        self.y
+    }
+
+    /// Return the current frequency estimate
+    pub fn frequency(&self) -> i32 {
+        self.f
+    }
+}
+
+#[cfg(test)]
+mod tests {
+    use super::*;
+    #[test]
+    fn mini() {
+        let mut p = PLL::default();
+        let (y, f) = p.update(Some(0x10000), 8, 4);
+        assert_eq!(y, 0x87c);
+        assert_eq!(f, 0x1078);
+    }
+
+    #[test]
+    fn converge() {
+        let mut p = PLL::default();
+        let f0 = 0x71f63049_i32;
+        let shift = (10, 9);
+        let n = 31 << shift.0 + 2;
+        let mut x = 0i32;
+        for i in 0..n {
+            x = x.wrapping_add(f0);
+            let (y, f) = p.update(Some(x), shift.0, shift.1);
+            if i > n / 4 {
+                // The remaining error would be removed by dithering.
+                assert_eq!(f.wrapping_sub(f0).abs() <= 1 << 10, true);
+            }
+            if i > n / 2 {
+                // The remaining error would be removed by dithering.
+                assert_eq!(y.wrapping_sub(x).abs() < 1 << 18, true);
+            }
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/rpll.rs.html b/firmware/src/idsp/rpll.rs.html new file mode 100644 index 0000000000..f79212169b --- /dev/null +++ b/firmware/src/idsp/rpll.rs.html @@ -0,0 +1,579 @@ +rpll.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+
/// Reciprocal PLL.
+///
+/// Consumes noisy, quantized timestamps of a reference signal and reconstructs
+/// the phase and frequency of the update() invocations with respect to (and in units of
+/// 1 << 32 of) that reference.
+/// In other words, `update()` rate ralative to reference frequency,
+/// `u32::MAX` corresponding to both being equal.
+#[derive(Copy, Clone, Default)]
+pub struct RPLL {
+    dt2: u32, // 1 << dt2 is the counter rate to update() rate ratio
+    x: i32,   // previous timestamp
+    ff: u32,  // current frequency estimate from frequency loop
+    f: u32,   // current frequency estimate from both frequency and phase loop
+    y: i32,   // current phase estimate
+}
+
+impl RPLL {
+    /// Create a new RPLL instance.
+    ///
+    /// Args:
+    /// * dt2: inverse update() rate. 1 << dt2 is the counter rate to update() rate ratio.
+    ///
+    /// Returns:
+    /// Initialized RPLL instance.
+    pub fn new(dt2: u32) -> Self {
+        Self {
+            dt2,
+            ..Default::default()
+        }
+    }
+
+    /// Advance the RPLL and optionally supply a new timestamp.
+    ///
+    /// Args:
+    /// * input: Optional new timestamp (wrapping around at the i32 boundary).
+    ///   There can be at most one timestamp per `update()` cycle (1 << dt2 counter cycles).
+    /// * shift_frequency: Frequency lock settling time. 1 << shift_frequency is
+    ///   frequency lock settling time in counter periods. The settling time must be larger
+    ///   than the signal period to lock to.
+    /// * shift_phase: Phase lock settling time. Usually one less than
+    ///   `shift_frequency` (see there).
+    ///
+    /// Returns:
+    /// A tuple containing the current phase (wrapping at the i32 boundary, pi) and
+    /// frequency.
+    pub fn update(
+        &mut self,
+        input: Option<i32>,
+        shift_frequency: u32,
+        shift_phase: u32,
+    ) -> (i32, u32) {
+        debug_assert!(shift_frequency >= self.dt2);
+        debug_assert!(shift_phase >= self.dt2);
+        // Advance phase
+        self.y = self.y.wrapping_add(self.f as i32);
+        if let Some(x) = input {
+            // Reference period in counter cycles
+            let dx = x.wrapping_sub(self.x);
+            // Store timestamp for next time.
+            self.x = x;
+            // Phase using the current frequency estimate
+            let p_sig_64 = self.ff as u64 * dx as u64;
+            // Add half-up rounding bias and apply gain/attenuation
+            let p_sig =
+                ((p_sig_64 + (1u32 << (shift_frequency - 1)) as u64) >> shift_frequency) as u32;
+            // Reference phase (1 << dt2 full turns) with gain/attenuation applied
+            let p_ref = 1u32 << (32 + self.dt2 - shift_frequency);
+            // Update frequency lock
+            self.ff = self.ff.wrapping_add(p_ref.wrapping_sub(p_sig));
+            // Time in counter cycles between timestamp and "now"
+            let dt = (x.wrapping_neg() & ((1 << self.dt2) - 1)) as u32;
+            // Reference phase estimate "now"
+            let y_ref = (self.f >> self.dt2).wrapping_mul(dt) as i32;
+            // Phase error with gain
+            let dy = y_ref.wrapping_sub(self.y) >> (shift_phase - self.dt2);
+            // Current frequency estimate from frequency lock and phase error
+            self.f = self.ff.wrapping_add(dy as u32);
+        }
+        (self.y, self.f)
+    }
+
+    /// Return the current phase estimate
+    pub fn phase(&self) -> i32 {
+        self.y
+    }
+
+    /// Return the current frequency estimate
+    pub fn frequency(&self) -> u32 {
+        self.f
+    }
+}
+
+#[cfg(test)]
+mod test {
+    use super::RPLL;
+    use ndarray::prelude::*;
+    use rand::{prelude::*, rngs::StdRng};
+    use std::vec::Vec;
+
+    #[test]
+    fn make() {
+        let _ = RPLL::new(8);
+    }
+
+    struct Harness {
+        rpll: RPLL,
+        shift_frequency: u32,
+        shift_phase: u32,
+        noise: i32,
+        period: i32,
+        next: i32,
+        next_noisy: i32,
+        time: i32,
+        rng: StdRng,
+    }
+
+    impl Harness {
+        fn default() -> Self {
+            Self {
+                rpll: RPLL::new(8),
+                shift_frequency: 9,
+                shift_phase: 8,
+                noise: 0,
+                period: 333,
+                next: 111,
+                next_noisy: 111,
+                time: 0,
+                rng: StdRng::seed_from_u64(42),
+            }
+        }
+
+        fn run(&mut self, n: usize) -> (Vec<f32>, Vec<f32>) {
+            assert!(self.period >= 1 << self.rpll.dt2);
+            assert!(self.period < 1 << self.shift_frequency);
+            assert!(self.period < 1 << self.shift_phase + 1);
+
+            let mut y = Vec::<f32>::new();
+            let mut f = Vec::<f32>::new();
+            for _ in 0..n {
+                let timestamp = if self.time - self.next_noisy >= 0 {
+                    assert!(self.time - self.next_noisy < 1 << self.rpll.dt2);
+                    self.next = self.next.wrapping_add(self.period);
+                    let timestamp = self.next_noisy;
+                    let p_noise = self.rng.gen_range(-self.noise..=self.noise);
+                    self.next_noisy = self.next.wrapping_add(p_noise);
+                    Some(timestamp)
+                } else {
+                    None
+                };
+                let (yi, fi) = self
+                    .rpll
+                    .update(timestamp, self.shift_frequency, self.shift_phase);
+
+                let y_ref = (self.time.wrapping_sub(self.next) as i64 * (1i64 << 32)
+                    / self.period as i64) as i32;
+                // phase error
+                y.push(yi.wrapping_sub(y_ref) as f32 / 2f32.powi(32));
+
+                let p_ref = 1 << 32 + self.rpll.dt2;
+                let p_sig = fi as u64 * self.period as u64;
+                // relative frequency error
+                f.push(
+                    p_sig.wrapping_sub(p_ref) as i64 as f32 / 2f32.powi(32 + self.rpll.dt2 as i32),
+                );
+
+                // advance time
+                self.time = self.time.wrapping_add(1 << self.rpll.dt2);
+            }
+            (y, f)
+        }
+
+        fn measure(&mut self, n: usize, limits: [f32; 4]) {
+            let t_settle = (1 << self.shift_frequency - self.rpll.dt2 + 4)
+                + (1 << self.shift_phase - self.rpll.dt2 + 4);
+            self.run(t_settle);
+
+            let (y, f) = self.run(n);
+            let y = Array::from(y);
+            let f = Array::from(f);
+            // println!("{:?} {:?}", f, y);
+
+            let fm = f.mean().unwrap();
+            let fs = f.std_axis(Axis(0), 0.).into_scalar();
+            let ym = y.mean().unwrap();
+            let ys = y.std_axis(Axis(0), 0.).into_scalar();
+
+            println!("f: {:.2e}±{:.2e}; y: {:.2e}±{:.2e}", fm, fs, ym, ys);
+
+            let m = [fm, fs, ym, ys];
+
+            print!("relative: ");
+            for i in 0..m.len() {
+                let rel = m[i].abs() / limits[i].abs();
+                print!("{:.2e} ", rel);
+                assert!(
+                    rel <= 1.,
+                    "idx {}, have |{:.2e}| > limit {:.2e}",
+                    i,
+                    m[i],
+                    limits[i]
+                );
+            }
+            println!();
+        }
+    }
+
+    #[test]
+    fn default() {
+        let mut h = Harness::default();
+
+        h.measure(1 << 16, [1e-11, 4e-8, 2e-8, 2e-8]);
+    }
+
+    #[test]
+    fn noisy() {
+        let mut h = Harness::default();
+        h.noise = 10;
+        h.shift_frequency = 23;
+        h.shift_phase = 22;
+
+        h.measure(1 << 16, [3e-9, 3e-6, 4e-4, 2e-4]);
+    }
+
+    #[test]
+    fn narrow_fast() {
+        let mut h = Harness::default();
+        h.period = 990;
+        h.next = 351;
+        h.next_noisy = h.next;
+        h.noise = 5;
+        h.shift_frequency = 23;
+        h.shift_phase = 22;
+
+        h.measure(1 << 16, [2e-9, 2e-6, 1e-3, 1e-4]);
+    }
+
+    #[test]
+    fn narrow_slow() {
+        let mut h = Harness::default();
+        h.period = 1818181;
+        h.next = 35281;
+        h.next_noisy = h.next;
+        h.noise = 1000;
+        h.shift_frequency = 23;
+        h.shift_phase = 22;
+
+        h.measure(1 << 16, [2e-5, 6e-4, 2e-4, 2e-4]);
+    }
+
+    #[test]
+    fn wide_fast() {
+        let mut h = Harness::default();
+        h.period = 990;
+        h.next = 351;
+        h.next_noisy = h.next;
+        h.noise = 5;
+        h.shift_frequency = 10;
+        h.shift_phase = 9;
+
+        h.measure(1 << 16, [5e-7, 3e-2, 2e-5, 2e-2]);
+    }
+
+    #[test]
+    fn wide_slow() {
+        let mut h = Harness::default();
+        h.period = 1818181;
+        h.next = 35281;
+        h.next_noisy = h.next;
+        h.noise = 1000;
+        h.shift_frequency = 21;
+        h.shift_phase = 20;
+
+        h.measure(1 << 16, [2e-4, 6e-3, 2e-4, 2e-3]);
+    }
+
+    #[test]
+    fn batch_fast_narrow() {
+        let mut h = Harness::default();
+        h.rpll.dt2 = 8 + 3;
+        h.period = 2431;
+        h.next = 35281;
+        h.next_noisy = h.next;
+        h.noise = 100;
+        h.shift_frequency = 23;
+        h.shift_phase = 23;
+
+        h.measure(1 << 16, [1e-8, 2e-5, 6e-4, 6e-4]);
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/tools.rs.html b/firmware/src/idsp/tools.rs.html new file mode 100644 index 0000000000..24d9df61d4 --- /dev/null +++ b/firmware/src/idsp/tools.rs.html @@ -0,0 +1,107 @@ +tools.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+
use core::ops::{Add, Mul, Neg};
+
+pub fn abs<T>(x: T) -> T
+where
+    T: PartialOrd + Default + Neg<Output = T>,
+{
+    if x >= T::default() {
+        x
+    } else {
+        -x
+    }
+}
+
+// These are implemented here because core::f32 doesn't have them (yet).
+// They are naive and don't handle inf/nan.
+// `compiler-intrinsics`/llvm should have better (robust, universal, and
+// faster) implementations.
+
+pub fn copysign<T>(x: T, y: T) -> T
+where
+    T: PartialOrd + Default + Neg<Output = T>,
+{
+    if (x >= T::default() && y >= T::default()) || (x <= T::default() && y <= T::default()) {
+        x
+    } else {
+        -x
+    }
+}
+
+// Multiply-accumulate vectors `x` and `a`.
+//
+// A.k.a. dot product.
+// Rust/LLVM optimize this nicely.
+pub fn macc<T>(y0: T, x: &[T], a: &[T]) -> T
+where
+    T: Add<Output = T> + Mul<Output = T> + Copy,
+{
+    x.iter()
+        .zip(a)
+        .map(|(x, a)| *x * *a)
+        .fold(y0, |y, xa| y + xa)
+}
+
+pub fn macc_i32(y0: i32, x: &[i32], a: &[i32], shift: u32) -> i32 {
+    // Rounding bias, half up
+    let y0 = ((y0 as i64) << shift) + (1 << (shift - 1));
+    let y = x
+        .iter()
+        .zip(a)
+        .map(|(x, a)| *x as i64 * *a as i64)
+        .fold(y0, |y, xa| y + xa);
+    (y >> shift) as i32
+}
+
\ No newline at end of file diff --git a/firmware/src/idsp/unwrap.rs.html b/firmware/src/idsp/unwrap.rs.html new file mode 100644 index 0000000000..09e01f1559 --- /dev/null +++ b/firmware/src/idsp/unwrap.rs.html @@ -0,0 +1,321 @@ +unwrap.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+
use core::cmp::PartialOrd;
+use num_traits::{identities::Zero, ops::wrapping::WrappingSub};
+use serde::{Deserialize, Serialize};
+
+/// Subtract `y - x` with signed overflow.
+///
+/// This is very similar to `i32::overflowing_sub(y, x)` except that the
+/// overflow indicator is not a boolean but the signum of the overflow.
+/// Additionally it's typically faster.
+///
+/// Returns:
+/// A tuple containg the (wrapped) difference `y - x` and the signum of the
+/// overflow.
+#[inline(always)]
+pub fn overflowing_sub<T>(y: T, x: T) -> (T, i32)
+where
+    T: WrappingSub + Zero + PartialOrd,
+{
+    let delta = y.wrapping_sub(&x);
+    let wrap = (delta >= T::zero()) as i32 - (y >= x) as i32;
+    (delta, wrap)
+}
+
+/// Combine high and low i32 into a single downscaled i32, saturating monotonically.
+///
+/// Args:
+/// `lo`: LSB i32 to scale down by `shift` and range-extend with `hi`
+/// `hi`: MSB i32 to scale up and extend `lo` with. Output will be clipped if
+///     `hi` exceeds the output i32 range.
+/// `shift`: Downscale `lo` by that many bits. Values from 1 to 32 inclusive
+///     are valid.
+pub fn saturating_scale(lo: i32, hi: i32, shift: u32) -> i32 {
+    debug_assert!(shift > 0);
+    debug_assert!(shift <= 32);
+    let hi_range = -1 << (shift - 1);
+    if hi <= hi_range {
+        i32::MIN - hi_range
+    } else if -hi <= hi_range {
+        hi_range - i32::MIN
+    } else {
+        (lo >> shift) + (hi << (32 - shift))
+    }
+}
+
+/// Overflow unwrapper.
+///
+/// This is unwrapping as in the phase and overflow unwrapping context, not
+/// unwrapping as in the `Result`/`Option` context.
+#[derive(Copy, Clone, Default, Deserialize, Serialize)]
+pub struct Unwrapper<T> {
+    // last input
+    x: T,
+    // last wraps
+    w: i32,
+}
+
+impl<T> Unwrapper<T>
+where
+    T: WrappingSub + Zero + PartialOrd + Copy,
+{
+    /// Unwrap a new sample from a sequence and update the unwrapper state.
+    ///
+    /// Args:
+    /// * `x`: New sample
+    ///
+    /// Returns:
+    /// A tuple containing the (wrapped) difference `x - x_old` and the
+    /// signed number of wraps accumulated by the new sample.
+    pub fn update(&mut self, x: T) -> (T, i32) {
+        let (dx, dw) = overflowing_sub(x, self.x);
+        self.x = x;
+        self.w = self.w.wrapping_add(dw as i32);
+        (dx, self.w)
+    }
+
+    /// Return the current number of wraps
+    pub fn wraps(&self) -> i32 {
+        self.w
+    }
+
+    /// Return the last known phase
+    pub fn phase(&self) -> T {
+        self.x
+    }
+}
+
+#[cfg(test)]
+mod tests {
+    use super::*;
+    #[test]
+    fn overflowing_sub_correctness() {
+        for (x0, x1, v) in [
+            (0i32, 0i32, 0i32),
+            (0, 1, 0),
+            (0, -1, 0),
+            (1, 0, 0),
+            (-1, 0, 0),
+            (0, 0x7fff_ffff, 0),
+            (-1, 0x7fff_ffff, -1),
+            (-2, 0x7fff_ffff, -1),
+            (-1, -0x8000_0000, 0),
+            (0, -0x8000_0000, 0),
+            (1, -0x8000_0000, 1),
+            (-0x6000_0000, 0x6000_0000, -1),
+            (0x6000_0000, -0x6000_0000, 1),
+            (-0x4000_0000, 0x3fff_ffff, 0),
+            (-0x4000_0000, 0x4000_0000, -1),
+            (-0x4000_0000, 0x4000_0001, -1),
+            (0x4000_0000, -0x3fff_ffff, 0),
+            (0x4000_0000, -0x4000_0000, 0),
+            (0x4000_0000, -0x4000_0001, 1),
+        ]
+        .iter()
+        {
+            let (dx, w) = overflowing_sub(*x1, *x0);
+            assert_eq!(*v, w, " = overflowing_sub({:#x}, {:#x})", *x0, *x1);
+            let (dx0, w0) = x1.overflowing_sub(*x0);
+            assert_eq!(w0, w != 0);
+            assert_eq!(dx, dx0);
+        }
+    }
+
+    #[test]
+    fn saturating_scale_correctness() {
+        let shift = 8;
+        for (lo, hi, res) in [
+            (0i32, 0i32, 0i32),
+            (0, 1, 0x0100_0000),
+            (0, -1, -0x0100_0000),
+            (0x100, 0, 1),
+            (-1 << 31, 0, -1 << 23),
+            (0x7fffffff, 0, 0x007f_ffff),
+            (0x7fffffff, 1, 0x0017f_ffff),
+            (-0x7fffffff, -1, -0x0180_0000),
+            (0x1234_5600, 0x7f, 0x7f12_3456),
+            (0x1234_5600, -0x7f, -0x7f00_0000 + 0x12_3456),
+            (0, 0x7f, 0x7f00_0000),
+            (0, 0x80, 0x7fff_ff80),
+            (0, -0x7f, -0x7f00_0000),
+            (0, -0x80, -0x7fff_ff80),
+            (0x7fff_ffff, 0x7f, 0x7f7f_ffff),
+            (-0x8000_0000, 0x7f, 0x7e80_0000),
+            (-0x8000_0000, -0x7f, -0x7f80_0000),
+            (0x7fff_ffff, -0x7f, -0x7e80_0001),
+            (0x100, 0x7f, 0x7f00_0001),
+            (0, -0x80, -0x7fff_ff80),
+            (-1 << 31, 0x80, 0x7fff_ff80),
+            (-1 << 31, -0x80, -0x7fff_ff80),
+        ]
+        .iter()
+        {
+            let s = saturating_scale(*lo, *hi, shift);
+            assert_eq!(
+                *res, s,
+                "{:#x} != {:#x} = saturating_scale({:#x}, {:#x}, {:#x})",
+                *res, s, *lo, *hi, shift
+            );
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/lockin/lockin.rs.html b/firmware/src/lockin/lockin.rs.html new file mode 100644 index 0000000000..1622e10865 --- /dev/null +++ b/firmware/src/lockin/lockin.rs.html @@ -0,0 +1,1041 @@ +lockin.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+403
+404
+405
+406
+407
+408
+409
+410
+411
+412
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+444
+445
+446
+447
+448
+449
+450
+451
+452
+453
+454
+455
+456
+457
+458
+459
+460
+461
+462
+463
+464
+465
+466
+467
+468
+469
+470
+471
+472
+473
+474
+475
+476
+477
+478
+479
+480
+481
+482
+483
+484
+485
+486
+487
+488
+489
+490
+491
+492
+493
+494
+495
+496
+497
+498
+499
+500
+501
+502
+503
+504
+505
+506
+507
+508
+509
+510
+511
+512
+513
+514
+515
+516
+517
+518
+519
+520
+
//! # Lockin
+//!
+//! The `lockin` application implements a lock-in amplifier using either an external or internally
+//! generated reference.
+//!
+//! ## Features
+//! * Up to 800 kHz sampling
+//! * Up to 400 kHz modulation frequency
+//! * Supports internal and external reference sources:
+//!     1. Internal: Generate reference internally and output on one of the channel outputs
+//!     2. External: Reciprocal PLL, reference input applied to DI0.
+//! * Adjustable PLL and locking time constants
+//! * Adjustable phase offset and harmonic index
+//! * Run-time configurable output modes (in-phase, quadrature, magnitude, log2 power, phase, frequency)
+//! * Input/output data streamng via UDP
+//!
+//! ## Settings
+//! Refer to the [Settings] structure for documentation of run-time configurable settings for this
+//! application.
+//!
+//! ## Telemetry
+//! Refer to [Telemetry] for information about telemetry reported by this application.
+//!
+//! ## Livestreaming
+//! This application streams raw ADC and DAC data over UDP. Refer to
+//! [stabilizer::net::data_stream](../stabilizer/net/data_stream/index.html) for more information.
+#![deny(warnings)]
+#![no_std]
+#![no_main]
+
+use core::{
+    convert::TryFrom,
+    mem::MaybeUninit,
+    sync::atomic::{fence, Ordering},
+};
+
+use fugit::ExtU64;
+use mutex_trait::prelude::*;
+
+use idsp::{Accu, Complex, ComplexExt, Lockin, RPLL};
+
+use stabilizer::{
+    hardware::{
+        self,
+        adc::{Adc0Input, Adc1Input, AdcCode},
+        afe::Gain,
+        dac::{Dac0Output, Dac1Output, DacCode},
+        hal,
+        input_stamper::InputStamper,
+        signal_generator,
+        timers::SamplingTimer,
+        DigitalInput0, DigitalInput1, SystemTimer, Systick, AFE0, AFE1,
+    },
+    net::{
+        data_stream::{FrameGenerator, StreamFormat, StreamTarget},
+        miniconf::Miniconf,
+        serde::{Deserialize, Serialize},
+        telemetry::{Telemetry, TelemetryBuffer},
+        NetworkState, NetworkUsers,
+    },
+};
+
+// The logarithm of the number of samples in each batch process. This corresponds with 2^3 samples
+// per batch = 8 samples
+const BATCH_SIZE_LOG2: u32 = 3;
+const BATCH_SIZE: usize = 1 << BATCH_SIZE_LOG2;
+
+// The logarithm of the number of 100MHz timer ticks between each sample. This corresponds with a
+// sampling period of 2^7 = 128 ticks. At 100MHz, 10ns per tick, this corresponds to a sampling
+// period of 1.28 uS or 781.25 KHz.
+const SAMPLE_TICKS_LOG2: u32 = 7;
+const SAMPLE_TICKS: u32 = 1 << SAMPLE_TICKS_LOG2;
+
+#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
+enum Conf {
+    /// Output the lockin magnitude.
+    Magnitude,
+    /// Output the phase of the lockin
+    Phase,
+    /// Output the lockin reference frequency as a sinusoid
+    ReferenceFrequency,
+    /// Output the logarithmic power of the lockin
+    LogPower,
+    /// Output the in-phase component of the lockin signal.
+    InPhase,
+    /// Output the quadrature component of the lockin signal.
+    Quadrature,
+    /// Output the lockin internal modulation frequency as a sinusoid
+    Modulation,
+}
+
+#[derive(Copy, Clone, Debug, Serialize, Deserialize, PartialEq)]
+enum LockinMode {
+    /// Utilize an internally generated reference for demodulation
+    Internal,
+    /// Utilize an external modulation signal supplied to DI0
+    External,
+}
+
+#[derive(Copy, Clone, Debug, Miniconf)]
+pub struct Settings {
+    /// Configure the Analog Front End (AFE) gain.
+    ///
+    /// # Path
+    /// `afe/<n>`
+    ///
+    /// * `<n>` specifies which channel to configure. `<n>` := [0, 1]
+    ///
+    /// # Value
+    /// Any of the variants of [Gain] enclosed in double quotes.
+    #[miniconf(defer)]
+    afe: [Gain; 2],
+
+    /// Specifies the operational mode of the lockin.
+    ///
+    /// # Path
+    /// `lockin_mode`
+    ///
+    /// # Value
+    /// One of the variants of [LockinMode] enclosed in double quotes.
+    lockin_mode: LockinMode,
+
+    /// Specifis the PLL time constant.
+    ///
+    /// # Path
+    /// `pll_tc/<n>`
+    ///
+    /// * `<n>` specifies which channel to configure. `<n>` := [0, 1]
+    ///
+    /// # Value
+    /// The PLL time constant exponent (1-31).
+    pll_tc: [u32; 2],
+
+    /// Specifies the lockin time constant.
+    ///
+    /// # Path
+    /// `lockin_tc`
+    ///
+    /// # Value
+    /// The lockin low-pass time constant as an unsigned byte (0-255).
+    lockin_tc: u32,
+
+    /// Specifies which harmonic to use for the lockin.
+    ///
+    /// # Path
+    /// `lockin_harmonic`
+    ///
+    /// # Value
+    /// Harmonic index of the LO. -1 to _de_modulate the fundamental (complex conjugate)
+    lockin_harmonic: i32,
+
+    /// Specifies the LO phase offset.
+    ///
+    /// # Path
+    /// `lockin_phase`
+    ///
+    /// # Value
+    /// Demodulation LO phase offset. Units are in terms of i32, where [i32::MIN] is equivalent to
+    /// -pi and [i32::MAX] is equivalent to +pi.
+    lockin_phase: i32,
+
+    /// Specifies DAC output mode.
+    ///
+    /// # Path
+    /// `output_conf/<n>`
+    ///
+    /// * `<n>` specifies which channel to configure. `<n>` := [0, 1]
+    ///
+    /// # Value
+    /// One of the variants of [Conf] enclosed in double quotes.
+    #[miniconf(defer)]
+    output_conf: [Conf; 2],
+
+    /// Specifies the telemetry output period in seconds.
+    ///
+    /// # Path
+    /// `telemetry_period`
+    ///
+    /// # Value
+    /// Any non-zero value less than 65536.
+    telemetry_period: u16,
+
+    /// Specifies the target for data livestreaming.
+    ///
+    /// # Path
+    /// `stream_target`
+    ///
+    /// # Value
+    /// See [StreamTarget#miniconf]
+    stream_target: StreamTarget,
+}
+
+impl Default for Settings {
+    fn default() -> Self {
+        Self {
+            afe: [Gain::G1; 2],
+
+            lockin_mode: LockinMode::External,
+
+            pll_tc: [21, 21], // frequency and phase settling time (log2 counter cycles)
+
+            lockin_tc: 6,        // lockin lowpass time constant
+            lockin_harmonic: -1, // Harmonic index of the LO: -1 to _de_modulate the fundamental (complex conjugate)
+            lockin_phase: 0,     // Demodulation LO phase offset
+
+            output_conf: [Conf::InPhase, Conf::Quadrature],
+            // The default telemetry period in seconds.
+            telemetry_period: 10,
+
+            stream_target: StreamTarget::default(),
+        }
+    }
+}
+
+#[rtic::app(device = stabilizer::hardware::hal::stm32, peripherals = true, dispatchers=[DCMI, JPEG, SDMMC])]
+mod app {
+    use super::*;
+
+    #[monotonic(binds = SysTick, default = true, priority = 2)]
+    type Monotonic = Systick;
+
+    #[shared]
+    struct Shared {
+        network: NetworkUsers<Settings, Telemetry>,
+        settings: Settings,
+        telemetry: TelemetryBuffer,
+    }
+
+    #[local]
+    struct Local {
+        sampling_timer: SamplingTimer,
+        digital_inputs: (DigitalInput0, DigitalInput1),
+        timestamper: InputStamper,
+        afes: (AFE0, AFE1),
+        adcs: (Adc0Input, Adc1Input),
+        dacs: (Dac0Output, Dac1Output),
+        pll: RPLL,
+        lockin: Lockin<4>,
+        signal_generator: signal_generator::SignalGenerator,
+        generator: FrameGenerator,
+        cpu_temp_sensor: stabilizer::hardware::cpu_temp_sensor::CpuTempSensor,
+    }
+
+    #[init]
+    fn init(c: init::Context) -> (Shared, Local, init::Monotonics) {
+        let clock = SystemTimer::new(|| monotonics::now().ticks() as u32);
+
+        // Configure the microcontroller
+        let (mut stabilizer, _pounder) = hardware::setup::setup(
+            c.core,
+            c.device,
+            clock,
+            BATCH_SIZE,
+            SAMPLE_TICKS,
+        );
+
+        let mut network = NetworkUsers::new(
+            stabilizer.net.stack,
+            stabilizer.net.phy,
+            clock,
+            env!("CARGO_BIN_NAME"),
+            stabilizer.net.mac_address,
+            option_env!("BROKER")
+                .unwrap_or("10.34.16.1")
+                .parse()
+                .unwrap(),
+        );
+
+        let generator = network
+            .configure_streaming(StreamFormat::AdcDacData, BATCH_SIZE as _);
+
+        let shared = Shared {
+            network,
+            telemetry: TelemetryBuffer::default(),
+            settings: Settings::default(),
+        };
+
+        let signal_config = signal_generator::Config {
+            // Same frequency as batch size.
+            phase_increment: [1 << (32 - BATCH_SIZE_LOG2); 2],
+            // 1V Amplitude
+            amplitude: DacCode::try_from(1.0).unwrap().into(),
+            signal: signal_generator::Signal::Cosine,
+            phase_offset: 0,
+        };
+
+        let mut local = Local {
+            sampling_timer: stabilizer.adc_dac_timer,
+            digital_inputs: stabilizer.digital_inputs,
+            afes: stabilizer.afes,
+            adcs: stabilizer.adcs,
+            dacs: stabilizer.dacs,
+            timestamper: stabilizer.timestamper,
+
+            pll: RPLL::new(SAMPLE_TICKS_LOG2 + BATCH_SIZE_LOG2),
+            lockin: Lockin::default(),
+            signal_generator: signal_generator::SignalGenerator::new(
+                signal_config,
+            ),
+
+            generator,
+            cpu_temp_sensor: stabilizer.temperature_sensor,
+        };
+
+        // Enable ADC/DAC events
+        local.adcs.0.start();
+        local.adcs.1.start();
+        local.dacs.0.start();
+        local.dacs.1.start();
+
+        // Spawn a settings and telemetry update for default settings.
+        settings_update::spawn().unwrap();
+        telemetry::spawn().unwrap();
+        ethernet_link::spawn().unwrap();
+        start::spawn_after(100.millis()).unwrap();
+
+        // Start recording digital input timestamps.
+        stabilizer.timestamp_timer.start();
+
+        // Enable the timestamper.
+        local.timestamper.start();
+
+        (shared, local, init::Monotonics(stabilizer.systick))
+    }
+
+    #[task(priority = 1, local=[sampling_timer])]
+    fn start(c: start::Context) {
+        // Start sampling ADCs and DACs.
+        c.local.sampling_timer.start();
+    }
+
+    /// Main DSP processing routine.
+    ///
+    /// See `dual-iir` for general notes on processing time and timing.
+    ///
+    /// This is an implementation of a externally (DI0) referenced PLL lockin on the ADC0 signal.
+    /// It outputs either I/Q or power/phase on DAC0/DAC1. Data is normalized to full scale.
+    /// PLL bandwidth, filter bandwidth, slope, and x/y or power/phase post-filters are available.
+    #[task(binds=DMA1_STR4, shared=[settings, telemetry], local=[adcs, dacs, lockin, timestamper, pll, generator, signal_generator], priority=3)]
+    #[link_section = ".itcm.process"]
+    fn process(c: process::Context) {
+        let process::SharedResources {
+            settings,
+            telemetry,
+        } = c.shared;
+
+        let process::LocalResources {
+            timestamper,
+            adcs: (adc0, adc1),
+            dacs: (dac0, dac1),
+            pll,
+            lockin,
+            signal_generator,
+            generator,
+        } = c.local;
+
+        (settings, telemetry).lock(|settings, telemetry| {
+            let (reference_phase, reference_frequency) =
+                match settings.lockin_mode {
+                    LockinMode::External => {
+                        let timestamp =
+                            timestamper.latest_timestamp().unwrap_or(None); // Ignore data from timer capture overflows.
+                        let (pll_phase, pll_frequency) = pll.update(
+                            timestamp.map(|t| t as i32),
+                            settings.pll_tc[0],
+                            settings.pll_tc[1],
+                        );
+                        (pll_phase, (pll_frequency >> BATCH_SIZE_LOG2) as i32)
+                    }
+                    LockinMode::Internal => {
+                        // Reference phase and frequency are known.
+                        (1i32 << 30, 1i32 << (32 - BATCH_SIZE_LOG2))
+                    }
+                };
+
+            let sample_frequency =
+                reference_frequency.wrapping_mul(settings.lockin_harmonic);
+            let sample_phase = settings.lockin_phase.wrapping_add(
+                reference_phase.wrapping_mul(settings.lockin_harmonic),
+            );
+
+            (adc0, adc1, dac0, dac1).lock(|adc0, adc1, dac0, dac1| {
+                let adc_samples = [adc0, adc1];
+                let mut dac_samples = [dac0, dac1];
+
+                // Preserve instruction and data ordering w.r.t. DMA flag access.
+                fence(Ordering::SeqCst);
+
+                let output: Complex<i32> = adc_samples[0]
+                    .iter()
+                    // Zip in the LO phase.
+                    .zip(Accu::new(sample_phase, sample_frequency))
+                    // Convert to signed, MSB align the ADC sample, update the Lockin (demodulate, filter)
+                    .map(|(&sample, phase)| {
+                        let s = (sample as i16 as i32) << 16;
+                        lockin.update(s, phase, settings.lockin_tc)
+                    })
+                    // Decimate
+                    .last()
+                    .unwrap()
+                    * 2; // Full scale assuming the 2f component is gone.
+
+                // Convert to DAC data.
+                for (channel, samples) in dac_samples.iter_mut().enumerate() {
+                    for sample in samples.iter_mut() {
+                        let value = match settings.output_conf[channel] {
+                            Conf::Magnitude => output.abs_sqr() as i32 >> 16,
+                            Conf::Phase => output.arg() >> 16,
+                            Conf::LogPower => output.log2() << 8,
+                            Conf::ReferenceFrequency => {
+                                reference_frequency >> 16
+                            }
+                            Conf::InPhase => output.re >> 16,
+                            Conf::Quadrature => output.im >> 16,
+
+                            Conf::Modulation => {
+                                signal_generator.next().unwrap() as i32
+                            }
+                        };
+
+                        *sample = DacCode::from(value as i16).0;
+                    }
+                }
+
+                // Stream the data.
+                const N: usize = BATCH_SIZE * core::mem::size_of::<i16>()
+                    / core::mem::size_of::<MaybeUninit<u8>>();
+                generator.add::<_, { N * 4 }>(|buf| {
+                    for (data, buf) in adc_samples
+                        .iter()
+                        .chain(dac_samples.iter())
+                        .zip(buf.chunks_exact_mut(N))
+                    {
+                        let data = unsafe {
+                            core::slice::from_raw_parts(
+                                data.as_ptr() as *const MaybeUninit<u8>,
+                                N,
+                            )
+                        };
+                        buf.copy_from_slice(data)
+                    }
+                });
+
+                // Update telemetry measurements.
+                telemetry.adcs =
+                    [AdcCode(adc_samples[0][0]), AdcCode(adc_samples[1][0])];
+
+                telemetry.dacs =
+                    [DacCode(dac_samples[0][0]), DacCode(dac_samples[1][0])];
+
+                // Preserve instruction and data ordering w.r.t. DMA flag access.
+                fence(Ordering::SeqCst);
+            });
+        });
+    }
+
+    #[idle(shared=[network])]
+    fn idle(mut c: idle::Context) -> ! {
+        loop {
+            match c.shared.network.lock(|net| net.update()) {
+                NetworkState::SettingsChanged(_path) => {
+                    settings_update::spawn().unwrap()
+                }
+                NetworkState::Updated => {}
+                NetworkState::NoChange => cortex_m::asm::wfi(),
+            }
+        }
+    }
+
+    #[task(priority = 1, local=[afes], shared=[network, settings])]
+    fn settings_update(mut c: settings_update::Context) {
+        let settings = c.shared.network.lock(|net| *net.miniconf.settings());
+        c.shared.settings.lock(|current| *current = settings);
+
+        c.local.afes.0.set_gain(settings.afe[0]);
+        c.local.afes.1.set_gain(settings.afe[1]);
+
+        let target = settings.stream_target.into();
+        c.shared.network.lock(|net| net.direct_stream(target));
+    }
+
+    #[task(priority = 1, local=[digital_inputs, cpu_temp_sensor], shared=[network, settings, telemetry])]
+    fn telemetry(mut c: telemetry::Context) {
+        let mut telemetry: TelemetryBuffer =
+            c.shared.telemetry.lock(|telemetry| *telemetry);
+
+        telemetry.digital_inputs = [
+            c.local.digital_inputs.0.is_high(),
+            c.local.digital_inputs.1.is_high(),
+        ];
+
+        let (gains, telemetry_period) = c
+            .shared
+            .settings
+            .lock(|settings| (settings.afe, settings.telemetry_period));
+
+        c.shared.network.lock(|net| {
+            net.telemetry.publish(&telemetry.finalize(
+                gains[0],
+                gains[1],
+                c.local.cpu_temp_sensor.get_temperature().unwrap(),
+            ))
+        });
+
+        // Schedule the telemetry task in the future.
+        telemetry::Monotonic::spawn_after((telemetry_period as u64).secs())
+            .unwrap();
+    }
+
+    #[task(priority = 1, shared=[network])]
+    fn ethernet_link(mut c: ethernet_link::Context) {
+        c.shared.network.lock(|net| net.processor.handle_link());
+        ethernet_link::Monotonic::spawn_after(1.secs()).unwrap();
+    }
+
+    #[task(binds = ETH, priority = 1)]
+    fn eth(_: eth::Context) {
+        unsafe { hal::ethernet::interrupt_handler() }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/miniconf/array.rs.html b/firmware/src/miniconf/array.rs.html new file mode 100644 index 0000000000..a44285d9c0 --- /dev/null +++ b/firmware/src/miniconf/array.rs.html @@ -0,0 +1,495 @@ +array.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+
use super::{Error, IterError, Metadata, Miniconf, Peekable};
+use core::ops::{Deref, DerefMut};
+
+/// An array that exposes each element through their [`Miniconf`] implementation.
+///
+/// # Design
+///
+/// Miniconf supports homogeneous arrays of items contained in structures using two forms. For the
+/// [`miniconf::Array`](Array), each item of the array is accessed as a [`Miniconf`] tree.
+///
+/// For standard arrays of [`[T; N]`](array) form, by default the entire array is accessed as one atomic
+/// value. By adding the `#[miniconf(defer)]` attribute, each index of the array is is instead accessed as
+/// one atomic value (i.e. a single Miniconf item).
+///
+/// The type you should use depends on what data is contained in your array. If your array contains
+/// `Miniconf` items, you can (and often want to) use [`Array`] and the `#[miniconf(defer)]` attribute.
+/// However, if each element in your list is individually configurable as a single value (e.g. a list
+/// of `u32`), then you must use a standard [`[T; N]`](array) array but you may optionally
+/// `#[miniconf(defer)]` access to individual indices.
+///
+/// # Construction
+///
+/// An `Array` can be constructed using [`From<[T; N]>`](From)/[`Into<miniconf::Array>`]
+/// and the contained value can be accessed through [`Deref`]/[`DerefMut`].
+#[derive(Clone, Copy, PartialEq, Eq, Debug, PartialOrd, Ord, Hash)]
+#[repr(transparent)]
+pub struct Array<T, const N: usize>([T; N]);
+
+impl<T, const N: usize> Deref for Array<T, N> {
+    type Target = [T; N];
+
+    fn deref(&self) -> &Self::Target {
+        &self.0
+    }
+}
+
+impl<T, const N: usize> DerefMut for Array<T, N> {
+    fn deref_mut(&mut self) -> &mut Self::Target {
+        &mut self.0
+    }
+}
+
+impl<T: Default + Copy, const N: usize> Default for Array<T, N> {
+    fn default() -> Self {
+        Self([T::default(); N])
+    }
+}
+
+impl<T, const N: usize> From<[T; N]> for Array<T, N> {
+    fn from(x: [T; N]) -> Self {
+        Self(x)
+    }
+}
+
+impl<T, const N: usize> AsRef<[T; N]> for Array<T, N> {
+    fn as_ref(&self) -> &[T; N] {
+        self
+    }
+}
+
+impl<T, const N: usize> AsMut<[T; N]> for Array<T, N> {
+    fn as_mut(&mut self) -> &mut [T; N] {
+        self
+    }
+}
+
+impl<T, const N: usize> IntoIterator for Array<T, N> {
+    type Item = T;
+    type IntoIter = <[T; N] as IntoIterator>::IntoIter;
+    fn into_iter(self) -> Self::IntoIter {
+        self.0.into_iter()
+    }
+}
+
+impl<'a, T, const N: usize> IntoIterator for &'a Array<T, N> {
+    type Item = <&'a [T; N] as IntoIterator>::Item;
+    type IntoIter = <&'a [T; N] as IntoIterator>::IntoIter;
+    fn into_iter(self) -> Self::IntoIter {
+        self.iter()
+    }
+}
+
+impl<'a, T, const N: usize> IntoIterator for &'a mut Array<T, N> {
+    type Item = <&'a mut [T; N] as IntoIterator>::Item;
+    type IntoIter = <&'a mut [T; N] as IntoIterator>::IntoIter;
+    fn into_iter(self) -> Self::IntoIter {
+        self.iter_mut()
+    }
+}
+
+impl<T, const N: usize> From<Array<T, N>> for [T; N] {
+    fn from(x: Array<T, N>) -> Self {
+        x.0
+    }
+}
+
+/// Returns the number of digits required to format an integer less than `x`.
+const fn digits(x: usize) -> usize {
+    let mut n = 10;
+    let mut num_digits = 1;
+
+    while x > n {
+        n *= 10;
+        num_digits += 1;
+    }
+    num_digits
+}
+
+impl<T: Miniconf, const N: usize> Miniconf for Array<T, N> {
+    fn set_path<'a, P: Peekable<Item = &'a str>>(
+        &mut self,
+        path_parts: &'a mut P,
+        value: &[u8],
+    ) -> Result<usize, Error> {
+        let i = self.0.index(path_parts.next())?;
+
+        self.0
+            .get_mut(i)
+            .ok_or(Error::BadIndex)?
+            .set_path(path_parts, value)
+    }
+
+    fn get_path<'a, P: Peekable<Item = &'a str>>(
+        &self,
+        path_parts: &'a mut P,
+        value: &mut [u8],
+    ) -> Result<usize, Error> {
+        let i = self.0.index(path_parts.next())?;
+
+        self.0
+            .get(i)
+            .ok_or(Error::BadIndex)?
+            .get_path(path_parts, value)
+    }
+
+    fn metadata() -> Metadata {
+        let mut meta = T::metadata();
+
+        // Unconditionally account for separator since we add it
+        // even if elements that are deferred to (`Options`)
+        // may have no further hierarchy to add and remove the separator again.
+        meta.max_length += digits(N) + 1;
+        meta.max_depth += 1;
+        meta.count *= N;
+
+        meta
+    }
+
+    fn next_path<const TS: usize>(
+        state: &mut [usize],
+        topic: &mut heapless::String<TS>,
+    ) -> Result<bool, IterError> {
+        let original_length = topic.len();
+
+        while *state.first().ok_or(IterError::PathDepth)? < N {
+            // Add the array index and separator to the topic name.
+            topic
+                .push_str(itoa::Buffer::new().format(state[0]))
+                .and_then(|_| topic.push('/'))
+                .map_err(|_| IterError::PathLength)?;
+
+            if T::next_path(&mut state[1..], topic)? {
+                return Ok(true);
+            }
+
+            // Strip off the previously prepended index, since we completed that element and need
+            // to instead check the next one.
+            topic.truncate(original_length);
+
+            state[0] += 1;
+            state[1..].fill(0);
+        }
+
+        Ok(false)
+    }
+}
+
+trait IndexLookup {
+    fn index(&self, next: Option<&str>) -> Result<usize, Error>;
+}
+
+impl<T, const N: usize> IndexLookup for [T; N] {
+    fn index(&self, next: Option<&str>) -> Result<usize, Error> {
+        let next = next.ok_or(Error::PathTooShort)?;
+
+        // Parse what should be the index value
+        next.parse().map_err(|_| Error::BadIndex)
+    }
+}
+
+impl<T: crate::Serialize + crate::DeserializeOwned, const N: usize> Miniconf for [T; N] {
+    fn set_path<'a, P: Peekable<Item = &'a str>>(
+        &mut self,
+        path_parts: &mut P,
+        value: &[u8],
+    ) -> Result<usize, Error> {
+        let i = self.index(path_parts.next())?;
+
+        if path_parts.peek().is_some() {
+            return Err(Error::PathTooLong);
+        }
+
+        let item = <[T]>::get_mut(self, i).ok_or(Error::BadIndex)?;
+        let (value, len) = serde_json_core::from_slice(value)?;
+        *item = value;
+        Ok(len)
+    }
+
+    fn get_path<'a, P: Peekable<Item = &'a str>>(
+        &self,
+        path_parts: &mut P,
+        value: &mut [u8],
+    ) -> Result<usize, Error> {
+        let i = self.index(path_parts.next())?;
+
+        if path_parts.peek().is_some() {
+            return Err(Error::PathTooLong);
+        }
+
+        let item = <[T]>::get(self, i).ok_or(Error::BadIndex)?;
+        Ok(serde_json_core::to_slice(item, value)?)
+    }
+
+    fn metadata() -> Metadata {
+        Metadata {
+            max_length: digits(N),
+            max_depth: 1,
+            count: N,
+        }
+    }
+
+    fn next_path<const TS: usize>(
+        state: &mut [usize],
+        path: &mut heapless::String<TS>,
+    ) -> Result<bool, IterError> {
+        if *state.first().ok_or(IterError::PathDepth)? < N {
+            // Add the array index to the topic name.
+            path.push_str(itoa::Buffer::new().format(state[0]))
+                .map_err(|_| IterError::PathLength)?;
+
+            state[0] += 1;
+            Ok(true)
+        } else {
+            Ok(false)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/miniconf/iter.rs.html b/firmware/src/miniconf/iter.rs.html new file mode 100644 index 0000000000..d319add23c --- /dev/null +++ b/firmware/src/miniconf/iter.rs.html @@ -0,0 +1,127 @@ +iter.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+
use super::Miniconf;
+use core::marker::PhantomData;
+use heapless::String;
+
+/// An iterator over the paths in a Miniconf namespace.
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+pub struct MiniconfIter<M: ?Sized, const L: usize, const TS: usize> {
+    /// Zero-size marker field to allow being generic over M and gaining access to M.
+    marker: PhantomData<M>,
+
+    /// The iteration state.
+    ///
+    /// It contains the current field/element index at each path hierarchy level
+    /// and needs to be at least as large as the maximum path depth.
+    state: [usize; L],
+
+    /// The remaining length of the iterator.
+    ///
+    /// It is used to provide an exact and trusted [Iterator::size_hint].
+    /// C.f. [core::iter::TrustedLen].
+    ///
+    /// It may be None to indicate unknown length.
+    count: Option<usize>,
+}
+
+impl<M: ?Sized, const L: usize, const TS: usize> Default for MiniconfIter<M, L, TS> {
+    fn default() -> Self {
+        MiniconfIter {
+            marker: PhantomData,
+            state: [0; L],
+            count: None,
+        }
+    }
+}
+
+impl<M: ?Sized, const L: usize, const TS: usize> MiniconfIter<M, L, TS> {
+    pub fn new(count: Option<usize>) -> Self {
+        Self {
+            count,
+            ..Default::default()
+        }
+    }
+}
+
+impl<M: Miniconf + ?Sized, const L: usize, const TS: usize> Iterator for MiniconfIter<M, L, TS> {
+    type Item = String<TS>;
+
+    fn next(&mut self) -> Option<Self::Item> {
+        let mut path = Self::Item::new();
+
+        if M::next_path(&mut self.state, &mut path).unwrap() {
+            self.count = self.count.map(|c| c - 1);
+            Some(path)
+        } else {
+            debug_assert_eq!(self.count.unwrap_or_default(), 0);
+            None
+        }
+    }
+
+    fn size_hint(&self) -> (usize, Option<usize>) {
+        (self.count.unwrap_or_default(), self.count)
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/miniconf/lib.rs.html b/firmware/src/miniconf/lib.rs.html new file mode 100644 index 0000000000..f37631f602 --- /dev/null +++ b/firmware/src/miniconf/lib.rs.html @@ -0,0 +1,533 @@ +lib.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+
#![no_std]
+#![doc = include_str!("../README.md")]
+
+mod array;
+mod iter;
+mod option;
+
+pub use array::Array;
+pub use iter::MiniconfIter;
+pub use miniconf_derive::Miniconf;
+pub use option::Option;
+
+#[cfg(feature = "mqtt-client")]
+mod mqtt_client;
+
+#[cfg(feature = "mqtt-client")]
+pub use mqtt_client::MqttClient;
+
+// Re-exports
+pub use heapless;
+pub use serde;
+pub use serde_json_core;
+
+#[cfg(feature = "mqtt-client")]
+pub use minimq;
+
+#[cfg(feature = "mqtt-client")]
+pub use minimq::embedded_time;
+
+#[doc(hidden)]
+pub use serde::{
+    de::{Deserialize, DeserializeOwned},
+    ser::Serialize,
+};
+
+/// Errors that can occur when using the [Miniconf] API.
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, PartialEq, Eq)]
+pub enum Error {
+    /// The provided path wasn't found in the structure.
+    ///
+    /// Double check the provided path to verify that it's valid.
+    PathNotFound,
+
+    /// The provided path was valid, but there was trailing data at the end.
+    ///
+    /// Check the end of the path and remove any excess characters.
+    PathTooLong,
+
+    /// The provided path was valid, but did not specify a value fully.
+    ///
+    /// Double check the ending and add the remainder of the path.
+    PathTooShort,
+
+    /// The value provided for configuration could not be deserialized into the proper type.
+    ///
+    /// Check that the serialized data is valid JSON and of the correct type.
+    Deserialization(serde_json_core::de::Error),
+
+    /// The value provided could not be serialized.
+    ///
+    /// Check that the buffer had sufficient space.
+    Serialization(serde_json_core::ser::Error),
+
+    /// When indexing into an array, the index provided was out of bounds.
+    ///
+    /// Check array indices to ensure that bounds for all paths are respected.
+    BadIndex,
+
+    /// The path does not exist at runtime.
+    ///
+    /// This is the case if a deferred [core::option::Option] or [Option]
+    /// is `None` at runtime. `PathAbsent` takes precedence over `PathNotFound`
+    /// if the path is simultaneously masked by a `Option::None` at runtime but
+    /// would still be non-existent if it weren't.
+    PathAbsent,
+}
+
+/// Errors that occur during iteration over topic paths.
+#[non_exhaustive]
+#[derive(Debug, Copy, Clone, Eq, PartialEq)]
+pub enum IterError {
+    /// The provided state vector is not long enough.
+    PathDepth,
+
+    /// The provided topic length is not long enough.
+    PathLength,
+}
+
+impl From<Error> for u8 {
+    fn from(err: Error) -> u8 {
+        match err {
+            Error::PathNotFound => 1,
+            Error::PathTooLong => 2,
+            Error::PathTooShort => 3,
+            Error::Deserialization(_) => 5,
+            Error::BadIndex => 6,
+            Error::Serialization(_) => 7,
+            Error::PathAbsent => 8,
+        }
+    }
+}
+
+impl From<serde_json_core::de::Error> for Error {
+    fn from(err: serde_json_core::de::Error) -> Error {
+        Error::Deserialization(err)
+    }
+}
+
+impl From<serde_json_core::ser::Error> for Error {
+    fn from(err: serde_json_core::ser::Error) -> Error {
+        Error::Serialization(err)
+    }
+}
+
+/// Metadata about a [Miniconf] namespace.
+#[non_exhaustive]
+#[derive(Default, Debug, Copy, Clone, PartialEq, Eq)]
+pub struct Metadata {
+    /// The maximum length of a path.
+    pub max_length: usize,
+
+    /// The maximum path depth.
+    pub max_depth: usize,
+
+    /// The number of paths.
+    pub count: usize,
+}
+
+/// Helper trait for [core::iter::Peekable].
+pub trait Peekable: core::iter::Iterator {
+    fn peek(&mut self) -> core::option::Option<&Self::Item>;
+}
+
+impl<I: core::iter::Iterator> Peekable for core::iter::Peekable<I> {
+    fn peek(&mut self) -> core::option::Option<&Self::Item> {
+        core::iter::Peekable::peek(self)
+    }
+}
+
+/// Trait exposing serialization/deserialization of elements by path.
+pub trait Miniconf {
+    /// Update an element by path.
+    ///
+    /// # Args
+    /// * `path` - The path to the element with '/' as the separator.
+    /// * `data` - The serialized data making up the content.
+    ///
+    /// # Returns
+    /// The number of bytes consumed from `data` or an [Error].
+    fn set(&mut self, path: &str, data: &[u8]) -> Result<usize, Error> {
+        self.set_path(&mut path.split('/').peekable(), data)
+    }
+
+    /// Retrieve a serialized value by path.
+    ///
+    /// # Args
+    /// * `path` - The path to the element with '/' as the separator.
+    /// * `data` - The buffer to serialize the data into.
+    ///
+    /// # Returns
+    /// The number of bytes used in the `data` buffer or an [Error].
+    fn get(&self, path: &str, data: &mut [u8]) -> Result<usize, Error> {
+        self.get_path(&mut path.split('/').peekable(), data)
+    }
+
+    /// Create an iterator of all possible paths.
+    ///
+    /// This is a depth-first walk.
+    /// The iterator will walk all paths, even those that may be absent at run-time (see [Option]).
+    /// The iterator has an exact and trusted [Iterator::size_hint].
+    ///
+    /// # Template Arguments
+    /// * `L`  - The maximum depth of the path, i.e. number of separators plus 1.
+    /// * `TS` - The maximum length of the path in bytes.
+    ///
+    /// # Returns
+    /// A [MiniconfIter] of paths or an [IterError] if `L` or `TS` are insufficient.
+    fn iter_paths<const L: usize, const TS: usize>(
+    ) -> Result<iter::MiniconfIter<Self, L, TS>, IterError> {
+        let meta = Self::metadata();
+
+        if TS < meta.max_length {
+            return Err(IterError::PathLength);
+        }
+
+        if L < meta.max_depth {
+            return Err(IterError::PathDepth);
+        }
+
+        Ok(Self::unchecked_iter_paths(Some(meta.count)))
+    }
+
+    /// Create an iterator of all possible paths.
+    ///
+    /// This is a depth-first walk.
+    /// It will return all paths, even those that may be absent at run-time.
+    ///
+    /// # Note
+    /// This does not check that the path size or state vector are large enough. If they are not,
+    /// panics may be generated internally by the library.
+    ///
+    /// # Args
+    /// * `count`: Optional iterator length if known.
+    ///
+    /// # Template Arguments
+    /// * `L`  - The maximum depth of the path, i.e. number of separators plus 1.
+    /// * `TS` - The maximum length of the path in bytes.
+    fn unchecked_iter_paths<const L: usize, const TS: usize>(
+        count: core::option::Option<usize>,
+    ) -> iter::MiniconfIter<Self, L, TS> {
+        iter::MiniconfIter::new(count)
+    }
+
+    /// Deserialize an element by path.
+    ///
+    /// # Args
+    /// * `path_parts`: A `Peekable` `Iterator` identifying the element.
+    /// * `value`: A slice containing the data to be deserialized.
+    ///
+    /// # Returns
+    /// The number of bytes consumed from `value` or an `Error`.
+    fn set_path<'a, P: Peekable<Item = &'a str>>(
+        &mut self,
+        path_parts: &'a mut P,
+        value: &[u8],
+    ) -> Result<usize, Error>;
+
+    /// Serialize an element by path.
+    ///
+    /// # Args
+    /// * `path_parts`: A `Peekable` `Iterator` identifying the element.
+    /// * `value`: A slice for the value to be serialized into.
+    ///
+    /// # Returns
+    /// The number of bytes written to `value` or an `Error`.
+    fn get_path<'a, P: Peekable<Item = &'a str>>(
+        &self,
+        path_parts: &'a mut P,
+        value: &mut [u8],
+    ) -> Result<usize, Error>;
+
+    /// Get the next path in the namespace.
+    ///
+    /// This is usually not called directly but through a [MiniconfIter] returned by [Miniconf::iter_paths].
+    ///
+    /// # Args
+    /// * `state`: A state array indicating the path to be retrieved.
+    ///   A zeroed vector indicates the first path. The vector is advanced
+    ///   such that the next element will be retrieved when called again.
+    ///   The array needs to be at least as long as the maximum path depth.
+    /// * `path`: A string to write the path into.
+    ///
+    /// # Returns
+    /// A `bool` indicating a valid path was written to `path` from the given `state`.
+    /// If `false`, `path` is invalid and there are no more paths within `self` at and
+    /// beyond `state`.
+    /// May return `IterError` indicating insufficient `state` or `path` size.
+    fn next_path<const TS: usize>(
+        state: &mut [usize],
+        path: &mut heapless::String<TS>,
+    ) -> Result<bool, IterError>;
+
+    /// Get metadata about the paths in the namespace.
+    fn metadata() -> Metadata;
+}
+
\ No newline at end of file diff --git a/firmware/src/miniconf/mqtt_client/mod.rs.html b/firmware/src/miniconf/mqtt_client/mod.rs.html new file mode 100644 index 0000000000..321d6ff733 --- /dev/null +++ b/firmware/src/miniconf/mqtt_client/mod.rs.html @@ -0,0 +1,1377 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+403
+404
+405
+406
+407
+408
+409
+410
+411
+412
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+444
+445
+446
+447
+448
+449
+450
+451
+452
+453
+454
+455
+456
+457
+458
+459
+460
+461
+462
+463
+464
+465
+466
+467
+468
+469
+470
+471
+472
+473
+474
+475
+476
+477
+478
+479
+480
+481
+482
+483
+484
+485
+486
+487
+488
+489
+490
+491
+492
+493
+494
+495
+496
+497
+498
+499
+500
+501
+502
+503
+504
+505
+506
+507
+508
+509
+510
+511
+512
+513
+514
+515
+516
+517
+518
+519
+520
+521
+522
+523
+524
+525
+526
+527
+528
+529
+530
+531
+532
+533
+534
+535
+536
+537
+538
+539
+540
+541
+542
+543
+544
+545
+546
+547
+548
+549
+550
+551
+552
+553
+554
+555
+556
+557
+558
+559
+560
+561
+562
+563
+564
+565
+566
+567
+568
+569
+570
+571
+572
+573
+574
+575
+576
+577
+578
+579
+580
+581
+582
+583
+584
+585
+586
+587
+588
+589
+590
+591
+592
+593
+594
+595
+596
+597
+598
+599
+600
+601
+602
+603
+604
+605
+606
+607
+608
+609
+610
+611
+612
+613
+614
+615
+616
+617
+618
+619
+620
+621
+622
+623
+624
+625
+626
+627
+628
+629
+630
+631
+632
+633
+634
+635
+636
+637
+638
+639
+640
+641
+642
+643
+644
+645
+646
+647
+648
+649
+650
+651
+652
+653
+654
+655
+656
+657
+658
+659
+660
+661
+662
+663
+664
+665
+666
+667
+668
+669
+670
+671
+672
+673
+674
+675
+676
+677
+678
+679
+680
+681
+682
+683
+684
+685
+686
+687
+688
+
use serde_json_core::heapless::{String, Vec};
+
+use crate::Miniconf;
+use minimq::{
+    embedded_nal::{IpAddr, TcpClientStack},
+    embedded_time,
+    types::{SubscriptionOptions, TopicFilter},
+    Publication, QoS, Retain,
+};
+
+use core::fmt::Write;
+
+// The maximum topic length of any settings path.
+const MAX_TOPIC_LENGTH: usize = 128;
+
+// The keepalive interval to use for MQTT in seconds.
+const KEEPALIVE_INTERVAL_SECONDS: u16 = 60;
+
+// The maximum recursive depth of a settings structure.
+const MAX_RECURSION_DEPTH: usize = 8;
+
+// The delay after not receiving messages after initial connection that settings will be
+// republished.
+const REPUBLISH_TIMEOUT_SECONDS: u32 = 2;
+
+type MiniconfIter<M> = crate::MiniconfIter<M, MAX_RECURSION_DEPTH, MAX_TOPIC_LENGTH>;
+
+mod sm {
+    use minimq::embedded_time::{self, duration::Extensions, Instant};
+    use smlang::statemachine;
+
+    statemachine! {
+        transitions: {
+            *Initial + Connected = ConnectedToBroker,
+            ConnectedToBroker + IndicatedLife = PendingSubscribe,
+
+            // After initial subscriptions, we start a timeout to republish all settings.
+            PendingSubscribe + Subscribed / start_republish_timeout = PendingRepublish,
+
+            // Settings republish can be completed any time after subscription.
+            PendingRepublish + StartRepublish / start_republish = RepublishingSettings,
+            RepublishingSettings + StartRepublish / start_republish = RepublishingSettings,
+            Active + StartRepublish / start_republish = RepublishingSettings,
+
+            // After republishing settings, we are in an idle "active" state.
+            RepublishingSettings + Complete = Active,
+
+            // All states transition back to `initial` on reset.
+            _ + Reset = Initial,
+        }
+    }
+
+    pub struct Context<C: embedded_time::Clock, M: super::Miniconf + ?Sized> {
+        clock: C,
+        timeout: Option<Instant<C>>,
+        pub republish_state: super::MiniconfIter<M>,
+    }
+
+    impl<C: embedded_time::Clock, M: super::Miniconf> Context<C, M> {
+        pub fn new(clock: C) -> Self {
+            Self {
+                clock,
+                timeout: None,
+                republish_state: Default::default(),
+            }
+        }
+
+        pub fn republish_has_timed_out(&self) -> bool {
+            if let Some(timeout) = self.timeout {
+                self.clock.try_now().unwrap() > timeout
+            } else {
+                false
+            }
+        }
+    }
+
+    impl<C: embedded_time::Clock, M: super::Miniconf> StateMachineContext for Context<C, M> {
+        fn start_republish_timeout(&mut self) {
+            self.timeout.replace(
+                self.clock.try_now().unwrap() + super::REPUBLISH_TIMEOUT_SECONDS.seconds(),
+            );
+        }
+
+        fn start_republish(&mut self) {
+            self.republish_state = Default::default();
+        }
+    }
+}
+
+enum Command<'a> {
+    List,
+    Get { path: &'a str },
+    Set { path: &'a str, value: &'a [u8] },
+}
+
+impl<'a> Command<'a> {
+    fn from_message(topic: &'a str, value: &'a [u8]) -> Result<Self, ()> {
+        let path = topic.strip_prefix('/').unwrap_or(topic);
+
+        if path == "list" {
+            Ok(Command::List)
+        } else {
+            match path.split_once('/') {
+                Some(("settings", path)) => {
+                    if value.is_empty() {
+                        Ok(Command::Get { path })
+                    } else {
+                        Ok(Command::Set { path, value })
+                    }
+                }
+                _ => Err(()),
+            }
+        }
+    }
+}
+
+/// MQTT settings interface.
+///
+/// # Design
+/// The MQTT client places the [Miniconf] paths `<path>` at the MQTT `<prefix>/settings/<path>` topic,
+/// where `<prefix>` is provided in the client constructor.
+///
+/// It publishes its alive-ness as a `1` to `<prefix>/alive` and sets a will to publish `0` there when
+/// it is disconnected.
+///
+/// # Limitations
+/// The MQTT client logs failures to subscribe to the settings topic, but does not re-attempt to
+/// connect to it when errors occur.
+///
+/// The client only supports paths up to 128 byte length and maximum depth of 8.
+/// Keepalive interval and re-publication timeout are fixed to 60 and 2 seconds respectively.
+///
+/// # Example
+/// ```
+/// use miniconf::{MqttClient, Miniconf};
+///
+/// #[derive(Miniconf, Clone, Default)]
+/// struct Settings {
+///     foo: bool,
+/// }
+///
+/// let mut client: MqttClient<Settings, _, _, 256> = MqttClient::new(
+///     std_embedded_nal::Stack::default(),
+///     "",  // client_id auto-assign
+///     "quartiq/application/12345",  // prefix
+///     "127.0.0.1".parse().unwrap(),
+///     std_embedded_time::StandardClock::default(),
+///     Settings::default(),
+/// )
+/// .unwrap();
+///
+/// client.handled_update(|path, old_settings, new_settings| {
+///     if new_settings.foo {
+///         return Err("Foo!");
+///     }
+///     *old_settings = new_settings.clone();
+///     Ok(())
+/// }).unwrap();
+/// ```
+pub struct MqttClient<Settings, Stack, Clock, const MESSAGE_SIZE: usize>
+where
+    Settings: Miniconf + Clone,
+    Stack: TcpClientStack,
+    Clock: embedded_time::Clock,
+{
+    mqtt: minimq::Minimq<Stack, Clock, MESSAGE_SIZE, 1>,
+    settings: Settings,
+    state: sm::StateMachine<sm::Context<Clock, Settings>>,
+    prefix: String<MAX_TOPIC_LENGTH>,
+    listing_state: Option<MiniconfIter<Settings>>,
+    properties_cache: Option<Vec<u8, MESSAGE_SIZE>>,
+    pending_response: Option<Response<32>>,
+}
+
+impl<Settings, Stack, Clock, const MESSAGE_SIZE: usize>
+    MqttClient<Settings, Stack, Clock, MESSAGE_SIZE>
+where
+    Settings: Miniconf + Clone,
+    Stack: TcpClientStack,
+    Clock: embedded_time::Clock + Clone,
+{
+    /// Construct a new MQTT settings interface.
+    ///
+    /// # Args
+    /// * `stack` - The network stack to use for communication.
+    /// * `client_id` - The ID of the MQTT client. May be an empty string for auto-assigning.
+    /// * `prefix` - The MQTT device prefix to use for this device.
+    /// * `broker` - The IP address of the MQTT broker to use.
+    /// * `clock` - The clock for managing the MQTT connection.
+    /// * `settings` - The initial settings values.
+    pub fn new(
+        stack: Stack,
+        client_id: &str,
+        prefix: &str,
+        broker: IpAddr,
+        clock: Clock,
+        settings: Settings,
+    ) -> Result<Self, minimq::Error<Stack::Error>> {
+        let mut mqtt = minimq::Minimq::new(broker, client_id, stack, clock.clone())?;
+
+        // Note(unwrap): The client was just created, so it's valid to set a keepalive interval
+        // now, since we're not yet connected to the broker.
+        mqtt.client()
+            .set_keepalive_interval(KEEPALIVE_INTERVAL_SECONDS)?;
+
+        let prefix = String::from(prefix);
+
+        // Configure a will so that we can indicate whether or not we are connected.
+        let mut connection_topic = prefix.clone();
+        connection_topic.push_str("/alive").unwrap();
+        mqtt.client().set_will(
+            &connection_topic,
+            b"0",
+            QoS::AtMostOnce,
+            Retain::Retained,
+            &[],
+        )?;
+
+        assert!(
+            prefix.len() + "/settings/".len() + Settings::metadata().max_length <= MAX_TOPIC_LENGTH
+        );
+
+        Ok(Self {
+            mqtt,
+            state: sm::StateMachine::new(sm::Context::new(clock)),
+            settings,
+            prefix,
+            listing_state: None,
+            properties_cache: None,
+            pending_response: None,
+        })
+    }
+
+    fn handle_listing(&mut self) {
+        let Some(iter) = &mut self.listing_state else {
+            return;
+        };
+
+        let Some(props) = &self.properties_cache else {
+            return
+        };
+
+        let reply_props = minimq::types::Properties::DataBlock(props);
+
+        while self.mqtt.client().can_publish(QoS::AtLeastOnce) {
+            // Note(unwrap): Publishing should not fail because `can_publish()` was checked before
+            // attempting this publish.
+            let response: Response<MAX_TOPIC_LENGTH> = iter
+                .next()
+                .map(|path| Response::custom(ResponseCode::Continue, &path))
+                .unwrap_or_else(Response::ok);
+
+            let props = [minimq::Property::UserProperty(
+                minimq::types::Utf8String("code"),
+                minimq::types::Utf8String(response.code.as_ref()),
+            )];
+
+            self.mqtt
+                .client()
+                .publish(
+                    // Note(unwrap): We already guaranteed that the reply properties have a response
+                    // topic.
+                    Publication::new(response.msg.as_bytes())
+                        .reply(&reply_props)
+                        .properties(&props)
+                        .qos(QoS::AtLeastOnce)
+                        .finish()
+                        .unwrap(),
+                )
+                .unwrap();
+
+            // If we're done with listing, bail out of the loop.
+            if response.code != ResponseCode::Continue {
+                self.listing_state.take();
+                break;
+            }
+        }
+    }
+
+    fn handle_republish(&mut self) {
+        let mut data = [0; MESSAGE_SIZE];
+
+        while self.mqtt.client().can_publish(QoS::AtMostOnce) {
+            let Some(topic) = self.state.context_mut().republish_state.next() else {
+                // If we got here, we completed iterating over the topics and published them all.
+                self.state.process_event(sm::Events::Complete).unwrap();
+                break
+            };
+
+            // Note: The topic may be absent at runtime (`miniconf::Option` or deferred `Option`).
+            let len = match self.settings.get(&topic, &mut data) {
+                Err(crate::Error::PathAbsent) => continue,
+                Ok(len) => len,
+                e => e.unwrap(),
+            };
+
+            let mut prefixed_topic = self.prefix.clone();
+            prefixed_topic
+                .push_str("/settings/")
+                .and_then(|_| prefixed_topic.push_str(&topic))
+                .unwrap();
+
+            // Note(unwrap): This should not fail because `can_publish()` was checked before
+            // attempting this publish.
+            self.mqtt
+                .client()
+                .publish(
+                    Publication::new(&data[..len])
+                        .topic(&prefixed_topic)
+                        .finish()
+                        .unwrap(),
+                )
+                .unwrap();
+        }
+    }
+
+    fn handle_subscription(&mut self) {
+        log::info!("MQTT connected, subscribing to settings");
+
+        // Note(unwrap): We construct a string with two more characters than the prefix
+        // structure, so we are guaranteed to have space for storage.
+        let mut settings_topic = self.prefix.clone();
+        settings_topic.push_str("/settings/#").unwrap();
+        let mut list_topic = self.prefix.clone();
+        list_topic.push_str("/list").unwrap();
+
+        let opts = SubscriptionOptions::default().ignore_local_messages();
+        let topics = [
+            TopicFilter::new(&settings_topic).options(opts),
+            TopicFilter::new(&list_topic).options(opts),
+        ];
+
+        if self.mqtt.client().subscribe(&topics, &[]).is_ok() {
+            self.state.process_event(sm::Events::Subscribed).unwrap();
+        }
+    }
+
+    fn handle_indicating_alive(&mut self) {
+        // Publish a connection status message.
+        let mut connection_topic = self.prefix.clone();
+        connection_topic.push_str("/alive").unwrap();
+
+        if self
+            .mqtt
+            .client()
+            .publish(
+                Publication::new(b"1")
+                    .topic(&connection_topic)
+                    .retain()
+                    .finish()
+                    .unwrap(),
+            )
+            .is_ok()
+        {
+            self.state.process_event(sm::Events::IndicatedLife).unwrap();
+        }
+    }
+
+    /// Update the MQTT interface and service the network. Pass any settings changes to the handler
+    /// supplied.
+    ///
+    /// # Args
+    /// * `handler` - A closure called with updated settings that can be used to apply current
+    ///   settings or validate the configuration. Arguments are (path, old_settings, new_settings).
+    ///
+    /// # Returns
+    /// True if the settings changed. False otherwise.
+    pub fn handled_update<F, E>(&mut self, handler: F) -> Result<bool, minimq::Error<Stack::Error>>
+    where
+        F: FnMut(&str, &mut Settings, &Settings) -> Result<(), E>,
+        E: AsRef<str>,
+    {
+        if !self.mqtt.client().is_connected() {
+            // Note(unwrap): It's always safe to reset.
+            self.state.process_event(sm::Events::Reset).unwrap();
+        }
+
+        match *self.state.state() {
+            sm::States::Initial => {
+                if self.mqtt.client().is_connected() {
+                    self.state.process_event(sm::Events::Connected).unwrap();
+                }
+            }
+            sm::States::ConnectedToBroker => self.handle_indicating_alive(),
+            sm::States::PendingSubscribe => self.handle_subscription(),
+            sm::States::PendingRepublish => {
+                if self.state.context().republish_has_timed_out() {
+                    self.state
+                        .process_event(sm::Events::StartRepublish)
+                        .unwrap();
+                }
+            }
+            sm::States::RepublishingSettings => self.handle_republish(),
+
+            // Nothing to do in the active state.
+            sm::States::Active => {}
+        }
+
+        self.handle_listing();
+
+        self.handle_pending_response()?;
+
+        // All states must handle MQTT traffic.
+        self.handle_mqtt_traffic(handler)
+    }
+
+    fn handle_pending_response(&mut self) -> Result<(), minimq::Error<Stack::Error>> {
+        // Try to publish any pending response.
+        if !self.mqtt.client().can_publish(QoS::AtLeastOnce) {
+            return Ok(());
+        }
+
+        let Some(response) = self.pending_response.take() else {
+            return Ok(());
+        };
+
+        let Some(props) = self.properties_cache.as_ref() else {
+            return Ok(());
+        };
+
+        let reply_props = minimq::types::Properties::DataBlock(props);
+
+        let props = [minimq::Property::UserProperty(
+            minimq::types::Utf8String("code"),
+            minimq::types::Utf8String(response.code.as_ref()),
+        )];
+
+        let Ok(response) = minimq::Publication::new(response.msg.as_bytes())
+                        .reply(&reply_props)
+                        .properties(&props)
+                        .qos(QoS::AtLeastOnce)
+                        .finish() else {
+            return Ok(());
+        };
+
+        self.mqtt.client().publish(response)?;
+
+        Ok(())
+    }
+
+    fn handle_mqtt_traffic<F, E>(
+        &mut self,
+        mut handler: F,
+    ) -> Result<bool, minimq::Error<Stack::Error>>
+    where
+        F: FnMut(&str, &mut Settings, &Settings) -> Result<(), E>,
+        E: AsRef<str>,
+    {
+        let mut updated = false;
+        match self.mqtt.poll(|client, topic, message, properties| {
+            let Some(path) = topic.strip_prefix(self.prefix.as_str()) else {
+                log::info!("Unexpected topic prefix: {topic}");
+                return;
+            };
+
+            let Ok(command) = Command::from_message(path, message) else {
+                log::info!("Unknown Miniconf command: {path}");
+                return;
+            };
+
+            if self.pending_response.is_some() {
+                log::warn!("Discarding command due to pending response");
+                return;
+            }
+
+            let minimq::types::Properties::DataBlock(binary_props) = properties else {
+                // Received properties are always serialized.
+                unreachable!();
+            };
+
+            let have_response_topic = properties
+                .into_iter()
+                .any(|prop| matches!(prop, Ok(minimq::Property::ResponseTopic(_))));
+
+            let response: Response<32> = match command {
+                Command::List => {
+                    if self.listing_state.is_none() {
+                        if have_response_topic {
+                            // We only reply if there is a response topic to publish the list to.
+                            // Note(unwrap): The vector is guaranteed to be as large as the largest MQTT
+                            // message size, so the properties (which are a portion of the message) will
+                            // always fit into it.
+                            self.properties_cache
+                                .replace(Vec::from_slice(binary_props).unwrap());
+                            self.listing_state.replace(Default::default());
+                        } else {
+                            log::info!("Discarding `List` without `ResponseTopic`");
+                        }
+                        // Response sent with listing.
+                        return;
+                    } else {
+                        Response::error("`List` already in progress")
+                    }
+                }
+
+                Command::Get { path } => {
+                    let mut data = [0u8; MESSAGE_SIZE];
+                    match self.settings.get(path, &mut data) {
+                        Err(err) => err.into(),
+                        Ok(len) => {
+                            let mut topic = self.prefix.clone();
+
+                            // Note(unwrap): We check that the string will fit during
+                            // construction.
+                            topic
+                                .push_str("/settings/")
+                                .and_then(|_| topic.push_str(path))
+                                .unwrap();
+
+                            // Note(unwrap): This construction cannot fail because there's always a
+                            // valid topic.
+                            let message = minimq::Publication::new(&data[..len])
+                                .reply(properties)
+                                // Override the response topic with the path.
+                                .topic(&topic)
+                                .qos(QoS::AtLeastOnce)
+                                .finish()
+                                .unwrap();
+
+                            if client.publish(message).is_err() {
+                                Response::error("Can't publish `Get` response")
+                            } else {
+                                Response::ok()
+                            }
+                        }
+                    }
+                }
+                Command::Set { path, value } => {
+                    let mut new_settings = self.settings.clone();
+                    match new_settings.set(path, value) {
+                        Err(err) => err.into(),
+                        Ok(_) => {
+                            updated = true;
+                            handler(path, &mut self.settings, &new_settings).into()
+                        }
+                    }
+                }
+            };
+
+            if have_response_topic {
+                let props = [minimq::Property::UserProperty(
+                    minimq::types::Utf8String("code"),
+                    minimq::types::Utf8String(response.code.as_ref()),
+                )];
+
+                let Ok(response_pub) = minimq::Publication::new(response.msg.as_bytes())
+                            .reply(properties)
+                            .properties(&props)
+                            .qos(QoS::AtLeastOnce)
+                            .finish() else {
+                    log::warn!("Failed to build response `Pub`");
+                    return;
+                };
+
+                // If we cannot publish the response yet (possibly because we just published something
+                // that hasn't completed yet), cache the response for future transmission.
+                if client.publish(response_pub).is_err() {
+                    // Note(unwrap): The vector is guaranteed to be as large as the largest MQTT
+                    // message size, so the properties (which are a portion of the message) will
+                    // always fit into it.
+                    self.properties_cache
+                        .replace(Vec::from_slice(binary_props).unwrap());
+                    self.pending_response.replace(response);
+                }
+            }
+        }) {
+            Ok(_) => Ok(updated),
+            Err(minimq::Error::SessionReset) => {
+                log::warn!("Session reset");
+                self.state.process_event(sm::Events::Reset).unwrap();
+                Ok(false)
+            }
+            Err(other) => Err(other),
+        }
+    }
+
+    /// Update the settings from the network stack without any specific handling.
+    ///
+    /// # Returns
+    /// True if the settings changed. False otherwise
+    pub fn update(&mut self) -> Result<bool, minimq::Error<Stack::Error>> {
+        self.handled_update(|_, old, new| {
+            *old = new.clone();
+            Result::<_, &'static str>::Ok(())
+        })
+    }
+
+    /// Get the current settings from miniconf.
+    pub fn settings(&self) -> &Settings {
+        &self.settings
+    }
+
+    /// Force republication of the current settings.
+    ///
+    /// # Note
+    /// This is intended to be used if modification of a setting had side effects that affected
+    /// another setting.
+    pub fn force_republish(&mut self) {
+        self.state.process_event(sm::Events::StartRepublish).ok();
+    }
+}
+
+#[derive(PartialEq)]
+enum ResponseCode {
+    Ok,
+    Continue,
+    Error,
+}
+
+impl AsRef<str> for ResponseCode {
+    fn as_ref(&self) -> &str {
+        match self {
+            ResponseCode::Ok => "Ok",
+            ResponseCode::Continue => "Continue",
+            ResponseCode::Error => "Error",
+        }
+    }
+}
+
+/// The payload of the MQTT response message to a settings update request.
+struct Response<const N: usize> {
+    code: ResponseCode,
+    msg: String<N>,
+}
+
+impl<const N: usize> Response<N> {
+    pub fn ok() -> Self {
+        Self {
+            msg: String::from("OK"),
+            code: ResponseCode::Ok,
+        }
+    }
+
+    /// Generate a custom response with any response code.
+    ///
+    /// # Args
+    /// * `code` - The code to provide in the response.
+    /// * `msg` - The message to provide in the response.
+    pub fn custom(code: ResponseCode, message: &str) -> Self {
+        // Truncate the provided message to ensure it fits within the heapless String.
+        Self {
+            code,
+            msg: String::from(&message[..N.min(message.len())]),
+        }
+    }
+
+    /// Generate an error response
+    ///
+    /// # Args
+    /// * `message` - A message to provide in the response. Will be truncated to fit.
+    pub fn error(message: &str) -> Self {
+        Self::custom(ResponseCode::Error, message)
+    }
+}
+
+impl<T, E: AsRef<str>, const N: usize> From<Result<T, E>> for Response<N> {
+    fn from(result: Result<T, E>) -> Self {
+        match result {
+            Ok(_) => Response::ok(),
+
+            Err(error) => {
+                let mut msg = String::new();
+                if msg.push_str(error.as_ref()).is_err() {
+                    msg = String::from("Configuration Error");
+                }
+
+                Self {
+                    code: ResponseCode::Error,
+                    msg,
+                }
+            }
+        }
+    }
+}
+
+impl<const N: usize> From<crate::Error> for Response<N> {
+    fn from(err: crate::Error) -> Self {
+        let mut msg = String::new();
+        if write!(&mut msg, "{:?}", err).is_err() {
+            msg = String::from("Configuration Error");
+        }
+
+        Self {
+            code: ResponseCode::Error,
+            msg,
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/miniconf/option.rs.html b/firmware/src/miniconf/option.rs.html new file mode 100644 index 0000000000..48b76c3081 --- /dev/null +++ b/firmware/src/miniconf/option.rs.html @@ -0,0 +1,357 @@ +option.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+
use super::{Error, IterError, Metadata, Miniconf, Peekable};
+use core::ops::{Deref, DerefMut};
+
+/// An `Option` that exposes its value through their [`Miniconf`] implementation.
+///
+/// # Design
+///
+/// Miniconf supports optional values in two forms.
+///
+/// In both forms, the `Option` may be marked with `#[miniconf(defer)]`
+/// and be `None` at run-time. This makes the corresponding part of the namespace inaccessible
+/// at run-time. It will still be iterated over by [`Miniconf::iter_paths()`] but cannot be
+/// `get()` or `set()` using the [`Miniconf`] API.
+///
+/// This is intended as a mechanism to provide run-time construction of the namespace. In some
+/// cases, run-time detection may indicate that some component is not present. In this case,
+/// namespaces will not be exposed for it.
+///
+/// The first form is the [`miniconf::Option`](Option) type which optionally exposes its
+/// interior `Miniconf` value as a sub-tree. An [`miniconf::Option`](Option) should usually be
+/// `#[miniconf(defer)]`.
+///
+/// Miniconf also allows for the normal usage of Rust [`core::option::Option`] types. In this case,
+/// the `Option` can be used to atomically access the content within. If marked with `#[miniconf(defer)]`
+/// and `None` at runtime, it is inaccessible through `Miniconf`. Otherwise, JSON `null` corresponds to
+/// `None` as usual.
+///
+/// # Construction
+///
+/// An `miniconf::Option` can be constructed using [`From<core::option::Option>`]/[`Into<miniconf::Option>`]
+/// and the contained value can be accessed through [`Deref`]/[`DerefMut`].
+#[derive(
+    Clone,
+    Copy,
+    Default,
+    PartialEq,
+    Eq,
+    Debug,
+    PartialOrd,
+    Ord,
+    Hash,
+    serde::Serialize,
+    serde::Deserialize,
+)]
+#[repr(transparent)]
+pub struct Option<T>(core::option::Option<T>);
+
+impl<T> Deref for Option<T> {
+    type Target = core::option::Option<T>;
+
+    fn deref(&self) -> &Self::Target {
+        &self.0
+    }
+}
+
+impl<T> DerefMut for Option<T> {
+    fn deref_mut(&mut self) -> &mut Self::Target {
+        &mut self.0
+    }
+}
+
+impl<T> AsRef<core::option::Option<T>> for Option<T> {
+    fn as_ref(&self) -> &core::option::Option<T> {
+        self
+    }
+}
+
+impl<T> AsMut<core::option::Option<T>> for Option<T> {
+    fn as_mut(&mut self) -> &mut core::option::Option<T> {
+        self
+    }
+}
+
+impl<T> From<core::option::Option<T>> for Option<T> {
+    fn from(x: core::option::Option<T>) -> Self {
+        Self(x)
+    }
+}
+
+impl<T> From<Option<T>> for core::option::Option<T> {
+    fn from(x: Option<T>) -> Self {
+        x.0
+    }
+}
+
+impl<T: Miniconf> Miniconf for Option<T> {
+    fn set_path<'a, P: Peekable<Item = &'a str>>(
+        &mut self,
+        path_parts: &'a mut P,
+        value: &[u8],
+    ) -> Result<usize, Error> {
+        if let Some(inner) = self.0.as_mut() {
+            inner.set_path(path_parts, value)
+        } else {
+            Err(Error::PathAbsent)
+        }
+    }
+
+    fn get_path<'a, P: Peekable<Item = &'a str>>(
+        &self,
+        path_parts: &'a mut P,
+        value: &mut [u8],
+    ) -> Result<usize, Error> {
+        if let Some(inner) = self.0.as_ref() {
+            inner.get_path(path_parts, value)
+        } else {
+            Err(Error::PathAbsent)
+        }
+    }
+
+    fn metadata() -> Metadata {
+        T::metadata()
+    }
+
+    fn next_path<const TS: usize>(
+        state: &mut [usize],
+        path: &mut heapless::String<TS>,
+    ) -> Result<bool, IterError> {
+        T::next_path(state, path)
+    }
+}
+
+impl<T: crate::Serialize + crate::DeserializeOwned> Miniconf for core::option::Option<T> {
+    fn set_path<'a, P: Peekable<Item = &'a str>>(
+        &mut self,
+        path_parts: &mut P,
+        value: &[u8],
+    ) -> Result<usize, Error> {
+        if path_parts.peek().is_some() {
+            return Err(Error::PathTooLong);
+        }
+
+        if self.is_none() {
+            return Err(Error::PathAbsent);
+        }
+
+        let (value, len) = serde_json_core::from_slice(value)?;
+        *self = Some(value);
+        Ok(len)
+    }
+
+    fn get_path<'a, P: Peekable<Item = &'a str>>(
+        &self,
+        path_parts: &mut P,
+        value: &mut [u8],
+    ) -> Result<usize, Error> {
+        if path_parts.peek().is_some() {
+            return Err(Error::PathTooLong);
+        }
+
+        let data = self.as_ref().ok_or(Error::PathAbsent)?;
+        Ok(serde_json_core::to_slice(data, value)?)
+    }
+
+    fn metadata() -> Metadata {
+        Metadata {
+            count: 1,
+            ..Default::default()
+        }
+    }
+
+    fn next_path<const TS: usize>(
+        state: &mut [usize],
+        path: &mut heapless::String<TS>,
+    ) -> Result<bool, IterError> {
+        if *state.first().ok_or(IterError::PathDepth)? == 0 {
+            state[0] += 1;
+
+            // Remove trailing slash added by a deferring container (array or struct).
+            if path.ends_with('/') {
+                path.pop();
+            }
+            Ok(true)
+        } else {
+            Ok(false)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/adc.rs.html b/firmware/src/stabilizer/hardware/adc.rs.html new file mode 100644 index 0000000000..511a6c87e5 --- /dev/null +++ b/firmware/src/stabilizer/hardware/adc.rs.html @@ -0,0 +1,887 @@ +adc.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+403
+404
+405
+406
+407
+408
+409
+410
+411
+412
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+
///! Stabilizer ADC management interface
+///!
+///! # Design
+///!
+///! Stabilizer ADCs are connected to the MCU via a simplex, SPI-compatible interface. The ADCs
+///! require a setup conversion time after asserting the CSn (convert) signal to generate the ADC
+///! code from the sampled level. Once the setup time has elapsed, the ADC data is clocked out of
+///! MISO. The internal setup time is managed by the SPI peripheral via a CSn setup time parameter
+///! during SPI configuration, which allows offloading the management of the setup time to hardware.
+///!
+///! Because of the SPI-compatibility of the ADCs, a single SPI peripheral + DMA is used to automate
+///! the collection of multiple ADC samples without requiring processing by the CPU, which reduces
+///! overhead and provides the CPU with more time for processing-intensive tasks, like DSP.
+///!
+///! The automation of sample collection utilizes three DMA streams, the SPI peripheral, and two
+///! timer compare channel for each ADC. One timer comparison channel is configured to generate a
+///! comparison event every time the timer is equal to a specific value. Each comparison then
+///! generates a DMA transfer event to write into the SPI CR1 register to initiate the transfer.
+///! This allows the SPI interface to periodically read a single sample. The other timer comparison
+///! channel is configured to generate a comparison event slightly before the first (~10 timer
+///! cycles). This channel triggers a separate DMA stream to clear the EOT flag within the SPI
+///! peripheral. The EOT flag must be cleared after each transfer or the SPI peripheral will not
+///! properly complete the single conversion. Thus, by using two DMA streams and timer comparison
+///! channels, the SPI can regularly acquire ADC samples.
+///!
+///! In order to collect the acquired ADC samples into a RAM buffer, a final DMA transfer is
+///! configured to read from the SPI RX FIFO into RAM. The request for this transfer is connected to
+///! the SPI RX data signal, so the SPI peripheral will request to move data into RAM whenever it is
+///! available. When enough samples have been collected, a transfer-complete interrupt is generated
+///! and the ADC samples are available for processing.
+///!
+///! After a complete transfer of a batch of samples, the inactive buffer is available to the
+///! user for processing. The processing must complete before the DMA transfer of the next batch
+///! completes.
+///!
+///! ## Starting Data Collection
+///!
+///! Because the DMA data collection is automated via timer count comparisons and DMA transfers, the
+///! ADCs can be initialized and configured, but will not begin sampling the external ADCs until the
+///! sampling timer is enabled. As such, the sampling timer should be enabled after all
+///! initialization has completed and immediately before the embedded processing loop begins.
+///!
+///!
+///! ## Batch Sizing
+///!
+///! The ADCs collect a group of N samples, which is referred to as a batch. The size of the batch
+///! is configured by the user at compile-time to allow for a custom-tailored implementation. Larger
+///! batch sizes generally provide for lower overhead and more processing time per sample, but come
+///! at the expense of increased input -> output latency.
+///!
+///!
+///! # Note
+///!
+///! While there are two ADCs, only a single ADC is configured to generate transfer-complete
+///! interrupts. This is done because it is assumed that the ADCs will always be sampled
+///! simultaneously. If only a single ADC is used, it must always be ADC0, as ADC1 will not generate
+///! transfer-complete interrupts.
+///!
+///! There is a very small amount of latency between sampling of ADCs due to bus matrix priority. As
+///! such, one of the ADCs will be sampled marginally earlier before the other because the DMA
+///! requests are generated simultaneously. This can be avoided by providing a known offset to the
+///! sample DMA requests, which can be completed by setting e.g. ADC0's comparison to a counter
+///! value of 0 and ADC1's comparison to a counter value of 1.
+///!
+///! In this implementation, double buffer mode DMA transfers are used because the SPI RX FIFOs
+///! have finite depth, FIFO access is slower than AXISRAM access, and because the single
+///! buffer mode DMA disable/enable and buffer update sequence is slow.
+use stm32h7xx_hal as hal;
+
+use mutex_trait::Mutex;
+
+use super::design_parameters::{SampleBuffer, MAX_SAMPLE_BUFFER_SIZE};
+use super::timers;
+
+use hal::{
+    dma::{
+        config::Priority,
+        dma::{DMAReq, DmaConfig},
+        traits::TargetAddress,
+        DMAError, MemoryToPeripheral, PeripheralToMemory, Transfer,
+    },
+    spi::{HalDisabledSpi, HalEnabledSpi, HalSpi},
+};
+
+/// A type representing an ADC sample.
+#[derive(Copy, Clone)]
+pub struct AdcCode(pub u16);
+
+impl AdcCode {
+    // The ADC has a differential input with a range of +/- 4.096 V and 16-bit resolution.
+    // The gain into the two inputs is 1/5.
+    const FULL_SCALE: f32 = 5.0 / 2.0 * 4.096;
+    const VOLT_PER_LSB: f32 = -Self::FULL_SCALE / i16::MIN as f32;
+    const LSB_PER_VOLT: f32 = 1. / Self::VOLT_PER_LSB;
+}
+
+impl From<u16> for AdcCode {
+    /// Construct an ADC code from a provided binary (ADC-formatted) code.
+    fn from(value: u16) -> Self {
+        Self(value)
+    }
+}
+
+impl From<i16> for AdcCode {
+    /// Construct an ADC code from the stabilizer-defined code (i16 full range).
+    fn from(value: i16) -> Self {
+        Self(value as u16)
+    }
+}
+
+impl From<AdcCode> for i16 {
+    /// Get a stabilizer-defined code from the ADC code.
+    fn from(code: AdcCode) -> i16 {
+        code.0 as i16
+    }
+}
+
+impl From<AdcCode> for u16 {
+    /// Get an ADC-frmatted binary value from the code.
+    fn from(code: AdcCode) -> u16 {
+        code.0
+    }
+}
+
+impl From<AdcCode> for f32 {
+    /// Convert raw ADC codes to/from voltage levels.
+    ///
+    /// # Note
+    /// This does not account for the programmable gain amplifier at the signal input.
+    fn from(code: AdcCode) -> f32 {
+        i16::from(code) as f32 * AdcCode::VOLT_PER_LSB
+    }
+}
+
+impl TryFrom<f32> for AdcCode {
+    type Error = ();
+
+    fn try_from(voltage: f32) -> Result<AdcCode, ()> {
+        let code = voltage * Self::LSB_PER_VOLT;
+        if !(i16::MIN as f32..=i16::MAX as f32).contains(&code) {
+            Err(())
+        } else {
+            Ok(AdcCode::from(code as i16))
+        }
+    }
+}
+
+// The following data is written by the timer ADC sample trigger into the SPI CR1 to start the
+// transfer. Data in AXI SRAM is not initialized on boot, so the contents are random. This value is
+// initialized during setup.
+#[link_section = ".axisram.buffers"]
+static mut SPI_START: [u32; 1] = [0x00; 1];
+
+// The following data is written by the timer flag clear trigger into the SPI IFCR register to clear
+// the EOT flag. Data in AXI SRAM is not initialized on boot, so the contents are random. This
+// value is initialized during setup.
+#[link_section = ".axisram.buffers"]
+static mut SPI_EOT_CLEAR: [u32; 1] = [0x00];
+
+// The following global buffers are used for the ADC sample DMA transfers. Two buffers are used for
+// each transfer in a ping-pong buffer configuration (one is being acquired while the other is being
+// processed). Note that the contents of AXI SRAM is uninitialized, so the buffer contents on
+// startup are undefined. The dimensions are `ADC_BUF[adc_index][ping_pong_index][sample_index]`.
+#[link_section = ".axisram.buffers"]
+static mut ADC_BUF: [[SampleBuffer; 2]; 2] =
+    [[[0; MAX_SAMPLE_BUFFER_SIZE]; 2]; 2];
+
+macro_rules! adc_input {
+    ($name:ident, $index:literal, $trigger_stream:ident, $data_stream:ident, $clear_stream:ident,
+     $spi:ident, $trigger_channel:ident, $dma_req:ident, $clear_channel:ident, $dma_clear_req:ident) => {
+
+        paste::paste! {
+
+            /// $spi-CR is used as a type for indicating a DMA transfer into the SPI control
+            /// register whenever the tim2 update dma request occurs.
+            struct [< $spi CR >] {
+                _channel: timers::tim2::$trigger_channel,
+            }
+            impl [< $spi CR >] {
+                pub fn new(_channel: timers::tim2::$trigger_channel) -> Self {
+                    Self { _channel }
+                }
+            }
+
+            // Note(unsafe): This structure is only safe to instantiate once. The DMA request is
+            // hard-coded and may only be used if ownership of the timer2 $trigger_channel compare
+            // channel is assured, which is ensured by maintaining ownership of the channel.
+            unsafe impl TargetAddress<MemoryToPeripheral> for [< $spi CR >] {
+
+                type MemSize = u32;
+
+                /// SPI DMA requests are generated whenever TIM2 CHx ($dma_req) comparison occurs.
+                const REQUEST_LINE: Option<u8> = Some(DMAReq::$dma_req as u8);
+
+                /// Whenever the DMA request occurs, it should write into SPI's CR1 to start the
+                /// transfer.
+                fn address(&self) -> usize {
+                    // Note(unsafe): It is assumed that SPI is owned by another DMA transfer. This
+                    // is only safe because we are writing to a configuration register.
+                    let regs = unsafe { &*hal::stm32::$spi::ptr() };
+                    &regs.cr1 as *const _ as usize
+                }
+            }
+
+            /// $spi-IFCR is used as a type for indicating a DMA transfer into the SPI flag clear
+            /// register whenever the tim3 compare dma request occurs. The flag must be cleared
+            /// before the transfer starts.
+            struct [< $spi IFCR >] {
+                _channel: timers::tim3::$clear_channel,
+            }
+
+            impl [< $spi IFCR >] {
+                pub fn new(_channel: timers::tim3::$clear_channel) -> Self {
+                    Self { _channel }
+                }
+            }
+
+            // Note(unsafe): This structure is only safe to instantiate once. The DMA request is
+            // hard-coded and may only be used if ownership of the timer3 $clear_channel compare
+            // channel is assured, which is ensured by maintaining ownership of the channel.
+            unsafe impl TargetAddress<MemoryToPeripheral> for [< $spi IFCR >] {
+                type MemSize = u32;
+
+                /// SPI DMA requests are generated whenever TIM3 CHx ($dma_clear_req) comparison
+                /// occurs.
+                const REQUEST_LINE: Option<u8> = Some(DMAReq::$dma_clear_req as u8);
+
+                /// Whenever the DMA request occurs, it should write into SPI's IFCR to clear the
+                /// EOT flag to allow the next transmission.
+                fn address(&self) -> usize {
+                    // Note(unsafe): It is assumed that SPI is owned by another DMA transfer and
+                    // this DMA is only used for writing to the configuration registers.
+                    let regs = unsafe { &*hal::stm32::$spi::ptr() };
+                    &regs.ifcr as *const _ as usize
+                }
+            }
+
+            /// Represents data associated with ADC.
+            pub struct $name {
+                transfer: Transfer<
+                    hal::dma::dma::$data_stream<hal::stm32::DMA1>,
+                    hal::spi::Spi<hal::stm32::$spi, hal::spi::Disabled, u16>,
+                    PeripheralToMemory,
+                    &'static mut [u16],
+                    hal::dma::DBTransfer,
+                >,
+                trigger_transfer: Transfer<
+                    hal::dma::dma::$trigger_stream<hal::stm32::DMA1>,
+                    [< $spi CR >],
+                    MemoryToPeripheral,
+                    &'static mut [u32; 1],
+                    hal::dma::DBTransfer,
+                >,
+                clear_transfer: Transfer<
+                    hal::dma::dma::$clear_stream<hal::stm32::DMA1>,
+                    [< $spi IFCR >],
+                    MemoryToPeripheral,
+                    &'static mut [u32; 1],
+                    hal::dma::DBTransfer,
+                >,
+            }
+
+            impl $name {
+                /// Construct the ADC input channel.
+                ///
+                /// # Args
+                /// * `spi` - The SPI interface used to communicate with the ADC.
+                /// * `trigger_stream` - The DMA stream used to trigger each ADC transfer by
+                ///    writing a word into the SPI TX FIFO.
+                /// * `data_stream` - The DMA stream used to read samples received over SPI into a data buffer.
+                /// * `clear_stream` - The DMA stream used to clear the EOT flag in the SPI peripheral.
+                /// * `trigger_channel` - The ADC sampling timer output compare channel for read triggers.
+                /// * `clear_channel` - The shadow sampling timer output compare channel used for
+                ///   clearing the SPI EOT flag.
+                pub fn new(
+                    spi: hal::spi::Spi<hal::stm32::$spi, hal::spi::Enabled, u16>,
+                    trigger_stream: hal::dma::dma::$trigger_stream<
+                        hal::stm32::DMA1,
+                    >,
+                    data_stream: hal::dma::dma::$data_stream<hal::stm32::DMA1>,
+                    clear_stream: hal::dma::dma::$clear_stream<hal::stm32::DMA1>,
+                    trigger_channel: timers::tim2::$trigger_channel,
+                    clear_channel: timers::tim3::$clear_channel,
+                    batch_size: usize,
+                ) -> Self {
+                    // The flag clear DMA transfer always clears the EOT flag in the SPI
+                    // peripheral. It has the highest priority to ensure it is completed before the
+                    // transfer trigger.
+                    let clear_config = DmaConfig::default()
+                        .priority(Priority::VeryHigh)
+                        .circular_buffer(true);
+
+                    unsafe {
+                        SPI_EOT_CLEAR[0] = 1 << 3;
+                    }
+
+                    // Generate DMA events when the timer hits zero (roll-over). This must be before
+                    // the trigger channel DMA occurs, as if the trigger occurs first, the
+                    // transmission will not occur.
+                    clear_channel.listen_dma();
+                    clear_channel.to_output_compare(0);
+
+                    let clear_transfer: Transfer<
+                        _,
+                        _,
+                        MemoryToPeripheral,
+                        _,
+                        _,
+                    > = Transfer::init(
+                        clear_stream,
+                        [< $spi IFCR >]::new(clear_channel),
+                        // Note(unsafe): Because this is a Memory->Peripheral transfer, this data is
+                        // never actually modified. It technically only needs to be immutably
+                        // borrowed, but the current HAL API only supports mutable borrows.
+                        unsafe { &mut SPI_EOT_CLEAR },
+                        None,
+                        clear_config,
+                    );
+
+                    // Generate DMA events when an output compare of the timer hits the specified
+                    // value.
+                    trigger_channel.listen_dma();
+                    trigger_channel.to_output_compare(2 + $index);
+
+                    // The trigger stream constantly writes to the SPI CR1 using a static word
+                    // (which is a static value to enable the SPI transfer).  Thus, neither the
+                    // memory or peripheral address ever change. This is run in circular mode to be
+                    // completed at every DMA request.
+                    let trigger_config = DmaConfig::default()
+                        .priority(Priority::High)
+                        .circular_buffer(true);
+
+                    // Note(unsafe): This word is initialized once per ADC initialization to verify
+                    // it is initialized properly.
+                    unsafe {
+                        // Write a binary code into the SPI control register to initiate a transfer.
+                        SPI_START[0] = 0x201;
+                    };
+
+                    // Construct the trigger stream to write from memory to the peripheral.
+                    let trigger_transfer: Transfer<
+                        _,
+                        _,
+                        MemoryToPeripheral,
+                        _,
+                        _,
+                    > = Transfer::init(
+                        trigger_stream,
+                        [< $spi CR >]::new(trigger_channel),
+                        // Note(unsafe): Because this is a Memory->Peripheral transfer, this data is never
+                        // actually modified. It technically only needs to be immutably borrowed, but the
+                        // current HAL API only supports mutable borrows.
+                        unsafe { &mut SPI_START },
+                        None,
+                        trigger_config,
+                    );
+
+                    // The data stream constantly reads from the SPI RX FIFO into a RAM buffer. The peripheral
+                    // stalls reads of the SPI RX FIFO until data is available, so the DMA transfer completes
+                    // after the requested number of samples have been collected. Note that only ADC1's (sic!)
+                    // data stream is used to trigger a transfer completion interrupt.
+                    let data_config = DmaConfig::default()
+                        .memory_increment(true)
+                        .double_buffer(true)
+                        .transfer_complete_interrupt($index == 1)
+                        .priority(Priority::VeryHigh);
+
+                    // A SPI peripheral error interrupt is used to determine if the RX FIFO
+                    // overflows. This indicates that samples were dropped due to excessive
+                    // processing time in the main application (e.g. a second DMA transfer completes
+                    // before the first was done with processing). This is used as a flow control
+                    // indicator to guarantee that no ADC samples are lost.
+                    let mut spi = spi.disable();
+                    spi.listen(hal::spi::Event::Error);
+
+                    // The data transfer is always a transfer of data from the peripheral to a RAM
+                    // buffer.
+                    let data_transfer: Transfer<_, _, PeripheralToMemory, _, _> =
+                        Transfer::init(
+                            data_stream,
+                            spi,
+                            // Note(unsafe): The ADC_BUF[$index] is "owned" by this peripheral.
+                            // It shall not be used anywhere else in the module.
+                            unsafe { &mut ADC_BUF[$index][0][..batch_size] },
+                            unsafe { Some(&mut ADC_BUF[$index][1][..batch_size]) },
+                            data_config,
+                        );
+
+                    Self {
+                        transfer: data_transfer,
+                        trigger_transfer,
+                        clear_transfer,
+                    }
+                }
+
+                /// Enable the ADC DMA transfer sequence.
+                pub fn start(&mut self) {
+                    self.transfer.start(|spi| {
+                        spi.enable_dma_rx();
+
+                        spi.inner().cr2.modify(|_, w| w.tsize().bits(1));
+                        spi.inner().cr1.modify(|_, w| w.spe().set_bit());
+                    });
+
+                    self.clear_transfer.start(|_| {});
+                    self.trigger_transfer.start(|_| {});
+
+                }
+
+                /// Wait for the transfer of the currently active buffer to complete,
+                /// then call a function on the now inactive buffer and acknowledge the
+                /// transfer complete flag.
+                ///
+                /// NOTE(unsafe): Memory safety and access ordering is not guaranteed
+                /// (see the HAL DMA docs).
+                pub fn with_buffer<F, R>(&mut self, f: F) -> Result<R, DMAError>
+                where
+                    F: FnOnce(&mut &'static mut [u16]) -> R,
+                {
+                    unsafe { self.transfer.next_dbm_transfer_with(|buf, _current| f(buf)) }
+                }
+            }
+
+            // This is not actually a Mutex. It only re-uses the semantics and macros of mutex-trait
+            // to reduce rightward drift when jointly calling `with_buffer(f)` on multiple DAC/ADCs.
+            impl Mutex for $name {
+                type Data = &'static mut [u16];
+                fn lock<R>(&mut self, f: impl FnOnce(&mut Self::Data) -> R) -> R {
+                    self.with_buffer(f).unwrap()
+                }
+            }
+        }
+    };
+}
+
+adc_input!(
+    Adc0Input, 0, Stream0, Stream1, Stream2, SPI2, Channel1, Tim2Ch1, Channel1,
+    Tim3Ch1
+);
+adc_input!(
+    Adc1Input, 1, Stream3, Stream4, Stream5, SPI3, Channel2, Tim2Ch2, Channel2,
+    Tim3Ch2
+);
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/afe.rs.html b/firmware/src/stabilizer/hardware/afe.rs.html new file mode 100644 index 0000000000..bec8e35483 --- /dev/null +++ b/firmware/src/stabilizer/hardware/afe.rs.html @@ -0,0 +1,163 @@ +afe.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+
use serde::{Deserialize, Serialize};
+
+use core::convert::TryFrom;
+use num_enum::TryFromPrimitive;
+
+#[derive(Copy, Clone, Debug, Serialize, Deserialize, TryFromPrimitive)]
+#[repr(u8)]
+pub enum Gain {
+    G1 = 0b00,
+    G2 = 0b01,
+    G5 = 0b10,
+    G10 = 0b11,
+}
+
+/// A programmable gain amplifier that allows for setting the gain via GPIO.
+pub struct ProgrammableGainAmplifier<A0, A1> {
+    a0: A0,
+    a1: A1,
+}
+
+impl Gain {
+    /// Get the AFE gain as a numerical value.
+    pub fn as_multiplier(self) -> f32 {
+        match self {
+            Gain::G1 => 1.0,
+            Gain::G2 => 2.0,
+            Gain::G5 => 5.0,
+            Gain::G10 => 10.0,
+        }
+    }
+}
+
+impl<A0, A1> ProgrammableGainAmplifier<A0, A1>
+where
+    A0: embedded_hal::digital::v2::StatefulOutputPin,
+    A0::Error: core::fmt::Debug,
+    A1: embedded_hal::digital::v2::StatefulOutputPin,
+    A1::Error: core::fmt::Debug,
+{
+    /// Construct a new programmable gain driver.
+    ///
+    /// Args:
+    /// * `a0` - An output connected to the A0 input of the amplifier.
+    /// * `a1` - An output connected to the A1 input of the amplifier.
+    pub fn new(a0: A0, a1: A1) -> Self {
+        let mut afe = Self { a0, a1 };
+
+        afe.set_gain(Gain::G1);
+
+        afe
+    }
+
+    /// Set the gain of the front-end.
+    pub fn set_gain(&mut self, gain: Gain) {
+        if (gain as u8 & 0b01) != 0 {
+            self.a0.set_high().unwrap();
+        } else {
+            self.a0.set_low().unwrap();
+        }
+
+        if (gain as u8 & 0b10) != 0 {
+            self.a1.set_high().unwrap()
+        } else {
+            self.a1.set_low().unwrap();
+        }
+    }
+
+    /// Get the programmed gain of the analog front-end.
+    pub fn get_gain(&self) -> Gain {
+        let mut code: u8 = 0;
+        if self.a0.is_set_high().unwrap() {
+            code |= 0b1;
+        }
+        if self.a1.is_set_high().unwrap() {
+            code |= 0b10;
+        }
+
+        // NOTE(unwrap): All possibilities covered.
+        Gain::try_from(code).unwrap()
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/cpu_temp_sensor.rs.html b/firmware/src/stabilizer/hardware/cpu_temp_sensor.rs.html new file mode 100644 index 0000000000..4443b5c848 --- /dev/null +++ b/firmware/src/stabilizer/hardware/cpu_temp_sensor.rs.html @@ -0,0 +1,129 @@ +cpu_temp_sensor.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+
//! STM32 Temperature Sensor Driver
+//!
+//! # Description
+//! This file provides an API for measuring the internal STM32 temperature sensor. This temperature
+//! sensor measures the silicon junction temperature (Tj) and is connected via an internal ADC.
+use stm32h7xx_hal::{
+    self as hal,
+    signature::{TS_CAL_110, TS_CAL_30},
+};
+
+use super::shared_adc::{AdcChannel, AdcError};
+
+/// Helper utility to convert raw codes into temperature measurements.
+struct Calibration {
+    slope: f32,
+    offset: f32,
+}
+
+impl Calibration {
+    /// Construct the calibration utility.
+    pub fn new() -> Self {
+        let ts_cal2 = TS_CAL_110::read();
+        let ts_cal1 = TS_CAL_30::read();
+        let slope = (110. - 30.) / (ts_cal2 as f32 - ts_cal1 as f32);
+        let offset = 30. - slope * ts_cal1 as f32;
+        Self { slope, offset }
+    }
+
+    /// Convert a raw ADC sample to a temperature in degrees Celsius.
+    pub fn sample_to_temperature(&self, sample: u32) -> f32 {
+        // We use a 2.048V reference, but calibration data was taken at 3.3V.
+        let sample_3v3 = sample as f32 * 2.048 / 3.3;
+
+        self.slope * sample_3v3 + self.offset
+    }
+}
+
+/// A driver to access the CPU temeprature sensor.
+pub struct CpuTempSensor {
+    sensor: AdcChannel<'static, hal::stm32::ADC3, hal::adc::Temperature>,
+    calibration: Calibration,
+}
+
+impl CpuTempSensor {
+    /// Construct the temperature sensor.
+    ///
+    /// # Args
+    /// * `sensor` - The ADC channel of the integrated temperature sensor.
+    pub fn new(
+        sensor: AdcChannel<'static, hal::stm32::ADC3, hal::adc::Temperature>,
+    ) -> Self {
+        Self {
+            sensor,
+            calibration: Calibration::new(),
+        }
+    }
+
+    /// Get the temperature of the CPU in degrees Celsius.
+    pub fn get_temperature(&mut self) -> Result<f32, AdcError> {
+        self.sensor
+            .read_raw()
+            .map(|raw| self.calibration.sample_to_temperature(raw))
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/dac.rs.html b/firmware/src/stabilizer/hardware/dac.rs.html new file mode 100644 index 0000000000..d34ae9eb56 --- /dev/null +++ b/firmware/src/stabilizer/hardware/dac.rs.html @@ -0,0 +1,545 @@ +dac.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+
///! Stabilizer DAC management interface
+///!
+///! # Design
+///!
+///! Stabilizer DACs are connected to the MCU via a simplex, SPI-compatible interface. Each DAC
+///! accepts a 16-bit output code.
+///!
+///! In order to maximize CPU processing time, the DAC code updates are offloaded to hardware using
+///! a timer compare channel, DMA stream, and the DAC SPI interface.
+///!
+///! The timer comparison channel is configured to generate a DMA request whenever the comparison
+///! occurs. Thus, whenever a comparison happens, a single DAC code can be written to the output. By
+///! configuring a DMA stream for a number of successive DAC codes, hardware can regularly update
+///! the DAC without requiring the CPU.
+///!
+///! In order to ensure alignment between the ADC sample batches and DAC output code batches, a DAC
+///! output batch is always exactly 3 batches after the ADC batch that generated it.
+///!
+///! The DMA transfer for the DAC output codes utilizes a double-buffer mode to avoid losing any
+///! transfer events generated by the timer (for example, when 2 update cycles occur before the DMA
+///! transfer completion is handled). In this mode, by the time DMA swaps buffers, there is always a valid buffer in the
+///! "next-transfer" double-buffer location for the DMA transfer. Once a transfer completes,
+///! software then has exactly one batch duration to fill the next buffer before its
+///! transfer begins. If software does not meet this deadline, old data will be repeatedly generated
+///! on the output and output will be shifted by one batch.
+///!
+///! ## Multiple Samples to Single DAC Codes
+///!
+///! For some applications, it may be desirable to generate a single DAC code from multiple ADC
+///! samples. In order to maintain timing characteristics between ADC samples and DAC code outputs,
+///! applications are required to generate one DAC code for each ADC sample. To accomodate mapping
+///! multiple inputs to a single output, the output code can be repeated a number of times in the
+///! output buffer corresponding with the number of input samples that were used to generate it.
+///!
+///!
+///! # Note
+///!
+///! There is a very small amount of latency between updating the two DACs due to bus matrix
+///! priority. As such, one of the DACs will be updated marginally earlier before the other because
+///! the DMA requests are generated simultaneously. This can be avoided by providing a known offset
+///! to other DMA requests, which can be completed by setting e.g. DAC0's comparison to a
+///! counter value of 2 and DAC1's comparison to a counter value of 3. This will have the effect of
+///! generating the DAC updates with a known latency of 1 timer tick to each other and prevent the
+///! DMAs from racing for the bus. As implemented, the DMA channels utilize natural priority of the
+///! DMA channels to arbitrate which transfer occurs first.
+///!
+///!
+///! # Limitations
+///!
+///! While double-buffered mode is used for DMA to avoid lost DAC-update events, there is no check
+///! for re-use of a previously provided DAC output buffer. It is assumed that the DMA request is
+///! served promptly after the transfer completes.
+use stm32h7xx_hal as hal;
+
+use mutex_trait::Mutex;
+
+use super::design_parameters::{SampleBuffer, MAX_SAMPLE_BUFFER_SIZE};
+use super::timers;
+
+use core::convert::TryFrom;
+
+use hal::{
+    dma::{
+        dma::{DMAReq, DmaConfig},
+        traits::TargetAddress,
+        DMAError, MemoryToPeripheral, Transfer,
+    },
+    spi::{HalDisabledSpi, HalEnabledSpi, HalSpi},
+};
+
+// The following global buffers are used for the DAC code DMA transfers. Two buffers are used for
+// each transfer in a ping-pong buffer configuration (one is being prepared while the other is being
+// processed). Note that the contents of AXI SRAM is uninitialized, so the buffer contents on
+// startup are undefined. The dimensions are `ADC_BUF[adc_index][ping_pong_index][sample_index]`.
+#[link_section = ".axisram.buffers"]
+static mut DAC_BUF: [[SampleBuffer; 2]; 2] =
+    [[[0; MAX_SAMPLE_BUFFER_SIZE]; 2]; 2];
+
+/// Custom type for referencing DAC output codes.
+/// The internal integer is the raw code written to the DAC output register.
+#[derive(Copy, Clone)]
+pub struct DacCode(pub u16);
+impl DacCode {
+    // The DAC output range in bipolar mode (including the external output op-amp) is +/- 4.096
+    // V with 16-bit resolution. The anti-aliasing filter has an additional gain of 2.5.
+    pub const FULL_SCALE: f32 = 4.096 * 2.5;
+    pub const VOLT_PER_LSB: f32 = -Self::FULL_SCALE / i16::MIN as f32;
+    pub const LSB_PER_VOLT: f32 = 1. / Self::VOLT_PER_LSB;
+}
+
+impl TryFrom<f32> for DacCode {
+    type Error = ();
+
+    fn try_from(voltage: f32) -> Result<DacCode, ()> {
+        let code = voltage * Self::LSB_PER_VOLT;
+        if !(i16::MIN as f32..=i16::MAX as f32).contains(&code) {
+            Err(())
+        } else {
+            Ok(DacCode::from(code as i16))
+        }
+    }
+}
+
+impl From<DacCode> for f32 {
+    fn from(code: DacCode) -> f32 {
+        i16::from(code) as f32 * DacCode::VOLT_PER_LSB
+    }
+}
+
+impl From<DacCode> for i16 {
+    fn from(code: DacCode) -> i16 {
+        (code.0 as i16).wrapping_sub(i16::MIN)
+    }
+}
+
+impl From<i16> for DacCode {
+    /// Encode signed 16-bit values into DAC offset binary for a bipolar output configuration.
+    fn from(value: i16) -> Self {
+        Self(value.wrapping_add(i16::MIN) as u16)
+    }
+}
+
+impl From<u16> for DacCode {
+    /// Create a dac code from the provided DAC output code.
+    fn from(value: u16) -> Self {
+        Self(value)
+    }
+}
+
+macro_rules! dac_output {
+    ($name:ident, $index:literal, $data_stream:ident,
+     $spi:ident, $trigger_channel:ident, $dma_req:ident) => {
+        /// $spi is used as a type for indicating a DMA transfer into the SPI TX FIFO
+        struct $spi {
+            spi: hal::spi::Spi<hal::stm32::$spi, hal::spi::Disabled, u16>,
+            _channel: timers::tim2::$trigger_channel,
+        }
+
+        impl $spi {
+            pub fn new(
+                _channel: timers::tim2::$trigger_channel,
+                spi: hal::spi::Spi<hal::stm32::$spi, hal::spi::Disabled, u16>,
+            ) -> Self {
+                Self { spi, _channel }
+            }
+
+            /// Start the SPI and begin operating in a DMA-driven transfer mode.
+            pub fn start_dma(&mut self) {
+                // Allow the SPI FIFOs to operate using only DMA data channels.
+                self.spi.enable_dma_tx();
+
+                // Enable SPI and start it in infinite transaction mode.
+                self.spi.inner().cr1.modify(|_, w| w.spe().set_bit());
+                self.spi.inner().cr1.modify(|_, w| w.cstart().started());
+            }
+        }
+
+        // Note(unsafe): This is safe because the DMA request line is logically owned by this module.
+        // Additionally, the SPI is owned by this structure and is known to be configured for u16 word
+        // sizes.
+        unsafe impl TargetAddress<MemoryToPeripheral> for $spi {
+            /// SPI is configured to operate using 16-bit transfer words.
+            type MemSize = u16;
+
+            /// SPI DMA requests are generated whenever TIM2 CHx ($dma_req) comparison occurs.
+            const REQUEST_LINE: Option<u8> = Some(DMAReq::$dma_req as u8);
+
+            /// Whenever the DMA request occurs, it should write into SPI's TX FIFO.
+            fn address(&self) -> usize {
+                &self.spi.inner().txdr as *const _ as usize
+            }
+        }
+
+        /// Represents data associated with DAC.
+        pub struct $name {
+            // Note: SPI TX functionality may not be used from this structure to ensure safety with DMA.
+            transfer: Transfer<
+                hal::dma::dma::$data_stream<hal::stm32::DMA1>,
+                $spi,
+                MemoryToPeripheral,
+                &'static mut [u16],
+                hal::dma::DBTransfer,
+            >,
+        }
+
+        impl $name {
+            /// Construct the DAC output channel.
+            ///
+            /// # Args
+            /// * `spi` - The SPI interface used to communicate with the ADC.
+            /// * `stream` - The DMA stream used to write DAC codes over SPI.
+            /// * `trigger_channel` - The sampling timer output compare channel for update triggers.
+            pub fn new(
+                spi: hal::spi::Spi<hal::stm32::$spi, hal::spi::Enabled, u16>,
+                stream: hal::dma::dma::$data_stream<hal::stm32::DMA1>,
+                trigger_channel: timers::tim2::$trigger_channel,
+                batch_size: usize,
+            ) -> Self {
+                // Generate DMA events when an output compare of the timer hitting zero (timer roll over)
+                // occurs.
+                trigger_channel.listen_dma();
+                trigger_channel.to_output_compare(4 + $index);
+
+                // The stream constantly writes to the TX FIFO to write new update codes.
+                let trigger_config = DmaConfig::default()
+                    .memory_increment(true)
+                    .double_buffer(true)
+                    .peripheral_increment(false);
+
+                // Listen for any potential SPI error signals, which may indicate that we are not generating
+                // update codes.
+                let mut spi = spi.disable();
+                spi.listen(hal::spi::Event::Error);
+
+                // AXISRAM is uninitialized. As such, we manually initialize it for a 0V DAC output
+                // here before starting the transfer .
+                // Note(unsafe): We currently own all DAC_BUF[index] buffers and are not using them
+                // elsewhere, so it is safe to access them here.
+                for buf in unsafe { DAC_BUF[$index].iter_mut() } {
+                    for byte in buf.iter_mut() {
+                        *byte = DacCode::try_from(0.0f32).unwrap().0;
+                    }
+                }
+
+                // Construct the trigger stream to write from memory to the peripheral.
+                let transfer: Transfer<_, _, MemoryToPeripheral, _, _> =
+                    Transfer::init(
+                        stream,
+                        $spi::new(trigger_channel, spi),
+                        // Note(unsafe): This buffer is only used once and provided for the DMA transfer.
+                        unsafe { &mut DAC_BUF[$index][0][..batch_size] },
+                        // Note(unsafe): This buffer is only used once and provided for the DMA transfer.
+                        unsafe { Some(&mut DAC_BUF[$index][1][..batch_size]) },
+                        trigger_config,
+                    );
+
+                Self { transfer }
+            }
+
+            pub fn start(&mut self) {
+                self.transfer.start(|spi| spi.start_dma());
+            }
+
+            /// Wait for the transfer of the currently active buffer to complete,
+            /// then call a function on the now inactive buffer and acknowledge the
+            /// transfer complete flag.
+            ///
+            /// NOTE(unsafe): Memory safety and access ordering is not guaranteed
+            /// (see the HAL DMA docs).
+            pub fn with_buffer<F, R>(&mut self, f: F) -> Result<R, DMAError>
+            where
+                F: FnOnce(&mut &'static mut [u16]) -> R,
+            {
+                unsafe {
+                    self.transfer.next_dbm_transfer_with(|buf, _current| f(buf))
+                }
+            }
+        }
+
+        // This is not actually a Mutex. It only re-uses the semantics and macros of mutex-trait
+        // to reduce rightward drift when jointly calling `with_buffer(f)` on multiple DAC/ADCs.
+        impl Mutex for $name {
+            type Data = &'static mut [u16];
+            fn lock<R>(&mut self, f: impl FnOnce(&mut Self::Data) -> R) -> R {
+                self.with_buffer(f).unwrap()
+            }
+        }
+    };
+}
+
+dac_output!(Dac0Output, 0, Stream6, SPI4, Channel3, Tim2Ch3);
+dac_output!(Dac1Output, 1, Stream7, SPI5, Channel4, Tim2Ch4);
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/delay.rs.html b/firmware/src/stabilizer/hardware/delay.rs.html new file mode 100644 index 0000000000..ad54a5d6c2 --- /dev/null +++ b/firmware/src/stabilizer/hardware/delay.rs.html @@ -0,0 +1,93 @@ +delay.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+
//! Basic blocking delay
+//!
+//! This module provides a basic asm-based blocking delay.
+//!
+//! # Note
+//! This implementation takes into account the Cortex-M7 CPU pipeline architecture to ensure delays
+//! are at least as long as specified.
+use embedded_hal::blocking::delay::{DelayMs, DelayUs};
+
+/// A basic delay implementation.
+pub struct AsmDelay {
+    frequency_us: u32,
+    frequency_ms: u32,
+}
+
+impl AsmDelay {
+    /// Create a new delay.
+    ///
+    /// # Args
+    /// * `freq` - The CPU core frequency.
+    pub fn new(freq: u32) -> AsmDelay {
+        // Note: Frequencies are scaled by 2 to account for the M7 dual instruction pipeline.
+        AsmDelay {
+            frequency_us: (freq / 1_000_000) * 2,
+            frequency_ms: (freq / 1_000) * 2,
+        }
+    }
+}
+
+impl<U> DelayUs<U> for AsmDelay
+where
+    U: Into<u32>,
+{
+    fn delay_us(&mut self, us: U) {
+        cortex_m::asm::delay(self.frequency_us * us.into())
+    }
+}
+
+impl<U> DelayMs<U> for AsmDelay
+where
+    U: Into<u32>,
+{
+    fn delay_ms(&mut self, ms: U) {
+        cortex_m::asm::delay(self.frequency_ms * ms.into())
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/design_parameters.rs.html b/firmware/src/stabilizer/hardware/design_parameters.rs.html new file mode 100644 index 0000000000..19297d3f6c --- /dev/null +++ b/firmware/src/stabilizer/hardware/design_parameters.rs.html @@ -0,0 +1,103 @@ +design_parameters.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+
use stm32h7xx_hal::time::MegaHertz;
+
+/// The system clock, used in various timer calculations
+pub const SYSCLK: MegaHertz = MegaHertz::MHz(400);
+
+/// The ADC setup time is the number of seconds after the CSn line goes low before the serial clock
+/// may begin. This is used for performing the internal ADC conversion.
+pub const ADC_SETUP_TIME: f32 = 220e-9;
+
+/// The maximum DAC/ADC serial clock line frequency. This is a hardware limit.
+pub const ADC_DAC_SCK_MAX: MegaHertz = MegaHertz::MHz(50);
+
+/// The optimal counting frequency of the hardware timers used for timestamping and sampling.
+pub const TIMER_FREQUENCY: MegaHertz = MegaHertz::MHz(100);
+pub const TIMER_PERIOD: f32 = 1. / (TIMER_FREQUENCY.to_Hz() as f32);
+
+/// The QSPI frequency for communicating with the pounder DDS.
+pub const POUNDER_QSPI_FREQUENCY: MegaHertz = MegaHertz::MHz(50);
+
+/// The delay after initiating a QSPI transfer before asserting the IO_Update for the pounder DDS.
+// Pending Pounder Profile writes are up to 32 bytes (QSPI FIFO depth),
+// with 2 cycles required per byte, coming out to a total of 64 QSPI clock cycles.
+// The QSPI is configured for 50MHz, so this comes out to an offset
+// of 1280 ns. We use 1300 ns to be safe.
+pub const POUNDER_IO_UPDATE_DELAY: f32 = 1_300e-9;
+
+/// The duration to assert IO_Update for the pounder DDS.
+// IO_Update should be latched for 4 SYNC_CLK cycles after the QSPI profile write. With pounder
+// SYNC_CLK running at 100MHz (1/4 of the pounder reference clock of 500MHz), this corresponds to
+// 32ns. To accomodate rounding errors, we use 50ns instead.
+pub const POUNDER_IO_UPDATE_DURATION: f32 = 50e-9;
+
+/// The DDS reference clock frequency in MHz.
+pub const DDS_REF_CLK: MegaHertz = MegaHertz::MHz(100);
+
+/// The multiplier used for the DDS reference clock PLL.
+pub const DDS_MULTIPLIER: u8 = 5;
+
+/// The DDS system clock frequency after the internal PLL multiplication.
+#[allow(dead_code)]
+pub const DDS_SYSTEM_CLK: MegaHertz =
+    MegaHertz::MHz(DDS_REF_CLK.to_MHz() * DDS_MULTIPLIER as u32);
+
+/// The divider from the DDS system clock to the SYNC_CLK output (sync-clk is always 1/4 of sysclk).
+#[allow(dead_code)]
+pub const DDS_SYNC_CLK_DIV: u8 = 4;
+
+/// The maximum ADC/DAC sample processing buffer size.
+pub const MAX_SAMPLE_BUFFER_SIZE: usize = 32;
+
+pub type SampleBuffer = [u16; MAX_SAMPLE_BUFFER_SIZE];
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/eeprom.rs.html b/firmware/src/stabilizer/hardware/eeprom.rs.html new file mode 100644 index 0000000000..ad921af976 --- /dev/null +++ b/firmware/src/stabilizer/hardware/eeprom.rs.html @@ -0,0 +1,85 @@ +eeprom.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+
use embedded_hal::blocking::{delay::DelayMs, i2c::WriteRead};
+
+// The EEPROM is a variant without address bits, so the 3 LSB of this word are "dont-cares".
+const I2C_ADDR: u8 = 0x50;
+
+// The MAC address is stored in the last 6 bytes of the 256 byte address space.
+const MAC_POINTER: u8 = 0xFA;
+
+pub fn read_eui48<T>(i2c: &mut T, delay: &mut impl DelayMs<u8>) -> [u8; 6]
+where
+    T: WriteRead,
+{
+    let mut previous_read: Option<[u8; 6]> = None;
+    // On Stabilizer v1.1 and earlier hardware, there is a fault where the I2C bus is not connected
+    // to the CPU until the P12V0A rail enables, which can take many seconds, or may never come up
+    // at all. During these transient turn-on conditions, we may fail the I2C read operation. To
+    // accomodate this, we repeat the I2C read for a set number of attempts with a fixed delay
+    // between them. Then, we wait for the bus to stabilize by waiting until the MAC address
+    // read-out is identical for two consecutive reads.
+    for _ in 0..40 {
+        let mut buffer = [0u8; 6];
+        if i2c
+            .write_read(I2C_ADDR, &[MAC_POINTER], &mut buffer)
+            .is_ok()
+        {
+            if let Some(old_read) = previous_read {
+                if old_read == buffer {
+                    return buffer;
+                }
+            }
+
+            previous_read.replace(buffer);
+        } else {
+            // Remove any pending previous read if we failed the last attempt.
+            previous_read.take();
+        }
+
+        delay.delay_ms(100);
+    }
+
+    panic!("Failed to read MAC address");
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/input_stamper.rs.html b/firmware/src/stabilizer/hardware/input_stamper.rs.html new file mode 100644 index 0000000000..0aff6dcb37 --- /dev/null +++ b/firmware/src/stabilizer/hardware/input_stamper.rs.html @@ -0,0 +1,155 @@ +input_stamper.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+
///! Digital Input 0 (DI0) reference clock timestamper
+///!
+///! This module provides a means of timestamping the rising edges of an external reference clock on
+///! the DI0 with a timer value from TIM5.
+///!
+///! # Design
+///! An input capture channel is configured on DI0 and fed into TIM5's capture channel 4. TIM5 is
+///! then run in a free-running mode with a configured tick rate (PSC) and maximum count value
+///! (ARR). Whenever an edge on DI0 triggers, the current TIM5 counter value is captured and
+///! recorded as a timestamp. This timestamp can be either directly read from the timer channel or
+///! can be collected asynchronously via DMA collection.
+///!
+///! To prevent silently discarding timestamps, the TIM5 input capture over-capture flag is
+///! continually checked. Any over-capture event (which indicates an overwritten timestamp) then
+///! triggers a panic to indicate the dropped timestamp so that design parameters can be adjusted.
+///!
+///! # Tradeoffs
+///! It appears that DMA transfers can take a significant amount of time to disable (400ns) if they
+///! are being prematurely stopped (such is the case here). As such, for a sample batch size of 1,
+///! this can take up a significant amount of the total available processing time for the samples.
+///! This module checks for any captured timestamps from the timer capture channel manually. In
+///! this mode, the maximum input clock frequency supported is dependant on the sampling rate and
+///! batch size.
+///!
+///! This module only supports DI0 for timestamping due to trigger constraints on the DIx pins. If
+///! timestamping is desired in DI1, a separate timer + capture channel will be necessary.
+use super::{hal, timers};
+
+/// The timestamper for DI0 reference clock inputs.
+pub struct InputStamper {
+    _di0_trigger: hal::gpio::gpioa::PA3<hal::gpio::Alternate<2>>,
+    capture_channel: timers::tim5::Channel4InputCapture,
+}
+
+impl InputStamper {
+    /// Construct the DI0 input timestamper.
+    ///
+    /// # Args
+    /// * `trigger` - The capture trigger input pin.
+    /// * `timer_channel - The timer channel used for capturing timestamps.
+    pub fn new(
+        trigger: hal::gpio::gpioa::PA3<hal::gpio::Alternate<2>>,
+        timer_channel: timers::tim5::Channel4,
+    ) -> Self {
+        // Utilize the TIM5 CH4 as an input capture channel - use TI4 (the DI0 input trigger) as the
+        // capture source.
+        let mut input_capture =
+            timer_channel.into_input_capture(timers::tim5::CaptureSource4::Ti4);
+
+        // Do not prescale the input capture signal - require 8 consecutive samples to record an
+        // incoming event - this prevents spurious glitches from triggering captures.
+        input_capture.configure_filter(timers::InputFilter::Div1N8);
+
+        Self {
+            capture_channel: input_capture,
+            _di0_trigger: trigger,
+        }
+    }
+
+    /// Start to capture timestamps on DI0.
+    #[allow(dead_code)]
+    pub fn start(&mut self) {
+        self.capture_channel.enable();
+    }
+
+    /// Get the latest timestamp that has occurred.
+    ///
+    /// # Note
+    /// This function must be called at least as often as timestamps arrive.
+    /// If an over-capture event occurs, this function will clear the overflow,
+    /// and return a new timestamp of unknown recency an `Err()`.
+    /// Note that this indicates at least one timestamp was inadvertently dropped.
+    #[allow(dead_code)]
+    pub fn latest_timestamp(&mut self) -> Result<Option<u32>, Option<u32>> {
+        self.capture_channel.latest_capture()
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/mod.rs.html b/firmware/src/stabilizer/hardware/mod.rs.html new file mode 100644 index 0000000000..8a3b80274a --- /dev/null +++ b/firmware/src/stabilizer/hardware/mod.rs.html @@ -0,0 +1,245 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+
pub use embedded_hal;
+///! Module for all hardware-specific setup of Stabilizer
+pub use stm32h7xx_hal as hal;
+
+pub mod adc;
+pub mod afe;
+pub mod cpu_temp_sensor;
+pub mod dac;
+pub mod delay;
+pub mod design_parameters;
+pub mod input_stamper;
+pub mod pounder;
+pub mod setup;
+pub mod shared_adc;
+pub mod signal_generator;
+pub mod timers;
+
+mod eeprom;
+
+// Type alias for the analog front-end (AFE) for ADC0.
+pub type AFE0 = afe::ProgrammableGainAmplifier<
+    hal::gpio::gpiof::PF2<hal::gpio::Output<hal::gpio::PushPull>>,
+    hal::gpio::gpiof::PF5<hal::gpio::Output<hal::gpio::PushPull>>,
+>;
+
+// Type alias for the analog front-end (AFE) for ADC1.
+pub type AFE1 = afe::ProgrammableGainAmplifier<
+    hal::gpio::gpiod::PD14<hal::gpio::Output<hal::gpio::PushPull>>,
+    hal::gpio::gpiod::PD15<hal::gpio::Output<hal::gpio::PushPull>>,
+>;
+
+// Type alias for digital input 0 (DI0).
+pub type DigitalInput0 = hal::gpio::gpiog::PG9<hal::gpio::Input>;
+
+// Type alias for digital input 1 (DI1).
+pub type DigitalInput1 = hal::gpio::gpioc::PC15<hal::gpio::Input>;
+
+// Type alias for LVDS4 (digital input).
+pub type EemDigitalInput0 = hal::gpio::gpiod::PD1<hal::gpio::Input>;
+
+// Type alias for LVDS5 (digital input).
+pub type EemDigitalInput1 = hal::gpio::gpiod::PD2<hal::gpio::Input>;
+
+// Type alias for LVDS6 (digital output).
+pub type EemDigitalOutput0 = hal::gpio::gpiod::PD3<hal::gpio::Output>;
+
+// Type alias for LVDS7 (digital output).
+pub type EemDigitalOutput1 = hal::gpio::gpiod::PD4<hal::gpio::Output>;
+
+// Number of TX descriptors in the ethernet descriptor ring.
+const TX_DESRING_CNT: usize = 4;
+
+// Number of RX descriptors in the ethernet descriptor ring.
+const RX_DESRING_CNT: usize = 4;
+
+pub type NetworkStack = smoltcp_nal::NetworkStack<
+    'static,
+    hal::ethernet::EthernetDMA<TX_DESRING_CNT, RX_DESRING_CNT>,
+    SystemTimer,
+>;
+
+pub type NetworkManager = smoltcp_nal::shared::NetworkManager<
+    'static,
+    hal::ethernet::EthernetDMA<TX_DESRING_CNT, RX_DESRING_CNT>,
+    SystemTimer,
+>;
+
+pub type EthernetPhy = hal::ethernet::phy::LAN8742A<hal::ethernet::EthernetMAC>;
+
+/// System timer (RTIC Monotonic) tick frequency
+pub const MONOTONIC_FREQUENCY: u32 = 1_000;
+pub type Systick = systick_monotonic::Systick<MONOTONIC_FREQUENCY>;
+pub type SystemTimer = mono_clock::MonoClock<u32, MONOTONIC_FREQUENCY>;
+
+pub type I2c1 = hal::i2c::I2c<hal::stm32::I2C1>;
+pub type I2c1Proxy =
+    shared_bus::I2cProxy<'static, shared_bus::AtomicCheckMutex<I2c1>>;
+
+#[inline(never)]
+#[panic_handler]
+fn panic(info: &core::panic::PanicInfo) -> ! {
+    use core::{
+        fmt::Write,
+        sync::atomic::{AtomicBool, Ordering},
+    };
+    use cortex_m::asm;
+    use rtt_target::{ChannelMode, UpChannel};
+
+    cortex_m::interrupt::disable();
+
+    // Recursion protection
+    static PANICKED: AtomicBool = AtomicBool::new(false);
+    while PANICKED.load(Ordering::Relaxed) {
+        asm::bkpt();
+    }
+    PANICKED.store(true, Ordering::Relaxed);
+
+    // Turn on both red LEDs, FP_LED_1, FP_LED_3
+    let gpiod = unsafe { &*hal::stm32::GPIOD::ptr() };
+    gpiod.odr.modify(|_, w| w.odr6().high().odr12().high());
+
+    // Analogous to panic-rtt-target
+    if let Some(mut channel) = unsafe { UpChannel::conjure(0) } {
+        channel.set_mode(ChannelMode::BlockIfFull);
+        writeln!(channel, "{info}").ok();
+    }
+
+    // Abort
+    asm::udf();
+    // Halt
+    // loop { core::sync::atomic::compiler_fence(Ordering::SeqCst); }
+}
+
+#[cortex_m_rt::exception]
+unsafe fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
+    panic!("HardFault at {:#?}", ef);
+}
+
+#[cortex_m_rt::exception]
+unsafe fn DefaultHandler(irqn: i16) {
+    panic!("Unhandled exception (IRQn = {})", irqn);
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/pounder/attenuators.rs.html b/firmware/src/stabilizer/hardware/pounder/attenuators.rs.html new file mode 100644 index 0000000000..5d85c09083 --- /dev/null +++ b/firmware/src/stabilizer/hardware/pounder/attenuators.rs.html @@ -0,0 +1,167 @@ +attenuators.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+
use super::{Channel, Error};
+
+/// Provide an interface for managing digital attenuators on Pounder hardware.
+///
+/// Note: The digital attenuators do not allow read-back of attenuation. To circumvent this, this
+/// driver maintains the attenuation code in both the shift register as well as the latched output
+/// register of the attenuators. This allows the "active" attenuation code to be read back by
+/// reading the shfit register. The downside of this approach is that any read is destructive, so a
+/// read-writeback approach is employed.
+pub trait AttenuatorInterface {
+    /// Set the attenuation of a single channel.
+    ///
+    /// Args:
+    /// * `channel` - The pounder channel to configure the attenuation of.
+    /// * `attenuation` - The desired attenuation of the channel in dB. This has a resolution of
+    ///   0.5dB.
+    fn set_attenuation(
+        &mut self,
+        channel: Channel,
+        attenuation: f32,
+    ) -> Result<f32, Error> {
+        if !(0.0..=31.5).contains(&attenuation) {
+            return Err(Error::Bounds);
+        }
+
+        // Calculate the attenuation code to program into the attenuator. The attenuator uses a
+        // code where the LSB is 0.5 dB.
+        let attenuation_code = (attenuation * 2.0) as u8;
+
+        // Read all the channels, modify the channel of interest, and write all the channels back.
+        // This ensures the staging register and the output register are always in sync.
+        let mut channels = [0_u8; 4];
+        self.transfer_attenuators(&mut channels)?;
+
+        // The lowest 2 bits of the 8-bit shift register on the attenuator are ignored. Shift the
+        // attenuator code into the upper 6 bits of the register value. Note that the attenuator
+        // treats inputs as active-low, so the code is inverted before writing.
+        channels[channel as usize] = !(attenuation_code << 2);
+        self.transfer_attenuators(&mut channels)?;
+
+        // Finally, latch the output of the updated channel to force it into an active state.
+        self.latch_attenuator(channel)?;
+
+        Ok(attenuation_code as f32 / 2.0)
+    }
+
+    /// Get the attenuation of a channel.
+    ///
+    /// Args:
+    /// * `channel` - The channel to get the attenuation of.
+    ///
+    /// Returns:
+    /// The programmed attenuation of the channel in dB.
+    fn get_attenuation(&mut self, channel: Channel) -> Result<f32, Error> {
+        let mut channels = [0_u8; 4];
+
+        // Reading the data always shifts data out of the staging registers, so we perform a
+        // duplicate write-back to ensure the staging register is always equal to the output
+        // register.
+        self.transfer_attenuators(&mut channels)?;
+        self.transfer_attenuators(&mut channels)?;
+
+        // The attenuation code is stored in the upper 6 bits of the register, where each LSB
+        // represents 0.5 dB. The attenuator stores the code as active-low, so inverting the result
+        // (before the shift) has the affect of transforming the bits of interest (and the
+        // dont-care bits) into an active-high state and then masking off the don't care bits. If
+        // the shift occurs before the inversion, the upper 2 bits (which would then be don't
+        // care) would contain erroneous data.
+        let attenuation_code = (!channels[channel as usize]) >> 2;
+
+        // Convert the desired channel code into dB of attenuation.
+        Ok(attenuation_code as f32 / 2.0)
+    }
+
+    fn reset_attenuators(&mut self) -> Result<(), Error>;
+
+    fn latch_attenuator(&mut self, channel: Channel) -> Result<(), Error>;
+
+    fn transfer_attenuators(
+        &mut self,
+        channels: &mut [u8; 4],
+    ) -> Result<(), Error>;
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/pounder/dds_output.rs.html b/firmware/src/stabilizer/hardware/pounder/dds_output.rs.html new file mode 100644 index 0000000000..a2cdc1ae67 --- /dev/null +++ b/firmware/src/stabilizer/hardware/pounder/dds_output.rs.html @@ -0,0 +1,333 @@ +dds_output.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+
///! The DdsOutput is used as an output stream to the pounder DDS.
+///!
+///! # Design
+///!
+///! The DDS stream interface is a means of quickly updating pounder DDS (direct digital synthesis)
+///! outputs of the AD9959 DDS chip. The DDS communicates via a quad-SPI interface and a single
+///! IO-update output pin.
+///!
+///! In order to update the DDS interface, the frequency tuning word, amplitude control word, and
+///! the phase offset word for a channel can be modified to change the frequency, amplitude, or
+///! phase on any of the 4 available output channels. Changes do not propagate to DDS outputs until
+///! the IO-update pin is toggled high to activate the new configurations. This allows multiple
+///! channels or parameters to be updated and then effects can take place simultaneously.
+///!
+///! In this implementation, the phase, frequency, or amplitude can be updated for any single
+///! collection of outputs simultaneously. This is done by serializing the register writes to the
+///! DDS into a single buffer of data and then writing the data over QSPI to the DDS.
+///!
+///! In order to minimize software overhead, data is written directly into the QSPI output FIFO. In
+///! order to accomplish this most efficiently, serialized data is written as 32-bit words to
+///! minimize the number of bus cycles necessary to write to the peripheral FIFO. A consequence of
+///! this is that additional unneeded register writes may be appended to align a transfer to 32-bit
+///! word sizes.
+///!
+///! In order to pulse the IO-update signal, the high-resolution timer output is used. The timer is
+///! configured to assert the IO-update signal after a predefined delay and then de-assert the
+///! signal after a predefined assertion duration. This allows for the actual QSPI transfer and
+///! IO-update toggle to be completed asynchronously to the rest of software processing - that is,
+///! software can schedule the DDS updates and then continue data processing. DDS updates then take
+///! place in the future when the IO-update is toggled by hardware.
+///!
+///!
+///! # Limitations
+///!
+///! The QSPI output FIFO is used as an intermediate buffer for holding pending QSPI writes. Because
+///! of this, the implementation only supports up to 16 serialized bytes (the QSPI FIFO is 8 32-bit
+///! words, or 32 bytes, wide) in a single update.
+///!
+///! There is currently no synchronization between completion of the QSPI data write and the
+///! IO-update signal. It is currently assumed that the QSPI transfer will always complete within a
+///! predefined delay (the pre-programmed IO-update timer delay).
+///!
+///!
+///! # Future Improvement
+///!
+///! In the future, it would be possible to utilize a DMA transfer to complete the QSPI transfer.
+///! Once the QSPI transfer completed, this could trigger the IO-update timer to start to
+///! asynchronously complete IO-update automatically. This would allow for arbitrary profile sizes
+///! and ensure that IO-update was in-sync with the QSPI transfer.
+///!
+///! Currently, serialization is performed on each processing cycle. If there is a
+///! compile-time-known register update sequence needed for the application, the serialization
+///! process can be done once and then register values can be written into a pre-computed serialized
+///! buffer to avoid the software overhead of much of the serialization process.
+use log::warn;
+use stm32h7xx_hal as hal;
+
+use super::{hrtimer::HighResTimerE, QspiInterface};
+use ad9959::{Channel, Mode, ProfileSerializer};
+
+/// The DDS profile update stream.
+pub struct DdsOutput {
+    _qspi: QspiInterface,
+    io_update_trigger: HighResTimerE,
+    mode: Mode,
+}
+
+impl DdsOutput {
+    /// Construct a new DDS output stream.
+    ///
+    /// # Note
+    /// It is assumed that the QSPI stream and the IO_Update trigger timer have been configured in a
+    /// way such that the profile has sufficient time to be written before the IO_Update signal is
+    /// generated.
+    ///
+    /// # Args
+    /// * `qspi` - The QSPI interface to the run the stream on.
+    /// * `io_update_trigger` - The HighResTimerE used to generate IO_Update pulses.
+    /// * `config` - The frozen DDS configuration.
+    pub fn new(
+        mut qspi: QspiInterface,
+        io_update_trigger: HighResTimerE,
+        mode: Mode,
+    ) -> Self {
+        qspi.start_stream().unwrap();
+        Self {
+            mode,
+            _qspi: qspi,
+            io_update_trigger,
+        }
+    }
+
+    /// Get a builder for serializing a Pounder DDS profile.
+    #[allow(dead_code)]
+    pub fn builder(&mut self) -> ProfileBuilder {
+        let mode = self.mode;
+        ProfileBuilder {
+            dds_output: self,
+            serializer: ProfileSerializer::new(mode),
+        }
+    }
+
+    /// Write a profile to the stream.
+    ///
+    /// # Note:
+    /// If a profile of more than 8 words is provided, the QSPI interface will likely
+    /// stall execution. If there are still bytes pending in the FIFO, the write will certainly
+    /// stall.
+    ///
+    /// # Args
+    /// * `profile` - The serialized DDS profile to write.
+    pub fn write(&mut self, profile: &[u32]) {
+        // Note(unsafe): We own the QSPI interface, so it is safe to access the registers in a raw
+        // fashion.
+        let regs = unsafe { &*hal::stm32::QUADSPI::ptr() };
+
+        // Warn if the fifo is still at least half full.
+        if regs.sr.read().flevel().bits() >= 16 {
+            warn!("QSPI stalling")
+        }
+
+        for word in profile.iter() {
+            // Note(unsafe): any bit pattern is valid for a TX FIFO write.
+            regs.dr.write(|w| unsafe { w.bits(*word) });
+        }
+
+        // Trigger the IO_update signal generating timer to asynchronous create the IO_Update pulse.
+        self.io_update_trigger.trigger();
+    }
+}
+
+/// A temporary builder for serializing and writing profiles.
+pub struct ProfileBuilder<'a> {
+    dds_output: &'a mut DdsOutput,
+    serializer: ProfileSerializer,
+}
+
+impl<'a> ProfileBuilder<'a> {
+    /// Update a number of channels with the provided configuration
+    ///
+    /// # Args
+    /// * `channels` - A list of channels to apply the configuration to.
+    /// * `ftw` - If provided, indicates a frequency tuning word for the channels.
+    /// * `pow` - If provided, indicates a phase offset word for the channels.
+    /// * `acr` - If provided, indicates the amplitude control register for the channels. The
+    ///   24-bits of the ACR should be stored in the last 3 LSB.
+    #[allow(dead_code)]
+    #[inline]
+    pub fn update_channels(
+        &mut self,
+        channels: Channel,
+        ftw: Option<u32>,
+        pow: Option<u16>,
+        acr: Option<u32>,
+    ) -> &mut Self {
+        self.serializer.update_channels(channels, ftw, pow, acr);
+        self
+    }
+
+    /// Write the profile to the DDS asynchronously.
+    #[allow(dead_code)]
+    #[inline]
+    pub fn write(&mut self) {
+        self.dds_output.write(self.serializer.finalize());
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/pounder/hrtimer.rs.html b/firmware/src/stabilizer/hardware/pounder/hrtimer.rs.html new file mode 100644 index 0000000000..7fb1876c8b --- /dev/null +++ b/firmware/src/stabilizer/hardware/pounder/hrtimer.rs.html @@ -0,0 +1,261 @@ +hrtimer.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+
///! The HRTimer (High Resolution Timer) is used to generate IO_Update pulses to the Pounder DDS.
+use stm32h7xx_hal::{
+    self as hal,
+    rcc::{rec, CoreClocks, ResetEnable},
+};
+
+/// A HRTimer output channel.
+#[allow(dead_code)]
+pub enum Channel {
+    One,
+    Two,
+}
+
+/// The high resolution timer. Currently, only Timer E is supported.
+pub struct HighResTimerE {
+    master: hal::stm32::HRTIM_MASTER,
+    timer: hal::stm32::HRTIM_TIME,
+    common: hal::stm32::HRTIM_COMMON,
+
+    clocks: CoreClocks,
+}
+
+impl HighResTimerE {
+    /// Construct a new high resolution timer for generating IO_update signals.
+    pub fn new(
+        timer_regs: hal::stm32::HRTIM_TIME,
+        master_regs: hal::stm32::HRTIM_MASTER,
+        common_regs: hal::stm32::HRTIM_COMMON,
+        clocks: CoreClocks,
+        prec: rec::Hrtim,
+    ) -> Self {
+        prec.reset().enable();
+
+        Self {
+            master: master_regs,
+            timer: timer_regs,
+            common: common_regs,
+            clocks,
+        }
+    }
+
+    /// Configure the timer to operate in single-shot mode.
+    ///
+    /// # Note
+    /// This will configure the timer to generate a single pulse on an output channel. The timer
+    /// will only count up once and must be `trigger()`'d after / configured.
+    ///
+    /// The output will be asserted from `set_offset` to `set_offset` + `set_duration` in the count.
+    ///
+    /// # Args
+    /// * `channel` - The timer output channel to configure.
+    /// * `set_duration` - The duration that the output should be asserted for.
+    /// * `set_offset` - The first time at which the output should be asserted.
+    pub fn configure_single_shot(
+        &mut self,
+        channel: Channel,
+        delay: f32,
+        duration: f32,
+    ) {
+        // Disable the timer before configuration.
+        self.master.mcr.modify(|_, w| w.tecen().clear_bit());
+
+        // Configure the desired timer for single shot mode with set and reset of the specified
+        // channel at the desired durations. The HRTIM is on APB2 (D2 domain), and the kernel clock
+        // is the APB bus clock.
+        let clk = self.clocks.timy_ker_ck().to_Hz() as f32;
+        let end = ((delay + duration) * clk) as u32 + 1;
+
+        // Determine the clock divider, which may be 1, 2, or 4. We will choose a clock divider that
+        // allows us the highest resolution per tick, so lower dividers are favored.
+        let div: u8 = if end < 0xFFDF {
+            1
+        } else if (end / 2) < 0xFFDF {
+            2
+        } else if (end / 4) < 0xFFDF {
+            3
+        } else {
+            panic!("Unattainable timing parameters!");
+        };
+
+        // The period register must be greater than or equal to 3 cycles.
+        let period = (end / (1 << (div - 1)) as u32) as u16;
+        assert!(period > 2);
+
+        // We now have the prescaler and the period registers. Configure the timer.
+        // Note(unsafe): The prescaler is guaranteed to be greater than or equal to 4 (minimum
+        // allowed value) due to the addition. The setting is always 1, 2, or 3, which represents
+        // all valid values.
+        self.timer
+            .timecr
+            .modify(|_, w| unsafe { w.ck_pscx().bits(div + 4) });
+
+        // Note(unsafe): The period register is guaranteed to be a 16-bit value, which will fit in
+        // this register.
+        self.timer.perer.write(|w| unsafe { w.perx().bits(period) });
+
+        // Configure the comparator 1 level.
+        let delay = (delay * clk) as u16;
+        // Note(unsafe): The offset is always a 16-bit value, so is always valid for values >= 3, as
+        // specified by the datasheet.
+        assert!(delay >= 3);
+        self.timer
+            .cmp1er
+            .write(|w| unsafe { w.cmp1x().bits(delay) });
+
+        // Configure the set/reset signals.
+        // Set on compare with CMP1, reset upon reaching PER
+        match channel {
+            Channel::One => {
+                self.timer.sete1r.write(|w| w.cmp1().set_bit());
+                self.timer.rste1r.write(|w| w.per().set_bit());
+                self.common.oenr.write(|w| w.te1oen().set_bit());
+            }
+            Channel::Two => {
+                self.timer.sete2r.write(|w| w.cmp1().set_bit());
+                self.timer.rste2r.write(|w| w.per().set_bit());
+                self.common.oenr.write(|w| w.te2oen().set_bit());
+            }
+        }
+
+        // Enable the timer now that it is configured.
+        self.master.mcr.modify(|_, w| w.tecen().set_bit());
+    }
+
+    /// Generate a single trigger of the timer to start the output pulse generation.
+    pub fn trigger(&mut self) {
+        // Generate a reset event to force the timer to start counting.
+        self.common.cr2.write(|w| w.terst().set_bit());
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/pounder/mod.rs.html b/firmware/src/stabilizer/hardware/pounder/mod.rs.html new file mode 100644 index 0000000000..16225762f2 --- /dev/null +++ b/firmware/src/stabilizer/hardware/pounder/mod.rs.html @@ -0,0 +1,983 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+403
+404
+405
+406
+407
+408
+409
+410
+411
+412
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+444
+445
+446
+447
+448
+449
+450
+451
+452
+453
+454
+455
+456
+457
+458
+459
+460
+461
+462
+463
+464
+465
+466
+467
+468
+469
+470
+471
+472
+473
+474
+475
+476
+477
+478
+479
+480
+481
+482
+483
+484
+485
+486
+487
+488
+489
+490
+491
+
use self::attenuators::AttenuatorInterface;
+
+use super::hal;
+use crate::hardware::{shared_adc::AdcChannel, I2c1Proxy};
+use embedded_hal::blocking::spi::Transfer;
+use enum_iterator::Sequence;
+use serde::{Deserialize, Serialize};
+
+pub mod attenuators;
+pub mod dds_output;
+pub mod hrtimer;
+pub mod rf_power;
+
+#[cfg(not(feature = "pounder_v1_0"))]
+pub mod timestamp;
+
+#[derive(Debug, Copy, Clone, Sequence)]
+pub enum GpioPin {
+    Led4Green,
+    Led5Red,
+    Led6Green,
+    Led7Red,
+    Led8Green,
+    Led9Red,
+    AttLe0,
+    AttLe1,
+    AttLe2,
+    AttLe3,
+    AttRstN,
+    OscEnN,
+    ExtClkSel,
+}
+
+impl From<GpioPin> for mcp230xx::Mcp23017 {
+    fn from(x: GpioPin) -> Self {
+        match x {
+            GpioPin::Led4Green => Self::A0,
+            GpioPin::Led5Red => Self::A1,
+            GpioPin::Led6Green => Self::A2,
+            GpioPin::Led7Red => Self::A3,
+            GpioPin::Led8Green => Self::A4,
+            GpioPin::Led9Red => Self::A5,
+            GpioPin::AttLe0 => Self::B0,
+            GpioPin::AttLe1 => Self::B1,
+            GpioPin::AttLe2 => Self::B2,
+            GpioPin::AttLe3 => Self::B3,
+            GpioPin::AttRstN => Self::B5,
+            GpioPin::OscEnN => Self::B6,
+            GpioPin::ExtClkSel => Self::B7,
+        }
+    }
+}
+
+#[derive(Debug, Copy, Clone)]
+pub enum Error {
+    Spi,
+    I2c,
+    Qspi(hal::xspi::QspiError),
+    Bounds,
+    InvalidAddress,
+    InvalidChannel,
+    Adc,
+    InvalidState,
+}
+
+impl From<hal::xspi::QspiError> for Error {
+    fn from(e: hal::xspi::QspiError) -> Error {
+        Error::Qspi(e)
+    }
+}
+
+/// The numerical value (discriminant) of the Channel enum is the index in the attenuator shift
+/// register as well as the attenuator latch enable signal index on the GPIO extender.
+#[derive(Debug, Copy, Clone)]
+#[allow(dead_code)]
+pub enum Channel {
+    In0 = 0,
+    Out0 = 1,
+    In1 = 2,
+    Out1 = 3,
+}
+
+impl From<Channel> for GpioPin {
+    fn from(x: Channel) -> Self {
+        match x {
+            Channel::In0 => GpioPin::AttLe0,
+            Channel::Out0 => GpioPin::AttLe1,
+            Channel::In1 => GpioPin::AttLe2,
+            Channel::Out1 => GpioPin::AttLe3,
+        }
+    }
+}
+
+#[derive(Serialize, Deserialize, Copy, Clone, Debug)]
+pub struct DdsChannelState {
+    pub phase_offset: f32,
+    pub frequency: f32,
+    pub amplitude: f32,
+    pub enabled: bool,
+}
+
+#[derive(Serialize, Deserialize, Copy, Clone, Debug)]
+pub struct ChannelState {
+    pub parameters: DdsChannelState,
+    pub attenuation: f32,
+}
+
+#[derive(Serialize, Deserialize, Copy, Clone, Debug)]
+pub struct InputChannelState {
+    pub attenuation: f32,
+    pub power: f32,
+    pub mixer: DdsChannelState,
+}
+
+#[derive(Serialize, Deserialize, Copy, Clone, Debug)]
+pub struct OutputChannelState {
+    pub attenuation: f32,
+    pub channel: DdsChannelState,
+}
+
+#[derive(Serialize, Deserialize, Copy, Clone, Debug)]
+pub struct DdsClockConfig {
+    pub multiplier: u8,
+    pub reference_clock: f32,
+    pub external_clock: bool,
+}
+
+impl From<Channel> for ad9959::Channel {
+    /// Translate pounder channels to DDS output channels.
+    fn from(other: Channel) -> Self {
+        match other {
+            Channel::In0 => Self::TWO,
+            Channel::In1 => Self::FOUR,
+            Channel::Out0 => Self::ONE,
+            Channel::Out1 => Self::THREE,
+        }
+    }
+}
+
+/// A structure for the QSPI interface for the DDS.
+pub struct QspiInterface {
+    pub qspi: hal::xspi::Qspi<hal::stm32::QUADSPI>,
+    mode: ad9959::Mode,
+    streaming: bool,
+}
+
+impl QspiInterface {
+    /// Initialize the QSPI interface.
+    ///
+    /// Args:
+    /// * `qspi` - The QSPI peripheral driver.
+    pub fn new(
+        mut qspi: hal::xspi::Qspi<hal::stm32::QUADSPI>,
+    ) -> Result<Self, Error> {
+        // This driver only supports operation in 4-bit mode due to bus inconsistencies between the
+        // QSPI peripheral and the DDS. Instead, we will bit-bang communications in
+        // single-bit-two-wire to the DDS to configure it to 4-bit operation.
+        qspi.configure_mode(hal::xspi::QspiMode::FourBit)?;
+        Ok(Self {
+            qspi,
+            mode: ad9959::Mode::SingleBitTwoWire,
+            streaming: false,
+        })
+    }
+
+    pub fn start_stream(&mut self) -> Result<(), Error> {
+        self.qspi.is_busy()?;
+
+        // Configure QSPI for infinite transaction mode using only a data phase (no instruction or
+        // address).
+        let qspi_regs = unsafe { &*hal::stm32::QUADSPI::ptr() };
+        qspi_regs.fcr.modify(|_, w| w.ctcf().set_bit());
+
+        unsafe {
+            qspi_regs.dlr.write(|w| w.dl().bits(0xFFFF_FFFF));
+            qspi_regs.ccr.modify(|_, w| {
+                w.imode().bits(0).fmode().bits(0).admode().bits(0)
+            });
+        }
+
+        self.streaming = true;
+
+        Ok(())
+    }
+}
+
+impl ad9959::Interface for QspiInterface {
+    type Error = Error;
+
+    /// Configure the operations mode of the interface.
+    ///
+    /// Args:
+    /// * `mode` - The newly desired operational mode.
+    fn configure_mode(&mut self, mode: ad9959::Mode) -> Result<(), Error> {
+        self.mode = mode;
+
+        Ok(())
+    }
+
+    /// Write data over QSPI to the DDS.
+    ///
+    /// Args:
+    /// * `addr` - The address to write over QSPI to the DDS.
+    /// * `data` - The data to write.
+    fn write(&mut self, addr: u8, data: &[u8]) -> Result<(), Error> {
+        if (addr & 0x80) != 0 {
+            return Err(Error::InvalidAddress);
+        }
+
+        // The QSPI interface implementation always operates in 4-bit mode because the AD9959 uses
+        // IO3 as SYNC_IO in some output modes. In order for writes to be successful, SYNC_IO must
+        // be driven low. However, the QSPI peripheral forces IO3 high when operating in 1 or 2 bit
+        // modes. As a result, any writes while in single- or dual-bit modes has to instead write
+        // the data encoded into 4-bit QSPI data so that IO3 can be driven low.
+        match self.mode {
+            ad9959::Mode::SingleBitTwoWire => {
+                // Encode the data into a 4-bit QSPI pattern.
+
+                // In 4-bit mode, we can send 2 bits of address and data per byte transfer. As
+                // such, we need at least 4x more bytes than the length of data. To avoid dynamic
+                // allocation, we assume the maximum transaction length for single-bit-two-wire is
+                // 2 bytes.
+                let mut encoded_data: [u8; 12] = [0; 12];
+
+                if (data.len() * 4) > (encoded_data.len() - 4) {
+                    return Err(Error::Bounds);
+                }
+
+                // Encode the address into the first 4 bytes.
+                for address_bit in 0..8 {
+                    let offset: u8 = {
+                        if address_bit % 2 != 0 {
+                            4
+                        } else {
+                            0
+                        }
+                    };
+
+                    // Encode MSB first. Least significant bits are placed at the most significant
+                    // byte.
+                    let byte_position = 3 - (address_bit >> 1) as usize;
+
+                    if addr & (1 << address_bit) != 0 {
+                        encoded_data[byte_position] |= 1 << offset;
+                    }
+                }
+
+                // Encode the data into the remaining bytes.
+                for byte_index in 0..data.len() {
+                    let byte = data[byte_index];
+                    for bit in 0..8 {
+                        let offset: u8 = {
+                            if bit % 2 != 0 {
+                                4
+                            } else {
+                                0
+                            }
+                        };
+
+                        // Encode MSB first. Least significant bits are placed at the most
+                        // significant byte.
+                        let byte_position = 3 - (bit >> 1) as usize;
+
+                        if byte & (1 << bit) != 0 {
+                            encoded_data
+                                [(byte_index + 1) * 4 + byte_position] |=
+                                1 << offset;
+                        }
+                    }
+                }
+
+                let (encoded_address, encoded_payload) = {
+                    let end_index = (1 + data.len()) * 4;
+                    (encoded_data[0], &encoded_data[1..end_index])
+                };
+
+                self.qspi.write(encoded_address, encoded_payload)?;
+
+                Ok(())
+            }
+            ad9959::Mode::FourBitSerial => {
+                if self.streaming {
+                    Err(Error::InvalidState)
+                } else {
+                    self.qspi.write(addr, data)?;
+                    Ok(())
+                }
+            }
+            _ => Err(Error::InvalidState),
+        }
+    }
+
+    fn read(&mut self, addr: u8, dest: &mut [u8]) -> Result<(), Error> {
+        if (addr & 0x80) != 0 {
+            return Err(Error::InvalidAddress);
+        }
+
+        // This implementation only supports operation (read) in four-bit-serial mode.
+        if self.mode != ad9959::Mode::FourBitSerial {
+            return Err(Error::InvalidState);
+        }
+
+        self.qspi.read(0x80 | addr, dest)?;
+
+        Ok(())
+    }
+}
+
+/// A structure containing implementation for Pounder hardware.
+pub struct PounderDevices {
+    mcp23017: mcp230xx::Mcp230xx<I2c1Proxy, mcp230xx::Mcp23017>,
+    pub lm75: lm75::Lm75<I2c1Proxy, lm75::ic::Lm75>,
+    attenuator_spi: hal::spi::Spi<hal::stm32::SPI1, hal::spi::Enabled, u8>,
+    pwr0: AdcChannel<
+        'static,
+        hal::stm32::ADC1,
+        hal::gpio::gpiof::PF11<hal::gpio::Analog>,
+    >,
+    pwr1: AdcChannel<
+        'static,
+        hal::stm32::ADC2,
+        hal::gpio::gpiof::PF14<hal::gpio::Analog>,
+    >,
+    aux_adc0: AdcChannel<
+        'static,
+        hal::stm32::ADC3,
+        hal::gpio::gpiof::PF3<hal::gpio::Analog>,
+    >,
+    aux_adc1: AdcChannel<
+        'static,
+        hal::stm32::ADC3,
+        hal::gpio::gpiof::PF4<hal::gpio::Analog>,
+    >,
+}
+
+impl PounderDevices {
+    /// Construct and initialize pounder-specific hardware.
+    ///
+    /// Args:
+    /// * `lm75` - The temperature sensor on Pounder.
+    /// * `mcp23017` - The GPIO expander on Pounder.
+    /// * `attenuator_spi` - A SPI interface to control digital attenuators.
+    /// * `pwr0` - The ADC channel to measure the IN0 input power.
+    /// * `pwr1` - The ADC channel to measure the IN1 input power.
+    /// * `aux_adc0` - The ADC channel to measure the ADC0 auxiliary input.
+    /// * `aux_adc1` - The ADC channel to measure the ADC1 auxiliary input.
+    pub fn new(
+        lm75: lm75::Lm75<I2c1Proxy, lm75::ic::Lm75>,
+        mcp23017: mcp230xx::Mcp230xx<I2c1Proxy, mcp230xx::Mcp23017>,
+        attenuator_spi: hal::spi::Spi<hal::stm32::SPI1, hal::spi::Enabled, u8>,
+        pwr0: AdcChannel<
+            'static,
+            hal::stm32::ADC1,
+            hal::gpio::gpiof::PF11<hal::gpio::Analog>,
+        >,
+        pwr1: AdcChannel<
+            'static,
+            hal::stm32::ADC2,
+            hal::gpio::gpiof::PF14<hal::gpio::Analog>,
+        >,
+        aux_adc0: AdcChannel<
+            'static,
+            hal::stm32::ADC3,
+            hal::gpio::gpiof::PF3<hal::gpio::Analog>,
+        >,
+        aux_adc1: AdcChannel<
+            'static,
+            hal::stm32::ADC3,
+            hal::gpio::gpiof::PF4<hal::gpio::Analog>,
+        >,
+    ) -> Result<Self, Error> {
+        let mut devices = Self {
+            lm75,
+            mcp23017,
+            attenuator_spi,
+            pwr0,
+            pwr1,
+            aux_adc0,
+            aux_adc1,
+        };
+
+        // Configure power-on-default state for pounder. All LEDs are off, on-board oscillator
+        // selected and enabled, attenuators out of reset. Note that testing indicates the
+        // output state needs to be set first to properly update the output registers.
+        for pin in enum_iterator::all::<GpioPin>() {
+            devices
+                .mcp23017
+                .set_gpio(pin.into(), mcp230xx::Level::Low)
+                .map_err(|_| Error::I2c)?;
+            devices
+                .mcp23017
+                .set_direction(pin.into(), mcp230xx::Direction::Output)
+                .map_err(|_| Error::I2c)?;
+        }
+        devices.reset_attenuators().unwrap();
+        Ok(devices)
+    }
+
+    /// Sample one of the two auxiliary ADC channels associated with the respective RF input channel.
+    pub fn sample_aux_adc(&mut self, channel: Channel) -> Result<f32, Error> {
+        let adc_scale = match channel {
+            Channel::In0 => self.aux_adc0.read_normalized().unwrap(),
+            Channel::In1 => self.aux_adc1.read_normalized().unwrap(),
+            _ => return Err(Error::InvalidChannel),
+        };
+
+        // Convert analog percentage to voltage. Note that the ADC uses an external 2.048V analog
+        // reference.
+        Ok(adc_scale * 2.048)
+    }
+
+    /// Set the state (its electrical level) of the given GPIO pin on Pounder.
+    pub fn set_gpio_pin(
+        &mut self,
+        pin: GpioPin,
+        level: mcp230xx::Level,
+    ) -> Result<(), Error> {
+        self.mcp23017
+            .set_gpio(pin.into(), level)
+            .map_err(|_| Error::I2c)
+    }
+
+    /// Select external reference clock input.
+    pub fn set_ext_clk(&mut self, enabled: bool) -> Result<(), Error> {
+        let level = if enabled {
+            mcp230xx::Level::High
+        } else {
+            mcp230xx::Level::Low
+        };
+        // Active low
+        self.set_gpio_pin(GpioPin::OscEnN, level)?;
+        self.set_gpio_pin(GpioPin::ExtClkSel, level)
+    }
+}
+
+impl attenuators::AttenuatorInterface for PounderDevices {
+    /// Reset all of the attenuators to a power-on default state.
+    fn reset_attenuators(&mut self) -> Result<(), Error> {
+        // Active low
+        self.set_gpio_pin(GpioPin::AttRstN, mcp230xx::Level::Low)?;
+        self.set_gpio_pin(GpioPin::AttRstN, mcp230xx::Level::High)
+    }
+
+    /// Latch a configuration into a digital attenuator.
+    ///
+    /// Args:
+    /// * `channel` - The attenuator channel to latch.
+    fn latch_attenuator(&mut self, channel: Channel) -> Result<(), Error> {
+        // Rising edge sensitive
+        // Be robust against initial state: drive low, then high (contrary to the datasheet figure).
+        self.set_gpio_pin(channel.into(), mcp230xx::Level::Low)?;
+        self.set_gpio_pin(channel.into(), mcp230xx::Level::High)
+    }
+
+    /// Read the raw attenuation codes stored in the attenuator shift registers.
+    ///
+    /// Args:
+    /// * `channels` - A 4 byte slice to be shifted into the
+    ///     attenuators and to contain the data shifted out.
+    fn transfer_attenuators(
+        &mut self,
+        channels: &mut [u8; 4],
+    ) -> Result<(), Error> {
+        self.attenuator_spi
+            .transfer(channels)
+            .map_err(|_| Error::Spi)?;
+
+        Ok(())
+    }
+}
+
+impl rf_power::PowerMeasurementInterface for PounderDevices {
+    /// Sample an ADC channel.
+    ///
+    /// Args:
+    /// * `channel` - The channel to sample.
+    ///
+    /// Returns:
+    /// The sampled voltage of the specified channel.
+    fn sample_converter(&mut self, channel: Channel) -> Result<f32, Error> {
+        let adc_scale = match channel {
+            Channel::In0 => self.pwr0.read_normalized().unwrap(),
+            Channel::In1 => self.pwr1.read_normalized().unwrap(),
+            _ => return Err(Error::InvalidChannel),
+        };
+
+        // Convert analog percentage to voltage. Note that the ADC uses an external 2.048V analog
+        // reference.
+        Ok(adc_scale * 2.048)
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/pounder/rf_power.rs.html b/firmware/src/stabilizer/hardware/pounder/rf_power.rs.html new file mode 100644 index 0000000000..4909e77d86 --- /dev/null +++ b/firmware/src/stabilizer/hardware/pounder/rf_power.rs.html @@ -0,0 +1,45 @@ +rf_power.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+
use super::{Channel, Error};
+
+/// Provide an interface to measure RF input power in dBm.
+pub trait PowerMeasurementInterface {
+    fn sample_converter(&mut self, channel: Channel) -> Result<f32, Error>;
+
+    /// Measure the power of an input channel in dBm.
+    ///
+    /// Args:
+    /// * `channel` - The pounder input channel to measure the power of.
+    ///
+    /// Returns:
+    /// Power in dBm after the digitally controlled attenuator before the amplifier.
+    fn measure_power(&mut self, channel: Channel) -> Result<f32, Error> {
+        let analog_measurement = self.sample_converter(channel)?;
+
+        // The AD8363 with VSET connected to VOUT provides an output voltage of 51.7 mV/dB at
+        // 100MHz with an intercept of -58 dBm.
+        // It is placed behind a 20 dB tap.
+        Ok(analog_measurement * (1. / 0.0517) + (-58. + 20.))
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/pounder/timestamp.rs.html b/firmware/src/stabilizer/hardware/pounder/timestamp.rs.html new file mode 100644 index 0000000000..8f934ae5a0 --- /dev/null +++ b/firmware/src/stabilizer/hardware/pounder/timestamp.rs.html @@ -0,0 +1,187 @@ +timestamp.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+
///! ADC sample timestamper using external Pounder reference clock.
+///!
+///! # Design
+///!
+///! The pounder timestamper utilizes the pounder SYNC_CLK output as a fast external reference clock
+///! for recording a timestamp for each of the ADC samples.
+///!
+///! To accomplish this, a timer peripheral is configured to be driven by an external clock input.
+///! Due to the limitations of clock frequencies allowed by the timer peripheral, the SYNC_CLK input
+///! is divided by 4. This clock then clocks the timer peripheral in a free-running mode with an ARR
+///! (max count register value) configured to overflow once per ADC sample batch.
+///!
+///! Once the timer is configured, an input capture is configured to record the timer count
+///! register. The input capture is configured to utilize an internal trigger for the input capture.
+///! The internal trigger is selected such that when a sample is generated on ADC0, the input
+///! capture is simultaneously triggered. That trigger is prescaled (its rate is divided) by the
+///! batch size. This results in the input capture triggering identically to when the ADC samples
+///! the last sample of the batch. That sample is then available for processing by the user.
+use crate::hardware::timers;
+use stm32h7xx_hal as hal;
+
+/// Software unit to timestamp stabilizer ADC samples using an external pounder reference clock.
+pub struct Timestamper {
+    timer: timers::PounderTimestampTimer,
+    capture_channel: timers::tim8::Channel1InputCapture,
+}
+
+impl Timestamper {
+    /// Construct the pounder sample timestamper.
+    ///
+    /// # Args
+    /// * `timestamp_timer` - The timer peripheral used for capturing timestamps from.
+    /// * `capture_channel` - The input capture channel for collecting timestamps.
+    /// * `sampling_timer` - The stabilizer ADC sampling timer.
+    /// * `_clock_input` - The input pin for the external clock from Pounder.
+    /// * `batch_size` - The number of samples in each batch.
+    ///
+    /// # Returns
+    /// The new pounder timestamper in an operational state.
+    pub fn new(
+        mut timestamp_timer: timers::PounderTimestampTimer,
+        capture_channel: timers::tim8::Channel1,
+        sampling_timer: &mut timers::SamplingTimer,
+        _clock_input: hal::gpio::gpioa::PA0<hal::gpio::Alternate<3>>,
+        batch_size: usize,
+    ) -> Self {
+        // The sampling timer should generate a trigger output when CH1 comparison occurs.
+        sampling_timer.generate_trigger(timers::TriggerGenerator::ComparePulse);
+
+        // The timestamp timer trigger input should use TIM2 (SamplingTimer)'s trigger, which is
+        // mapped to ITR1.
+        timestamp_timer.set_trigger_source(timers::TriggerSource::Trigger1);
+
+        // The capture channel should capture whenever the trigger input occurs.
+        let mut input_capture = capture_channel
+            .into_input_capture(timers::tim8::CaptureSource1::Trc);
+
+        let prescaler = match batch_size {
+            1 => timers::Prescaler::Div1,
+            2 => timers::Prescaler::Div2,
+            4 => timers::Prescaler::Div4,
+            8 => timers::Prescaler::Div8,
+            _ => panic!("Batch size does not support DDS timestamping"),
+        };
+
+        // Capture at the batch period.
+        input_capture.configure_prescaler(prescaler);
+
+        Self {
+            timer: timestamp_timer,
+            capture_channel: input_capture,
+        }
+    }
+
+    /// Start collecting timestamps.
+    pub fn start(&mut self) {
+        self.capture_channel.enable();
+    }
+
+    /// Update the period of the underlying timestamp timer.
+    pub fn update_period(&mut self, period: u16) {
+        self.timer.set_period_ticks(period);
+    }
+
+    /// Obtain a timestamp.
+    ///
+    /// # Returns
+    /// A `Result` potentially indicating capture overflow and containing a `Option` of a captured
+    /// timestamp.
+    pub fn latest_timestamp(&mut self) -> Result<Option<u16>, Option<u16>> {
+        self.capture_channel.latest_capture()
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/setup.rs.html b/firmware/src/stabilizer/hardware/setup.rs.html new file mode 100644 index 0000000000..47952300c5 --- /dev/null +++ b/firmware/src/stabilizer/hardware/setup.rs.html @@ -0,0 +1,2041 @@ +setup.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+403
+404
+405
+406
+407
+408
+409
+410
+411
+412
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+444
+445
+446
+447
+448
+449
+450
+451
+452
+453
+454
+455
+456
+457
+458
+459
+460
+461
+462
+463
+464
+465
+466
+467
+468
+469
+470
+471
+472
+473
+474
+475
+476
+477
+478
+479
+480
+481
+482
+483
+484
+485
+486
+487
+488
+489
+490
+491
+492
+493
+494
+495
+496
+497
+498
+499
+500
+501
+502
+503
+504
+505
+506
+507
+508
+509
+510
+511
+512
+513
+514
+515
+516
+517
+518
+519
+520
+521
+522
+523
+524
+525
+526
+527
+528
+529
+530
+531
+532
+533
+534
+535
+536
+537
+538
+539
+540
+541
+542
+543
+544
+545
+546
+547
+548
+549
+550
+551
+552
+553
+554
+555
+556
+557
+558
+559
+560
+561
+562
+563
+564
+565
+566
+567
+568
+569
+570
+571
+572
+573
+574
+575
+576
+577
+578
+579
+580
+581
+582
+583
+584
+585
+586
+587
+588
+589
+590
+591
+592
+593
+594
+595
+596
+597
+598
+599
+600
+601
+602
+603
+604
+605
+606
+607
+608
+609
+610
+611
+612
+613
+614
+615
+616
+617
+618
+619
+620
+621
+622
+623
+624
+625
+626
+627
+628
+629
+630
+631
+632
+633
+634
+635
+636
+637
+638
+639
+640
+641
+642
+643
+644
+645
+646
+647
+648
+649
+650
+651
+652
+653
+654
+655
+656
+657
+658
+659
+660
+661
+662
+663
+664
+665
+666
+667
+668
+669
+670
+671
+672
+673
+674
+675
+676
+677
+678
+679
+680
+681
+682
+683
+684
+685
+686
+687
+688
+689
+690
+691
+692
+693
+694
+695
+696
+697
+698
+699
+700
+701
+702
+703
+704
+705
+706
+707
+708
+709
+710
+711
+712
+713
+714
+715
+716
+717
+718
+719
+720
+721
+722
+723
+724
+725
+726
+727
+728
+729
+730
+731
+732
+733
+734
+735
+736
+737
+738
+739
+740
+741
+742
+743
+744
+745
+746
+747
+748
+749
+750
+751
+752
+753
+754
+755
+756
+757
+758
+759
+760
+761
+762
+763
+764
+765
+766
+767
+768
+769
+770
+771
+772
+773
+774
+775
+776
+777
+778
+779
+780
+781
+782
+783
+784
+785
+786
+787
+788
+789
+790
+791
+792
+793
+794
+795
+796
+797
+798
+799
+800
+801
+802
+803
+804
+805
+806
+807
+808
+809
+810
+811
+812
+813
+814
+815
+816
+817
+818
+819
+820
+821
+822
+823
+824
+825
+826
+827
+828
+829
+830
+831
+832
+833
+834
+835
+836
+837
+838
+839
+840
+841
+842
+843
+844
+845
+846
+847
+848
+849
+850
+851
+852
+853
+854
+855
+856
+857
+858
+859
+860
+861
+862
+863
+864
+865
+866
+867
+868
+869
+870
+871
+872
+873
+874
+875
+876
+877
+878
+879
+880
+881
+882
+883
+884
+885
+886
+887
+888
+889
+890
+891
+892
+893
+894
+895
+896
+897
+898
+899
+900
+901
+902
+903
+904
+905
+906
+907
+908
+909
+910
+911
+912
+913
+914
+915
+916
+917
+918
+919
+920
+921
+922
+923
+924
+925
+926
+927
+928
+929
+930
+931
+932
+933
+934
+935
+936
+937
+938
+939
+940
+941
+942
+943
+944
+945
+946
+947
+948
+949
+950
+951
+952
+953
+954
+955
+956
+957
+958
+959
+960
+961
+962
+963
+964
+965
+966
+967
+968
+969
+970
+971
+972
+973
+974
+975
+976
+977
+978
+979
+980
+981
+982
+983
+984
+985
+986
+987
+988
+989
+990
+991
+992
+993
+994
+995
+996
+997
+998
+999
+1000
+1001
+1002
+1003
+1004
+1005
+1006
+1007
+1008
+1009
+1010
+1011
+1012
+1013
+1014
+1015
+1016
+1017
+1018
+1019
+1020
+
///! Stabilizer hardware configuration
+///!
+///! This file contains all of the hardware-specific configuration of Stabilizer.
+use core::sync::atomic::{self, AtomicBool, Ordering};
+use core::{ptr, slice};
+use stm32h7xx_hal::{
+    self as hal,
+    ethernet::{self, PHY},
+    gpio::Speed,
+    prelude::*,
+};
+
+use smoltcp_nal::smoltcp;
+
+use super::{
+    adc, afe, cpu_temp_sensor::CpuTempSensor, dac, delay, design_parameters,
+    eeprom, input_stamper::InputStamper, pounder,
+    pounder::dds_output::DdsOutput, shared_adc::SharedAdc, timers,
+    DigitalInput0, DigitalInput1, EemDigitalInput0, EemDigitalInput1,
+    EemDigitalOutput0, EemDigitalOutput1, EthernetPhy, NetworkStack,
+    SystemTimer, Systick, AFE0, AFE1,
+};
+
+const NUM_TCP_SOCKETS: usize = 4;
+const NUM_UDP_SOCKETS: usize = 1;
+const NUM_SOCKETS: usize = NUM_UDP_SOCKETS + NUM_TCP_SOCKETS;
+
+pub struct NetStorage {
+    pub ip_addrs: [smoltcp::wire::IpCidr; 1],
+
+    // Note: There is an additional socket set item required for the DHCP socket.
+    pub sockets: [smoltcp::iface::SocketStorage<'static>; NUM_SOCKETS + 1],
+    pub tcp_socket_storage: [TcpSocketStorage; NUM_TCP_SOCKETS],
+    pub udp_socket_storage: [UdpSocketStorage; NUM_UDP_SOCKETS],
+}
+
+#[derive(Copy, Clone)]
+pub struct UdpSocketStorage {
+    rx_storage: [u8; 1024],
+    tx_storage: [u8; 2048],
+    tx_metadata:
+        [smoltcp::storage::PacketMetadata<smoltcp::wire::IpEndpoint>; 10],
+    rx_metadata:
+        [smoltcp::storage::PacketMetadata<smoltcp::wire::IpEndpoint>; 10],
+}
+
+impl UdpSocketStorage {
+    const fn new() -> Self {
+        Self {
+            rx_storage: [0; 1024],
+            tx_storage: [0; 2048],
+            tx_metadata: [smoltcp::storage::PacketMetadata::<
+                smoltcp::wire::IpEndpoint,
+            >::EMPTY; 10],
+            rx_metadata: [smoltcp::storage::PacketMetadata::<
+                smoltcp::wire::IpEndpoint,
+            >::EMPTY; 10],
+        }
+    }
+}
+
+#[derive(Copy, Clone)]
+pub struct TcpSocketStorage {
+    rx_storage: [u8; 1024],
+    tx_storage: [u8; 1024],
+}
+
+impl TcpSocketStorage {
+    const fn new() -> Self {
+        Self {
+            rx_storage: [0; 1024],
+            tx_storage: [0; 1024],
+        }
+    }
+}
+
+impl Default for NetStorage {
+    fn default() -> Self {
+        NetStorage {
+            // Placeholder for the real IP address, which is initialized at runtime.
+            ip_addrs: [smoltcp::wire::IpCidr::Ipv6(
+                smoltcp::wire::Ipv6Cidr::SOLICITED_NODE_PREFIX,
+            )],
+            sockets: [smoltcp::iface::SocketStorage::EMPTY; NUM_SOCKETS + 1],
+            tcp_socket_storage: [TcpSocketStorage::new(); NUM_TCP_SOCKETS],
+            udp_socket_storage: [UdpSocketStorage::new(); NUM_UDP_SOCKETS],
+        }
+    }
+}
+
+/// The available networking devices on Stabilizer.
+pub struct NetworkDevices {
+    pub stack: NetworkStack,
+    pub phy: EthernetPhy,
+    pub mac_address: smoltcp::wire::EthernetAddress,
+}
+
+/// The GPIO pins available on the EEM connector, if Pounder is not present.
+pub struct EemGpioDevices {
+    pub lvds4: EemDigitalInput0,
+    pub lvds5: EemDigitalInput1,
+    pub lvds6: EemDigitalOutput0,
+    pub lvds7: EemDigitalOutput1,
+}
+
+/// The available hardware interfaces on Stabilizer.
+pub struct StabilizerDevices {
+    pub systick: Systick,
+    pub temperature_sensor: CpuTempSensor,
+    pub afes: (AFE0, AFE1),
+    pub adcs: (adc::Adc0Input, adc::Adc1Input),
+    pub dacs: (dac::Dac0Output, dac::Dac1Output),
+    pub timestamper: InputStamper,
+    pub adc_dac_timer: timers::SamplingTimer,
+    pub timestamp_timer: timers::TimestampTimer,
+    pub net: NetworkDevices,
+    pub digital_inputs: (DigitalInput0, DigitalInput1),
+    pub eem_gpio: EemGpioDevices,
+}
+
+/// The available Pounder-specific hardware interfaces.
+pub struct PounderDevices {
+    pub pounder: pounder::PounderDevices,
+    pub dds_output: DdsOutput,
+
+    #[cfg(not(feature = "pounder_v1_0"))]
+    pub timestamper: pounder::timestamp::Timestamper,
+}
+
+#[link_section = ".sram3.eth"]
+/// Static storage for the ethernet DMA descriptor ring.
+static mut DES_RING: ethernet::DesRing<
+    { super::TX_DESRING_CNT },
+    { super::RX_DESRING_CNT },
+> = ethernet::DesRing::new();
+
+/// Setup ITCM and load its code from flash.
+///
+/// For portability and maintainability this is implemented in Rust.
+/// Since this is implemented in Rust the compiler may assume that bss and data are set
+/// up already. There is no easy way to ensure this implementation will never need bss
+/// or data. Hence we can't safely run this as the cortex-m-rt `pre_init` hook before
+/// bss/data is setup.
+///
+/// Calling (through IRQ or directly) any code in ITCM before having called
+/// this method is undefined.
+fn load_itcm() {
+    extern "C" {
+        static mut __sitcm: u32;
+        static mut __eitcm: u32;
+        static mut __siitcm: u32;
+    }
+    // NOTE(unsafe): Assuming the address symbols from the linker as well as
+    // the source instruction data are all valid, this is safe as it only
+    // copies linker-prepared data to where the code expects it to be.
+    // Calling it multiple times is safe as well.
+
+    unsafe {
+        // ITCM is enabled on reset on our CPU but might not be on others.
+        // Keep for completeness.
+        const ITCMCR: *mut u32 = 0xE000_EF90usize as _;
+        ptr::write_volatile(ITCMCR, ptr::read_volatile(ITCMCR) | 1);
+
+        // Ensure ITCM is enabled before loading.
+        atomic::fence(Ordering::SeqCst);
+
+        let len =
+            (&__eitcm as *const u32).offset_from(&__sitcm as *const _) as usize;
+        let dst = slice::from_raw_parts_mut(&mut __sitcm as *mut _, len);
+        let src = slice::from_raw_parts(&__siitcm as *const _, len);
+        // Load code into ITCM.
+        dst.copy_from_slice(src);
+    }
+
+    // Ensure ITCM is loaded before potentially executing any instructions from it.
+    atomic::fence(Ordering::SeqCst);
+    cortex_m::asm::dsb();
+    cortex_m::asm::isb();
+}
+
+/// Configure the stabilizer hardware for operation.
+///
+/// # Note
+/// Refer to [design_parameters::TIMER_FREQUENCY] to determine the frequency of the sampling timer.
+///
+/// # Args
+/// * `core` - The cortex-m peripherals.
+/// * `device` - The microcontroller peripherals to be configured.
+/// * `clock` - A `SystemTimer` implementing `Clock`.
+/// * `batch_size` - The size of each ADC/DAC batch.
+/// * `sample_ticks` - The number of timer ticks between each sample.
+///
+/// # Returns
+/// (stabilizer, pounder) where `stabilizer` is a `StabilizerDevices` structure containing all
+/// stabilizer hardware interfaces in a disabled state. `pounder` is an `Option` containing
+/// `Some(devices)` if pounder is detected, where `devices` is a `PounderDevices` structure
+/// containing all of the pounder hardware interfaces in a disabled state.
+pub fn setup(
+    mut core: stm32h7xx_hal::stm32::CorePeripherals,
+    device: stm32h7xx_hal::stm32::Peripherals,
+    clock: SystemTimer,
+    batch_size: usize,
+    sample_ticks: u32,
+) -> (StabilizerDevices, Option<PounderDevices>) {
+    // Set up RTT logging
+    {
+        // Enable debug during WFE/WFI-induced sleep
+        device.DBGMCU.cr.modify(|_, w| w.dbgsleep_d1().set_bit());
+
+        // Set up RTT channel to use for `rprintln!()` as "best effort".
+        // This removes a critical section around the logging and thus allows
+        // high-prio tasks to always interrupt at low latency.
+        // It comes at a cost:
+        // If a high-priority tasks preempts while we are logging something,
+        // and if we then also want to log from within that high-preiority task,
+        // the high-prio log message will be lost.
+
+        let channels = rtt_target::rtt_init_default!();
+        // Note(unsafe): The closure we pass does not establish a critical section
+        // as demanded but it does ensure synchronization and implements a lock.
+        unsafe {
+            rtt_target::set_print_channel_cs(
+                channels.up.0,
+                &((|arg, f| {
+                    static LOCKED: AtomicBool = AtomicBool::new(false);
+                    if LOCKED.compare_exchange_weak(
+                        false,
+                        true,
+                        Ordering::Acquire,
+                        Ordering::Relaxed,
+                    ) == Ok(false)
+                    {
+                        f(arg);
+                        LOCKED.store(false, Ordering::Release);
+                    }
+                }) as rtt_target::CriticalSectionFunc),
+            );
+        }
+
+        static LOGGER: rtt_logger::RTTLogger =
+            rtt_logger::RTTLogger::new(log::LevelFilter::Info);
+        log::set_logger(&LOGGER)
+            .map(|()| log::set_max_level(log::LevelFilter::Trace))
+            .unwrap();
+        log::info!("Starting");
+    }
+
+    let pwr = device.PWR.constrain();
+    let vos = pwr.freeze();
+
+    // Enable SRAM3 for the ethernet descriptor ring.
+    device.RCC.ahb2enr.modify(|_, w| w.sram3en().set_bit());
+
+    // Clear reset flags.
+    device.RCC.rsr.write(|w| w.rmvf().set_bit());
+
+    // Select the PLLs for SPI.
+    device
+        .RCC
+        .d2ccip1r
+        .modify(|_, w| w.spi123sel().pll2_p().spi45sel().pll2_q());
+
+    device.RCC.d1ccipr.modify(|_, w| w.qspisel().rcc_hclk3());
+
+    device.RCC.d3ccipr.modify(|_, w| w.adcsel().per());
+
+    let rcc = device.RCC.constrain();
+    let ccdr = rcc
+        .use_hse(8.MHz())
+        .sysclk(design_parameters::SYSCLK.convert())
+        .hclk(200.MHz())
+        .per_ck(64.MHz()) // fixed frequency HSI, only used for internal ADC. This is not the "peripheral" clock for timers and others.
+        .pll2_p_ck(100.MHz())
+        .pll2_q_ck(100.MHz())
+        .freeze(vos, &device.SYSCFG);
+
+    // Before being able to call any code in ITCM, load that code from flash.
+    load_itcm();
+
+    let systick = Systick::new(core.SYST, ccdr.clocks.sysclk().to_Hz());
+
+    // After ITCM loading.
+    core.SCB.enable_icache();
+
+    let mut delay = delay::AsmDelay::new(ccdr.clocks.c_ck().to_Hz());
+
+    let gpioa = device.GPIOA.split(ccdr.peripheral.GPIOA);
+    let gpiob = device.GPIOB.split(ccdr.peripheral.GPIOB);
+    let gpioc = device.GPIOC.split(ccdr.peripheral.GPIOC);
+    let gpiod = device.GPIOD.split(ccdr.peripheral.GPIOD);
+    let gpioe = device.GPIOE.split(ccdr.peripheral.GPIOE);
+    let gpiof = device.GPIOF.split(ccdr.peripheral.GPIOF);
+    let mut gpiog = device.GPIOG.split(ccdr.peripheral.GPIOG);
+
+    let dma_streams =
+        hal::dma::dma::StreamsTuple::new(device.DMA1, ccdr.peripheral.DMA1);
+
+    // Verify that batch period does not exceed RTIC Monotonic timer period.
+    assert!(
+        (batch_size as u32 * sample_ticks) as f32
+            * design_parameters::TIMER_PERIOD
+            * (super::MONOTONIC_FREQUENCY as f32)
+            < 1.
+    );
+
+    // Configure timer 2 to trigger conversions for the ADC
+    let mut sampling_timer = {
+        // The timer frequency is manually adjusted below, so the 1KHz setting here is a
+        // dont-care.
+        let mut timer2 =
+            device
+                .TIM2
+                .timer(1.kHz(), ccdr.peripheral.TIM2, &ccdr.clocks);
+
+        // Configure the timer to count at the designed tick rate. We will manually set the
+        // period below.
+        timer2.pause();
+        timer2.set_tick_freq(design_parameters::TIMER_FREQUENCY.convert());
+
+        let mut sampling_timer = timers::SamplingTimer::new(timer2);
+        sampling_timer.set_period_ticks(sample_ticks - 1);
+
+        // The sampling timer is used as the master timer for the shadow-sampling timer. Thus,
+        // it generates a trigger whenever it is enabled.
+
+        sampling_timer
+    };
+
+    let mut shadow_sampling_timer = {
+        // The timer frequency is manually adjusted below, so the 1KHz setting here is a
+        // dont-care.
+        let mut timer3 =
+            device
+                .TIM3
+                .timer(1.kHz(), ccdr.peripheral.TIM3, &ccdr.clocks);
+
+        // Configure the timer to count at the designed tick rate. We will manually set the
+        // period below.
+        timer3.pause();
+        timer3.reset_counter();
+        timer3.set_tick_freq(design_parameters::TIMER_FREQUENCY.convert());
+
+        let mut shadow_sampling_timer =
+            timers::ShadowSamplingTimer::new(timer3);
+        shadow_sampling_timer.set_period_ticks(sample_ticks as u16 - 1);
+
+        // The shadow sampling timer is a slave-mode timer to the sampling timer. It should
+        // always be in-sync - thus, we configure it to operate in slave mode using "Trigger
+        // mode".
+        // For TIM3, TIM2 can be made the internal trigger connection using ITR1. Thus, the
+        // SamplingTimer start now gates the start of the ShadowSamplingTimer.
+        shadow_sampling_timer.set_slave_mode(
+            timers::TriggerSource::Trigger1,
+            timers::SlaveMode::Trigger,
+        );
+
+        shadow_sampling_timer
+    };
+
+    let sampling_timer_channels = sampling_timer.channels();
+    let shadow_sampling_timer_channels = shadow_sampling_timer.channels();
+
+    let mut timestamp_timer = {
+        // The timer frequency is manually adjusted below, so the 1KHz setting here is a
+        // dont-care.
+        let mut timer5 =
+            device
+                .TIM5
+                .timer(1.kHz(), ccdr.peripheral.TIM5, &ccdr.clocks);
+
+        // Configure the timer to count at the designed tick rate. We will manually set the
+        // period below.
+        timer5.pause();
+        timer5.set_tick_freq(design_parameters::TIMER_FREQUENCY.convert());
+
+        // The timestamp timer runs at the counter cycle period as the sampling timers.
+        // To accomodate this, we manually set the prescaler identical to the sample
+        // timer, but use maximum overflow period.
+        let mut timer = timers::TimestampTimer::new(timer5);
+
+        // TODO: Check hardware synchronization of timestamping and the sampling timers
+        // for phase shift determinism.
+
+        timer.set_period_ticks(u32::MAX);
+
+        timer
+    };
+
+    let timestamp_timer_channels = timestamp_timer.channels();
+
+    // Configure the SPI interfaces to the ADCs and DACs.
+    let adcs = {
+        let adc0 = {
+            let miso = gpiob.pb14.into_alternate().speed(Speed::VeryHigh);
+            let sck = gpiob.pb10.into_alternate().speed(Speed::VeryHigh);
+            let nss = gpiob.pb9.into_alternate().speed(Speed::VeryHigh);
+
+            let config = hal::spi::Config::new(hal::spi::Mode {
+                polarity: hal::spi::Polarity::IdleHigh,
+                phase: hal::spi::Phase::CaptureOnSecondTransition,
+            })
+            .hardware_cs(hal::spi::HardwareCS {
+                mode: hal::spi::HardwareCSMode::WordTransaction,
+                assertion_delay: design_parameters::ADC_SETUP_TIME,
+                polarity: hal::spi::Polarity::IdleHigh,
+            })
+            .communication_mode(hal::spi::CommunicationMode::Receiver);
+
+            let spi: hal::spi::Spi<_, _, u16> = device.SPI2.spi(
+                (sck, miso, hal::spi::NoMosi, nss),
+                config,
+                design_parameters::ADC_DAC_SCK_MAX.convert(),
+                ccdr.peripheral.SPI2,
+                &ccdr.clocks,
+            );
+
+            adc::Adc0Input::new(
+                spi,
+                dma_streams.0,
+                dma_streams.1,
+                dma_streams.2,
+                sampling_timer_channels.ch1,
+                shadow_sampling_timer_channels.ch1,
+                batch_size,
+            )
+        };
+
+        let adc1 = {
+            let miso = gpiob.pb4.into_alternate().speed(Speed::VeryHigh);
+            let sck = gpioc.pc10.into_alternate().speed(Speed::VeryHigh);
+            let nss = gpioa.pa15.into_alternate().speed(Speed::VeryHigh);
+
+            let config = hal::spi::Config::new(hal::spi::Mode {
+                polarity: hal::spi::Polarity::IdleHigh,
+                phase: hal::spi::Phase::CaptureOnSecondTransition,
+            })
+            .hardware_cs(hal::spi::HardwareCS {
+                mode: hal::spi::HardwareCSMode::WordTransaction,
+                assertion_delay: design_parameters::ADC_SETUP_TIME,
+                polarity: hal::spi::Polarity::IdleHigh,
+            })
+            .communication_mode(hal::spi::CommunicationMode::Receiver);
+
+            let spi: hal::spi::Spi<_, _, u16> = device.SPI3.spi(
+                (sck, miso, hal::spi::NoMosi, nss),
+                config,
+                design_parameters::ADC_DAC_SCK_MAX.convert(),
+                ccdr.peripheral.SPI3,
+                &ccdr.clocks,
+            );
+
+            adc::Adc1Input::new(
+                spi,
+                dma_streams.3,
+                dma_streams.4,
+                dma_streams.5,
+                sampling_timer_channels.ch2,
+                shadow_sampling_timer_channels.ch2,
+                batch_size,
+            )
+        };
+
+        (adc0, adc1)
+    };
+
+    let dacs = {
+        let mut dac_clr_n = gpioe.pe12.into_push_pull_output();
+        dac_clr_n.set_high();
+
+        let dac0_spi = {
+            let miso = gpioe.pe5.into_alternate().speed(Speed::VeryHigh);
+            let sck = gpioe.pe2.into_alternate().speed(Speed::VeryHigh);
+            let nss = gpioe.pe4.into_alternate().speed(Speed::VeryHigh);
+
+            let config = hal::spi::Config::new(hal::spi::Mode {
+                polarity: hal::spi::Polarity::IdleHigh,
+                phase: hal::spi::Phase::CaptureOnSecondTransition,
+            })
+            .hardware_cs(hal::spi::HardwareCS {
+                mode: hal::spi::HardwareCSMode::WordTransaction,
+                assertion_delay: 0.0,
+                polarity: hal::spi::Polarity::IdleHigh,
+            })
+            .communication_mode(hal::spi::CommunicationMode::Transmitter)
+            .swap_mosi_miso();
+
+            device.SPI4.spi(
+                (sck, miso, hal::spi::NoMosi, nss),
+                config,
+                design_parameters::ADC_DAC_SCK_MAX.convert(),
+                ccdr.peripheral.SPI4,
+                &ccdr.clocks,
+            )
+        };
+
+        let dac1_spi = {
+            let miso = gpiof.pf8.into_alternate().speed(Speed::VeryHigh);
+            let sck = gpiof.pf7.into_alternate().speed(Speed::VeryHigh);
+            let nss = gpiof.pf6.into_alternate().speed(Speed::VeryHigh);
+
+            let config = hal::spi::Config::new(hal::spi::Mode {
+                polarity: hal::spi::Polarity::IdleHigh,
+                phase: hal::spi::Phase::CaptureOnSecondTransition,
+            })
+            .hardware_cs(hal::spi::HardwareCS {
+                mode: hal::spi::HardwareCSMode::WordTransaction,
+                assertion_delay: 0.0,
+                polarity: hal::spi::Polarity::IdleHigh,
+            })
+            .communication_mode(hal::spi::CommunicationMode::Transmitter)
+            .swap_mosi_miso();
+
+            device.SPI5.spi(
+                (sck, miso, hal::spi::NoMosi, nss),
+                config,
+                design_parameters::ADC_DAC_SCK_MAX.convert(),
+                ccdr.peripheral.SPI5,
+                &ccdr.clocks,
+            )
+        };
+
+        let dac0 = dac::Dac0Output::new(
+            dac0_spi,
+            dma_streams.6,
+            sampling_timer_channels.ch3,
+            batch_size,
+        );
+        let dac1 = dac::Dac1Output::new(
+            dac1_spi,
+            dma_streams.7,
+            sampling_timer_channels.ch4,
+            batch_size,
+        );
+
+        dac_clr_n.set_low();
+        // dac0_ldac_n
+        gpioe.pe11.into_push_pull_output().set_low();
+        // dac1_ldac_n
+        gpioe.pe15.into_push_pull_output().set_low();
+        dac_clr_n.set_high();
+
+        (dac0, dac1)
+    };
+
+    let afes = {
+        // AFE_PWR_ON on hardware revision v1.3.2
+        gpioe.pe1.into_push_pull_output().set_high();
+
+        let afe0 = {
+            let a0_pin = gpiof.pf2.into_push_pull_output();
+            let a1_pin = gpiof.pf5.into_push_pull_output();
+            afe::ProgrammableGainAmplifier::new(a0_pin, a1_pin)
+        };
+
+        let afe1 = {
+            let a0_pin = gpiod.pd14.into_push_pull_output();
+            let a1_pin = gpiod.pd15.into_push_pull_output();
+            afe::ProgrammableGainAmplifier::new(a0_pin, a1_pin)
+        };
+
+        (afe0, afe1)
+    };
+
+    let input_stamper = {
+        let trigger = gpioa.pa3.into_alternate();
+        InputStamper::new(trigger, timestamp_timer_channels.ch4)
+    };
+
+    let digital_inputs = {
+        let di0 = gpiog.pg9.into_floating_input();
+        let di1 = gpioc.pc15.into_floating_input();
+        (di0, di1)
+    };
+
+    let mut eeprom_i2c = {
+        let sda = gpiof.pf0.into_alternate().set_open_drain();
+        let scl = gpiof.pf1.into_alternate().set_open_drain();
+        device.I2C2.i2c(
+            (scl, sda),
+            100.kHz(),
+            ccdr.peripheral.I2C2,
+            &ccdr.clocks,
+        )
+    };
+
+    let mac_addr = smoltcp::wire::EthernetAddress(eeprom::read_eui48(
+        &mut eeprom_i2c,
+        &mut delay,
+    ));
+    log::info!("EUI48: {}", mac_addr);
+
+    let network_devices = {
+        let ethernet_pins = {
+            // Reset the PHY before configuring pins.
+            let mut eth_phy_nrst = gpioe.pe3.into_push_pull_output();
+            eth_phy_nrst.set_low();
+            delay.delay_us(200u8);
+            eth_phy_nrst.set_high();
+
+            let ref_clk = gpioa.pa1.into_alternate().speed(Speed::VeryHigh);
+            let mdio = gpioa.pa2.into_alternate().speed(Speed::VeryHigh);
+            let mdc = gpioc.pc1.into_alternate().speed(Speed::VeryHigh);
+            let crs_dv = gpioa.pa7.into_alternate().speed(Speed::VeryHigh);
+            let rxd0 = gpioc.pc4.into_alternate().speed(Speed::VeryHigh);
+            let rxd1 = gpioc.pc5.into_alternate().speed(Speed::VeryHigh);
+            let tx_en = gpiob.pb11.into_alternate().speed(Speed::VeryHigh);
+            let txd0 = gpiob.pb12.into_alternate().speed(Speed::VeryHigh);
+            let txd1 = gpiog.pg14.into_alternate().speed(Speed::VeryHigh);
+
+            (ref_clk, mdio, mdc, crs_dv, rxd0, rxd1, tx_en, txd0, txd1)
+        };
+
+        // Configure the ethernet controller
+        let (mut eth_dma, eth_mac) = ethernet::new(
+            device.ETHERNET_MAC,
+            device.ETHERNET_MTL,
+            device.ETHERNET_DMA,
+            ethernet_pins,
+            // Note(unsafe): We only call this function once to take ownership of the
+            // descriptor ring.
+            unsafe { &mut DES_RING },
+            mac_addr,
+            ccdr.peripheral.ETH1MAC,
+            &ccdr.clocks,
+        );
+
+        // Reset and initialize the ethernet phy.
+        let mut lan8742a =
+            ethernet::phy::LAN8742A::new(eth_mac.set_phy_addr(0));
+        lan8742a.phy_reset();
+        lan8742a.phy_init();
+
+        unsafe { ethernet::enable_interrupt() };
+
+        // Configure IP address according to DHCP socket availability
+        let ip_addrs: smoltcp::wire::IpAddress = option_env!("STATIC_IP")
+            .unwrap_or("0.0.0.0")
+            .parse()
+            .unwrap();
+
+        let random_seed = {
+            let mut rng =
+                device.RNG.constrain(ccdr.peripheral.RNG, &ccdr.clocks);
+            let mut data = [0u8; 8];
+            rng.fill(&mut data).unwrap();
+            data
+        };
+
+        // Note(unwrap): The hardware configuration function is only allowed to be called once.
+        // Unwrapping is intended to panic if called again to prevent re-use of global memory.
+        let store =
+            cortex_m::singleton!(: NetStorage = NetStorage::default()).unwrap();
+
+        store.ip_addrs[0] = smoltcp::wire::IpCidr::new(ip_addrs, 24);
+
+        let mut ethernet_config = smoltcp::iface::Config::default();
+        ethernet_config
+            .hardware_addr
+            .replace(smoltcp::wire::HardwareAddress::Ethernet(mac_addr));
+        ethernet_config.random_seed = u64::from_be_bytes(random_seed);
+
+        let mut interface =
+            smoltcp::iface::Interface::new(ethernet_config, &mut eth_dma);
+
+        interface
+            .routes_mut()
+            .add_default_ipv4_route(smoltcp::wire::Ipv4Address::UNSPECIFIED)
+            .unwrap();
+
+        interface.update_ip_addrs(|ref mut addrs| {
+            if !ip_addrs.is_unspecified() {
+                addrs
+                    .push(smoltcp::wire::IpCidr::new(ip_addrs, 24))
+                    .unwrap();
+            }
+        });
+
+        let mut sockets =
+            smoltcp::iface::SocketSet::new(&mut store.sockets[..]);
+        for storage in store.tcp_socket_storage[..].iter_mut() {
+            let tcp_socket = {
+                let rx_buffer = smoltcp::socket::tcp::SocketBuffer::new(
+                    &mut storage.rx_storage[..],
+                );
+                let tx_buffer = smoltcp::socket::tcp::SocketBuffer::new(
+                    &mut storage.tx_storage[..],
+                );
+
+                smoltcp::socket::tcp::Socket::new(rx_buffer, tx_buffer)
+            };
+
+            sockets.add(tcp_socket);
+        }
+
+        if ip_addrs.is_unspecified() {
+            sockets.add(smoltcp::socket::dhcpv4::Socket::new());
+        }
+
+        for storage in store.udp_socket_storage[..].iter_mut() {
+            let udp_socket = {
+                let rx_buffer = smoltcp::socket::udp::PacketBuffer::new(
+                    &mut storage.rx_metadata[..],
+                    &mut storage.rx_storage[..],
+                );
+                let tx_buffer = smoltcp::socket::udp::PacketBuffer::new(
+                    &mut storage.tx_metadata[..],
+                    &mut storage.tx_storage[..],
+                );
+
+                smoltcp::socket::udp::Socket::new(rx_buffer, tx_buffer)
+            };
+
+            sockets.add(udp_socket);
+        }
+
+        let mut stack =
+            smoltcp_nal::NetworkStack::new(interface, eth_dma, sockets, clock);
+
+        stack.seed_random_port(&random_seed);
+
+        NetworkDevices {
+            stack,
+            phy: lan8742a,
+            mac_address: mac_addr,
+        }
+    };
+
+    let mut fp_led_0 = gpiod.pd5.into_push_pull_output();
+    let mut fp_led_1 = gpiod.pd6.into_push_pull_output();
+    let mut fp_led_2 = gpiog.pg4.into_push_pull_output();
+    let mut fp_led_3 = gpiod.pd12.into_push_pull_output();
+
+    fp_led_0.set_low();
+    fp_led_1.set_low();
+    fp_led_2.set_low();
+    fp_led_3.set_low();
+
+    let (adc1, adc2, adc3) = {
+        let (mut adc1, mut adc2) = hal::adc::adc12(
+            device.ADC1,
+            device.ADC2,
+            stm32h7xx_hal::time::Hertz::MHz(25),
+            &mut delay,
+            ccdr.peripheral.ADC12,
+            &ccdr.clocks,
+        );
+        let mut adc3 = hal::adc::Adc::adc3(
+            device.ADC3,
+            stm32h7xx_hal::time::Hertz::MHz(25),
+            &mut delay,
+            ccdr.peripheral.ADC3,
+            &ccdr.clocks,
+        );
+
+        adc1.set_sample_time(hal::adc::AdcSampleTime::T_810);
+        adc1.set_resolution(hal::adc::Resolution::SixteenBit);
+        adc1.calibrate();
+        adc2.set_sample_time(hal::adc::AdcSampleTime::T_810);
+        adc2.set_resolution(hal::adc::Resolution::SixteenBit);
+        adc2.calibrate();
+        adc3.set_sample_time(hal::adc::AdcSampleTime::T_810);
+        adc3.set_resolution(hal::adc::Resolution::SixteenBit);
+        adc3.calibrate();
+
+        hal::adc::Temperature::new().enable(&adc3);
+
+        let adc1 = adc1.enable();
+        let adc2 = adc2.enable();
+        let adc3 = adc3.enable();
+
+        (
+            // The ADCs must live as global, mutable singletons so that we can hand out references
+            // to the internal ADC. If they were instead to live within e.g. StabilizerDevices,
+            // they would not yet live in 'static memory, which means that we could not hand out
+            // references during initialization, since those references would be invalidated when
+            // we move StabilizerDevices into the late RTIC resources.
+            cortex_m::singleton!(: SharedAdc<hal::stm32::ADC1> = SharedAdc::new(adc1.slope() as f32, adc1)).unwrap(),
+            cortex_m::singleton!(: SharedAdc<hal::stm32::ADC2> = SharedAdc::new(adc2.slope() as f32, adc2)).unwrap(),
+            cortex_m::singleton!(: SharedAdc<hal::stm32::ADC3> = SharedAdc::new(adc3.slope() as f32, adc3)).unwrap(),
+        )
+    };
+
+    // Measure the Pounder PGOOD output to detect if pounder is present on Stabilizer.
+    let pounder_pgood = gpiob.pb13.into_pull_down_input();
+    delay.delay_ms(2u8);
+    let pounder = if pounder_pgood.is_high() {
+        log::info!("Found Pounder");
+
+        let i2c1 = {
+            let sda = gpiob.pb7.into_alternate().set_open_drain();
+            let scl = gpiob.pb8.into_alternate().set_open_drain();
+            let i2c1 = device.I2C1.i2c(
+                (scl, sda),
+                400.kHz(),
+                ccdr.peripheral.I2C1,
+                &ccdr.clocks,
+            );
+
+            shared_bus::new_atomic_check!(hal::i2c::I2c<hal::stm32::I2C1> = i2c1).unwrap()
+        };
+
+        let io_expander =
+            mcp230xx::Mcp230xx::new_default(i2c1.acquire_i2c()).unwrap();
+
+        let temp_sensor =
+            lm75::Lm75::new(i2c1.acquire_i2c(), lm75::Address::default());
+
+        let spi = {
+            let mosi = gpiod.pd7.into_alternate();
+            let miso = gpioa.pa6.into_alternate();
+            let sck = gpiog.pg11.into_alternate();
+
+            let config = hal::spi::Config::new(hal::spi::Mode {
+                polarity: hal::spi::Polarity::IdleHigh,
+                phase: hal::spi::Phase::CaptureOnSecondTransition,
+            });
+
+            // The maximum frequency of this SPI must be limited due to capacitance on the MISO
+            // line causing a long RC decay.
+            device.SPI1.spi(
+                (sck, miso, mosi),
+                config,
+                5.MHz(),
+                ccdr.peripheral.SPI1,
+                &ccdr.clocks,
+            )
+        };
+
+        let pwr0 = adc1.create_channel(gpiof.pf11.into_analog());
+        let pwr1 = adc2.create_channel(gpiof.pf14.into_analog());
+        let aux_adc0 = adc3.create_channel(gpiof.pf3.into_analog());
+        let aux_adc1 = adc3.create_channel(gpiof.pf4.into_analog());
+
+        let pounder_devices = pounder::PounderDevices::new(
+            temp_sensor,
+            io_expander,
+            spi,
+            pwr0,
+            pwr1,
+            aux_adc0,
+            aux_adc1,
+        )
+        .unwrap();
+
+        let ad9959 = {
+            let qspi_interface = {
+                // Instantiate the QUADSPI pins and peripheral interface.
+                let qspi_pins = {
+                    let _ncs =
+                        gpioc.pc11.into_alternate::<9>().speed(Speed::VeryHigh);
+
+                    let clk = gpiob.pb2.into_alternate().speed(Speed::VeryHigh);
+                    let io0 = gpioe.pe7.into_alternate().speed(Speed::VeryHigh);
+                    let io1 = gpioe.pe8.into_alternate().speed(Speed::VeryHigh);
+                    let io2 = gpioe.pe9.into_alternate().speed(Speed::VeryHigh);
+                    let io3 =
+                        gpioe.pe10.into_alternate().speed(Speed::VeryHigh);
+
+                    (clk, io0, io1, io2, io3)
+                };
+
+                let qspi = device.QUADSPI.bank2(
+                    qspi_pins,
+                    design_parameters::POUNDER_QSPI_FREQUENCY.convert(),
+                    &ccdr.clocks,
+                    ccdr.peripheral.QSPI,
+                );
+
+                pounder::QspiInterface::new(qspi).unwrap()
+            };
+
+            #[cfg(not(feature = "pounder_v1_0"))]
+            let reset_pin = gpiog.pg6.into_push_pull_output();
+            #[cfg(feature = "pounder_v1_0")]
+            let reset_pin = gpioa.pa0.into_push_pull_output();
+
+            let mut io_update = gpiog.pg7.into_push_pull_output();
+
+            // Delay to allow the pounder DDS reference clock to fully start up. The exact startup
+            // time is not specified, but bench testing indicates it usually comes up within
+            // 200-300uS. We do a larger delay to ensure that it comes up and is stable before
+            // using it.
+            delay.delay_ms(10u32);
+
+            let mut ad9959 = ad9959::Ad9959::new(
+                qspi_interface,
+                reset_pin,
+                &mut io_update,
+                &mut delay,
+                ad9959::Mode::FourBitSerial,
+                design_parameters::DDS_REF_CLK.to_Hz() as f32,
+                design_parameters::DDS_MULTIPLIER,
+            )
+            .unwrap();
+
+            ad9959.self_test().unwrap();
+
+            // Return IO_Update
+            gpiog.pg7 = io_update.into_analog();
+
+            ad9959
+        };
+
+        let dds_output = {
+            let io_update_trigger = {
+                let _io_update =
+                    gpiog.pg7.into_alternate::<2>().speed(Speed::VeryHigh);
+
+                // Configure the IO_Update signal for the DDS.
+                let mut hrtimer = pounder::hrtimer::HighResTimerE::new(
+                    device.HRTIM_TIME,
+                    device.HRTIM_MASTER,
+                    device.HRTIM_COMMON,
+                    ccdr.clocks,
+                    ccdr.peripheral.HRTIM,
+                );
+
+                // IO_Update occurs after a fixed delay from the QSPI write. Note that the timer
+                // is triggered after the QSPI write, which can take approximately 120nS, so
+                // there is additional margin.
+                hrtimer.configure_single_shot(
+                    pounder::hrtimer::Channel::Two,
+                    design_parameters::POUNDER_IO_UPDATE_DELAY,
+                    design_parameters::POUNDER_IO_UPDATE_DURATION,
+                );
+
+                // Ensure that we have enough time for an IO-update every batch.
+                let sample_frequency = {
+                    design_parameters::TIMER_FREQUENCY.to_Hz() as f32
+                        / sample_ticks as f32
+                };
+
+                let sample_period = 1.0 / sample_frequency;
+                assert!(
+                    sample_period * batch_size as f32
+                        > design_parameters::POUNDER_IO_UPDATE_DELAY
+                );
+
+                hrtimer
+            };
+
+            let (qspi, config) = ad9959.freeze();
+            DdsOutput::new(qspi, io_update_trigger, config)
+        };
+
+        #[cfg(not(feature = "pounder_v1_0"))]
+        let pounder_stamper = {
+            log::info!("Assuming Pounder v1.1 or later");
+            let etr_pin = gpioa.pa0.into_alternate();
+
+            // The frequency in the constructor is dont-care, as we will modify the period + clock
+            // source manually below.
+            let tim8 =
+                device
+                    .TIM8
+                    .timer(1.kHz(), ccdr.peripheral.TIM8, &ccdr.clocks);
+            let mut timestamp_timer = timers::PounderTimestampTimer::new(tim8);
+
+            // Pounder is configured to generate a 500MHz reference clock, so a 125MHz sync-clock is
+            // output. As a result, dividing the 125MHz sync-clk provides a 31.25MHz tick rate for
+            // the timestamp timer. 31.25MHz corresponds with a 32ns tick rate.
+            // This is less than fCK_INT/3 of the timer as required for oversampling the trigger.
+            timestamp_timer.set_external_clock(timers::Prescaler::Div4);
+            timestamp_timer.start();
+
+            // Set the timer to wrap at the u16 boundary to meet the PLL periodicity.
+            // Scale and wrap before or after the PLL.
+            timestamp_timer.set_period_ticks(u16::MAX);
+            let tim8_channels = timestamp_timer.channels();
+
+            pounder::timestamp::Timestamper::new(
+                timestamp_timer,
+                tim8_channels.ch1,
+                &mut sampling_timer,
+                etr_pin,
+                batch_size,
+            )
+        };
+
+        Some(PounderDevices {
+            pounder: pounder_devices,
+            dds_output,
+
+            #[cfg(not(feature = "pounder_v1_0"))]
+            timestamper: pounder_stamper,
+        })
+    } else {
+        None
+    };
+
+    let eem_gpio = EemGpioDevices {
+        lvds4: gpiod.pd1.into_floating_input(),
+        lvds5: gpiod.pd2.into_floating_input(),
+        lvds6: gpiod.pd3.into_push_pull_output(),
+        lvds7: gpiod.pd4.into_push_pull_output(),
+    };
+
+    let stabilizer = StabilizerDevices {
+        systick,
+        afes,
+        adcs,
+        dacs,
+        temperature_sensor: CpuTempSensor::new(
+            adc3.create_channel(hal::adc::Temperature::new()),
+        ),
+        timestamper: input_stamper,
+        net: network_devices,
+        adc_dac_timer: sampling_timer,
+        timestamp_timer,
+        digital_inputs,
+        eem_gpio,
+    };
+
+    // info!("Version {} {}", build_info::PKG_VERSION, build_info::GIT_VERSION.unwrap());
+    // info!("Built on {}", build_info::BUILT_TIME_UTC);
+    // info!("{} {}", build_info::RUSTC_VERSION, build_info::TARGET);
+    log::info!("setup() complete");
+
+    (stabilizer, pounder)
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/shared_adc.rs.html b/firmware/src/stabilizer/hardware/shared_adc.rs.html new file mode 100644 index 0000000000..f2ff2dc169 --- /dev/null +++ b/firmware/src/stabilizer/hardware/shared_adc.rs.html @@ -0,0 +1,193 @@ +shared_adc.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+
/// Shared Internal ADC Support
+///
+/// # Description
+/// This module provides an abstraction to share ownership of a single ADC peripheral with multiple
+/// ADC channels attached to it.
+///
+/// The design of this module mimics that of [`shared-bus`].
+///
+/// First, the shared ADC is created with the use of a macro, which places the ADC peripheral into
+/// a mutable, static (singleton) location. Then, individual channels are created by passing in the
+/// associated ADC input pin to the [SharedAdc::create_channel()] function to generate an
+/// [AdcChannel]. The [AdcChannel]'s ownership can then be moved to any required drivers.
+///
+/// ## Synchronization
+/// If the multiple priorities utilize the ADC that results in resource pre-emption, pre-emption is
+/// protected against through the use of an atomic bool. Attempting to utilize the ADC from a
+/// higher priority level while it is in use at a lower level will result in a [AdcError::InUse].
+use embedded_hal::adc::{Channel, OneShot};
+use stm32h7xx_hal as hal;
+
+#[derive(Debug, Copy, Clone)]
+pub enum AdcError {
+    /// Indicates that the ADC is already in use
+    InUse,
+}
+
+/// A single channel on an ADC peripheral.
+pub struct AdcChannel<'a, Adc, PIN> {
+    pin: PIN,
+    slope: f32,
+    mutex: &'a spin::Mutex<hal::adc::Adc<Adc, hal::adc::Enabled>>,
+}
+
+impl<'a, Adc, PIN> AdcChannel<'a, Adc, PIN>
+where
+    PIN: Channel<Adc, ID = u8>,
+    hal::adc::Adc<Adc, hal::adc::Enabled>: OneShot<Adc, u32, PIN>,
+    <hal::adc::Adc<Adc, hal::adc::Enabled> as OneShot<Adc, u32, PIN>>::Error:
+        core::fmt::Debug,
+{
+    /// Read the ADC channel and normalize the result.
+    ///
+    /// # Returns
+    /// The normalized ADC measurement as a ratio of full-scale.
+    pub fn read_normalized(&mut self) -> Result<f32, AdcError> {
+        self.read_raw().map(|code| code as f32 / self.slope)
+    }
+
+    /// Read the raw ADC sample for the channel.
+    ///
+    /// # Returns
+    /// The raw ADC code measured on the channel.
+    pub fn read_raw(&mut self) -> Result<u32, AdcError> {
+        let mut adc = self.mutex.try_lock().ok_or(AdcError::InUse)?;
+        Ok(adc.read(&mut self.pin).unwrap())
+    }
+}
+
+/// An ADC peripheral that can provide ownership of individual channels for sharing between
+/// drivers.
+pub struct SharedAdc<Adc> {
+    mutex: spin::Mutex<hal::adc::Adc<Adc, hal::adc::Enabled>>,
+    slope: f32,
+}
+
+impl<Adc> SharedAdc<Adc> {
+    /// Construct a new shared ADC driver.
+    ///
+    /// # Args
+    /// * `slope` - The slope of the ADC conversion transfer function.
+    /// * `adc` - The ADC peripheral to share.
+    pub fn new(slope: f32, adc: hal::adc::Adc<Adc, hal::adc::Enabled>) -> Self {
+        Self {
+            slope,
+            mutex: spin::Mutex::new(adc),
+        }
+    }
+
+    /// Allocate an ADC channel for usage.
+    ///
+    /// # Args
+    /// * `pin` - The ADC input associated with the desired ADC channel. Often, this is a GPIO pin.
+    ///
+    /// # Returns
+    /// An instantiated [AdcChannel] whose ownership can be transferred to other drivers.
+    pub fn create_channel<PIN: Channel<Adc, ID = u8>>(
+        &self,
+        pin: PIN,
+    ) -> AdcChannel<'_, Adc, PIN> {
+        AdcChannel {
+            pin,
+            slope: self.slope,
+            mutex: &self.mutex,
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/signal_generator.rs.html b/firmware/src/stabilizer/hardware/signal_generator.rs.html new file mode 100644 index 0000000000..8480ae5752 --- /dev/null +++ b/firmware/src/stabilizer/hardware/signal_generator.rs.html @@ -0,0 +1,423 @@ +signal_generator.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+
use miniconf::Miniconf;
+use rand_core::{RngCore, SeedableRng};
+use rand_xorshift::XorShiftRng;
+use serde::{Deserialize, Serialize};
+
+/// Types of signals that can be generated.
+#[derive(Copy, Clone, Debug, Deserialize, Serialize)]
+pub enum Signal {
+    Cosine,
+    Square,
+    Triangle,
+    WhiteNoise,
+}
+
+/// Basic configuration for a generated signal.
+///
+/// # Miniconf
+/// `{"signal": <signal>, "frequency", 1000.0, "symmetry": 0.5, "amplitude": 1.0}`
+///
+/// Where `<signal>` may be any of [Signal] variants, `frequency` specifies the signal frequency
+/// in Hertz, `symmetry` specifies the normalized signal symmetry which ranges from 0 - 1.0, and
+/// `amplitude` specifies the signal amplitude in Volts.
+#[derive(Copy, Clone, Debug, Miniconf)]
+pub struct BasicConfig {
+    /// The signal type that should be generated. See [Signal] variants.
+    pub signal: Signal,
+
+    /// The frequency of the generated signal in Hertz.
+    pub frequency: f32,
+
+    /// The normalized symmetry of the signal. At 0% symmetry, the duration of the first half oscillation is minimal.
+    /// At 25% symmetry, the first half oscillation lasts for 25% of the signal period. For square wave output this
+    /// symmetry is the duty cycle.
+    pub symmetry: f32,
+
+    /// The amplitude of the output signal in volts.
+    pub amplitude: f32,
+
+    /// The phase of the output signal in turns.
+    pub phase: f32,
+}
+
+impl Default for BasicConfig {
+    fn default() -> Self {
+        Self {
+            frequency: 1.0e3,
+            symmetry: 0.5,
+            signal: Signal::Cosine,
+            amplitude: 0.0,
+            phase: 0.0,
+        }
+    }
+}
+
+/// Represents the errors that can occur when attempting to configure the signal generator.
+#[derive(Copy, Clone, Debug)]
+pub enum Error {
+    /// The provided amplitude is out-of-range.
+    InvalidAmplitude,
+    /// The provided symmetry is out of range.
+    InvalidSymmetry,
+    /// The provided frequency is out of range.
+    InvalidFrequency,
+}
+
+impl BasicConfig {
+    /// Convert configuration into signal generator values.
+    ///
+    /// # Args
+    /// * `sample_period` - The time in seconds between samples.
+    /// * `full_scale` - The full scale output voltage.
+    pub fn try_into_config(
+        self,
+        sample_period: f32,
+        full_scale: f32,
+    ) -> Result<Config, Error> {
+        let symmetry_complement = 1.0 - self.symmetry;
+        // Validate symmetry
+        if self.symmetry < 0.0 || symmetry_complement < 0.0 {
+            return Err(Error::InvalidSymmetry);
+        }
+
+        const NYQUIST: f32 = (1u32 << 31) as _;
+        let ftw = self.frequency * sample_period * NYQUIST;
+
+        // Validate base frequency tuning word to be below Nyquist.
+        if ftw < 0.0 || 2.0 * ftw > NYQUIST {
+            return Err(Error::InvalidFrequency);
+        }
+
+        // Calculate the frequency tuning words.
+        // Clip both frequency tuning words to within Nyquist before rounding.
+        let phase_increment = [
+            if self.symmetry * NYQUIST > ftw {
+                ftw / self.symmetry
+            } else {
+                NYQUIST
+            } as i32,
+            if symmetry_complement * NYQUIST > ftw {
+                ftw / symmetry_complement
+            } else {
+                NYQUIST
+            } as i32,
+        ];
+
+        let amplitude = self.amplitude * (i16::MIN as f32 / -full_scale);
+        if !(i16::MIN as f32..=i16::MAX as f32).contains(&amplitude) {
+            return Err(Error::InvalidAmplitude);
+        }
+
+        let phase = self.phase * (1u64 << 32) as f32;
+
+        Ok(Config {
+            amplitude: amplitude as i16,
+            signal: self.signal,
+            phase_increment,
+            phase_offset: phase as i32,
+        })
+    }
+}
+
+#[derive(Copy, Clone, Debug)]
+pub struct Config {
+    /// The type of signal being generated
+    pub signal: Signal,
+
+    /// The full-scale output code of the signal
+    pub amplitude: i16,
+
+    /// The frequency tuning word of the signal. Phase is incremented by this amount
+    pub phase_increment: [i32; 2],
+
+    /// The phase offset
+    pub phase_offset: i32,
+}
+
+impl Default for Config {
+    fn default() -> Self {
+        Self {
+            signal: Signal::Cosine,
+            amplitude: 0,
+            phase_increment: [0, 0],
+            phase_offset: 0,
+        }
+    }
+}
+
+#[derive(Debug)]
+pub struct SignalGenerator {
+    phase_accumulator: i32,
+    config: Config,
+    rng: XorShiftRng,
+}
+
+impl SignalGenerator {
+    /// Construct a new signal generator with some specific config.
+    ///
+    /// # Args
+    /// * `config` - The config to use for generating signals.
+    ///
+    /// # Returns
+    /// The generator
+    pub fn new(config: Config) -> Self {
+        Self {
+            config,
+            phase_accumulator: 0,
+            rng: XorShiftRng::from_seed([0; 16]), // zeros will initialize with XorShiftRng internal seed
+        }
+    }
+
+    /// Update waveform generation settings.
+    pub fn update_waveform(&mut self, new_config: Config) {
+        self.config = new_config;
+    }
+
+    /// Clear the phase accumulator.
+    pub fn clear_phase_accumulator(&mut self) {
+        self.phase_accumulator = 0;
+    }
+}
+
+impl core::iter::Iterator for SignalGenerator {
+    type Item = i16;
+
+    /// Get the next value in the generator sequence.
+    fn next(&mut self) -> Option<i16> {
+        let phase = self
+            .phase_accumulator
+            .wrapping_add(self.config.phase_offset);
+        let sign = phase.is_negative();
+        self.phase_accumulator = self
+            .phase_accumulator
+            .wrapping_add(self.config.phase_increment[sign as usize]);
+
+        let scale = match self.config.signal {
+            Signal::Cosine => idsp::cossin(phase).0 >> 16,
+            Signal::Square => {
+                if sign {
+                    i16::MIN as i32
+                } else {
+                    -(i16::MIN as i32)
+                }
+            }
+            Signal::Triangle => i16::MIN as i32 + (phase >> 15).abs(),
+            Signal::WhiteNoise => self.rng.next_u32() as i32 >> 16,
+        };
+
+        // Calculate the final output result as an i16.
+        Some(((self.config.amplitude as i32 * scale) >> 15) as _)
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/hardware/timers.rs.html b/firmware/src/stabilizer/hardware/timers.rs.html new file mode 100644 index 0000000000..dc80eb84ea --- /dev/null +++ b/firmware/src/stabilizer/hardware/timers.rs.html @@ -0,0 +1,803 @@ +timers.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+
///! The sampling timer is used for managing ADC sampling and external reference timestamping.
+use super::hal;
+use num_enum::TryFromPrimitive;
+
+use hal::stm32::{
+    // TIM1 and TIM8 have identical registers.
+    tim1 as __tim8,
+    tim2 as __tim2,
+    // TIM2 and TIM5 have identical registers.
+    tim2 as __tim5,
+    tim3 as __tim3,
+};
+
+/// The event that should generate an external trigger from the peripheral.
+#[allow(dead_code)]
+pub enum TriggerGenerator {
+    Reset = 0b000,
+    Enable = 0b001,
+    Update = 0b010,
+    ComparePulse = 0b011,
+    Ch1Compare = 0b100,
+    Ch2Compare = 0b101,
+    Ch3Compare = 0b110,
+    Ch4Compare = 0b111,
+}
+
+/// Selects the trigger source for the timer peripheral.
+#[allow(dead_code)]
+pub enum TriggerSource {
+    Trigger0 = 0,
+    Trigger1 = 0b01,
+    Trigger2 = 0b10,
+    Trigger3 = 0b11,
+}
+
+/// Prescalers for externally-supplied reference clocks.
+#[allow(dead_code)]
+#[derive(TryFromPrimitive)]
+#[repr(u8)]
+pub enum Prescaler {
+    Div1 = 0b00,
+    Div2 = 0b01,
+    Div4 = 0b10,
+    Div8 = 0b11,
+}
+
+/// Optional slave operation modes of a timer.
+#[allow(dead_code)]
+pub enum SlaveMode {
+    Disabled = 0,
+    Trigger = 0b0110,
+}
+
+/// Optional input capture preconditioning filter configurations.
+#[allow(dead_code)]
+pub enum InputFilter {
+    Div1N1 = 0b0000,
+    Div1N8 = 0b0011,
+}
+
+macro_rules! timer_channels {
+    ($name:ident, $TY:ident, $size:ty) => {
+        paste::paste! {
+
+            /// The timer used for managing ADC sampling.
+            pub struct $name {
+                timer: hal::timer::Timer<hal::stm32::[< $TY >]>,
+                channels: Option<[< $TY:lower >]::Channels>,
+                update_event: Option<[< $TY:lower >]::UpdateEvent>,
+            }
+
+            impl $name {
+                /// Construct the sampling timer.
+                #[allow(dead_code)]
+                pub fn new(mut timer: hal::timer::Timer<hal::stm32::[< $TY>]>) -> Self {
+                    timer.pause();
+
+                    Self {
+                        timer,
+                        // Note(unsafe): Once these channels are taken, we guarantee that we do not
+                        // modify any of the underlying timer channel registers, as ownership of the
+                        // channels is now provided through the associated channel structures. We
+                        // additionally guarantee this can only be called once because there is only
+                        // one Timer2 and this resource takes ownership of it once instantiated.
+                        channels: unsafe { Some([< $TY:lower >]::Channels::new()) },
+                        update_event: unsafe { Some([< $TY:lower >]::UpdateEvent::new()) },
+                    }
+                }
+
+                /// Get the timer capture/compare channels.
+                #[allow(dead_code)]
+                pub fn channels(&mut self) -> [< $TY:lower >]::Channels {
+                    self.channels.take().unwrap()
+                }
+
+                /// Get the timer update event.
+                #[allow(dead_code)]
+                pub fn update_event(&mut self) -> [< $TY:lower >]::UpdateEvent {
+                    self.update_event.take().unwrap()
+                }
+
+                /// Get the period of the timer.
+                #[allow(dead_code)]
+                pub fn get_period(&self) -> $size {
+                    let regs = unsafe { &*hal::stm32::$TY::ptr() };
+                    regs.arr.read().arr().bits()
+                }
+
+                /// Manually set the period of the timer.
+                #[allow(dead_code)]
+                pub fn set_period_ticks(&mut self, period: $size) {
+                    let regs = unsafe { &*hal::stm32::$TY::ptr() };
+                    regs.arr.write(|w| w.arr().bits(period));
+
+                    // Force the new period to take effect immediately.
+                    self.timer.apply_freq();
+                }
+
+                /// Clock the timer from an external source.
+                ///
+                /// # Note:
+                /// * Currently, only an external source applied to ETR is supported.
+                ///
+                /// # Args
+                /// * `prescaler` - The prescaler to use for the external source.
+                #[allow(dead_code)]
+                pub fn set_external_clock(&mut self, prescaler: Prescaler) {
+                    let regs = unsafe { &*hal::stm32::$TY::ptr() };
+                    regs.smcr.modify(|_, w| w.etps().bits(prescaler as u8).ece().set_bit());
+
+                    // Clear any other prescaler configuration.
+                    regs.psc.write(|w| w.psc().bits(0));
+                }
+
+                /// Start the timer.
+                #[allow(dead_code)]
+                pub fn start(&mut self) {
+                    // Force a refresh of the frequency settings.
+                    self.timer.apply_freq();
+                    self.timer.reset_counter();
+
+                    self.timer.resume();
+                }
+
+                /// Configure the timer peripheral to generate a trigger based on the provided
+                /// source.
+                #[allow(dead_code)]
+                pub fn generate_trigger(&mut self, source: TriggerGenerator) {
+                    let regs = unsafe { &*hal::stm32::$TY::ptr() };
+                    // Note(unsafe) The TriggerGenerator enumeration is specified such that this is
+                    // always in range.
+                    regs.cr2.modify(|_, w| w.mms().bits(source as u8));
+
+                }
+
+                /// Select a trigger source for the timer peripheral.
+                #[allow(dead_code)]
+                pub fn set_trigger_source(&mut self, source: TriggerSource) {
+                    let regs = unsafe { &*hal::stm32::$TY::ptr() };
+                    // Note(unsafe) The TriggerSource enumeration is specified such that this is
+                    // always in range.
+                    regs.smcr.modify(|_, w| unsafe { w.ts().bits(source as u8) } );
+                }
+
+                #[allow(dead_code)]
+                pub fn set_slave_mode(&mut self, source: TriggerSource, mode: SlaveMode) {
+                    let regs = unsafe { &*hal::stm32::$TY::ptr() };
+                    // Note(unsafe) The TriggerSource and SlaveMode enumerations are specified such
+                    // that they are always in range.
+                    regs.smcr.modify(|_, w| unsafe { w.sms().bits(mode as u8).ts().bits(source as u8) } );
+                }
+            }
+
+            pub mod [< $TY:lower >] {
+                use stm32h7xx_hal as hal;
+                use hal::dma::{traits::TargetAddress, PeripheralToMemory, dma::DMAReq};
+                use hal::stm32::$TY;
+
+                pub struct UpdateEvent {}
+
+                impl UpdateEvent {
+                    /// Create a new update event
+                    ///
+                    /// # Safety
+                    /// This is only safe to call once.
+                    #[allow(dead_code)]
+                    pub unsafe fn new() -> Self {
+                        Self {}
+                    }
+
+                    /// Enable DMA requests upon timer updates.
+                    #[allow(dead_code)]
+                    pub fn listen_dma(&self) {
+                        // Note(unsafe): We perform only atomic operations on the timer registers.
+                        let regs = unsafe { &*<$TY>::ptr() };
+                        regs.dier.modify(|_, w| w.ude().set_bit());
+                    }
+
+                    /// Trigger a DMA request manually
+                    #[allow(dead_code)]
+                    pub fn trigger(&self) {
+                        let regs = unsafe { &*<$TY>::ptr() };
+                        regs.egr.write(|w| w.ug().set_bit());
+                    }
+                }
+
+                /// The channels representing the timer.
+                pub struct Channels {
+                    pub ch1: Channel1,
+                    pub ch2: Channel2,
+                    pub ch3: Channel3,
+                    pub ch4: Channel4,
+                }
+
+                impl Channels {
+                    /// Construct a new set of channels.
+                    ///
+                    /// # Safety
+                    /// This is only safe to call once.
+                    #[allow(dead_code)]
+                    pub unsafe fn new() -> Self {
+                        Self {
+                            ch1: Channel1::new(),
+                            ch2: Channel2::new(),
+                            ch3: Channel3::new(),
+                            ch4: Channel4::new(),
+                        }
+                    }
+                }
+
+                timer_channels!(1, $TY, ccmr1, $size);
+                timer_channels!(2, $TY, ccmr1, $size);
+                timer_channels!(3, $TY, ccmr2, $size);
+                timer_channels!(4, $TY, ccmr2, $size);
+            }
+        }
+    };
+
+    ($index:expr, $TY:ty, $ccmrx:expr, $size:ty) => {
+        paste::paste! {
+            pub use super::[< __ $TY:lower >]::[< $ccmrx _input >]::[< CC $index S_A>] as [< CaptureSource $index >];
+
+            /// A capture/compare channel of the timer.
+            pub struct [< Channel $index >] {}
+
+            /// A capture channel of the timer.
+            pub struct [< Channel $index InputCapture>] {}
+
+            impl [< Channel $index >] {
+                /// Construct a new timer channel.
+                ///
+                /// Note(unsafe): This function must only be called once. Once constructed, the
+                /// constructee guarantees to never modify the timer channel.
+                #[allow(dead_code)]
+                unsafe fn new() -> Self {
+                    Self {}
+                }
+
+                /// Allow the channel to generate DMA requests.
+                #[allow(dead_code)]
+                pub fn listen_dma(&self) {
+                    let regs = unsafe { &*<$TY>::ptr() };
+                    regs.dier.modify(|_, w| w.[< cc $index de >]().set_bit());
+                }
+
+                /// Operate the channel as an output-compare.
+                ///
+                /// # Args
+                /// * `value` - The value to compare the sampling timer's counter against.
+                #[allow(dead_code)]
+                pub fn to_output_compare(&self, value: $size) {
+                    let regs = unsafe { &*<$TY>::ptr() };
+                    let arr = regs.arr.read().bits() as $size;
+                    assert!(value <= arr);
+                    regs.ccr[$index - 1].write(|w| w.ccr().bits(value));
+                    regs.[< $ccmrx _output >]()
+                        .modify(|_, w| unsafe { w.[< cc $index s >]().bits(0) });
+                }
+
+                /// Operate the channel in input-capture mode.
+                ///
+                /// # Args
+                /// * `input` - The input source for the input capture event.
+                #[allow(dead_code)]
+                pub fn into_input_capture(self, input: [< CaptureSource $index >]) -> [< Channel $index InputCapture >]{
+                    let regs = unsafe { &*<$TY>::ptr() };
+
+                    regs.[< $ccmrx _input >]().modify(|_, w| w.[< cc $index s>]().variant(input));
+
+                    [< Channel $index InputCapture >] {}
+                }
+            }
+
+            impl [< Channel $index InputCapture >] {
+                /// Get the latest capture from the channel.
+                #[allow(dead_code)]
+                pub fn latest_capture(&mut self) -> Result<Option<$size>, Option<$size>> {
+                    // Note(unsafe): This channel owns all access to the specific timer channel.
+                    // Only atomic operations on completed on the timer registers.
+                    let regs = unsafe { &*<$TY>::ptr() };
+
+                    if regs.sr.read().[< cc $index if >]().bit_is_set() {
+                        // Read the capture value. Reading the captured value clears the flag in the
+                        // status register automatically.
+                        let result = regs.ccr[$index - 1].read().ccr().bits();
+
+                        // Read SR again to check for a potential over-capture. Return an error in
+                        // that case.
+                        let sr = regs.sr.read();
+                        if sr.[< cc $index of >]().bit_is_set() {
+                            // NOTE(unsafe) write-back is safe
+                            regs.sr.write(|w| unsafe { w.bits(sr.bits()) }.[< cc $index of >]().clear_bit());
+                            Err(Some(result))
+                        } else {
+                            Ok(Some(result))
+                        }
+                    } else {
+                        Ok(None)
+                    }
+                }
+
+                /// Allow the channel to generate DMA requests.
+                #[allow(dead_code)]
+                pub fn listen_dma(&self) {
+                    // Note(unsafe): This channel owns all access to the specific timer channel.
+                    // Only atomic operations on completed on the timer registers.
+                    let regs = unsafe { &*<$TY>::ptr() };
+                    regs.dier.modify(|_, w| w.[< cc $index de >]().set_bit());
+                }
+
+                /// Enable the input capture to begin capturing timer values.
+                #[allow(dead_code)]
+                pub fn enable(&mut self) {
+                    // Read the latest input capture to clear any pending data in the register.
+                    let _ = self.latest_capture();
+
+                    // Note(unsafe): This channel owns all access to the specific timer channel.
+                    // Only atomic operations on completed on the timer registers.
+                    let regs = unsafe { &*<$TY>::ptr() };
+                    regs.ccer.modify(|_, w| w.[< cc $index e >]().set_bit());
+                }
+
+                /// Check if an over-capture event has occurred.
+                #[allow(dead_code)]
+                pub fn check_overcapture(&self) -> bool {
+                    // Note(unsafe): This channel owns all access to the specific timer channel.
+                    // Only atomic operations on completed on the timer registers.
+                    let regs = unsafe { &*<$TY>::ptr() };
+                    regs.sr.read().[< cc $index of >]().bit_is_set()
+                }
+
+                /// Configure the input capture input pre-filter.
+                ///
+                /// # Args
+                /// * `filter` - The desired input filter stage configuration. Defaults to disabled.
+                #[allow(dead_code)]
+                pub fn configure_filter(&mut self, filter: super::InputFilter) {
+                    // Note(unsafe): This channel owns all access to the specific timer channel.
+                    // Only atomic operations on completed on the timer registers.
+                    let regs = unsafe { &*<$TY>::ptr() };
+                    regs.[< $ccmrx _input >]().modify(|_, w| w.[< ic $index f >]().bits(filter as u8));
+                }
+
+                /// Configure the input capture prescaler.
+                ///
+                /// # Args
+                /// * `psc` - Prescaler exponent.
+                #[allow(dead_code)]
+                pub fn configure_prescaler(&mut self, prescaler: super::Prescaler) {
+                    // Note(unsafe): This channel owns all access to the specific timer channel.
+                    // Only atomic operations on completed on the timer registers.
+                    let regs = unsafe { &*<$TY>::ptr() };
+                    // Note(unsafe): Enum values are all valid.
+                    #[allow(unused_unsafe)]
+                    regs.[< $ccmrx _input >]().modify(|_, w| unsafe {
+                        w.[< ic $index psc >]().bits(prescaler as u8)});
+                }
+            }
+
+            // Note(unsafe): This manually implements DMA support for input-capture channels. This
+            // is safe as it is only completed once per channel and each DMA request is allocated to
+            // each channel as the owner.
+            unsafe impl TargetAddress<PeripheralToMemory> for [< Channel $index InputCapture >] {
+                type MemSize = $size;
+
+                const REQUEST_LINE: Option<u8> = Some(DMAReq::[< $TY:camel Ch $index >]as u8);
+
+                fn address(&self) -> usize {
+                    let regs = unsafe { &*<$TY>::ptr() };
+                    &regs.ccr[$index - 1] as *const _ as usize
+                }
+            }
+        }
+    };
+}
+
+timer_channels!(SamplingTimer, TIM2, u32);
+timer_channels!(ShadowSamplingTimer, TIM3, u16);
+
+timer_channels!(TimestampTimer, TIM5, u32);
+timer_channels!(PounderTimestampTimer, TIM8, u16);
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/lib.rs.html b/firmware/src/stabilizer/lib.rs.html new file mode 100644 index 0000000000..3ca786ceaf --- /dev/null +++ b/firmware/src/stabilizer/lib.rs.html @@ -0,0 +1,11 @@ +lib.rs - source
1
+2
+3
+4
+5
+
#![no_std]
+#![cfg_attr(feature = "nightly", feature(core_intrinsics))]
+
+pub mod hardware;
+pub mod net;
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/net/data_stream.rs.html b/firmware/src/stabilizer/net/data_stream.rs.html new file mode 100644 index 0000000000..ae4ff25ad4 --- /dev/null +++ b/firmware/src/stabilizer/net/data_stream.rs.html @@ -0,0 +1,753 @@ +data_stream.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+
//! Stabilizer data stream capabilities
+//!
+//! # Design
+//! Data streamining utilizes UDP packets to send live data streams at high throughput.
+//! Packets are always sent in a best-effort fashion, and data may be dropped.
+//!
+//! Stabilizer organizes livestreamed data into batches within a "Frame" that will be sent as a UDP
+//! packet. Each frame consits of a header followed by sequential batch serializations. The packet
+//! header is constant for all streaming capabilities, but the serialization format after the header
+//! is application-defined.
+//!
+//! ## Frame Header
+//! The header consists of the following, all in little-endian.
+//!
+//! * **Magic word 0x057B** (u16): a constant to identify Stabilizer streaming data.
+//! * **Format Code** (u8): a unique ID that indicates the serialization format of each batch of data
+//!   in the frame. Refer to [StreamFormat] for further information.
+//! * **Batch Size** (u8): the number of samples in each batch of data.
+//! * **Sequence Number** (u32): an the sequence number of the first batch in the frame.
+//!   This can be used to determine if and how many stream batches are lost.
+//!
+//! # Example
+//! A sample Python script is available in `scripts/stream_throughput.py` to demonstrate reception
+//! of livestreamed data.
+use core::mem::MaybeUninit;
+use heapless::{
+    pool::{Box, Init, Pool, Uninit},
+    spsc::{Consumer, Producer, Queue},
+};
+use num_enum::IntoPrimitive;
+use serde::{Deserialize, Serialize};
+use smoltcp_nal::embedded_nal::{IpAddr, Ipv4Addr, SocketAddr, UdpClientStack};
+
+use super::NetworkReference;
+
+// Magic first bytes indicating a UDP frame of straming data
+const MAGIC: u16 = 0x057B;
+
+// The size of the header, calculated in words.
+// The header has a 16-bit magic word, an 8-bit format, 8-bit batch-size, and 32-bit sequence
+// number, which corresponds to 8 bytes.
+const HEADER_SIZE: usize = 8;
+
+// The number of frames that can be buffered.
+const FRAME_COUNT: usize = 4;
+
+// The size of each livestream frame in bytes.
+// Ensure the resulting ethernet frame is within the MTU:
+// 1500 MTU - 40 IP6 header - 20 UDP header
+const FRAME_SIZE: usize = 1500 - 40 - 20 - HEADER_SIZE;
+
+// The size of the frame queue must be at least as large as the number of frame buffers. Every
+// allocated frame buffer should fit in the queue.
+const FRAME_QUEUE_SIZE: usize = FRAME_COUNT * 2;
+
+// Static storage used for a heapless::Pool of frame buffers.
+static mut FRAME_DATA: [u8; core::mem::size_of::<u8>()
+    * FRAME_SIZE
+    * FRAME_COUNT] = [0; core::mem::size_of::<u8>() * FRAME_SIZE * FRAME_COUNT];
+
+type Frame = [MaybeUninit<u8>; FRAME_SIZE];
+
+/// Represents the destination for the UDP stream to send data to.
+///
+/// # Miniconf
+/// `{"ip": <addr>, "port": <port>}`
+///
+/// * `<addr>` is an array of 4 bytes. E.g. `[192, 168, 0, 1]`
+/// * `<port>` is any unsigned 16-bit value.
+///
+/// ## Example
+/// `{"ip": [192, 168,0, 1], "port": 1111}`
+#[derive(Copy, Clone, Debug, Serialize, Deserialize, Default)]
+pub struct StreamTarget {
+    pub ip: [u8; 4],
+    pub port: u16,
+}
+
+/// Specifies the format of streamed data
+#[repr(u8)]
+#[derive(Debug, Copy, Clone, PartialEq, Eq, IntoPrimitive)]
+pub enum StreamFormat {
+    /// Reserved, unused format specifier.
+    Unknown = 0,
+
+    /// Streamed data contains ADC0, ADC1, DAC0, and DAC1 sequentially in little-endian format.
+    ///
+    /// # Example
+    /// With a batch size of 2, the serialization would take the following form:
+    /// ```
+    /// <ADC0[0]> <ADC0[1]> <ADC1[0]> <ADC1[1]> <DAC0[0]> <DAC0[1]> <DAC1[0]> <DAC1[1]>
+    /// ```
+    AdcDacData = 1,
+
+    /// Streamed data in FLS (fiber length stabilization) format. See the FLS application for
+    /// detailed definition.
+    Fls = 2,
+}
+
+impl From<StreamTarget> for SocketAddr {
+    fn from(target: StreamTarget) -> SocketAddr {
+        SocketAddr::new(
+            IpAddr::V4(Ipv4Addr::new(
+                target.ip[0],
+                target.ip[1],
+                target.ip[2],
+                target.ip[3],
+            )),
+            target.port,
+        )
+    }
+}
+
+/// Configure streaming on a device.
+///
+/// # Args
+/// * `stack` - A reference to the shared network stack.
+///
+/// # Returns
+/// (generator, stream) where `generator` can be used to enqueue "batches" for transmission. The
+/// `stream` is the logically consumer (UDP transmitter) of the enqueued data.
+pub fn setup_streaming(
+    stack: NetworkReference,
+) -> (FrameGenerator, DataStream) {
+    // The queue needs to be at least as large as the frame count to ensure that every allocated
+    // frame can potentially be enqueued for transmission.
+    let queue =
+        cortex_m::singleton!(: Queue<StreamFrame, FRAME_QUEUE_SIZE> = Queue::new())
+            .unwrap();
+    let (producer, consumer) = queue.split();
+
+    let frame_pool = cortex_m::singleton!(: Pool<Frame> = Pool::new()).unwrap();
+
+    // Note(unsafe): We guarantee that FRAME_DATA is only accessed once in this function.
+    let memory = unsafe { &mut FRAME_DATA };
+    frame_pool.grow(memory);
+
+    let generator = FrameGenerator::new(producer, frame_pool);
+
+    let stream = DataStream::new(stack, consumer, frame_pool);
+
+    (generator, stream)
+}
+
+#[derive(Debug)]
+struct StreamFrame {
+    buffer: Box<Frame, Init>,
+    offset: usize,
+}
+
+impl StreamFrame {
+    pub fn new(
+        buffer: Box<Frame, Uninit>,
+        format_id: u8,
+        batch_size: u8,
+        sequence_number: u32,
+    ) -> Self {
+        let mut buffer = buffer.init([MaybeUninit::uninit(); FRAME_SIZE]);
+
+        for (offset, byte) in MAGIC
+            .to_le_bytes()
+            .iter()
+            .chain(&[format_id, batch_size])
+            .chain(sequence_number.to_le_bytes().iter())
+            .enumerate()
+        {
+            buffer[offset].write(*byte);
+        }
+
+        Self {
+            buffer,
+            offset: HEADER_SIZE,
+        }
+    }
+
+    pub fn add_batch<F, const T: usize>(&mut self, mut f: F)
+    where
+        F: FnMut(&mut [MaybeUninit<u8>]),
+    {
+        f(&mut self.buffer[self.offset..self.offset + T]);
+
+        self.offset += T;
+    }
+
+    pub fn is_full<const T: usize>(&self) -> bool {
+        self.offset + T > self.buffer.len()
+    }
+
+    pub fn finish(&self) -> &[MaybeUninit<u8>] {
+        &self.buffer[..self.offset]
+    }
+}
+
+/// The data generator for a stream.
+pub struct FrameGenerator {
+    queue: Producer<'static, StreamFrame, FRAME_QUEUE_SIZE>,
+    pool: &'static Pool<Frame>,
+    current_frame: Option<StreamFrame>,
+    sequence_number: u32,
+    format: u8,
+    batch_size: u8,
+}
+
+impl FrameGenerator {
+    fn new(
+        queue: Producer<'static, StreamFrame, FRAME_QUEUE_SIZE>,
+        pool: &'static Pool<Frame>,
+    ) -> Self {
+        Self {
+            queue,
+            pool,
+            batch_size: 0,
+            format: StreamFormat::Unknown.into(),
+            current_frame: None,
+            sequence_number: 0,
+        }
+    }
+
+    /// Configure the format of the stream.
+    ///
+    /// # Note:
+    /// This function shall only be called once upon initializing streaming
+    ///
+    /// # Args
+    /// * `format` - The desired format of the stream.
+    /// * `batch_size` - The number of samples in each data batch. See
+    /// [crate::hardware::design_parameters::SAMPLE_BUFFER_SIZE]
+    #[doc(hidden)]
+    pub(crate) fn configure(&mut self, format: impl Into<u8>, batch_size: u8) {
+        self.format = format.into();
+        self.batch_size = batch_size;
+    }
+
+    /// Add a batch to the current stream frame.
+    ///
+    /// # Args
+    /// * `f` - A closure that will be provided the buffer to write batch data into. The buffer will
+    ///   be the size of the `T` template argument.
+    pub fn add<F, const T: usize>(&mut self, f: F)
+    where
+        F: FnMut(&mut [MaybeUninit<u8>]),
+    {
+        let sequence_number = self.sequence_number;
+        self.sequence_number = self.sequence_number.wrapping_add(1);
+
+        if self.current_frame.is_none() {
+            if let Some(buffer) = self.pool.alloc() {
+                self.current_frame.replace(StreamFrame::new(
+                    buffer,
+                    self.format,
+                    self.batch_size,
+                    sequence_number,
+                ));
+            } else {
+                return;
+            }
+        }
+
+        // Note(unwrap): We ensure the frame is present above.
+        let current_frame = self.current_frame.as_mut().unwrap();
+
+        current_frame.add_batch::<_, T>(f);
+
+        if current_frame.is_full::<T>() {
+            // Note(unwrap): The queue is designed to be at least as large as the frame buffer
+            // count, so this enqueue should always succeed.
+            self.queue
+                .enqueue(self.current_frame.take().unwrap())
+                .unwrap();
+        }
+    }
+}
+
+/// The "consumer" portion of the data stream.
+///
+/// # Note
+/// This is responsible for consuming data and sending it over UDP.
+pub struct DataStream {
+    stack: NetworkReference,
+    socket: Option<<NetworkReference as UdpClientStack>::UdpSocket>,
+    queue: Consumer<'static, StreamFrame, FRAME_QUEUE_SIZE>,
+    frame_pool: &'static Pool<Frame>,
+    remote: SocketAddr,
+}
+
+impl DataStream {
+    /// Construct a new data streamer.
+    ///
+    /// # Args
+    /// * `stack` - A reference to the shared network stack.
+    /// * `consumer` - The read side of the queue containing data to transmit.
+    /// * `frame_pool` - The Pool to return stream frame objects into.
+    fn new(
+        stack: NetworkReference,
+        consumer: Consumer<'static, StreamFrame, FRAME_QUEUE_SIZE>,
+        frame_pool: &'static Pool<Frame>,
+    ) -> Self {
+        Self {
+            stack,
+            socket: None,
+            remote: StreamTarget::default().into(),
+            queue: consumer,
+            frame_pool,
+        }
+    }
+
+    fn close(&mut self) {
+        if let Some(socket) = self.socket.take() {
+            log::info!("Closing stream");
+            // Note(unwrap): We guarantee that the socket is available above.
+            self.stack.close(socket).unwrap();
+        }
+    }
+
+    // Open new socket.
+    fn open(&mut self) -> Result<(), ()> {
+        // If there is already a socket of if remote address is unspecified,
+        // do not open a new socket.
+        if self.socket.is_some() || self.remote.ip().is_unspecified() {
+            return Err(());
+        }
+
+        log::info!("Opening stream");
+
+        let mut socket = self.stack.socket().or(Err(()))?;
+
+        // Note(unwrap): We only connect with a new socket, so it is guaranteed to not already be
+        // bound.
+        self.stack.connect(&mut socket, self.remote).unwrap();
+
+        self.socket.replace(socket);
+
+        Ok(())
+    }
+
+    /// Configure the remote endpoint of the stream.
+    ///
+    /// # Args
+    /// * `remote` - The destination to send stream data to.
+    pub fn set_remote(&mut self, remote: SocketAddr) {
+        // Close socket to be reopened if the remote has changed.
+        if remote != self.remote {
+            self.close();
+        }
+        self.remote = remote;
+    }
+
+    /// Process any data for transmission.
+    pub fn process(&mut self) {
+        match self.socket.as_mut() {
+            None => {
+                // If there's no socket available, try to connect to our remote.
+                if self.open().is_ok() {
+                    // If we just successfully opened the socket, flush old data from queue.
+                    while let Some(frame) = self.queue.dequeue() {
+                        self.frame_pool.free(frame.buffer);
+                    }
+                }
+            }
+            Some(handle) => {
+                if let Some(frame) = self.queue.dequeue() {
+                    // Transmit the frame and return it to the pool.
+                    let buf = frame.finish();
+                    let data = unsafe {
+                        core::slice::from_raw_parts(
+                            buf.as_ptr() as *const u8,
+                            buf.len() * core::mem::size_of::<MaybeUninit<u8>>(),
+                        )
+                    };
+                    self.stack.send(handle, data).ok();
+                    self.frame_pool.free(frame.buffer)
+                }
+            }
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/net/mod.rs.html b/firmware/src/stabilizer/net/mod.rs.html new file mode 100644 index 0000000000..b82ae3429b --- /dev/null +++ b/firmware/src/stabilizer/net/mod.rs.html @@ -0,0 +1,425 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+
///! Stabilizer network management module
+///!
+///! # Design
+///! The stabilizer network architecture supports numerous layers to permit transmission of
+///! telemetry (via MQTT), configuration of run-time settings (via MQTT + Miniconf), and live data
+///! streaming over raw UDP/TCP sockets. This module encompasses the main processing routines
+///! related to Stabilizer networking operations.
+pub use heapless;
+pub use miniconf;
+pub use serde;
+
+pub mod data_stream;
+pub mod network_processor;
+pub mod telemetry;
+
+use crate::hardware::{EthernetPhy, NetworkManager, NetworkStack, SystemTimer};
+use data_stream::{DataStream, FrameGenerator};
+use minimq::embedded_nal::IpAddr;
+use network_processor::NetworkProcessor;
+use telemetry::TelemetryClient;
+
+use core::fmt::Write;
+use heapless::String;
+use miniconf::Miniconf;
+use serde::Serialize;
+use smoltcp_nal::embedded_nal::SocketAddr;
+
+pub type NetworkReference =
+    smoltcp_nal::shared::NetworkStackProxy<'static, NetworkStack>;
+
+/// The default MQTT broker IP address if unspecified.
+pub const DEFAULT_MQTT_BROKER: [u8; 4] = [10, 34, 16, 10];
+
+pub enum UpdateState {
+    NoChange,
+    Updated,
+}
+
+pub enum NetworkState {
+    SettingsChanged(String<128>),
+    Updated,
+    NoChange,
+}
+
+/// A structure of Stabilizer's default network users.
+pub struct NetworkUsers<S: Default + Miniconf + Clone, T: Serialize> {
+    pub miniconf: miniconf::MqttClient<S, NetworkReference, SystemTimer, 512>,
+    pub processor: NetworkProcessor,
+    stream: DataStream,
+    generator: Option<FrameGenerator>,
+    pub telemetry: TelemetryClient<T>,
+}
+
+impl<S, T> NetworkUsers<S, T>
+where
+    S: Default + Miniconf + Clone,
+    T: Serialize,
+{
+    /// Construct Stabilizer's default network users.
+    ///
+    /// # Args
+    /// * `stack` - The network stack that will be used to share with all network users.
+    /// * `phy` - The ethernet PHY connecting the network.
+    /// * `clock` - A `SystemTimer` implementing `Clock`.
+    /// * `app` - The name of the application.
+    /// * `mac` - The MAC address of the network.
+    /// * `broker` - The IP address of the MQTT broker to use.
+    ///
+    /// # Returns
+    /// A new struct of network users.
+    pub fn new(
+        stack: NetworkStack,
+        phy: EthernetPhy,
+        clock: SystemTimer,
+        app: &str,
+        mac: smoltcp_nal::smoltcp::wire::EthernetAddress,
+        broker: IpAddr,
+    ) -> Self {
+        let stack_manager =
+            cortex_m::singleton!(: NetworkManager = NetworkManager::new(stack))
+                .unwrap();
+
+        let processor =
+            NetworkProcessor::new(stack_manager.acquire_stack(), phy);
+
+        let prefix = get_device_prefix(app, mac);
+
+        let settings = miniconf::MqttClient::new(
+            stack_manager.acquire_stack(),
+            &get_client_id(app, "settings", mac),
+            &prefix,
+            broker,
+            clock,
+            S::default(),
+        )
+        .unwrap();
+
+        let telemetry = TelemetryClient::new(
+            stack_manager.acquire_stack(),
+            clock,
+            &get_client_id(app, "tlm", mac),
+            &prefix,
+            broker,
+        );
+
+        let (generator, stream) =
+            data_stream::setup_streaming(stack_manager.acquire_stack());
+
+        NetworkUsers {
+            miniconf: settings,
+            processor,
+            telemetry,
+            stream,
+            generator: Some(generator),
+        }
+    }
+
+    /// Enable live data streaming.
+    ///
+    /// # Args
+    /// * `format` - A unique u8 code indicating the format of the data.
+    pub fn configure_streaming(
+        &mut self,
+        format: impl Into<u8>,
+        batch_size: u8,
+    ) -> FrameGenerator {
+        let mut generator = self.generator.take().unwrap();
+        generator.configure(format, batch_size);
+        generator
+    }
+
+    /// Direct the stream to the provided remote target.
+    ///
+    /// # Args
+    /// * `remote` - The destination for the streamed data.
+    pub fn direct_stream(&mut self, remote: SocketAddr) {
+        if self.generator.is_none() {
+            self.stream.set_remote(remote);
+        }
+    }
+
+    /// Update and process all of the network users state.
+    ///
+    /// # Returns
+    /// An indication if any of the network users indicated a state change.
+    /// The SettingsChanged option contains the path of the settings that changed.
+    pub fn update(&mut self) -> NetworkState {
+        // Update the MQTT clients.
+        self.telemetry.update();
+
+        // Update the data stream.
+        if self.generator.is_none() {
+            self.stream.process();
+        }
+
+        // Poll for incoming data.
+        let poll_result = match self.processor.update() {
+            UpdateState::NoChange => NetworkState::NoChange,
+            UpdateState::Updated => NetworkState::Updated,
+        };
+
+        // `settings_path` has to be at least as large as `miniconf::mqtt_client::MAX_TOPIC_LENGTH`.
+        let mut settings_path: String<128> = String::new();
+        match self.miniconf.handled_update(|path, old, new| {
+            settings_path = path.into();
+            *old = new.clone();
+            Result::<(), &'static str>::Ok(())
+        }) {
+            Ok(true) => NetworkState::SettingsChanged(settings_path),
+            _ => poll_result,
+        }
+    }
+}
+
+/// Get an MQTT client ID for a client.
+///
+/// # Args
+/// * `app` - The name of the application
+/// * `client` - The unique tag of the client
+/// * `mac` - The MAC address of the device.
+///
+/// # Returns
+/// A client ID that may be used for MQTT client identification.
+fn get_client_id(
+    app: &str,
+    client: &str,
+    mac: smoltcp_nal::smoltcp::wire::EthernetAddress,
+) -> String<64> {
+    let mut identifier = String::new();
+    write!(&mut identifier, "{app}-{mac}-{client}").unwrap();
+    identifier
+}
+
+/// Get the MQTT prefix of a device.
+///
+/// # Args
+/// * `app` - The name of the application that is executing.
+/// * `mac` - The ethernet MAC address of the device.
+///
+/// # Returns
+/// The MQTT prefix used for this device.
+pub fn get_device_prefix(
+    app: &str,
+    mac: smoltcp_nal::smoltcp::wire::EthernetAddress,
+) -> String<128> {
+    // Note(unwrap): The mac address + binary name must be short enough to fit into this string. If
+    // they are defined too long, this will panic and the device will fail to boot.
+    let mut prefix: String<128> = String::new();
+    write!(&mut prefix, "dt/sinara/{app}/{mac}").unwrap();
+
+    prefix
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/net/network_processor.rs.html b/firmware/src/stabilizer/net/network_processor.rs.html new file mode 100644 index 0000000000..fbca19ef6c --- /dev/null +++ b/firmware/src/stabilizer/net/network_processor.rs.html @@ -0,0 +1,147 @@ +network_processor.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+
///! Task to process network hardware.
+///!
+///! # Design
+///! The network processir is a small taks to regularly process incoming data over ethernet, handle
+///! the ethernet PHY state, and reset the network as appropriate.
+use super::{NetworkReference, UpdateState};
+use crate::hardware::EthernetPhy;
+
+/// Processor for managing network hardware.
+pub struct NetworkProcessor {
+    pub stack: NetworkReference,
+    phy: EthernetPhy,
+    network_was_reset: bool,
+}
+
+impl NetworkProcessor {
+    /// Construct a new network processor.
+    ///
+    /// # Args
+    /// * `stack` - A reference to the shared network stack
+    /// * `phy` - The ethernet PHY used for the network.
+    ///
+    /// # Returns
+    /// The newly constructed processor.
+    pub fn new(stack: NetworkReference, phy: EthernetPhy) -> Self {
+        Self {
+            stack,
+            phy,
+            network_was_reset: false,
+        }
+    }
+
+    /// Handle ethernet link connection status.
+    ///
+    /// # Note
+    /// This may take non-trivial amounts of time to communicate with the PHY. As such, this should
+    /// only be called as often as necessary (e.g. once per second or so).
+    pub fn handle_link(&mut self) {
+        // If the PHY indicates there's no more ethernet link, reset the DHCP server in the network
+        // stack.
+        let link_up = self.phy.poll_link();
+        match (link_up, self.network_was_reset) {
+            (true, true) => {
+                log::warn!("Network link UP");
+                self.network_was_reset = false;
+            }
+            // Only reset the network stack once per link reconnection. This prevents us from
+            // sending an excessive number of DHCP requests.
+            (false, false) => {
+                log::warn!("Network link DOWN");
+                self.network_was_reset = true;
+                self.stack.lock(|stack| stack.handle_link_reset());
+            }
+            _ => {}
+        };
+    }
+
+    /// Process and update the state of the network.
+    ///
+    /// # Note
+    /// This function should be called regularly before other network tasks to update the state of
+    /// all relevant network sockets.
+    ///
+    /// # Returns
+    /// An update state corresponding with any changes in the underlying network.
+    pub fn update(&mut self) -> UpdateState {
+        match self.stack.lock(|stack| stack.poll()) {
+            Ok(true) => UpdateState::Updated,
+            Ok(false) => UpdateState::NoChange,
+            Err(_) => UpdateState::Updated,
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/src/stabilizer/net/telemetry.rs.html b/firmware/src/stabilizer/net/telemetry.rs.html new file mode 100644 index 0000000000..9f17116556 --- /dev/null +++ b/firmware/src/stabilizer/net/telemetry.rs.html @@ -0,0 +1,339 @@ +telemetry.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+
///! Stabilizer Telemetry Capabilities
+///!
+///! # Design
+///! Telemetry is reported regularly using an MQTT client. All telemetry is reported in SI units
+///! using standard JSON format.
+///!
+///! In order to report ADC/DAC codes generated during the DSP routines, a telemetry buffer is
+///! employed to track the latest codes. Converting these codes to SI units would result in
+///! repetitive and unnecessary calculations within the DSP routine, slowing it down and limiting
+///! sampling frequency. Instead, the raw codes are stored and the telemetry is generated as
+///! required immediately before transmission. This ensures that any slower computation required
+///! for unit conversion can be off-loaded to lower priority tasks.
+use heapless::{String, Vec};
+use serde::Serialize;
+
+use super::NetworkReference;
+use crate::hardware::{adc::AdcCode, afe::Gain, dac::DacCode, SystemTimer};
+use minimq::embedded_nal::IpAddr;
+
+/// The telemetry client for reporting telemetry data over MQTT.
+pub struct TelemetryClient<T: Serialize> {
+    mqtt: minimq::Minimq<NetworkReference, SystemTimer, 1024, 1>,
+    telemetry_topic: String<128>,
+    _telemetry: core::marker::PhantomData<T>,
+}
+
+/// The telemetry buffer is used for storing sample values during execution.
+///
+/// # Note
+/// These values can be converted to SI units immediately before reporting to save processing time.
+/// This allows for the DSP process to continually update the values without incurring significant
+/// run-time overhead during conversion to SI units.
+#[derive(Copy, Clone)]
+pub struct TelemetryBuffer {
+    /// The latest input sample on ADC0/ADC1.
+    pub adcs: [AdcCode; 2],
+    /// The latest output code on DAC0/DAC1.
+    pub dacs: [DacCode; 2],
+    /// The latest digital input states during processing.
+    pub digital_inputs: [bool; 2],
+}
+
+/// The telemetry structure is data that is ultimately reported as telemetry over MQTT.
+///
+/// # Note
+/// This structure should be generated on-demand by the buffer when required to minimize conversion
+/// overhead.
+#[derive(Serialize)]
+pub struct Telemetry {
+    /// Most recent input voltage measurement.
+    pub adcs: [f32; 2],
+
+    /// Most recent output voltage.
+    pub dacs: [f32; 2],
+
+    /// Most recent digital input assertion state.
+    pub digital_inputs: [bool; 2],
+
+    /// The CPU temperature in degrees Celsius.
+    pub cpu_temp: f32,
+}
+
+impl Default for TelemetryBuffer {
+    fn default() -> Self {
+        Self {
+            adcs: [AdcCode(0), AdcCode(0)],
+            dacs: [DacCode(0), DacCode(0)],
+            digital_inputs: [false, false],
+        }
+    }
+}
+
+impl TelemetryBuffer {
+    /// Convert the telemetry buffer to finalized, SI-unit telemetry for reporting.
+    ///
+    /// # Args
+    /// * `afe0` - The current AFE configuration for channel 0.
+    /// * `afe1` - The current AFE configuration for channel 1.
+    /// * `cpu_temp` - The current CPU temperature.
+    ///
+    /// # Returns
+    /// The finalized telemetry structure that can be serialized and reported.
+    pub fn finalize(self, afe0: Gain, afe1: Gain, cpu_temp: f32) -> Telemetry {
+        let in0_volts = Into::<f32>::into(self.adcs[0]) / afe0.as_multiplier();
+        let in1_volts = Into::<f32>::into(self.adcs[1]) / afe1.as_multiplier();
+
+        Telemetry {
+            cpu_temp,
+            adcs: [in0_volts, in1_volts],
+            dacs: [self.dacs[0].into(), self.dacs[1].into()],
+            digital_inputs: self.digital_inputs,
+        }
+    }
+}
+
+impl<T: Serialize> TelemetryClient<T> {
+    /// Construct a new telemetry client.
+    ///
+    /// # Args
+    /// * `stack` - A reference to the (shared) underlying network stack.
+    /// * `clock` - A `SystemTimer` implementing `Clock`.
+    /// * `client_id` - The MQTT client ID of the telemetry client.
+    /// * `prefix` - The device prefix to use for MQTT telemetry reporting.
+    /// * `broker` - The IP address of the MQTT broker to use.
+    ///
+    /// # Returns
+    /// A new telemetry client.
+    pub fn new(
+        stack: NetworkReference,
+        clock: SystemTimer,
+        client_id: &str,
+        prefix: &str,
+        broker: IpAddr,
+    ) -> Self {
+        let mqtt =
+            minimq::Minimq::new(broker, client_id, stack, clock).unwrap();
+
+        let mut telemetry_topic: String<128> = String::from(prefix);
+        telemetry_topic.push_str("/telemetry").unwrap();
+
+        Self {
+            mqtt,
+            telemetry_topic,
+            _telemetry: core::marker::PhantomData::default(),
+        }
+    }
+
+    /// Publish telemetry over MQTT
+    ///
+    /// # Note
+    /// Telemetry is reported in a "best-effort" fashion. Failure to transmit telemetry will cause
+    /// it to be silently dropped.
+    ///
+    /// # Args
+    /// * `telemetry` - The telemetry to report
+    pub fn publish(&mut self, telemetry: &T) {
+        let telemetry: Vec<u8, 512> =
+            miniconf::serde_json_core::to_vec(telemetry).unwrap();
+        self.mqtt
+            .client()
+            .publish(
+                minimq::Publication::new(&telemetry)
+                    .topic(&self.telemetry_topic)
+                    .finish()
+                    .unwrap(),
+            )
+            .map_err(|e| log::error!("Telemetry publishing error: {:?}", e))
+            .ok();
+    }
+
+    /// Update the telemetry client
+    ///
+    /// # Note
+    /// This function is provided to force the underlying MQTT state machine to process incoming
+    /// and outgoing messages. Without this, the client will never connect to the broker. This
+    /// should be called regularly.
+    pub fn update(&mut self) {
+        match self.mqtt.poll(|_client, _topic, _message, _properties| {}) {
+            Err(minimq::Error::Network(
+                smoltcp_nal::NetworkError::TcpConnectionFailure(
+                    smoltcp_nal::smoltcp::socket::tcp::ConnectError::Unaddressable
+                ),
+            )) => {}
+
+            Err(error) => log::info!("Unexpected error: {:?}", error),
+            _ => {}
+        }
+    }
+}
+
\ No newline at end of file diff --git a/firmware/stabilizer/all.html b/firmware/stabilizer/all.html new file mode 100644 index 0000000000..6522987ba4 --- /dev/null +++ b/firmware/stabilizer/all.html @@ -0,0 +1 @@ +List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Type Definitions

Constants

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/adc/index.html b/firmware/stabilizer/hardware/adc/index.html new file mode 100644 index 0000000000..a07f5a322c --- /dev/null +++ b/firmware/stabilizer/hardware/adc/index.html @@ -0,0 +1 @@ +stabilizer::hardware::adc - Rust

Module stabilizer::hardware::adc

source ·

Structs

  • Represents data associated with ADC.
  • Represents data associated with ADC.
  • A type representing an ADC sample.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/adc/sidebar-items.js b/firmware/stabilizer/hardware/adc/sidebar-items.js new file mode 100644 index 0000000000..a72b18c325 --- /dev/null +++ b/firmware/stabilizer/hardware/adc/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Adc0Input","Adc1Input","AdcCode"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/adc/struct.Adc0Input.html b/firmware/stabilizer/hardware/adc/struct.Adc0Input.html new file mode 100644 index 0000000000..c5471ddef7 --- /dev/null +++ b/firmware/stabilizer/hardware/adc/struct.Adc0Input.html @@ -0,0 +1,39 @@ +Adc0Input in stabilizer::hardware::adc - Rust
pub struct Adc0Input { /* private fields */ }
Expand description

Represents data associated with ADC.

+

Implementations§

source§

impl Adc0Input

source

pub fn new( + spi: Spi<SPI2, Enabled, u16>, + trigger_stream: Stream0<DMA1>, + data_stream: Stream1<DMA1>, + clear_stream: Stream2<DMA1>, + trigger_channel: Channel1, + clear_channel: Channel1, + batch_size: usize +) -> Self

Construct the ADC input channel.

+
Args
+
    +
  • spi - The SPI interface used to communicate with the ADC.
  • +
  • trigger_stream - The DMA stream used to trigger each ADC transfer by +writing a word into the SPI TX FIFO.
  • +
  • data_stream - The DMA stream used to read samples received over SPI into a data buffer.
  • +
  • clear_stream - The DMA stream used to clear the EOT flag in the SPI peripheral.
  • +
  • trigger_channel - The ADC sampling timer output compare channel for read triggers.
  • +
  • clear_channel - The shadow sampling timer output compare channel used for +clearing the SPI EOT flag.
  • +
+
source

pub fn start(&mut self)

Enable the ADC DMA transfer sequence.

+
source

pub fn with_buffer<F, R>(&mut self, f: F) -> Result<R, DMAError>where + F: FnOnce(&mut &'static mut [u16]) -> R,

Wait for the transfer of the currently active buffer to complete, +then call a function on the now inactive buffer and acknowledge the +transfer complete flag.

+

NOTE(unsafe): Memory safety and access ordering is not guaranteed +(see the HAL DMA docs).

+

Trait Implementations§

source§

impl Mutex for Adc0Input

§

type Data = &'static mut [u16]

Data protected by the mutex.
source§

fn lock<R>(&mut self, f: impl FnOnce(&mut Self::Data) -> R) -> R

Creates a critical section and grants temporary access to the protected data.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/adc/struct.Adc1Input.html b/firmware/stabilizer/hardware/adc/struct.Adc1Input.html new file mode 100644 index 0000000000..80f590df2f --- /dev/null +++ b/firmware/stabilizer/hardware/adc/struct.Adc1Input.html @@ -0,0 +1,39 @@ +Adc1Input in stabilizer::hardware::adc - Rust
pub struct Adc1Input { /* private fields */ }
Expand description

Represents data associated with ADC.

+

Implementations§

source§

impl Adc1Input

source

pub fn new( + spi: Spi<SPI3, Enabled, u16>, + trigger_stream: Stream3<DMA1>, + data_stream: Stream4<DMA1>, + clear_stream: Stream5<DMA1>, + trigger_channel: Channel2, + clear_channel: Channel2, + batch_size: usize +) -> Self

Construct the ADC input channel.

+
Args
+
    +
  • spi - The SPI interface used to communicate with the ADC.
  • +
  • trigger_stream - The DMA stream used to trigger each ADC transfer by +writing a word into the SPI TX FIFO.
  • +
  • data_stream - The DMA stream used to read samples received over SPI into a data buffer.
  • +
  • clear_stream - The DMA stream used to clear the EOT flag in the SPI peripheral.
  • +
  • trigger_channel - The ADC sampling timer output compare channel for read triggers.
  • +
  • clear_channel - The shadow sampling timer output compare channel used for +clearing the SPI EOT flag.
  • +
+
source

pub fn start(&mut self)

Enable the ADC DMA transfer sequence.

+
source

pub fn with_buffer<F, R>(&mut self, f: F) -> Result<R, DMAError>where + F: FnOnce(&mut &'static mut [u16]) -> R,

Wait for the transfer of the currently active buffer to complete, +then call a function on the now inactive buffer and acknowledge the +transfer complete flag.

+

NOTE(unsafe): Memory safety and access ordering is not guaranteed +(see the HAL DMA docs).

+

Trait Implementations§

source§

impl Mutex for Adc1Input

§

type Data = &'static mut [u16]

Data protected by the mutex.
source§

fn lock<R>(&mut self, f: impl FnOnce(&mut Self::Data) -> R) -> R

Creates a critical section and grants temporary access to the protected data.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/adc/struct.AdcCode.html b/firmware/stabilizer/hardware/adc/struct.AdcCode.html new file mode 100644 index 0000000000..caf91f4e97 --- /dev/null +++ b/firmware/stabilizer/hardware/adc/struct.AdcCode.html @@ -0,0 +1,19 @@ +AdcCode in stabilizer::hardware::adc - Rust
pub struct AdcCode(pub u16);
Expand description

A type representing an ADC sample.

+

Tuple Fields§

§0: u16

Trait Implementations§

source§

impl Clone for AdcCode

source§

fn clone(&self) -> AdcCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl From<AdcCode> for f32

source§

fn from(code: AdcCode) -> f32

Convert raw ADC codes to/from voltage levels.

+
Note
+

This does not account for the programmable gain amplifier at the signal input.

+
source§

impl From<AdcCode> for i16

source§

fn from(code: AdcCode) -> i16

Get a stabilizer-defined code from the ADC code.

+
source§

impl From<AdcCode> for u16

source§

fn from(code: AdcCode) -> u16

Get an ADC-frmatted binary value from the code.

+
source§

impl From<i16> for AdcCode

source§

fn from(value: i16) -> Self

Construct an ADC code from the stabilizer-defined code (i16 full range).

+
source§

impl From<u16> for AdcCode

source§

fn from(value: u16) -> Self

Construct an ADC code from a provided binary (ADC-formatted) code.

+
source§

impl TryFrom<f32> for AdcCode

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(voltage: f32) -> Result<AdcCode, ()>

Performs the conversion.
source§

impl Copy for AdcCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/afe/enum.Gain.html b/firmware/stabilizer/hardware/afe/enum.Gain.html new file mode 100644 index 0000000000..55a556b5d5 --- /dev/null +++ b/firmware/stabilizer/hardware/afe/enum.Gain.html @@ -0,0 +1,23 @@ +Gain in stabilizer::hardware::afe - Rust
#[repr(u8)]
+pub enum Gain {
+    G1,
+    G2,
+    G5,
+    G10,
+}

Variants§

§

G1

§

G2

§

G5

§

G10

Implementations§

source§

impl Gain

source

pub fn as_multiplier(self) -> f32

Get the AFE gain as a numerical value.

+

Trait Implementations§

source§

impl Clone for Gain

source§

fn clone(&self) -> Gain

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Gain

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Gain

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Gain

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<u8> for Gain

§

type Error = TryFromPrimitiveError<Gain>

The type returned in the event of a conversion error.
source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
source§

impl TryFromPrimitive for Gain

§

type Primitive = u8

source§

const NAME: &'static str = _

source§

fn try_from_primitive( + number: Self::Primitive +) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for Gain

Auto Trait Implementations§

§

impl RefUnwindSafe for Gain

§

impl Send for Gain

§

impl Sync for Gain

§

impl Unpin for Gain

§

impl UnwindSafe for Gain

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/afe/index.html b/firmware/stabilizer/hardware/afe/index.html new file mode 100644 index 0000000000..be69f2a64a --- /dev/null +++ b/firmware/stabilizer/hardware/afe/index.html @@ -0,0 +1 @@ +stabilizer::hardware::afe - Rust

Module stabilizer::hardware::afe

source ·

Structs

Enums

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/afe/sidebar-items.js b/firmware/stabilizer/hardware/afe/sidebar-items.js new file mode 100644 index 0000000000..2f58210703 --- /dev/null +++ b/firmware/stabilizer/hardware/afe/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["Gain"],"struct":["ProgrammableGainAmplifier"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/afe/struct.ProgrammableGainAmplifier.html b/firmware/stabilizer/hardware/afe/struct.ProgrammableGainAmplifier.html new file mode 100644 index 0000000000..04fda82566 --- /dev/null +++ b/firmware/stabilizer/hardware/afe/struct.ProgrammableGainAmplifier.html @@ -0,0 +1,34 @@ +ProgrammableGainAmplifier in stabilizer::hardware::afe - Rust
pub struct ProgrammableGainAmplifier<A0, A1> { /* private fields */ }
Expand description

A programmable gain amplifier that allows for setting the gain via GPIO.

+

Implementations§

source§

impl<A0, A1> ProgrammableGainAmplifier<A0, A1>where + A0: StatefulOutputPin, + A0::Error: Debug, + A1: StatefulOutputPin, + A1::Error: Debug,

source

pub fn new(a0: A0, a1: A1) -> Self

Construct a new programmable gain driver.

+

Args:

+
    +
  • a0 - An output connected to the A0 input of the amplifier.
  • +
  • a1 - An output connected to the A1 input of the amplifier.
  • +
+
source

pub fn set_gain(&mut self, gain: Gain)

Set the gain of the front-end.

+
source

pub fn get_gain(&self) -> Gain

Get the programmed gain of the analog front-end.

+

Auto Trait Implementations§

§

impl<A0, A1> RefUnwindSafe for ProgrammableGainAmplifier<A0, A1>where + A0: RefUnwindSafe, + A1: RefUnwindSafe,

§

impl<A0, A1> Send for ProgrammableGainAmplifier<A0, A1>where + A0: Send, + A1: Send,

§

impl<A0, A1> Sync for ProgrammableGainAmplifier<A0, A1>where + A0: Sync, + A1: Sync,

§

impl<A0, A1> Unpin for ProgrammableGainAmplifier<A0, A1>where + A0: Unpin, + A1: Unpin,

§

impl<A0, A1> UnwindSafe for ProgrammableGainAmplifier<A0, A1>where + A0: UnwindSafe, + A1: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/constant.MONOTONIC_FREQUENCY.html b/firmware/stabilizer/hardware/constant.MONOTONIC_FREQUENCY.html new file mode 100644 index 0000000000..5fb682add0 --- /dev/null +++ b/firmware/stabilizer/hardware/constant.MONOTONIC_FREQUENCY.html @@ -0,0 +1,2 @@ +MONOTONIC_FREQUENCY in stabilizer::hardware - Rust
pub const MONOTONIC_FREQUENCY: u32 = 1_000;
Expand description

System timer (RTIC Monotonic) tick frequency

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/cpu_temp_sensor/index.html b/firmware/stabilizer/hardware/cpu_temp_sensor/index.html new file mode 100644 index 0000000000..3a6efd9bae --- /dev/null +++ b/firmware/stabilizer/hardware/cpu_temp_sensor/index.html @@ -0,0 +1,5 @@ +stabilizer::hardware::cpu_temp_sensor - Rust
Expand description

STM32 Temperature Sensor Driver

+

Description

+

This file provides an API for measuring the internal STM32 temperature sensor. This temperature +sensor measures the silicon junction temperature (Tj) and is connected via an internal ADC.

+

Structs

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/cpu_temp_sensor/sidebar-items.js b/firmware/stabilizer/hardware/cpu_temp_sensor/sidebar-items.js new file mode 100644 index 0000000000..a77652a49b --- /dev/null +++ b/firmware/stabilizer/hardware/cpu_temp_sensor/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["CpuTempSensor"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/cpu_temp_sensor/struct.CpuTempSensor.html b/firmware/stabilizer/hardware/cpu_temp_sensor/struct.CpuTempSensor.html new file mode 100644 index 0000000000..329ac5d2b9 --- /dev/null +++ b/firmware/stabilizer/hardware/cpu_temp_sensor/struct.CpuTempSensor.html @@ -0,0 +1,18 @@ +CpuTempSensor in stabilizer::hardware::cpu_temp_sensor - Rust
pub struct CpuTempSensor { /* private fields */ }
Expand description

A driver to access the CPU temeprature sensor.

+

Implementations§

source§

impl CpuTempSensor

source

pub fn new(sensor: AdcChannel<'static, ADC3, Temperature>) -> Self

Construct the temperature sensor.

+
Args
+
    +
  • sensor - The ADC channel of the integrated temperature sensor.
  • +
+
source

pub fn get_temperature(&mut self) -> Result<f32, AdcError>

Get the temperature of the CPU in degrees Celsius.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/dac/index.html b/firmware/stabilizer/hardware/dac/index.html new file mode 100644 index 0000000000..3e3ecd93bc --- /dev/null +++ b/firmware/stabilizer/hardware/dac/index.html @@ -0,0 +1,2 @@ +stabilizer::hardware::dac - Rust

Module stabilizer::hardware::dac

source ·

Structs

  • Represents data associated with DAC.
  • Represents data associated with DAC.
  • Custom type for referencing DAC output codes. +The internal integer is the raw code written to the DAC output register.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/dac/sidebar-items.js b/firmware/stabilizer/hardware/dac/sidebar-items.js new file mode 100644 index 0000000000..9853ee8f36 --- /dev/null +++ b/firmware/stabilizer/hardware/dac/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Dac0Output","Dac1Output","DacCode"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/dac/struct.Dac0Output.html b/firmware/stabilizer/hardware/dac/struct.Dac0Output.html new file mode 100644 index 0000000000..1ce8075a20 --- /dev/null +++ b/firmware/stabilizer/hardware/dac/struct.Dac0Output.html @@ -0,0 +1,30 @@ +Dac0Output in stabilizer::hardware::dac - Rust
pub struct Dac0Output { /* private fields */ }
Expand description

Represents data associated with DAC.

+

Implementations§

source§

impl Dac0Output

source

pub fn new( + spi: Spi<SPI4, Enabled, u16>, + stream: Stream6<DMA1>, + trigger_channel: Channel3, + batch_size: usize +) -> Self

Construct the DAC output channel.

+
Args
+
    +
  • spi - The SPI interface used to communicate with the ADC.
  • +
  • stream - The DMA stream used to write DAC codes over SPI.
  • +
  • trigger_channel - The sampling timer output compare channel for update triggers.
  • +
+
source

pub fn start(&mut self)

source

pub fn with_buffer<F, R>(&mut self, f: F) -> Result<R, DMAError>where + F: FnOnce(&mut &'static mut [u16]) -> R,

Wait for the transfer of the currently active buffer to complete, +then call a function on the now inactive buffer and acknowledge the +transfer complete flag.

+

NOTE(unsafe): Memory safety and access ordering is not guaranteed +(see the HAL DMA docs).

+

Trait Implementations§

source§

impl Mutex for Dac0Output

§

type Data = &'static mut [u16]

Data protected by the mutex.
source§

fn lock<R>(&mut self, f: impl FnOnce(&mut Self::Data) -> R) -> R

Creates a critical section and grants temporary access to the protected data.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/dac/struct.Dac1Output.html b/firmware/stabilizer/hardware/dac/struct.Dac1Output.html new file mode 100644 index 0000000000..f16171fb6c --- /dev/null +++ b/firmware/stabilizer/hardware/dac/struct.Dac1Output.html @@ -0,0 +1,30 @@ +Dac1Output in stabilizer::hardware::dac - Rust
pub struct Dac1Output { /* private fields */ }
Expand description

Represents data associated with DAC.

+

Implementations§

source§

impl Dac1Output

source

pub fn new( + spi: Spi<SPI5, Enabled, u16>, + stream: Stream7<DMA1>, + trigger_channel: Channel4, + batch_size: usize +) -> Self

Construct the DAC output channel.

+
Args
+
    +
  • spi - The SPI interface used to communicate with the ADC.
  • +
  • stream - The DMA stream used to write DAC codes over SPI.
  • +
  • trigger_channel - The sampling timer output compare channel for update triggers.
  • +
+
source

pub fn start(&mut self)

source

pub fn with_buffer<F, R>(&mut self, f: F) -> Result<R, DMAError>where + F: FnOnce(&mut &'static mut [u16]) -> R,

Wait for the transfer of the currently active buffer to complete, +then call a function on the now inactive buffer and acknowledge the +transfer complete flag.

+

NOTE(unsafe): Memory safety and access ordering is not guaranteed +(see the HAL DMA docs).

+

Trait Implementations§

source§

impl Mutex for Dac1Output

§

type Data = &'static mut [u16]

Data protected by the mutex.
source§

fn lock<R>(&mut self, f: impl FnOnce(&mut Self::Data) -> R) -> R

Creates a critical section and grants temporary access to the protected data.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/dac/struct.DacCode.html b/firmware/stabilizer/hardware/dac/struct.DacCode.html new file mode 100644 index 0000000000..585d150f41 --- /dev/null +++ b/firmware/stabilizer/hardware/dac/struct.DacCode.html @@ -0,0 +1,15 @@ +DacCode in stabilizer::hardware::dac - Rust
pub struct DacCode(pub u16);
Expand description

Custom type for referencing DAC output codes. +The internal integer is the raw code written to the DAC output register.

+

Tuple Fields§

§0: u16

Implementations§

source§

impl DacCode

source

pub const FULL_SCALE: f32 = 10.2400007f32

source

pub const VOLT_PER_LSB: f32 = 3.12500022E-4f32

source

pub const LSB_PER_VOLT: f32 = 3199.99976f32

Trait Implementations§

source§

impl Clone for DacCode

source§

fn clone(&self) -> DacCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl From<DacCode> for f32

source§

fn from(code: DacCode) -> f32

Converts to this type from the input type.
source§

impl From<DacCode> for i16

source§

fn from(code: DacCode) -> i16

Converts to this type from the input type.
source§

impl From<i16> for DacCode

source§

fn from(value: i16) -> Self

Encode signed 16-bit values into DAC offset binary for a bipolar output configuration.

+
source§

impl From<u16> for DacCode

source§

fn from(value: u16) -> Self

Create a dac code from the provided DAC output code.

+
source§

impl TryFrom<f32> for DacCode

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(voltage: f32) -> Result<DacCode, ()>

Performs the conversion.
source§

impl Copy for DacCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/delay/index.html b/firmware/stabilizer/hardware/delay/index.html new file mode 100644 index 0000000000..c1d9e84431 --- /dev/null +++ b/firmware/stabilizer/hardware/delay/index.html @@ -0,0 +1,6 @@ +stabilizer::hardware::delay - Rust

Module stabilizer::hardware::delay

source ·
Expand description

Basic blocking delay

+

This module provides a basic asm-based blocking delay.

+

Note

+

This implementation takes into account the Cortex-M7 CPU pipeline architecture to ensure delays +are at least as long as specified.

+

Structs

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/delay/sidebar-items.js b/firmware/stabilizer/hardware/delay/sidebar-items.js new file mode 100644 index 0000000000..0c2a59baf3 --- /dev/null +++ b/firmware/stabilizer/hardware/delay/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["AsmDelay"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/delay/struct.AsmDelay.html b/firmware/stabilizer/hardware/delay/struct.AsmDelay.html new file mode 100644 index 0000000000..8a69d7c0e8 --- /dev/null +++ b/firmware/stabilizer/hardware/delay/struct.AsmDelay.html @@ -0,0 +1,19 @@ +AsmDelay in stabilizer::hardware::delay - Rust
pub struct AsmDelay { /* private fields */ }
Expand description

A basic delay implementation.

+

Implementations§

source§

impl AsmDelay

source

pub fn new(freq: u32) -> AsmDelay

Create a new delay.

+
Args
+
    +
  • freq - The CPU core frequency.
  • +
+

Trait Implementations§

source§

impl<U> DelayMs<U> for AsmDelaywhere + U: Into<u32>,

source§

fn delay_ms(&mut self, ms: U)

Pauses execution for ms milliseconds
source§

impl<U> DelayUs<U> for AsmDelaywhere + U: Into<u32>,

source§

fn delay_us(&mut self, us: U)

Pauses execution for us microseconds

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.ADC_DAC_SCK_MAX.html b/firmware/stabilizer/hardware/design_parameters/constant.ADC_DAC_SCK_MAX.html new file mode 100644 index 0000000000..20f0c5afb2 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.ADC_DAC_SCK_MAX.html @@ -0,0 +1,2 @@ +ADC_DAC_SCK_MAX in stabilizer::hardware::design_parameters - Rust
pub const ADC_DAC_SCK_MAX: MegaHertz;
Expand description

The maximum DAC/ADC serial clock line frequency. This is a hardware limit.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.ADC_SETUP_TIME.html b/firmware/stabilizer/hardware/design_parameters/constant.ADC_SETUP_TIME.html new file mode 100644 index 0000000000..5d03ec5fb6 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.ADC_SETUP_TIME.html @@ -0,0 +1,3 @@ +ADC_SETUP_TIME in stabilizer::hardware::design_parameters - Rust
pub const ADC_SETUP_TIME: f32 = 220e-9;
Expand description

The ADC setup time is the number of seconds after the CSn line goes low before the serial clock +may begin. This is used for performing the internal ADC conversion.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.DDS_MULTIPLIER.html b/firmware/stabilizer/hardware/design_parameters/constant.DDS_MULTIPLIER.html new file mode 100644 index 0000000000..4c7da6ad9f --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.DDS_MULTIPLIER.html @@ -0,0 +1,2 @@ +DDS_MULTIPLIER in stabilizer::hardware::design_parameters - Rust
pub const DDS_MULTIPLIER: u8 = 5;
Expand description

The multiplier used for the DDS reference clock PLL.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.DDS_REF_CLK.html b/firmware/stabilizer/hardware/design_parameters/constant.DDS_REF_CLK.html new file mode 100644 index 0000000000..9fc2ebd2ae --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.DDS_REF_CLK.html @@ -0,0 +1,2 @@ +DDS_REF_CLK in stabilizer::hardware::design_parameters - Rust
pub const DDS_REF_CLK: MegaHertz;
Expand description

The DDS reference clock frequency in MHz.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.DDS_SYNC_CLK_DIV.html b/firmware/stabilizer/hardware/design_parameters/constant.DDS_SYNC_CLK_DIV.html new file mode 100644 index 0000000000..153e9902a9 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.DDS_SYNC_CLK_DIV.html @@ -0,0 +1,2 @@ +DDS_SYNC_CLK_DIV in stabilizer::hardware::design_parameters - Rust
pub const DDS_SYNC_CLK_DIV: u8 = 4;
Expand description

The divider from the DDS system clock to the SYNC_CLK output (sync-clk is always 1/4 of sysclk).

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.DDS_SYSTEM_CLK.html b/firmware/stabilizer/hardware/design_parameters/constant.DDS_SYSTEM_CLK.html new file mode 100644 index 0000000000..9fc5f74a72 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.DDS_SYSTEM_CLK.html @@ -0,0 +1,2 @@ +DDS_SYSTEM_CLK in stabilizer::hardware::design_parameters - Rust
pub const DDS_SYSTEM_CLK: MegaHertz;
Expand description

The DDS system clock frequency after the internal PLL multiplication.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.MAX_SAMPLE_BUFFER_SIZE.html b/firmware/stabilizer/hardware/design_parameters/constant.MAX_SAMPLE_BUFFER_SIZE.html new file mode 100644 index 0000000000..34c157f9b9 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.MAX_SAMPLE_BUFFER_SIZE.html @@ -0,0 +1,2 @@ +MAX_SAMPLE_BUFFER_SIZE in stabilizer::hardware::design_parameters - Rust
pub const MAX_SAMPLE_BUFFER_SIZE: usize = 32;
Expand description

The maximum ADC/DAC sample processing buffer size.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_IO_UPDATE_DELAY.html b/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_IO_UPDATE_DELAY.html new file mode 100644 index 0000000000..b112793342 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_IO_UPDATE_DELAY.html @@ -0,0 +1,2 @@ +POUNDER_IO_UPDATE_DELAY in stabilizer::hardware::design_parameters - Rust
pub const POUNDER_IO_UPDATE_DELAY: f32 = 1_300e-9;
Expand description

The delay after initiating a QSPI transfer before asserting the IO_Update for the pounder DDS.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_IO_UPDATE_DURATION.html b/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_IO_UPDATE_DURATION.html new file mode 100644 index 0000000000..f601e1ff59 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_IO_UPDATE_DURATION.html @@ -0,0 +1,2 @@ +POUNDER_IO_UPDATE_DURATION in stabilizer::hardware::design_parameters - Rust
pub const POUNDER_IO_UPDATE_DURATION: f32 = 50e-9;
Expand description

The duration to assert IO_Update for the pounder DDS.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_QSPI_FREQUENCY.html b/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_QSPI_FREQUENCY.html new file mode 100644 index 0000000000..b46a8e21de --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.POUNDER_QSPI_FREQUENCY.html @@ -0,0 +1,2 @@ +POUNDER_QSPI_FREQUENCY in stabilizer::hardware::design_parameters - Rust
pub const POUNDER_QSPI_FREQUENCY: MegaHertz;
Expand description

The QSPI frequency for communicating with the pounder DDS.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.SYSCLK.html b/firmware/stabilizer/hardware/design_parameters/constant.SYSCLK.html new file mode 100644 index 0000000000..381041b96f --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.SYSCLK.html @@ -0,0 +1,2 @@ +SYSCLK in stabilizer::hardware::design_parameters - Rust
pub const SYSCLK: MegaHertz;
Expand description

The system clock, used in various timer calculations

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.TIMER_FREQUENCY.html b/firmware/stabilizer/hardware/design_parameters/constant.TIMER_FREQUENCY.html new file mode 100644 index 0000000000..c2f1e149b5 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.TIMER_FREQUENCY.html @@ -0,0 +1,2 @@ +TIMER_FREQUENCY in stabilizer::hardware::design_parameters - Rust
pub const TIMER_FREQUENCY: MegaHertz;
Expand description

The optimal counting frequency of the hardware timers used for timestamping and sampling.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/constant.TIMER_PERIOD.html b/firmware/stabilizer/hardware/design_parameters/constant.TIMER_PERIOD.html new file mode 100644 index 0000000000..75a1a4e811 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/constant.TIMER_PERIOD.html @@ -0,0 +1 @@ +TIMER_PERIOD in stabilizer::hardware::design_parameters - Rust
pub const TIMER_PERIOD: f32 = _; // 9.99999993E-9f32
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/index.html b/firmware/stabilizer/hardware/design_parameters/index.html new file mode 100644 index 0000000000..732acc53e0 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/index.html @@ -0,0 +1,2 @@ +stabilizer::hardware::design_parameters - Rust

Constants

  • The maximum DAC/ADC serial clock line frequency. This is a hardware limit.
  • The ADC setup time is the number of seconds after the CSn line goes low before the serial clock +may begin. This is used for performing the internal ADC conversion.
  • The multiplier used for the DDS reference clock PLL.
  • The DDS reference clock frequency in MHz.
  • The divider from the DDS system clock to the SYNC_CLK output (sync-clk is always 1/4 of sysclk).
  • The DDS system clock frequency after the internal PLL multiplication.
  • The maximum ADC/DAC sample processing buffer size.
  • The delay after initiating a QSPI transfer before asserting the IO_Update for the pounder DDS.
  • The duration to assert IO_Update for the pounder DDS.
  • The QSPI frequency for communicating with the pounder DDS.
  • The system clock, used in various timer calculations
  • The optimal counting frequency of the hardware timers used for timestamping and sampling.

Type Definitions

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/sidebar-items.js b/firmware/stabilizer/hardware/design_parameters/sidebar-items.js new file mode 100644 index 0000000000..2d5a1633f0 --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"constant":["ADC_DAC_SCK_MAX","ADC_SETUP_TIME","DDS_MULTIPLIER","DDS_REF_CLK","DDS_SYNC_CLK_DIV","DDS_SYSTEM_CLK","MAX_SAMPLE_BUFFER_SIZE","POUNDER_IO_UPDATE_DELAY","POUNDER_IO_UPDATE_DURATION","POUNDER_QSPI_FREQUENCY","SYSCLK","TIMER_FREQUENCY","TIMER_PERIOD"],"type":["SampleBuffer"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/design_parameters/type.SampleBuffer.html b/firmware/stabilizer/hardware/design_parameters/type.SampleBuffer.html new file mode 100644 index 0000000000..e56e2b135e --- /dev/null +++ b/firmware/stabilizer/hardware/design_parameters/type.SampleBuffer.html @@ -0,0 +1 @@ +SampleBuffer in stabilizer::hardware::design_parameters - Rust
pub type SampleBuffer = [u16; 32];
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/index.html b/firmware/stabilizer/hardware/index.html new file mode 100644 index 0000000000..7027b59e13 --- /dev/null +++ b/firmware/stabilizer/hardware/index.html @@ -0,0 +1 @@ +stabilizer::hardware - Rust
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/input_stamper/index.html b/firmware/stabilizer/hardware/input_stamper/index.html new file mode 100644 index 0000000000..2c29c4653e --- /dev/null +++ b/firmware/stabilizer/hardware/input_stamper/index.html @@ -0,0 +1 @@ +stabilizer::hardware::input_stamper - Rust

Structs

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/input_stamper/sidebar-items.js b/firmware/stabilizer/hardware/input_stamper/sidebar-items.js new file mode 100644 index 0000000000..71f60c1188 --- /dev/null +++ b/firmware/stabilizer/hardware/input_stamper/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["InputStamper"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/input_stamper/struct.InputStamper.html b/firmware/stabilizer/hardware/input_stamper/struct.InputStamper.html new file mode 100644 index 0000000000..8fea80d01d --- /dev/null +++ b/firmware/stabilizer/hardware/input_stamper/struct.InputStamper.html @@ -0,0 +1,25 @@ +InputStamper in stabilizer::hardware::input_stamper - Rust
pub struct InputStamper { /* private fields */ }
Expand description

The timestamper for DI0 reference clock inputs.

+

Implementations§

source§

impl InputStamper

source

pub fn new(trigger: PA3<Alternate<2>>, timer_channel: Channel4) -> Self

Construct the DI0 input timestamper.

+
Args
+
    +
  • trigger - The capture trigger input pin.
  • +
  • `timer_channel - The timer channel used for capturing timestamps.
  • +
+
source

pub fn start(&mut self)

Start to capture timestamps on DI0.

+
source

pub fn latest_timestamp(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest timestamp that has occurred.

+
Note
+

This function must be called at least as often as timestamps arrive. +If an over-capture event occurs, this function will clear the overflow, +and return a new timestamp of unknown recency an Err(). +Note that this indicates at least one timestamp was inadvertently dropped.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/attenuators/index.html b/firmware/stabilizer/hardware/pounder/attenuators/index.html new file mode 100644 index 0000000000..05072e348a --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/attenuators/index.html @@ -0,0 +1 @@ +stabilizer::hardware::pounder::attenuators - Rust

Traits

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/attenuators/sidebar-items.js b/firmware/stabilizer/hardware/pounder/attenuators/sidebar-items.js new file mode 100644 index 0000000000..7ebb36d4b9 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/attenuators/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"trait":["AttenuatorInterface"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/attenuators/trait.AttenuatorInterface.html b/firmware/stabilizer/hardware/pounder/attenuators/trait.AttenuatorInterface.html new file mode 100644 index 0000000000..549f43f07c --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/attenuators/trait.AttenuatorInterface.html @@ -0,0 +1,41 @@ +AttenuatorInterface in stabilizer::hardware::pounder::attenuators - Rust
pub trait AttenuatorInterface {
+    // Required methods
+    fn reset_attenuators(&mut self) -> Result<(), Error>;
+    fn latch_attenuator(&mut self, channel: Channel) -> Result<(), Error>;
+    fn transfer_attenuators(
+        &mut self,
+        channels: &mut [u8; 4]
+    ) -> Result<(), Error>;
+
+    // Provided methods
+    fn set_attenuation(
+        &mut self,
+        channel: Channel,
+        attenuation: f32
+    ) -> Result<f32, Error> { ... }
+    fn get_attenuation(&mut self, channel: Channel) -> Result<f32, Error> { ... }
+}
Expand description

Provide an interface for managing digital attenuators on Pounder hardware.

+

Note: The digital attenuators do not allow read-back of attenuation. To circumvent this, this +driver maintains the attenuation code in both the shift register as well as the latched output +register of the attenuators. This allows the “active” attenuation code to be read back by +reading the shfit register. The downside of this approach is that any read is destructive, so a +read-writeback approach is employed.

+

Required Methods§

source

fn reset_attenuators(&mut self) -> Result<(), Error>

source

fn latch_attenuator(&mut self, channel: Channel) -> Result<(), Error>

source

fn transfer_attenuators(&mut self, channels: &mut [u8; 4]) -> Result<(), Error>

Provided Methods§

source

fn set_attenuation( + &mut self, + channel: Channel, + attenuation: f32 +) -> Result<f32, Error>

Set the attenuation of a single channel.

+

Args:

+
    +
  • channel - The pounder channel to configure the attenuation of.
  • +
  • attenuation - The desired attenuation of the channel in dB. This has a resolution of +0.5dB.
  • +
+
source

fn get_attenuation(&mut self, channel: Channel) -> Result<f32, Error>

Get the attenuation of a channel.

+

Args:

+
    +
  • channel - The channel to get the attenuation of.
  • +
+

Returns: +The programmed attenuation of the channel in dB.

+

Implementors§

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/dds_output/index.html b/firmware/stabilizer/hardware/pounder/dds_output/index.html new file mode 100644 index 0000000000..30ff039e3b --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/dds_output/index.html @@ -0,0 +1 @@ +stabilizer::hardware::pounder::dds_output - Rust

Structs

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/dds_output/sidebar-items.js b/firmware/stabilizer/hardware/pounder/dds_output/sidebar-items.js new file mode 100644 index 0000000000..14ec63db84 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/dds_output/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["DdsOutput","ProfileBuilder"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/dds_output/struct.DdsOutput.html b/firmware/stabilizer/hardware/pounder/dds_output/struct.DdsOutput.html new file mode 100644 index 0000000000..f4f37ae59b --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/dds_output/struct.DdsOutput.html @@ -0,0 +1,37 @@ +DdsOutput in stabilizer::hardware::pounder::dds_output - Rust
pub struct DdsOutput { /* private fields */ }
Expand description

The DDS profile update stream.

+

Implementations§

source§

impl DdsOutput

source

pub fn new( + qspi: QspiInterface, + io_update_trigger: HighResTimerE, + mode: Mode +) -> Self

Construct a new DDS output stream.

+
Note
+

It is assumed that the QSPI stream and the IO_Update trigger timer have been configured in a +way such that the profile has sufficient time to be written before the IO_Update signal is +generated.

+
Args
+
    +
  • qspi - The QSPI interface to the run the stream on.
  • +
  • io_update_trigger - The HighResTimerE used to generate IO_Update pulses.
  • +
  • config - The frozen DDS configuration.
  • +
+
source

pub fn builder(&mut self) -> ProfileBuilder<'_>

Get a builder for serializing a Pounder DDS profile.

+
source

pub fn write(&mut self, profile: &[u32])

Write a profile to the stream.

+
Note:
+

If a profile of more than 8 words is provided, the QSPI interface will likely +stall execution. If there are still bytes pending in the FIFO, the write will certainly +stall.

+
Args
+
    +
  • profile - The serialized DDS profile to write.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/dds_output/struct.ProfileBuilder.html b/firmware/stabilizer/hardware/pounder/dds_output/struct.ProfileBuilder.html new file mode 100644 index 0000000000..dbf2979b5e --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/dds_output/struct.ProfileBuilder.html @@ -0,0 +1,28 @@ +ProfileBuilder in stabilizer::hardware::pounder::dds_output - Rust
pub struct ProfileBuilder<'a> { /* private fields */ }
Expand description

A temporary builder for serializing and writing profiles.

+

Implementations§

source§

impl<'a> ProfileBuilder<'a>

source

pub fn update_channels( + &mut self, + channels: Channel, + ftw: Option<u32>, + pow: Option<u16>, + acr: Option<u32> +) -> &mut Self

Update a number of channels with the provided configuration

+
Args
+
    +
  • channels - A list of channels to apply the configuration to.
  • +
  • ftw - If provided, indicates a frequency tuning word for the channels.
  • +
  • pow - If provided, indicates a phase offset word for the channels.
  • +
  • acr - If provided, indicates the amplitude control register for the channels. The +24-bits of the ACR should be stored in the last 3 LSB.
  • +
+
source

pub fn write(&mut self)

Write the profile to the DDS asynchronously.

+

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for ProfileBuilder<'a>

§

impl<'a> Send for ProfileBuilder<'a>

§

impl<'a> !Sync for ProfileBuilder<'a>

§

impl<'a> Unpin for ProfileBuilder<'a>

§

impl<'a> !UnwindSafe for ProfileBuilder<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/enum.Channel.html b/firmware/stabilizer/hardware/pounder/enum.Channel.html new file mode 100644 index 0000000000..94a3f9b17a --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/enum.Channel.html @@ -0,0 +1,19 @@ +Channel in stabilizer::hardware::pounder - Rust
pub enum Channel {
+    In0,
+    Out0,
+    In1,
+    Out1,
+}
Expand description

The numerical value (discriminant) of the Channel enum is the index in the attenuator shift +register as well as the attenuator latch enable signal index on the GPIO extender.

+

Variants§

§

In0

§

Out0

§

In1

§

Out1

Trait Implementations§

source§

impl Clone for Channel

source§

fn clone(&self) -> Channel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Channel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Channel> for Channel

source§

fn from(other: Channel) -> Self

Translate pounder channels to DDS output channels.

+
source§

impl From<Channel> for GpioPin

source§

fn from(x: Channel) -> Self

Converts to this type from the input type.
source§

impl Copy for Channel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/enum.Error.html b/firmware/stabilizer/hardware/pounder/enum.Error.html new file mode 100644 index 0000000000..1b60cba129 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/enum.Error.html @@ -0,0 +1,20 @@ +Error in stabilizer::hardware::pounder - Rust
pub enum Error {
+    Spi,
+    I2c,
+    Qspi(QspiError),
+    Bounds,
+    InvalidAddress,
+    InvalidChannel,
+    Adc,
+    InvalidState,
+}

Variants§

§

Spi

§

I2c

§

Qspi(QspiError)

§

Bounds

§

InvalidAddress

§

InvalidChannel

§

Adc

§

InvalidState

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<XspiError> for Error

source§

fn from(e: QspiError) -> Error

Converts to this type from the input type.
source§

impl Copy for Error

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/enum.GpioPin.html b/firmware/stabilizer/hardware/pounder/enum.GpioPin.html new file mode 100644 index 0000000000..3eb7a25cab --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/enum.GpioPin.html @@ -0,0 +1,25 @@ +GpioPin in stabilizer::hardware::pounder - Rust
pub enum GpioPin {
+
Show 13 variants Led4Green, + Led5Red, + Led6Green, + Led7Red, + Led8Green, + Led9Red, + AttLe0, + AttLe1, + AttLe2, + AttLe3, + AttRstN, + OscEnN, + ExtClkSel, +
}

Variants§

§

Led4Green

§

Led5Red

§

Led6Green

§

Led7Red

§

Led8Green

§

Led9Red

§

AttLe0

§

AttLe1

§

AttLe2

§

AttLe3

§

AttRstN

§

OscEnN

§

ExtClkSel

Trait Implementations§

source§

impl Clone for GpioPin

source§

fn clone(&self) -> GpioPin

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GpioPin

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Channel> for GpioPin

source§

fn from(x: Channel) -> Self

Converts to this type from the input type.
source§

impl From<GpioPin> for Mcp23017

source§

fn from(x: GpioPin) -> Self

Converts to this type from the input type.
source§

impl Sequence for GpioPin

source§

const CARDINALITY: usize = 13usize

Number of values of type Self. Read more
source§

fn next(&self) -> Option<Self>

Returns value following *self or None if this was the end. Read more
source§

fn previous(&self) -> Option<Self>

Returns value preceding *self or None if this was the beginning. Read more
source§

fn first() -> Option<Self>

Returns the first value of type Self. Read more
source§

fn last() -> Option<Self>

Returns the last value of type Self. Read more
source§

impl Copy for GpioPin

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/hrtimer/enum.Channel.html b/firmware/stabilizer/hardware/pounder/hrtimer/enum.Channel.html new file mode 100644 index 0000000000..3856e9b7f1 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/hrtimer/enum.Channel.html @@ -0,0 +1,15 @@ +Channel in stabilizer::hardware::pounder::hrtimer - Rust
pub enum Channel {
+    One,
+    Two,
+}
Expand description

A HRTimer output channel.

+

Variants§

§

One

§

Two

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/hrtimer/index.html b/firmware/stabilizer/hardware/pounder/hrtimer/index.html new file mode 100644 index 0000000000..e4cb552d3b --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/hrtimer/index.html @@ -0,0 +1 @@ +stabilizer::hardware::pounder::hrtimer - Rust

Structs

  • The high resolution timer. Currently, only Timer E is supported.

Enums

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/hrtimer/sidebar-items.js b/firmware/stabilizer/hardware/pounder/hrtimer/sidebar-items.js new file mode 100644 index 0000000000..e9b20c9976 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/hrtimer/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["Channel"],"struct":["HighResTimerE"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/hrtimer/struct.HighResTimerE.html b/firmware/stabilizer/hardware/pounder/hrtimer/struct.HighResTimerE.html new file mode 100644 index 0000000000..85664ad644 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/hrtimer/struct.HighResTimerE.html @@ -0,0 +1,36 @@ +HighResTimerE in stabilizer::hardware::pounder::hrtimer - Rust
pub struct HighResTimerE { /* private fields */ }
Expand description

The high resolution timer. Currently, only Timer E is supported.

+

Implementations§

source§

impl HighResTimerE

source

pub fn new( + timer_regs: HRTIM_TIME, + master_regs: HRTIM_MASTER, + common_regs: HRTIM_COMMON, + clocks: CoreClocks, + prec: Hrtim +) -> Self

Construct a new high resolution timer for generating IO_update signals.

+
source

pub fn configure_single_shot( + &mut self, + channel: Channel, + delay: f32, + duration: f32 +)

Configure the timer to operate in single-shot mode.

+
Note
+

This will configure the timer to generate a single pulse on an output channel. The timer +will only count up once and must be trigger()’d after / configured.

+

The output will be asserted from set_offset to set_offset + set_duration in the count.

+
Args
+
    +
  • channel - The timer output channel to configure.
  • +
  • set_duration - The duration that the output should be asserted for.
  • +
  • set_offset - The first time at which the output should be asserted.
  • +
+
source

pub fn trigger(&mut self)

Generate a single trigger of the timer to start the output pulse generation.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/index.html b/firmware/stabilizer/hardware/pounder/index.html new file mode 100644 index 0000000000..5f5194a446 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/index.html @@ -0,0 +1,2 @@ +stabilizer::hardware::pounder - Rust

Modules

Structs

Enums

  • The numerical value (discriminant) of the Channel enum is the index in the attenuator shift +register as well as the attenuator latch enable signal index on the GPIO extender.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/rf_power/index.html b/firmware/stabilizer/hardware/pounder/rf_power/index.html new file mode 100644 index 0000000000..1593f7a77c --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/rf_power/index.html @@ -0,0 +1 @@ +stabilizer::hardware::pounder::rf_power - Rust

Traits

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/rf_power/sidebar-items.js b/firmware/stabilizer/hardware/pounder/rf_power/sidebar-items.js new file mode 100644 index 0000000000..5b7e95baa9 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/rf_power/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"trait":["PowerMeasurementInterface"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/rf_power/trait.PowerMeasurementInterface.html b/firmware/stabilizer/hardware/pounder/rf_power/trait.PowerMeasurementInterface.html new file mode 100644 index 0000000000..5a8d5cbdb5 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/rf_power/trait.PowerMeasurementInterface.html @@ -0,0 +1,15 @@ +PowerMeasurementInterface in stabilizer::hardware::pounder::rf_power - Rust
pub trait PowerMeasurementInterface {
+    // Required method
+    fn sample_converter(&mut self, channel: Channel) -> Result<f32, Error>;
+
+    // Provided method
+    fn measure_power(&mut self, channel: Channel) -> Result<f32, Error> { ... }
+}
Expand description

Provide an interface to measure RF input power in dBm.

+

Required Methods§

source

fn sample_converter(&mut self, channel: Channel) -> Result<f32, Error>

Provided Methods§

source

fn measure_power(&mut self, channel: Channel) -> Result<f32, Error>

Measure the power of an input channel in dBm.

+

Args:

+
    +
  • channel - The pounder input channel to measure the power of.
  • +
+

Returns: +Power in dBm after the digitally controlled attenuator before the amplifier.

+

Implementors§

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/sidebar-items.js b/firmware/stabilizer/hardware/pounder/sidebar-items.js new file mode 100644 index 0000000000..d63a887120 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["Channel","Error","GpioPin"],"mod":["attenuators","dds_output","hrtimer","rf_power","timestamp"],"struct":["ChannelState","DdsChannelState","DdsClockConfig","InputChannelState","OutputChannelState","PounderDevices","QspiInterface"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/struct.ChannelState.html b/firmware/stabilizer/hardware/pounder/struct.ChannelState.html new file mode 100644 index 0000000000..ed40f38402 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/struct.ChannelState.html @@ -0,0 +1,17 @@ +ChannelState in stabilizer::hardware::pounder - Rust
pub struct ChannelState {
+    pub parameters: DdsChannelState,
+    pub attenuation: f32,
+}

Fields§

§parameters: DdsChannelState§attenuation: f32

Trait Implementations§

source§

impl Clone for ChannelState

source§

fn clone(&self) -> ChannelState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ChannelState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ChannelState

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ChannelState

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ChannelState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/struct.DdsChannelState.html b/firmware/stabilizer/hardware/pounder/struct.DdsChannelState.html new file mode 100644 index 0000000000..220603ad38 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/struct.DdsChannelState.html @@ -0,0 +1,19 @@ +DdsChannelState in stabilizer::hardware::pounder - Rust
pub struct DdsChannelState {
+    pub phase_offset: f32,
+    pub frequency: f32,
+    pub amplitude: f32,
+    pub enabled: bool,
+}

Fields§

§phase_offset: f32§frequency: f32§amplitude: f32§enabled: bool

Trait Implementations§

source§

impl Clone for DdsChannelState

source§

fn clone(&self) -> DdsChannelState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DdsChannelState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DdsChannelState

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DdsChannelState

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for DdsChannelState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/struct.DdsClockConfig.html b/firmware/stabilizer/hardware/pounder/struct.DdsClockConfig.html new file mode 100644 index 0000000000..6adbe2afa0 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/struct.DdsClockConfig.html @@ -0,0 +1,18 @@ +DdsClockConfig in stabilizer::hardware::pounder - Rust
pub struct DdsClockConfig {
+    pub multiplier: u8,
+    pub reference_clock: f32,
+    pub external_clock: bool,
+}

Fields§

§multiplier: u8§reference_clock: f32§external_clock: bool

Trait Implementations§

source§

impl Clone for DdsClockConfig

source§

fn clone(&self) -> DdsClockConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DdsClockConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DdsClockConfig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DdsClockConfig

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for DdsClockConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/struct.InputChannelState.html b/firmware/stabilizer/hardware/pounder/struct.InputChannelState.html new file mode 100644 index 0000000000..5a49026593 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/struct.InputChannelState.html @@ -0,0 +1,18 @@ +InputChannelState in stabilizer::hardware::pounder - Rust
pub struct InputChannelState {
+    pub attenuation: f32,
+    pub power: f32,
+    pub mixer: DdsChannelState,
+}

Fields§

§attenuation: f32§power: f32§mixer: DdsChannelState

Trait Implementations§

source§

impl Clone for InputChannelState

source§

fn clone(&self) -> InputChannelState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InputChannelState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for InputChannelState

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for InputChannelState

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for InputChannelState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/struct.OutputChannelState.html b/firmware/stabilizer/hardware/pounder/struct.OutputChannelState.html new file mode 100644 index 0000000000..db7a98a03f --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/struct.OutputChannelState.html @@ -0,0 +1,17 @@ +OutputChannelState in stabilizer::hardware::pounder - Rust
pub struct OutputChannelState {
+    pub attenuation: f32,
+    pub channel: DdsChannelState,
+}

Fields§

§attenuation: f32§channel: DdsChannelState

Trait Implementations§

source§

impl Clone for OutputChannelState

source§

fn clone(&self) -> OutputChannelState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for OutputChannelState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for OutputChannelState

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for OutputChannelState

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for OutputChannelState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/struct.PounderDevices.html b/firmware/stabilizer/hardware/pounder/struct.PounderDevices.html new file mode 100644 index 0000000000..87198dca5f --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/struct.PounderDevices.html @@ -0,0 +1,60 @@ +PounderDevices in stabilizer::hardware::pounder - Rust
pub struct PounderDevices {
+    pub lm75: Lm75<I2c1Proxy, Lm75>,
+    /* private fields */
+}
Expand description

A structure containing implementation for Pounder hardware.

+

Fields§

§lm75: Lm75<I2c1Proxy, Lm75>

Implementations§

source§

impl PounderDevices

source

pub fn new( + lm75: Lm75<I2c1Proxy, Lm75>, + mcp23017: Mcp230xx<I2c1Proxy, Mcp23017>, + attenuator_spi: Spi<SPI1, Enabled, u8>, + pwr0: AdcChannel<'static, ADC1, PF11<Analog>>, + pwr1: AdcChannel<'static, ADC2, PF14<Analog>>, + aux_adc0: AdcChannel<'static, ADC3, PF3<Analog>>, + aux_adc1: AdcChannel<'static, ADC3, PF4<Analog>> +) -> Result<Self, Error>

Construct and initialize pounder-specific hardware.

+

Args:

+
    +
  • lm75 - The temperature sensor on Pounder.
  • +
  • mcp23017 - The GPIO expander on Pounder.
  • +
  • attenuator_spi - A SPI interface to control digital attenuators.
  • +
  • pwr0 - The ADC channel to measure the IN0 input power.
  • +
  • pwr1 - The ADC channel to measure the IN1 input power.
  • +
  • aux_adc0 - The ADC channel to measure the ADC0 auxiliary input.
  • +
  • aux_adc1 - The ADC channel to measure the ADC1 auxiliary input.
  • +
+
source

pub fn sample_aux_adc(&mut self, channel: Channel) -> Result<f32, Error>

Sample one of the two auxiliary ADC channels associated with the respective RF input channel.

+
source

pub fn set_gpio_pin(&mut self, pin: GpioPin, level: Level) -> Result<(), Error>

Set the state (its electrical level) of the given GPIO pin on Pounder.

+
source

pub fn set_ext_clk(&mut self, enabled: bool) -> Result<(), Error>

Select external reference clock input.

+

Trait Implementations§

source§

impl AttenuatorInterface for PounderDevices

source§

fn reset_attenuators(&mut self) -> Result<(), Error>

Reset all of the attenuators to a power-on default state.

+
source§

fn latch_attenuator(&mut self, channel: Channel) -> Result<(), Error>

Latch a configuration into a digital attenuator.

+

Args:

+
    +
  • channel - The attenuator channel to latch.
  • +
+
source§

fn transfer_attenuators(&mut self, channels: &mut [u8; 4]) -> Result<(), Error>

Read the raw attenuation codes stored in the attenuator shift registers.

+

Args:

+
    +
  • channels - A 4 byte slice to be shifted into the +attenuators and to contain the data shifted out.
  • +
+
source§

fn set_attenuation( + &mut self, + channel: Channel, + attenuation: f32 +) -> Result<f32, Error>

Set the attenuation of a single channel. Read more
source§

fn get_attenuation(&mut self, channel: Channel) -> Result<f32, Error>

Get the attenuation of a channel. Read more
source§

impl PowerMeasurementInterface for PounderDevices

source§

fn sample_converter(&mut self, channel: Channel) -> Result<f32, Error>

Sample an ADC channel.

+

Args:

+
    +
  • channel - The channel to sample.
  • +
+

Returns: +The sampled voltage of the specified channel.

+
source§

fn measure_power(&mut self, channel: Channel) -> Result<f32, Error>

Measure the power of an input channel in dBm. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/struct.QspiInterface.html b/firmware/stabilizer/hardware/pounder/struct.QspiInterface.html new file mode 100644 index 0000000000..f8c897ff13 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/struct.QspiInterface.html @@ -0,0 +1,31 @@ +QspiInterface in stabilizer::hardware::pounder - Rust
pub struct QspiInterface {
+    pub qspi: Qspi<QUADSPI>,
+    /* private fields */
+}
Expand description

A structure for the QSPI interface for the DDS.

+

Fields§

§qspi: Qspi<QUADSPI>

Implementations§

source§

impl QspiInterface

source

pub fn new(qspi: Qspi<QUADSPI>) -> Result<Self, Error>

Initialize the QSPI interface.

+

Args:

+
    +
  • qspi - The QSPI peripheral driver.
  • +
+
source

pub fn start_stream(&mut self) -> Result<(), Error>

Trait Implementations§

source§

impl Interface for QspiInterface

source§

fn configure_mode(&mut self, mode: Mode) -> Result<(), Error>

Configure the operations mode of the interface.

+

Args:

+
    +
  • mode - The newly desired operational mode.
  • +
+
source§

fn write(&mut self, addr: u8, data: &[u8]) -> Result<(), Error>

Write data over QSPI to the DDS.

+

Args:

+
    +
  • addr - The address to write over QSPI to the DDS.
  • +
  • data - The data to write.
  • +
+
§

type Error = Error

source§

fn read(&mut self, addr: u8, dest: &mut [u8]) -> Result<(), Error>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/timestamp/index.html b/firmware/stabilizer/hardware/pounder/timestamp/index.html new file mode 100644 index 0000000000..ca6ebc6a34 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/timestamp/index.html @@ -0,0 +1 @@ +stabilizer::hardware::pounder::timestamp - Rust

Structs

  • Software unit to timestamp stabilizer ADC samples using an external pounder reference clock.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/timestamp/sidebar-items.js b/firmware/stabilizer/hardware/pounder/timestamp/sidebar-items.js new file mode 100644 index 0000000000..da1c3c3c95 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/timestamp/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Timestamper"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/pounder/timestamp/struct.Timestamper.html b/firmware/stabilizer/hardware/pounder/timestamp/struct.Timestamper.html new file mode 100644 index 0000000000..64c94ca412 --- /dev/null +++ b/firmware/stabilizer/hardware/pounder/timestamp/struct.Timestamper.html @@ -0,0 +1,35 @@ +Timestamper in stabilizer::hardware::pounder::timestamp - Rust
pub struct Timestamper { /* private fields */ }
Expand description

Software unit to timestamp stabilizer ADC samples using an external pounder reference clock.

+

Implementations§

source§

impl Timestamper

source

pub fn new( + timestamp_timer: PounderTimestampTimer, + capture_channel: Channel1, + sampling_timer: &mut SamplingTimer, + _clock_input: PA0<Alternate<3>>, + batch_size: usize +) -> Self

Construct the pounder sample timestamper.

+
Args
+
    +
  • timestamp_timer - The timer peripheral used for capturing timestamps from.
  • +
  • capture_channel - The input capture channel for collecting timestamps.
  • +
  • sampling_timer - The stabilizer ADC sampling timer.
  • +
  • _clock_input - The input pin for the external clock from Pounder.
  • +
  • batch_size - The number of samples in each batch.
  • +
+
Returns
+

The new pounder timestamper in an operational state.

+
source

pub fn start(&mut self)

Start collecting timestamps.

+
source

pub fn update_period(&mut self, period: u16)

Update the period of the underlying timestamp timer.

+
source

pub fn latest_timestamp(&mut self) -> Result<Option<u16>, Option<u16>>

Obtain a timestamp.

+
Returns
+

A Result potentially indicating capture overflow and containing a Option of a captured +timestamp.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/fn.setup.html b/firmware/stabilizer/hardware/setup/fn.setup.html new file mode 100644 index 0000000000..e2286c62c8 --- /dev/null +++ b/firmware/stabilizer/hardware/setup/fn.setup.html @@ -0,0 +1,23 @@ +setup in stabilizer::hardware::setup - Rust

Function stabilizer::hardware::setup::setup

source ·
pub fn setup(
+    core: CorePeripherals,
+    device: Peripherals,
+    clock: SystemTimer,
+    batch_size: usize,
+    sample_ticks: u32
+) -> (StabilizerDevices, Option<PounderDevices>)
Expand description

Configure the stabilizer hardware for operation.

+

Note

+

Refer to design_parameters::TIMER_FREQUENCY to determine the frequency of the sampling timer.

+

Args

+
    +
  • core - The cortex-m peripherals.
  • +
  • device - The microcontroller peripherals to be configured.
  • +
  • clock - A SystemTimer implementing Clock.
  • +
  • batch_size - The size of each ADC/DAC batch.
  • +
  • sample_ticks - The number of timer ticks between each sample.
  • +
+

Returns

+

(stabilizer, pounder) where stabilizer is a StabilizerDevices structure containing all +stabilizer hardware interfaces in a disabled state. pounder is an Option containing +Some(devices) if pounder is detected, where devices is a PounderDevices structure +containing all of the pounder hardware interfaces in a disabled state.

+
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/index.html b/firmware/stabilizer/hardware/setup/index.html new file mode 100644 index 0000000000..3810b22437 --- /dev/null +++ b/firmware/stabilizer/hardware/setup/index.html @@ -0,0 +1 @@ +stabilizer::hardware::setup - Rust

Module stabilizer::hardware::setup

source ·

Structs

Functions

  • Configure the stabilizer hardware for operation.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/sidebar-items.js b/firmware/stabilizer/hardware/setup/sidebar-items.js new file mode 100644 index 0000000000..75c90ea7c3 --- /dev/null +++ b/firmware/stabilizer/hardware/setup/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["setup"],"struct":["EemGpioDevices","NetStorage","NetworkDevices","PounderDevices","StabilizerDevices","TcpSocketStorage","UdpSocketStorage"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/struct.EemGpioDevices.html b/firmware/stabilizer/hardware/setup/struct.EemGpioDevices.html new file mode 100644 index 0000000000..2c538a91bf --- /dev/null +++ b/firmware/stabilizer/hardware/setup/struct.EemGpioDevices.html @@ -0,0 +1,17 @@ +EemGpioDevices in stabilizer::hardware::setup - Rust
pub struct EemGpioDevices {
+    pub lvds4: EemDigitalInput0,
+    pub lvds5: EemDigitalInput1,
+    pub lvds6: EemDigitalOutput0,
+    pub lvds7: EemDigitalOutput1,
+}
Expand description

The GPIO pins available on the EEM connector, if Pounder is not present.

+

Fields§

§lvds4: EemDigitalInput0§lvds5: EemDigitalInput1§lvds6: EemDigitalOutput0§lvds7: EemDigitalOutput1

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/struct.NetStorage.html b/firmware/stabilizer/hardware/setup/struct.NetStorage.html new file mode 100644 index 0000000000..a2300e7690 --- /dev/null +++ b/firmware/stabilizer/hardware/setup/struct.NetStorage.html @@ -0,0 +1,16 @@ +NetStorage in stabilizer::hardware::setup - Rust
pub struct NetStorage {
+    pub ip_addrs: [IpCidr; 1],
+    pub sockets: [SocketStorage<'static>; 6],
+    pub tcp_socket_storage: [TcpSocketStorage; 4],
+    pub udp_socket_storage: [UdpSocketStorage; 1],
+}

Fields§

§ip_addrs: [IpCidr; 1]§sockets: [SocketStorage<'static>; 6]§tcp_socket_storage: [TcpSocketStorage; 4]§udp_socket_storage: [UdpSocketStorage; 1]

Trait Implementations§

source§

impl Default for NetStorage

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/struct.NetworkDevices.html b/firmware/stabilizer/hardware/setup/struct.NetworkDevices.html new file mode 100644 index 0000000000..0c61a37b2a --- /dev/null +++ b/firmware/stabilizer/hardware/setup/struct.NetworkDevices.html @@ -0,0 +1,16 @@ +NetworkDevices in stabilizer::hardware::setup - Rust
pub struct NetworkDevices {
+    pub stack: NetworkStack,
+    pub phy: EthernetPhy,
+    pub mac_address: EthernetAddress,
+}
Expand description

The available networking devices on Stabilizer.

+

Fields§

§stack: NetworkStack§phy: EthernetPhy§mac_address: EthernetAddress

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/struct.PounderDevices.html b/firmware/stabilizer/hardware/setup/struct.PounderDevices.html new file mode 100644 index 0000000000..7b0d8a431c --- /dev/null +++ b/firmware/stabilizer/hardware/setup/struct.PounderDevices.html @@ -0,0 +1,16 @@ +PounderDevices in stabilizer::hardware::setup - Rust
pub struct PounderDevices {
+    pub pounder: PounderDevices,
+    pub dds_output: DdsOutput,
+    pub timestamper: Timestamper,
+}
Expand description

The available Pounder-specific hardware interfaces.

+

Fields§

§pounder: PounderDevices§dds_output: DdsOutput§timestamper: Timestamper

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/struct.StabilizerDevices.html b/firmware/stabilizer/hardware/setup/struct.StabilizerDevices.html new file mode 100644 index 0000000000..ba401018e9 --- /dev/null +++ b/firmware/stabilizer/hardware/setup/struct.StabilizerDevices.html @@ -0,0 +1,24 @@ +StabilizerDevices in stabilizer::hardware::setup - Rust
pub struct StabilizerDevices {
+    pub systick: Systick,
+    pub temperature_sensor: CpuTempSensor,
+    pub afes: (AFE0, AFE1),
+    pub adcs: (Adc0Input, Adc1Input),
+    pub dacs: (Dac0Output, Dac1Output),
+    pub timestamper: InputStamper,
+    pub adc_dac_timer: SamplingTimer,
+    pub timestamp_timer: TimestampTimer,
+    pub net: NetworkDevices,
+    pub digital_inputs: (DigitalInput0, DigitalInput1),
+    pub eem_gpio: EemGpioDevices,
+}
Expand description

The available hardware interfaces on Stabilizer.

+

Fields§

§systick: Systick§temperature_sensor: CpuTempSensor§afes: (AFE0, AFE1)§adcs: (Adc0Input, Adc1Input)§dacs: (Dac0Output, Dac1Output)§timestamper: InputStamper§adc_dac_timer: SamplingTimer§timestamp_timer: TimestampTimer§net: NetworkDevices§digital_inputs: (DigitalInput0, DigitalInput1)§eem_gpio: EemGpioDevices

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/struct.TcpSocketStorage.html b/firmware/stabilizer/hardware/setup/struct.TcpSocketStorage.html new file mode 100644 index 0000000000..4dd07319c4 --- /dev/null +++ b/firmware/stabilizer/hardware/setup/struct.TcpSocketStorage.html @@ -0,0 +1,11 @@ +TcpSocketStorage in stabilizer::hardware::setup - Rust
pub struct TcpSocketStorage { /* private fields */ }

Trait Implementations§

source§

impl Clone for TcpSocketStorage

source§

fn clone(&self) -> TcpSocketStorage

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for TcpSocketStorage

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/setup/struct.UdpSocketStorage.html b/firmware/stabilizer/hardware/setup/struct.UdpSocketStorage.html new file mode 100644 index 0000000000..8eb15a5da5 --- /dev/null +++ b/firmware/stabilizer/hardware/setup/struct.UdpSocketStorage.html @@ -0,0 +1,11 @@ +UdpSocketStorage in stabilizer::hardware::setup - Rust
pub struct UdpSocketStorage { /* private fields */ }

Trait Implementations§

source§

impl Clone for UdpSocketStorage

source§

fn clone(&self) -> UdpSocketStorage

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for UdpSocketStorage

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/shared_adc/enum.AdcError.html b/firmware/stabilizer/hardware/shared_adc/enum.AdcError.html new file mode 100644 index 0000000000..f1f61d095c --- /dev/null +++ b/firmware/stabilizer/hardware/shared_adc/enum.AdcError.html @@ -0,0 +1,14 @@ +AdcError in stabilizer::hardware::shared_adc - Rust
pub enum AdcError {
+    InUse,
+}

Variants§

§

InUse

Indicates that the ADC is already in use

+

Trait Implementations§

source§

impl Clone for AdcError

source§

fn clone(&self) -> AdcError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AdcError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for AdcError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/shared_adc/index.html b/firmware/stabilizer/hardware/shared_adc/index.html new file mode 100644 index 0000000000..a4ea0fda21 --- /dev/null +++ b/firmware/stabilizer/hardware/shared_adc/index.html @@ -0,0 +1,2 @@ +stabilizer::hardware::shared_adc - Rust

Structs

  • A single channel on an ADC peripheral.
  • An ADC peripheral that can provide ownership of individual channels for sharing between +drivers.

Enums

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/shared_adc/sidebar-items.js b/firmware/stabilizer/hardware/shared_adc/sidebar-items.js new file mode 100644 index 0000000000..b245acdd58 --- /dev/null +++ b/firmware/stabilizer/hardware/shared_adc/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["AdcError"],"struct":["AdcChannel","SharedAdc"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/shared_adc/struct.AdcChannel.html b/firmware/stabilizer/hardware/shared_adc/struct.AdcChannel.html new file mode 100644 index 0000000000..7e27ef333f --- /dev/null +++ b/firmware/stabilizer/hardware/shared_adc/struct.AdcChannel.html @@ -0,0 +1,26 @@ +AdcChannel in stabilizer::hardware::shared_adc - Rust
pub struct AdcChannel<'a, Adc, PIN> { /* private fields */ }
Expand description

A single channel on an ADC peripheral.

+

Implementations§

source§

impl<'a, Adc, PIN> AdcChannel<'a, Adc, PIN>where + PIN: Channel<Adc, ID = u8>, + Adc<Adc, Enabled>: OneShot<Adc, u32, PIN>, + <Adc<Adc, Enabled> as OneShot<Adc, u32, PIN>>::Error: Debug,

source

pub fn read_normalized(&mut self) -> Result<f32, AdcError>

Read the ADC channel and normalize the result.

+
Returns
+

The normalized ADC measurement as a ratio of full-scale.

+
source

pub fn read_raw(&mut self) -> Result<u32, AdcError>

Read the raw ADC sample for the channel.

+
Returns
+

The raw ADC code measured on the channel.

+

Auto Trait Implementations§

§

impl<'a, Adc, PIN> !RefUnwindSafe for AdcChannel<'a, Adc, PIN>

§

impl<'a, Adc, PIN> Send for AdcChannel<'a, Adc, PIN>where + Adc: Send, + PIN: Send,

§

impl<'a, Adc, PIN> Sync for AdcChannel<'a, Adc, PIN>where + Adc: Send, + PIN: Sync,

§

impl<'a, Adc, PIN> Unpin for AdcChannel<'a, Adc, PIN>where + PIN: Unpin,

§

impl<'a, Adc, PIN> !UnwindSafe for AdcChannel<'a, Adc, PIN>

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/shared_adc/struct.SharedAdc.html b/firmware/stabilizer/hardware/shared_adc/struct.SharedAdc.html new file mode 100644 index 0000000000..4cd9c2e8ef --- /dev/null +++ b/firmware/stabilizer/hardware/shared_adc/struct.SharedAdc.html @@ -0,0 +1,33 @@ +SharedAdc in stabilizer::hardware::shared_adc - Rust
pub struct SharedAdc<Adc> { /* private fields */ }
Expand description

An ADC peripheral that can provide ownership of individual channels for sharing between +drivers.

+

Implementations§

source§

impl<Adc> SharedAdc<Adc>

source

pub fn new(slope: f32, adc: Adc<Adc, Enabled>) -> Self

Construct a new shared ADC driver.

+
Args
+
    +
  • slope - The slope of the ADC conversion transfer function.
  • +
  • adc - The ADC peripheral to share.
  • +
+
source

pub fn create_channel<PIN: Channel<Adc, ID = u8>>( + &self, + pin: PIN +) -> AdcChannel<'_, Adc, PIN>

Allocate an ADC channel for usage.

+
Args
+
    +
  • pin - The ADC input associated with the desired ADC channel. Often, this is a GPIO pin.
  • +
+
Returns
+

An instantiated AdcChannel whose ownership can be transferred to other drivers.

+

Auto Trait Implementations§

§

impl<Adc> !RefUnwindSafe for SharedAdc<Adc>

§

impl<Adc> Send for SharedAdc<Adc>where + Adc: Send,

§

impl<Adc> Sync for SharedAdc<Adc>where + Adc: Send,

§

impl<Adc> Unpin for SharedAdc<Adc>where + Adc: Unpin,

§

impl<Adc> UnwindSafe for SharedAdc<Adc>where + Adc: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/sidebar-items.js b/firmware/stabilizer/hardware/sidebar-items.js new file mode 100644 index 0000000000..ae53816a03 --- /dev/null +++ b/firmware/stabilizer/hardware/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"constant":["MONOTONIC_FREQUENCY"],"mod":["adc","afe","cpu_temp_sensor","dac","delay","design_parameters","input_stamper","pounder","setup","shared_adc","signal_generator","timers"],"type":["AFE0","AFE1","DigitalInput0","DigitalInput1","EemDigitalInput0","EemDigitalInput1","EemDigitalOutput0","EemDigitalOutput1","EthernetPhy","I2c1","I2c1Proxy","NetworkManager","NetworkStack","SystemTimer","Systick"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/signal_generator/enum.Error.html b/firmware/stabilizer/hardware/signal_generator/enum.Error.html new file mode 100644 index 0000000000..7a75bb3e1d --- /dev/null +++ b/firmware/stabilizer/hardware/signal_generator/enum.Error.html @@ -0,0 +1,19 @@ +Error in stabilizer::hardware::signal_generator - Rust
pub enum Error {
+    InvalidAmplitude,
+    InvalidSymmetry,
+    InvalidFrequency,
+}
Expand description

Represents the errors that can occur when attempting to configure the signal generator.

+

Variants§

§

InvalidAmplitude

The provided amplitude is out-of-range.

+
§

InvalidSymmetry

The provided symmetry is out of range.

+
§

InvalidFrequency

The provided frequency is out of range.

+

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for Error

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/signal_generator/enum.Signal.html b/firmware/stabilizer/hardware/signal_generator/enum.Signal.html new file mode 100644 index 0000000000..f65382426c --- /dev/null +++ b/firmware/stabilizer/hardware/signal_generator/enum.Signal.html @@ -0,0 +1,20 @@ +Signal in stabilizer::hardware::signal_generator - Rust
pub enum Signal {
+    Cosine,
+    Square,
+    Triangle,
+    WhiteNoise,
+}
Expand description

Types of signals that can be generated.

+

Variants§

§

Cosine

§

Square

§

Triangle

§

WhiteNoise

Trait Implementations§

source§

impl Clone for Signal

source§

fn clone(&self) -> Signal

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Signal

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Signal

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Signal

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for Signal

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/signal_generator/index.html b/firmware/stabilizer/hardware/signal_generator/index.html new file mode 100644 index 0000000000..ebf8135ed9 --- /dev/null +++ b/firmware/stabilizer/hardware/signal_generator/index.html @@ -0,0 +1 @@ +stabilizer::hardware::signal_generator - Rust

Structs

Enums

  • Represents the errors that can occur when attempting to configure the signal generator.
  • Types of signals that can be generated.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/signal_generator/sidebar-items.js b/firmware/stabilizer/hardware/signal_generator/sidebar-items.js new file mode 100644 index 0000000000..aa847d2556 --- /dev/null +++ b/firmware/stabilizer/hardware/signal_generator/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["Error","Signal"],"struct":["BasicConfig","Config","SignalGenerator"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/signal_generator/struct.BasicConfig.html b/firmware/stabilizer/hardware/signal_generator/struct.BasicConfig.html new file mode 100644 index 0000000000..e4cb4bab8c --- /dev/null +++ b/firmware/stabilizer/hardware/signal_generator/struct.BasicConfig.html @@ -0,0 +1,55 @@ +BasicConfig in stabilizer::hardware::signal_generator - Rust
pub struct BasicConfig {
+    pub signal: Signal,
+    pub frequency: f32,
+    pub symmetry: f32,
+    pub amplitude: f32,
+    pub phase: f32,
+}
Expand description

Basic configuration for a generated signal.

+

Miniconf

+

{"signal": <signal>, "frequency", 1000.0, "symmetry": 0.5, "amplitude": 1.0}

+

Where <signal> may be any of Signal variants, frequency specifies the signal frequency +in Hertz, symmetry specifies the normalized signal symmetry which ranges from 0 - 1.0, and +amplitude specifies the signal amplitude in Volts.

+

Fields§

§signal: Signal

The signal type that should be generated. See Signal variants.

+
§frequency: f32

The frequency of the generated signal in Hertz.

+
§symmetry: f32

The normalized symmetry of the signal. At 0% symmetry, the duration of the first half oscillation is minimal. +At 25% symmetry, the first half oscillation lasts for 25% of the signal period. For square wave output this +symmetry is the duty cycle.

+
§amplitude: f32

The amplitude of the output signal in volts.

+
§phase: f32

The phase of the output signal in turns.

+

Implementations§

source§

impl BasicConfig

source

pub fn try_into_config( + self, + sample_period: f32, + full_scale: f32 +) -> Result<Config, Error>

Convert configuration into signal generator values.

+
Args
+
    +
  • sample_period - The time in seconds between samples.
  • +
  • full_scale - The full scale output voltage.
  • +
+

Trait Implementations§

source§

impl Clone for BasicConfig

source§

fn clone(&self) -> BasicConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BasicConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BasicConfig

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Miniconf for BasicConfig

source§

fn set_path<'a, P: Peekable<Item = &'a str>>( + &mut self, + path_parts: &'a mut P, + value: &[u8] +) -> Result<usize, Error>

Deserialize an element by path. Read more
source§

fn get_path<'a, P: Peekable<Item = &'a str>>( + &self, + path_parts: &'a mut P, + value: &mut [u8] +) -> Result<usize, Error>

Serialize an element by path. Read more
source§

fn next_path<const TS: usize>( + state: &mut [usize], + path: &mut String<TS> +) -> Result<bool, IterError>

Get the next path in the namespace. Read more
source§

fn metadata() -> Metadata

Get metadata about the paths in the namespace.
source§

fn set(&mut self, path: &str, data: &[u8]) -> Result<usize, Error>

Update an element by path. Read more
source§

fn get(&self, path: &str, data: &mut [u8]) -> Result<usize, Error>

Retrieve a serialized value by path. Read more
source§

fn iter_paths<const L: usize, const TS: usize>( + +) -> Result<MiniconfIter<Self, L, TS>, IterError>

Create an iterator of all possible paths. Read more
source§

fn unchecked_iter_paths<const L: usize, const TS: usize>( + count: Option<usize> +) -> MiniconfIter<Self, L, TS>

Create an iterator of all possible paths. Read more
source§

impl Copy for BasicConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/signal_generator/struct.Config.html b/firmware/stabilizer/hardware/signal_generator/struct.Config.html new file mode 100644 index 0000000000..472e14df50 --- /dev/null +++ b/firmware/stabilizer/hardware/signal_generator/struct.Config.html @@ -0,0 +1,20 @@ +Config in stabilizer::hardware::signal_generator - Rust
pub struct Config {
+    pub signal: Signal,
+    pub amplitude: i16,
+    pub phase_increment: [i32; 2],
+    pub phase_offset: i32,
+}

Fields§

§signal: Signal

The type of signal being generated

+
§amplitude: i16

The full-scale output code of the signal

+
§phase_increment: [i32; 2]

The frequency tuning word of the signal. Phase is incremented by this amount

+
§phase_offset: i32

The phase offset

+

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Config

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for Config

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/signal_generator/struct.SignalGenerator.html b/firmware/stabilizer/hardware/signal_generator/struct.SignalGenerator.html new file mode 100644 index 0000000000..cb7dee64f6 --- /dev/null +++ b/firmware/stabilizer/hardware/signal_generator/struct.SignalGenerator.html @@ -0,0 +1,208 @@ +SignalGenerator in stabilizer::hardware::signal_generator - Rust
pub struct SignalGenerator { /* private fields */ }

Implementations§

source§

impl SignalGenerator

source

pub fn new(config: Config) -> Self

Construct a new signal generator with some specific config.

+
Args
+
    +
  • config - The config to use for generating signals.
  • +
+
Returns
+

The generator

+
source

pub fn update_waveform(&mut self, new_config: Config)

Update waveform generation settings.

+
source

pub fn clear_phase_accumulator(&mut self)

Clear the phase accumulator.

+

Trait Implementations§

source§

impl Debug for SignalGenerator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Iterator for SignalGenerator

source§

fn next(&mut self) -> Option<i16>

Get the next value in the generator sequence.

+
§

type Item = i16

The type of the elements being iterated over.
source§

fn next_chunk<const N: usize>( + &mut self +) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where + Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usizewhere + Self: Sized,

Consumes the iterator, counting the number of iterations and returning it. Read more
1.0.0 · source§

fn last(self) -> Option<Self::Item>where + Self: Sized,

Consumes the iterator, returning the last element. Read more
source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator by n elements. Read more
1.0.0 · source§

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 · source§

fn step_by(self, step: usize) -> StepBy<Self>where + Self: Sized,

Creates an iterator starting at the same point, but stepping by +the given amount at each iteration. Read more
1.0.0 · source§

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>where + Self: Sized, + U: IntoIterator<Item = Self::Item>,

Takes two iterators and creates a new iterator over both in sequence. Read more
1.0.0 · source§

fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>where + Self: Sized, + U: IntoIterator,

‘Zips up’ two iterators into a single iterator of pairs. Read more
source§

fn intersperse(self, separator: Self::Item) -> Intersperse<Self>where + Self: Sized, + Self::Item: Clone,

🔬This is a nightly-only experimental API. (iter_intersperse)
Creates a new iterator which places a copy of separator between adjacent +items of the original iterator. Read more
source§

fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>where + Self: Sized, + G: FnMut() -> Self::Item,

🔬This is a nightly-only experimental API. (iter_intersperse)
Creates a new iterator which places an item generated by separator +between adjacent items of the original iterator. Read more
1.0.0 · source§

fn map<B, F>(self, f: F) -> Map<Self, F>where + Self: Sized, + F: FnMut(Self::Item) -> B,

Takes a closure and creates an iterator which calls that closure on each +element. Read more
1.21.0 · source§

fn for_each<F>(self, f: F)where + Self: Sized, + F: FnMut(Self::Item),

Calls a closure on each element of an iterator. Read more
1.0.0 · source§

fn filter<P>(self, predicate: P) -> Filter<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element +should be yielded. Read more
1.0.0 · source§

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>where + Self: Sized, + F: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both filters and maps. Read more
1.0.0 · source§

fn enumerate(self) -> Enumerate<Self>where + Self: Sized,

Creates an iterator which gives the current iteration count as well as +the next value. Read more
1.0.0 · source§

fn peekable(self) -> Peekable<Self>where + Self: Sized,

Creates an iterator which can use the peek and peek_mut methods +to look at the next element of the iterator without consuming it. See +their documentation for more information. Read more
1.0.0 · source§

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 · source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 · source§

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>where + Self: Sized, + P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 · source§

fn skip(self, n: usize) -> Skip<Self>where + Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 · source§

fn take(self, n: usize) -> Take<Self>where + Self: Sized,

Creates an iterator that yields the first n elements, or fewer +if the underlying iterator ends sooner. Read more
1.0.0 · source§

fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>where + Self: Sized, + F: FnMut(&mut St, Self::Item) -> Option<B>,

An iterator adapter which, like fold, holds internal state, but +unlike fold, produces a new iterator. Read more
1.0.0 · source§

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>where + Self: Sized, + U: IntoIterator, + F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
1.0.0 · source§

fn fuse(self) -> Fuse<Self>where + Self: Sized,

Creates an iterator which ends after the first None. Read more
1.0.0 · source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>where + Self: Sized, + F: FnMut(&Self::Item),

Does something with each element of an iterator, passing the value on. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Selfwhere + Self: Sized,

Borrows an iterator, rather than consuming it. Read more
1.0.0 · source§

fn collect<B>(self) -> Bwhere + B: FromIterator<Self::Item>, + Self: Sized,

Transforms an iterator into a collection. Read more
source§

fn collect_into<E>(self, collection: &mut E) -> &mut Ewhere + E: Extend<Self::Item>, + Self: Sized,

🔬This is a nightly-only experimental API. (iter_collect_into)
Collects all the items from an iterator into a collection. Read more
1.0.0 · source§

fn partition<B, F>(self, f: F) -> (B, B)where + Self: Sized, + B: Default + Extend<Self::Item>, + F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
source§

fn is_partitioned<P>(self, predicate: P) -> boolwhere + Self: Sized, + P: FnMut(Self::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_is_partitioned)
Checks if the elements of this iterator are partitioned according to the given predicate, +such that all those that return true precede all those that return false. Read more
1.27.0 · source§

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> Rwhere + Self: Sized, + F: FnMut(B, Self::Item) -> R, + R: Try<Output = B>,

An iterator method that applies a function as long as it returns +successfully, producing a single, final value. Read more
1.27.0 · source§

fn try_for_each<F, R>(&mut self, f: F) -> Rwhere + Self: Sized, + F: FnMut(Self::Item) -> R, + R: Try<Output = ()>,

An iterator method that applies a fallible function to each item in the +iterator, stopping at the first error and returning that error. Read more
1.0.0 · source§

fn fold<B, F>(self, init: B, f: F) -> Bwhere + Self: Sized, + F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation, +returning the final result. Read more
1.51.0 · source§

fn reduce<F>(self, f: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing +operation. Read more
source§

fn try_reduce<F, R>( + &mut self, + f: F +) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryTypewhere + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> R, + R: Try<Output = Self::Item>, + <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (iterator_try_reduce)
Reduces the elements to a single one by repeatedly applying a reducing operation. If the +closure returns a failure, the failure is propagated back to the caller immediately. Read more
1.0.0 · source§

fn all<F>(&mut self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 · source§

fn any<F>(&mut self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 · source§

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 · source§

fn find_map<B, F>(&mut self, f: F) -> Option<B>where + Self: Sized, + F: FnMut(Self::Item) -> Option<B>,

Applies function to the elements of iterator and returns +the first non-none result. Read more
source§

fn try_find<F, R>( + &mut self, + f: F +) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryTypewhere + Self: Sized, + F: FnMut(&Self::Item) -> R, + R: Try<Output = bool>, + <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (try_find)
Applies function to the elements of iterator and returns +the first true result or the first error. Read more
1.0.0 · source§

fn position<P>(&mut self, predicate: P) -> Option<usize>where + Self: Sized, + P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.0.0 · source§

fn max(self) -> Option<Self::Item>where + Self: Sized, + Self::Item: Ord,

Returns the maximum element of an iterator. Read more
1.0.0 · source§

fn min(self) -> Option<Self::Item>where + Self: Sized, + Self::Item: Ord,

Returns the minimum element of an iterator. Read more
1.6.0 · source§

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>where + B: Ord, + Self: Sized, + F: FnMut(&Self::Item) -> B,

Returns the element that gives the maximum value from the +specified function. Read more
1.15.0 · source§

fn max_by<F>(self, compare: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the +specified comparison function. Read more
1.6.0 · source§

fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>where + B: Ord, + Self: Sized, + F: FnMut(&Self::Item) -> B,

Returns the element that gives the minimum value from the +specified function. Read more
1.15.0 · source§

fn min_by<F>(self, compare: F) -> Option<Self::Item>where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the +specified comparison function. Read more
1.0.0 · source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)where + FromA: Default + Extend<A>, + FromB: Default + Extend<B>, + Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 · source§

fn copied<'a, T>(self) -> Copied<Self>where + T: 'a + Copy, + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 · source§

fn cloned<'a, T>(self) -> Cloned<Self>where + T: 'a + Clone, + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>where + Self: Sized,

🔬This is a nightly-only experimental API. (iter_array_chunks)
Returns an iterator over N elements of the iterator at a time. Read more
1.11.0 · source§

fn sum<S>(self) -> Swhere + Self: Sized, + S: Sum<Self::Item>,

Sums the elements of an iterator. Read more
1.11.0 · source§

fn product<P>(self) -> Pwhere + Self: Sized, + P: Product<Self::Item>,

Iterates over the entire iterator, multiplying all the elements Read more
1.5.0 · source§

fn cmp<I>(self, other: I) -> Orderingwhere + I: IntoIterator<Item = Self::Item>, + Self::Item: Ord, + Self: Sized,

Lexicographically compares the elements of this Iterator with those +of another. Read more
source§

fn cmp_by<I, F>(self, other: I, cmp: F) -> Orderingwhere + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those +of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn partial_cmp<I>(self, other: I) -> Option<Ordering>where + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Lexicographically compares the PartialOrd elements of +this Iterator with those of another. The comparison works like short-circuit +evaluation, returning a result without comparing the remaining elements. +As soon as an order can be determined, the evaluation stops and a result is returned. Read more
source§

fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those +of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn eq<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialEq<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are equal to those of +another. Read more
source§

fn eq_by<I, F>(self, other: I, eq: F) -> boolwhere + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_order_by)
Determines if the elements of this Iterator are equal to those of +another with respect to the specified equality function. Read more
1.5.0 · source§

fn ne<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialEq<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are not equal to those of +another. Read more
1.5.0 · source§

fn lt<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +less than those of another. Read more
1.5.0 · source§

fn le<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +less or equal to those of another. Read more
1.5.0 · source§

fn gt<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +greater than those of another. Read more
1.5.0 · source§

fn ge<I>(self, other: I) -> boolwhere + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +greater than or equal to those of another. Read more
source§

fn is_sorted(self) -> boolwhere + Self: Sized, + Self::Item: PartialOrd<Self::Item>,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted. Read more
source§

fn is_sorted_by<F>(self, compare: F) -> boolwhere + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted using the given comparator function. Read more
source§

fn is_sorted_by_key<F, K>(self, f: F) -> boolwhere + Self: Sized, + F: FnMut(Self::Item) -> K, + K: PartialOrd<K>,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted using the given key extraction +function. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<I> IntoIterator for Iwhere + I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/enum.InputFilter.html b/firmware/stabilizer/hardware/timers/enum.InputFilter.html new file mode 100644 index 0000000000..7bba9958e7 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/enum.InputFilter.html @@ -0,0 +1,15 @@ +InputFilter in stabilizer::hardware::timers - Rust
pub enum InputFilter {
+    Div1N1,
+    Div1N8,
+}
Expand description

Optional input capture preconditioning filter configurations.

+

Variants§

§

Div1N1

§

Div1N8

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/enum.Prescaler.html b/firmware/stabilizer/hardware/timers/enum.Prescaler.html new file mode 100644 index 0000000000..3bef6ed56f --- /dev/null +++ b/firmware/stabilizer/hardware/timers/enum.Prescaler.html @@ -0,0 +1,20 @@ +Prescaler in stabilizer::hardware::timers - Rust
#[repr(u8)]
+pub enum Prescaler {
+    Div1,
+    Div2,
+    Div4,
+    Div8,
+}
Expand description

Prescalers for externally-supplied reference clocks.

+

Variants§

§

Div1

§

Div2

§

Div4

§

Div8

Trait Implementations§

source§

impl TryFrom<u8> for Prescaler

§

type Error = TryFromPrimitiveError<Prescaler>

The type returned in the event of a conversion error.
source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
source§

impl TryFromPrimitive for Prescaler

§

type Primitive = u8

source§

const NAME: &'static str = _

source§

fn try_from_primitive( + number: Self::Primitive +) -> Result<Self, TryFromPrimitiveError<Self>>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/enum.SlaveMode.html b/firmware/stabilizer/hardware/timers/enum.SlaveMode.html new file mode 100644 index 0000000000..78c2a7bd2c --- /dev/null +++ b/firmware/stabilizer/hardware/timers/enum.SlaveMode.html @@ -0,0 +1,15 @@ +SlaveMode in stabilizer::hardware::timers - Rust
pub enum SlaveMode {
+    Disabled,
+    Trigger,
+}
Expand description

Optional slave operation modes of a timer.

+

Variants§

§

Disabled

§

Trigger

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/enum.TriggerGenerator.html b/firmware/stabilizer/hardware/timers/enum.TriggerGenerator.html new file mode 100644 index 0000000000..887e53be19 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/enum.TriggerGenerator.html @@ -0,0 +1,21 @@ +TriggerGenerator in stabilizer::hardware::timers - Rust
pub enum TriggerGenerator {
+    Reset,
+    Enable,
+    Update,
+    ComparePulse,
+    Ch1Compare,
+    Ch2Compare,
+    Ch3Compare,
+    Ch4Compare,
+}
Expand description

The event that should generate an external trigger from the peripheral.

+

Variants§

§

Reset

§

Enable

§

Update

§

ComparePulse

§

Ch1Compare

§

Ch2Compare

§

Ch3Compare

§

Ch4Compare

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/enum.TriggerSource.html b/firmware/stabilizer/hardware/timers/enum.TriggerSource.html new file mode 100644 index 0000000000..5afb0691ad --- /dev/null +++ b/firmware/stabilizer/hardware/timers/enum.TriggerSource.html @@ -0,0 +1,17 @@ +TriggerSource in stabilizer::hardware::timers - Rust
pub enum TriggerSource {
+    Trigger0,
+    Trigger1,
+    Trigger2,
+    Trigger3,
+}
Expand description

Selects the trigger source for the timer peripheral.

+

Variants§

§

Trigger0

§

Trigger1

§

Trigger2

§

Trigger3

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/index.html b/firmware/stabilizer/hardware/timers/index.html new file mode 100644 index 0000000000..711cc91c68 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/index.html @@ -0,0 +1 @@ +stabilizer::hardware::timers - Rust

Module stabilizer::hardware::timers

source ·

Modules

Structs

Enums

  • Optional input capture preconditioning filter configurations.
  • Prescalers for externally-supplied reference clocks.
  • Optional slave operation modes of a timer.
  • The event that should generate an external trigger from the peripheral.
  • Selects the trigger source for the timer peripheral.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/sidebar-items.js b/firmware/stabilizer/hardware/timers/sidebar-items.js new file mode 100644 index 0000000000..b93fb3108f --- /dev/null +++ b/firmware/stabilizer/hardware/timers/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["InputFilter","Prescaler","SlaveMode","TriggerGenerator","TriggerSource"],"mod":["tim2","tim3","tim5","tim8"],"struct":["PounderTimestampTimer","SamplingTimer","ShadowSamplingTimer","TimestampTimer"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/struct.PounderTimestampTimer.html b/firmware/stabilizer/hardware/timers/struct.PounderTimestampTimer.html new file mode 100644 index 0000000000..9902ffee25 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/struct.PounderTimestampTimer.html @@ -0,0 +1,30 @@ +PounderTimestampTimer in stabilizer::hardware::timers - Rust
pub struct PounderTimestampTimer { /* private fields */ }
Expand description

The timer used for managing ADC sampling.

+

Implementations§

source§

impl PounderTimestampTimer

source

pub fn new(timer: Timer<TIM8>) -> Self

Construct the sampling timer.

+
source

pub fn channels(&mut self) -> Channels

Get the timer capture/compare channels.

+
source

pub fn update_event(&mut self) -> UpdateEvent

Get the timer update event.

+
source

pub fn get_period(&self) -> u16

Get the period of the timer.

+
source

pub fn set_period_ticks(&mut self, period: u16)

Manually set the period of the timer.

+
source

pub fn set_external_clock(&mut self, prescaler: Prescaler)

Clock the timer from an external source.

+
Note:
+
    +
  • Currently, only an external source applied to ETR is supported.
  • +
+
Args
+
    +
  • prescaler - The prescaler to use for the external source.
  • +
+
source

pub fn start(&mut self)

Start the timer.

+
source

pub fn generate_trigger(&mut self, source: TriggerGenerator)

Configure the timer peripheral to generate a trigger based on the provided +source.

+
source

pub fn set_trigger_source(&mut self, source: TriggerSource)

Select a trigger source for the timer peripheral.

+
source

pub fn set_slave_mode(&mut self, source: TriggerSource, mode: SlaveMode)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/struct.SamplingTimer.html b/firmware/stabilizer/hardware/timers/struct.SamplingTimer.html new file mode 100644 index 0000000000..8f5408e8c9 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/struct.SamplingTimer.html @@ -0,0 +1,30 @@ +SamplingTimer in stabilizer::hardware::timers - Rust
pub struct SamplingTimer { /* private fields */ }
Expand description

The timer used for managing ADC sampling.

+

Implementations§

source§

impl SamplingTimer

source

pub fn new(timer: Timer<TIM2>) -> Self

Construct the sampling timer.

+
source

pub fn channels(&mut self) -> Channels

Get the timer capture/compare channels.

+
source

pub fn update_event(&mut self) -> UpdateEvent

Get the timer update event.

+
source

pub fn get_period(&self) -> u32

Get the period of the timer.

+
source

pub fn set_period_ticks(&mut self, period: u32)

Manually set the period of the timer.

+
source

pub fn set_external_clock(&mut self, prescaler: Prescaler)

Clock the timer from an external source.

+
Note:
+
    +
  • Currently, only an external source applied to ETR is supported.
  • +
+
Args
+
    +
  • prescaler - The prescaler to use for the external source.
  • +
+
source

pub fn start(&mut self)

Start the timer.

+
source

pub fn generate_trigger(&mut self, source: TriggerGenerator)

Configure the timer peripheral to generate a trigger based on the provided +source.

+
source

pub fn set_trigger_source(&mut self, source: TriggerSource)

Select a trigger source for the timer peripheral.

+
source

pub fn set_slave_mode(&mut self, source: TriggerSource, mode: SlaveMode)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/struct.ShadowSamplingTimer.html b/firmware/stabilizer/hardware/timers/struct.ShadowSamplingTimer.html new file mode 100644 index 0000000000..1123850d1a --- /dev/null +++ b/firmware/stabilizer/hardware/timers/struct.ShadowSamplingTimer.html @@ -0,0 +1,30 @@ +ShadowSamplingTimer in stabilizer::hardware::timers - Rust
pub struct ShadowSamplingTimer { /* private fields */ }
Expand description

The timer used for managing ADC sampling.

+

Implementations§

source§

impl ShadowSamplingTimer

source

pub fn new(timer: Timer<TIM3>) -> Self

Construct the sampling timer.

+
source

pub fn channels(&mut self) -> Channels

Get the timer capture/compare channels.

+
source

pub fn update_event(&mut self) -> UpdateEvent

Get the timer update event.

+
source

pub fn get_period(&self) -> u16

Get the period of the timer.

+
source

pub fn set_period_ticks(&mut self, period: u16)

Manually set the period of the timer.

+
source

pub fn set_external_clock(&mut self, prescaler: Prescaler)

Clock the timer from an external source.

+
Note:
+
    +
  • Currently, only an external source applied to ETR is supported.
  • +
+
Args
+
    +
  • prescaler - The prescaler to use for the external source.
  • +
+
source

pub fn start(&mut self)

Start the timer.

+
source

pub fn generate_trigger(&mut self, source: TriggerGenerator)

Configure the timer peripheral to generate a trigger based on the provided +source.

+
source

pub fn set_trigger_source(&mut self, source: TriggerSource)

Select a trigger source for the timer peripheral.

+
source

pub fn set_slave_mode(&mut self, source: TriggerSource, mode: SlaveMode)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/struct.TimestampTimer.html b/firmware/stabilizer/hardware/timers/struct.TimestampTimer.html new file mode 100644 index 0000000000..3a25acc8c9 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/struct.TimestampTimer.html @@ -0,0 +1,30 @@ +TimestampTimer in stabilizer::hardware::timers - Rust
pub struct TimestampTimer { /* private fields */ }
Expand description

The timer used for managing ADC sampling.

+

Implementations§

source§

impl TimestampTimer

source

pub fn new(timer: Timer<TIM5>) -> Self

Construct the sampling timer.

+
source

pub fn channels(&mut self) -> Channels

Get the timer capture/compare channels.

+
source

pub fn update_event(&mut self) -> UpdateEvent

Get the timer update event.

+
source

pub fn get_period(&self) -> u32

Get the period of the timer.

+
source

pub fn set_period_ticks(&mut self, period: u32)

Manually set the period of the timer.

+
source

pub fn set_external_clock(&mut self, prescaler: Prescaler)

Clock the timer from an external source.

+
Note:
+
    +
  • Currently, only an external source applied to ETR is supported.
  • +
+
Args
+
    +
  • prescaler - The prescaler to use for the external source.
  • +
+
source

pub fn start(&mut self)

Start the timer.

+
source

pub fn generate_trigger(&mut self, source: TriggerGenerator)

Configure the timer peripheral to generate a trigger based on the provided +source.

+
source

pub fn set_trigger_source(&mut self, source: TriggerSource)

Select a trigger source for the timer peripheral.

+
source

pub fn set_slave_mode(&mut self, source: TriggerSource, mode: SlaveMode)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource1.html b/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource1.html new file mode 100644 index 0000000000..050b861363 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource1.html @@ -0,0 +1,22 @@ +CaptureSource1 in stabilizer::hardware::timers::tim2 - Rust
pub enum CaptureSource1 {
+    Ti1,
+    Ti2,
+    Trc,
+}
Expand description

Capture/Compare 1 selection

+

Value on reset: 0

+

Variants§

§

Ti1

1: CC1 channel is configured as input, IC1 is mapped on TI1

+
§

Ti2

2: CC1 channel is configured as input, IC1 is mapped on TI2

+
§

Trc

3: CC1 channel is configured as input, IC1 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC1S_A

§

fn clone(&self) -> CC1S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC1S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC1S_A> for CC1S_A

§

fn eq(&self, other: &CC1S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC1S_A

§

impl StructuralPartialEq for CC1S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource2.html b/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource2.html new file mode 100644 index 0000000000..4388e6ca47 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource2.html @@ -0,0 +1,22 @@ +CaptureSource2 in stabilizer::hardware::timers::tim2 - Rust
pub enum CaptureSource2 {
+    Ti2,
+    Ti1,
+    Trc,
+}
Expand description

Capture/Compare 2 selection

+

Value on reset: 0

+

Variants§

§

Ti2

1: CC2 channel is configured as input, IC2 is mapped on TI2

+
§

Ti1

2: CC2 channel is configured as input, IC2 is mapped on TI1

+
§

Trc

3: CC2 channel is configured as input, IC2 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC2S_A

§

fn clone(&self) -> CC2S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC2S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC2S_A> for CC2S_A

§

fn eq(&self, other: &CC2S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC2S_A

§

impl StructuralPartialEq for CC2S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource3.html b/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource3.html new file mode 100644 index 0000000000..09c5333e70 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource3.html @@ -0,0 +1,22 @@ +CaptureSource3 in stabilizer::hardware::timers::tim2 - Rust
pub enum CaptureSource3 {
+    Ti3,
+    Ti4,
+    Trc,
+}
Expand description

Capture/compare 3 selection

+

Value on reset: 0

+

Variants§

§

Ti3

1: CC3 channel is configured as input, IC3 is mapped on TI3

+
§

Ti4

2: CC3 channel is configured as input, IC3 is mapped on TI4

+
§

Trc

3: CC3 channel is configured as input, IC3 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC3S_A

§

fn clone(&self) -> CC3S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC3S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC3S_A> for CC3S_A

§

fn eq(&self, other: &CC3S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC3S_A

§

impl StructuralPartialEq for CC3S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource4.html b/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource4.html new file mode 100644 index 0000000000..9b140a1d5e --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/enum.CaptureSource4.html @@ -0,0 +1,22 @@ +CaptureSource4 in stabilizer::hardware::timers::tim2 - Rust
pub enum CaptureSource4 {
+    Ti4,
+    Ti3,
+    Trc,
+}
Expand description

Capture/Compare 4 selection

+

Value on reset: 0

+

Variants§

§

Ti4

1: CC4 channel is configured as input, IC4 is mapped on TI4

+
§

Ti3

2: CC4 channel is configured as input, IC4 is mapped on TI3

+
§

Trc

3: CC4 channel is configured as input, IC4 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC4S_A

§

fn clone(&self) -> CC4S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC4S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC4S_A> for CC4S_A

§

fn eq(&self, other: &CC4S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC4S_A

§

impl StructuralPartialEq for CC4S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/index.html b/firmware/stabilizer/hardware/timers/tim2/index.html new file mode 100644 index 0000000000..d01262008b --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/index.html @@ -0,0 +1 @@ +stabilizer::hardware::timers::tim2 - Rust

Structs

Enums

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/sidebar-items.js b/firmware/stabilizer/hardware/timers/tim2/sidebar-items.js new file mode 100644 index 0000000000..18c003e212 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["CaptureSource1","CaptureSource2","CaptureSource3","CaptureSource4"],"struct":["Channel1","Channel1InputCapture","Channel2","Channel2InputCapture","Channel3","Channel3InputCapture","Channel4","Channel4InputCapture","Channels","UpdateEvent"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channel1.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channel1.html new file mode 100644 index 0000000000..dd6606f3ea --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channel1.html @@ -0,0 +1,23 @@ +Channel1 in stabilizer::hardware::timers::tim2 - Rust
pub struct Channel1 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel1

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u32)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource1) -> Channel1InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channel1InputCapture.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channel1InputCapture.html new file mode 100644 index 0000000000..a0546aadd1 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channel1InputCapture.html @@ -0,0 +1,26 @@ +Channel1InputCapture in stabilizer::hardware::timers::tim2 - Rust
pub struct Channel1InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel1InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel1InputCapture

§

type MemSize = u32

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channel2.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channel2.html new file mode 100644 index 0000000000..91942a4a3a --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channel2.html @@ -0,0 +1,23 @@ +Channel2 in stabilizer::hardware::timers::tim2 - Rust
pub struct Channel2 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel2

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u32)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource2) -> Channel2InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channel2InputCapture.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channel2InputCapture.html new file mode 100644 index 0000000000..2fa951d4d7 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channel2InputCapture.html @@ -0,0 +1,26 @@ +Channel2InputCapture in stabilizer::hardware::timers::tim2 - Rust
pub struct Channel2InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel2InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel2InputCapture

§

type MemSize = u32

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channel3.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channel3.html new file mode 100644 index 0000000000..9ac7d273f6 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channel3.html @@ -0,0 +1,23 @@ +Channel3 in stabilizer::hardware::timers::tim2 - Rust
pub struct Channel3 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel3

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u32)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource3) -> Channel3InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channel3InputCapture.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channel3InputCapture.html new file mode 100644 index 0000000000..39ecb2ae98 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channel3InputCapture.html @@ -0,0 +1,26 @@ +Channel3InputCapture in stabilizer::hardware::timers::tim2 - Rust
pub struct Channel3InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel3InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel3InputCapture

§

type MemSize = u32

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channel4.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channel4.html new file mode 100644 index 0000000000..be24329eaa --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channel4.html @@ -0,0 +1,23 @@ +Channel4 in stabilizer::hardware::timers::tim2 - Rust
pub struct Channel4 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel4

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u32)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource4) -> Channel4InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channel4InputCapture.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channel4InputCapture.html new file mode 100644 index 0000000000..7cf403370e --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channel4InputCapture.html @@ -0,0 +1,26 @@ +Channel4InputCapture in stabilizer::hardware::timers::tim2 - Rust
pub struct Channel4InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel4InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel4InputCapture

§

type MemSize = u32

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.Channels.html b/firmware/stabilizer/hardware/timers/tim2/struct.Channels.html new file mode 100644 index 0000000000..6f97cfe532 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.Channels.html @@ -0,0 +1,20 @@ +Channels in stabilizer::hardware::timers::tim2 - Rust
pub struct Channels {
+    pub ch1: Channel1,
+    pub ch2: Channel2,
+    pub ch3: Channel3,
+    pub ch4: Channel4,
+}
Expand description

The channels representing the timer.

+

Fields§

§ch1: Channel1§ch2: Channel2§ch3: Channel3§ch4: Channel4

Implementations§

source§

impl Channels

source

pub unsafe fn new() -> Self

Construct a new set of channels.

+
Safety
+

This is only safe to call once.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim2/struct.UpdateEvent.html b/firmware/stabilizer/hardware/timers/tim2/struct.UpdateEvent.html new file mode 100644 index 0000000000..59340f9e32 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim2/struct.UpdateEvent.html @@ -0,0 +1,16 @@ +UpdateEvent in stabilizer::hardware::timers::tim2 - Rust
pub struct UpdateEvent {}

Implementations§

source§

impl UpdateEvent

source

pub unsafe fn new() -> Self

Create a new update event

+
Safety
+

This is only safe to call once.

+
source

pub fn listen_dma(&self)

Enable DMA requests upon timer updates.

+
source

pub fn trigger(&self)

Trigger a DMA request manually

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource1.html b/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource1.html new file mode 100644 index 0000000000..c35a79dc4f --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource1.html @@ -0,0 +1,22 @@ +CaptureSource1 in stabilizer::hardware::timers::tim3 - Rust
pub enum CaptureSource1 {
+    Ti1,
+    Ti2,
+    Trc,
+}
Expand description

Capture/Compare 1 selection

+

Value on reset: 0

+

Variants§

§

Ti1

1: CC1 channel is configured as input, IC1 is mapped on TI1

+
§

Ti2

2: CC1 channel is configured as input, IC1 is mapped on TI2

+
§

Trc

3: CC1 channel is configured as input, IC1 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC1S_A

§

fn clone(&self) -> CC1S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC1S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC1S_A> for CC1S_A

§

fn eq(&self, other: &CC1S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC1S_A

§

impl StructuralPartialEq for CC1S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource2.html b/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource2.html new file mode 100644 index 0000000000..f9351f8179 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource2.html @@ -0,0 +1,22 @@ +CaptureSource2 in stabilizer::hardware::timers::tim3 - Rust
pub enum CaptureSource2 {
+    Ti2,
+    Ti1,
+    Trc,
+}
Expand description

Capture/Compare 2 selection

+

Value on reset: 0

+

Variants§

§

Ti2

1: CC2 channel is configured as input, IC2 is mapped on TI2

+
§

Ti1

2: CC2 channel is configured as input, IC2 is mapped on TI1

+
§

Trc

3: CC2 channel is configured as input, IC2 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC2S_A

§

fn clone(&self) -> CC2S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC2S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC2S_A> for CC2S_A

§

fn eq(&self, other: &CC2S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC2S_A

§

impl StructuralPartialEq for CC2S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource3.html b/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource3.html new file mode 100644 index 0000000000..d53fa89554 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource3.html @@ -0,0 +1,22 @@ +CaptureSource3 in stabilizer::hardware::timers::tim3 - Rust
pub enum CaptureSource3 {
+    Ti3,
+    Ti4,
+    Trc,
+}
Expand description

Capture/compare 3 selection

+

Value on reset: 0

+

Variants§

§

Ti3

1: CC3 channel is configured as input, IC3 is mapped on TI3

+
§

Ti4

2: CC3 channel is configured as input, IC3 is mapped on TI4

+
§

Trc

3: CC3 channel is configured as input, IC3 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC3S_A

§

fn clone(&self) -> CC3S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC3S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC3S_A> for CC3S_A

§

fn eq(&self, other: &CC3S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC3S_A

§

impl StructuralPartialEq for CC3S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource4.html b/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource4.html new file mode 100644 index 0000000000..2436f96871 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/enum.CaptureSource4.html @@ -0,0 +1,22 @@ +CaptureSource4 in stabilizer::hardware::timers::tim3 - Rust
pub enum CaptureSource4 {
+    Ti4,
+    Ti3,
+    Trc,
+}
Expand description

Capture/Compare 4 selection

+

Value on reset: 0

+

Variants§

§

Ti4

1: CC4 channel is configured as input, IC4 is mapped on TI4

+
§

Ti3

2: CC4 channel is configured as input, IC4 is mapped on TI3

+
§

Trc

3: CC4 channel is configured as input, IC4 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC4S_A

§

fn clone(&self) -> CC4S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC4S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC4S_A> for CC4S_A

§

fn eq(&self, other: &CC4S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC4S_A

§

impl StructuralPartialEq for CC4S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/index.html b/firmware/stabilizer/hardware/timers/tim3/index.html new file mode 100644 index 0000000000..1e8f2bfaff --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/index.html @@ -0,0 +1 @@ +stabilizer::hardware::timers::tim3 - Rust

Structs

Enums

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/sidebar-items.js b/firmware/stabilizer/hardware/timers/tim3/sidebar-items.js new file mode 100644 index 0000000000..18c003e212 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["CaptureSource1","CaptureSource2","CaptureSource3","CaptureSource4"],"struct":["Channel1","Channel1InputCapture","Channel2","Channel2InputCapture","Channel3","Channel3InputCapture","Channel4","Channel4InputCapture","Channels","UpdateEvent"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channel1.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channel1.html new file mode 100644 index 0000000000..7c58db35e8 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channel1.html @@ -0,0 +1,23 @@ +Channel1 in stabilizer::hardware::timers::tim3 - Rust
pub struct Channel1 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel1

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u16)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource1) -> Channel1InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channel1InputCapture.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channel1InputCapture.html new file mode 100644 index 0000000000..0d41ec0be8 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channel1InputCapture.html @@ -0,0 +1,26 @@ +Channel1InputCapture in stabilizer::hardware::timers::tim3 - Rust
pub struct Channel1InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel1InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel1InputCapture

§

type MemSize = u16

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channel2.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channel2.html new file mode 100644 index 0000000000..c69b686c02 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channel2.html @@ -0,0 +1,23 @@ +Channel2 in stabilizer::hardware::timers::tim3 - Rust
pub struct Channel2 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel2

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u16)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource2) -> Channel2InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channel2InputCapture.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channel2InputCapture.html new file mode 100644 index 0000000000..46da84b655 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channel2InputCapture.html @@ -0,0 +1,26 @@ +Channel2InputCapture in stabilizer::hardware::timers::tim3 - Rust
pub struct Channel2InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel2InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel2InputCapture

§

type MemSize = u16

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channel3.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channel3.html new file mode 100644 index 0000000000..af0abe4221 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channel3.html @@ -0,0 +1,23 @@ +Channel3 in stabilizer::hardware::timers::tim3 - Rust
pub struct Channel3 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel3

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u16)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource3) -> Channel3InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channel3InputCapture.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channel3InputCapture.html new file mode 100644 index 0000000000..52621852ee --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channel3InputCapture.html @@ -0,0 +1,26 @@ +Channel3InputCapture in stabilizer::hardware::timers::tim3 - Rust
pub struct Channel3InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel3InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel3InputCapture

§

type MemSize = u16

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channel4.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channel4.html new file mode 100644 index 0000000000..9bdfed0bbc --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channel4.html @@ -0,0 +1,23 @@ +Channel4 in stabilizer::hardware::timers::tim3 - Rust
pub struct Channel4 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel4

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u16)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource4) -> Channel4InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channel4InputCapture.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channel4InputCapture.html new file mode 100644 index 0000000000..dcc31dca63 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channel4InputCapture.html @@ -0,0 +1,26 @@ +Channel4InputCapture in stabilizer::hardware::timers::tim3 - Rust
pub struct Channel4InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel4InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel4InputCapture

§

type MemSize = u16

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.Channels.html b/firmware/stabilizer/hardware/timers/tim3/struct.Channels.html new file mode 100644 index 0000000000..9b3b6e2a49 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.Channels.html @@ -0,0 +1,20 @@ +Channels in stabilizer::hardware::timers::tim3 - Rust
pub struct Channels {
+    pub ch1: Channel1,
+    pub ch2: Channel2,
+    pub ch3: Channel3,
+    pub ch4: Channel4,
+}
Expand description

The channels representing the timer.

+

Fields§

§ch1: Channel1§ch2: Channel2§ch3: Channel3§ch4: Channel4

Implementations§

source§

impl Channels

source

pub unsafe fn new() -> Self

Construct a new set of channels.

+
Safety
+

This is only safe to call once.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim3/struct.UpdateEvent.html b/firmware/stabilizer/hardware/timers/tim3/struct.UpdateEvent.html new file mode 100644 index 0000000000..005bf64aea --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim3/struct.UpdateEvent.html @@ -0,0 +1,16 @@ +UpdateEvent in stabilizer::hardware::timers::tim3 - Rust
pub struct UpdateEvent {}

Implementations§

source§

impl UpdateEvent

source

pub unsafe fn new() -> Self

Create a new update event

+
Safety
+

This is only safe to call once.

+
source

pub fn listen_dma(&self)

Enable DMA requests upon timer updates.

+
source

pub fn trigger(&self)

Trigger a DMA request manually

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource1.html b/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource1.html new file mode 100644 index 0000000000..f80f37aa7a --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource1.html @@ -0,0 +1,22 @@ +CaptureSource1 in stabilizer::hardware::timers::tim5 - Rust
pub enum CaptureSource1 {
+    Ti1,
+    Ti2,
+    Trc,
+}
Expand description

Capture/Compare 1 selection

+

Value on reset: 0

+

Variants§

§

Ti1

1: CC1 channel is configured as input, IC1 is mapped on TI1

+
§

Ti2

2: CC1 channel is configured as input, IC1 is mapped on TI2

+
§

Trc

3: CC1 channel is configured as input, IC1 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC1S_A

§

fn clone(&self) -> CC1S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC1S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC1S_A> for CC1S_A

§

fn eq(&self, other: &CC1S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC1S_A

§

impl StructuralPartialEq for CC1S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource2.html b/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource2.html new file mode 100644 index 0000000000..5abda790db --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource2.html @@ -0,0 +1,22 @@ +CaptureSource2 in stabilizer::hardware::timers::tim5 - Rust
pub enum CaptureSource2 {
+    Ti2,
+    Ti1,
+    Trc,
+}
Expand description

Capture/Compare 2 selection

+

Value on reset: 0

+

Variants§

§

Ti2

1: CC2 channel is configured as input, IC2 is mapped on TI2

+
§

Ti1

2: CC2 channel is configured as input, IC2 is mapped on TI1

+
§

Trc

3: CC2 channel is configured as input, IC2 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC2S_A

§

fn clone(&self) -> CC2S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC2S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC2S_A> for CC2S_A

§

fn eq(&self, other: &CC2S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC2S_A

§

impl StructuralPartialEq for CC2S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource3.html b/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource3.html new file mode 100644 index 0000000000..0ded4a6bbb --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource3.html @@ -0,0 +1,22 @@ +CaptureSource3 in stabilizer::hardware::timers::tim5 - Rust
pub enum CaptureSource3 {
+    Ti3,
+    Ti4,
+    Trc,
+}
Expand description

Capture/compare 3 selection

+

Value on reset: 0

+

Variants§

§

Ti3

1: CC3 channel is configured as input, IC3 is mapped on TI3

+
§

Ti4

2: CC3 channel is configured as input, IC3 is mapped on TI4

+
§

Trc

3: CC3 channel is configured as input, IC3 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC3S_A

§

fn clone(&self) -> CC3S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC3S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC3S_A> for CC3S_A

§

fn eq(&self, other: &CC3S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC3S_A

§

impl StructuralPartialEq for CC3S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource4.html b/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource4.html new file mode 100644 index 0000000000..53437dc12f --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/enum.CaptureSource4.html @@ -0,0 +1,22 @@ +CaptureSource4 in stabilizer::hardware::timers::tim5 - Rust
pub enum CaptureSource4 {
+    Ti4,
+    Ti3,
+    Trc,
+}
Expand description

Capture/Compare 4 selection

+

Value on reset: 0

+

Variants§

§

Ti4

1: CC4 channel is configured as input, IC4 is mapped on TI4

+
§

Ti3

2: CC4 channel is configured as input, IC4 is mapped on TI3

+
§

Trc

3: CC4 channel is configured as input, IC4 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC4S_A

§

fn clone(&self) -> CC4S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC4S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC4S_A> for CC4S_A

§

fn eq(&self, other: &CC4S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC4S_A

§

impl StructuralPartialEq for CC4S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/index.html b/firmware/stabilizer/hardware/timers/tim5/index.html new file mode 100644 index 0000000000..42f035dcf8 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/index.html @@ -0,0 +1 @@ +stabilizer::hardware::timers::tim5 - Rust

Structs

Enums

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/sidebar-items.js b/firmware/stabilizer/hardware/timers/tim5/sidebar-items.js new file mode 100644 index 0000000000..18c003e212 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["CaptureSource1","CaptureSource2","CaptureSource3","CaptureSource4"],"struct":["Channel1","Channel1InputCapture","Channel2","Channel2InputCapture","Channel3","Channel3InputCapture","Channel4","Channel4InputCapture","Channels","UpdateEvent"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channel1.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channel1.html new file mode 100644 index 0000000000..aeb343bd3c --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channel1.html @@ -0,0 +1,23 @@ +Channel1 in stabilizer::hardware::timers::tim5 - Rust
pub struct Channel1 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel1

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u32)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource1) -> Channel1InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channel1InputCapture.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channel1InputCapture.html new file mode 100644 index 0000000000..843fa02940 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channel1InputCapture.html @@ -0,0 +1,26 @@ +Channel1InputCapture in stabilizer::hardware::timers::tim5 - Rust
pub struct Channel1InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel1InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel1InputCapture

§

type MemSize = u32

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channel2.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channel2.html new file mode 100644 index 0000000000..1141cfe366 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channel2.html @@ -0,0 +1,23 @@ +Channel2 in stabilizer::hardware::timers::tim5 - Rust
pub struct Channel2 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel2

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u32)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource2) -> Channel2InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channel2InputCapture.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channel2InputCapture.html new file mode 100644 index 0000000000..3590556681 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channel2InputCapture.html @@ -0,0 +1,26 @@ +Channel2InputCapture in stabilizer::hardware::timers::tim5 - Rust
pub struct Channel2InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel2InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel2InputCapture

§

type MemSize = u32

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channel3.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channel3.html new file mode 100644 index 0000000000..b516f1921a --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channel3.html @@ -0,0 +1,23 @@ +Channel3 in stabilizer::hardware::timers::tim5 - Rust
pub struct Channel3 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel3

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u32)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource3) -> Channel3InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channel3InputCapture.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channel3InputCapture.html new file mode 100644 index 0000000000..ae37f16e1b --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channel3InputCapture.html @@ -0,0 +1,26 @@ +Channel3InputCapture in stabilizer::hardware::timers::tim5 - Rust
pub struct Channel3InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel3InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel3InputCapture

§

type MemSize = u32

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channel4.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channel4.html new file mode 100644 index 0000000000..2f87eb3544 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channel4.html @@ -0,0 +1,23 @@ +Channel4 in stabilizer::hardware::timers::tim5 - Rust
pub struct Channel4 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel4

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u32)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource4) -> Channel4InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channel4InputCapture.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channel4InputCapture.html new file mode 100644 index 0000000000..c5a95bcf8b --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channel4InputCapture.html @@ -0,0 +1,26 @@ +Channel4InputCapture in stabilizer::hardware::timers::tim5 - Rust
pub struct Channel4InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel4InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u32>, Option<u32>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel4InputCapture

§

type MemSize = u32

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.Channels.html b/firmware/stabilizer/hardware/timers/tim5/struct.Channels.html new file mode 100644 index 0000000000..fcd88ceb45 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.Channels.html @@ -0,0 +1,20 @@ +Channels in stabilizer::hardware::timers::tim5 - Rust
pub struct Channels {
+    pub ch1: Channel1,
+    pub ch2: Channel2,
+    pub ch3: Channel3,
+    pub ch4: Channel4,
+}
Expand description

The channels representing the timer.

+

Fields§

§ch1: Channel1§ch2: Channel2§ch3: Channel3§ch4: Channel4

Implementations§

source§

impl Channels

source

pub unsafe fn new() -> Self

Construct a new set of channels.

+
Safety
+

This is only safe to call once.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim5/struct.UpdateEvent.html b/firmware/stabilizer/hardware/timers/tim5/struct.UpdateEvent.html new file mode 100644 index 0000000000..43521d9f4b --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim5/struct.UpdateEvent.html @@ -0,0 +1,16 @@ +UpdateEvent in stabilizer::hardware::timers::tim5 - Rust
pub struct UpdateEvent {}

Implementations§

source§

impl UpdateEvent

source

pub unsafe fn new() -> Self

Create a new update event

+
Safety
+

This is only safe to call once.

+
source

pub fn listen_dma(&self)

Enable DMA requests upon timer updates.

+
source

pub fn trigger(&self)

Trigger a DMA request manually

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource1.html b/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource1.html new file mode 100644 index 0000000000..2d4dede6e0 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource1.html @@ -0,0 +1,22 @@ +CaptureSource1 in stabilizer::hardware::timers::tim8 - Rust
pub enum CaptureSource1 {
+    Ti1,
+    Ti2,
+    Trc,
+}
Expand description

Capture/Compare 1 selection

+

Value on reset: 0

+

Variants§

§

Ti1

1: CC1 channel is configured as input, IC1 is mapped on TI1

+
§

Ti2

2: CC1 channel is configured as input, IC1 is mapped on TI2

+
§

Trc

3: CC1 channel is configured as input, IC1 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC1S_A

§

fn clone(&self) -> CC1S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC1S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC1S_A> for CC1S_A

§

fn eq(&self, other: &CC1S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC1S_A

§

impl StructuralPartialEq for CC1S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource2.html b/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource2.html new file mode 100644 index 0000000000..8546d633fb --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource2.html @@ -0,0 +1,22 @@ +CaptureSource2 in stabilizer::hardware::timers::tim8 - Rust
pub enum CaptureSource2 {
+    Ti2,
+    Ti1,
+    Trc,
+}
Expand description

Capture/Compare 2 selection

+

Value on reset: 0

+

Variants§

§

Ti2

1: CC2 channel is configured as input, IC2 is mapped on TI2

+
§

Ti1

2: CC2 channel is configured as input, IC2 is mapped on TI1

+
§

Trc

3: CC2 channel is configured as input, IC2 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC2S_A

§

fn clone(&self) -> CC2S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC2S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC2S_A> for CC2S_A

§

fn eq(&self, other: &CC2S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC2S_A

§

impl StructuralPartialEq for CC2S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource3.html b/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource3.html new file mode 100644 index 0000000000..af29aec6fe --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource3.html @@ -0,0 +1,22 @@ +CaptureSource3 in stabilizer::hardware::timers::tim8 - Rust
pub enum CaptureSource3 {
+    Ti3,
+    Ti4,
+    Trc,
+}
Expand description

Capture/compare 3 selection

+

Value on reset: 0

+

Variants§

§

Ti3

1: CC3 channel is configured as input, IC3 is mapped on TI3

+
§

Ti4

2: CC3 channel is configured as input, IC3 is mapped on TI4

+
§

Trc

3: CC3 channel is configured as input, IC3 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC3S_A

§

fn clone(&self) -> CC3S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC3S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC3S_A> for CC3S_A

§

fn eq(&self, other: &CC3S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC3S_A

§

impl StructuralPartialEq for CC3S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource4.html b/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource4.html new file mode 100644 index 0000000000..d75fe98ba4 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/enum.CaptureSource4.html @@ -0,0 +1,22 @@ +CaptureSource4 in stabilizer::hardware::timers::tim8 - Rust
pub enum CaptureSource4 {
+    Ti4,
+    Ti3,
+    Trc,
+}
Expand description

Capture/Compare 4 selection

+

Value on reset: 0

+

Variants§

§

Ti4

1: CC4 channel is configured as input, IC4 is mapped on TI4

+
§

Ti3

2: CC4 channel is configured as input, IC4 is mapped on TI3

+
§

Trc

3: CC4 channel is configured as input, IC4 is mapped on TRC

+

Trait Implementations§

§

impl Clone for CC4S_A

§

fn clone(&self) -> CC4S_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CC4S_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<CC4S_A> for CC4S_A

§

fn eq(&self, other: &CC4S_A) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
§

impl Copy for CC4S_A

§

impl StructuralPartialEq for CC4S_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/index.html b/firmware/stabilizer/hardware/timers/tim8/index.html new file mode 100644 index 0000000000..1ad9913645 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/index.html @@ -0,0 +1 @@ +stabilizer::hardware::timers::tim8 - Rust

Structs

Enums

\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/sidebar-items.js b/firmware/stabilizer/hardware/timers/tim8/sidebar-items.js new file mode 100644 index 0000000000..18c003e212 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["CaptureSource1","CaptureSource2","CaptureSource3","CaptureSource4"],"struct":["Channel1","Channel1InputCapture","Channel2","Channel2InputCapture","Channel3","Channel3InputCapture","Channel4","Channel4InputCapture","Channels","UpdateEvent"]}; \ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channel1.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channel1.html new file mode 100644 index 0000000000..608cbd45c3 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channel1.html @@ -0,0 +1,23 @@ +Channel1 in stabilizer::hardware::timers::tim8 - Rust
pub struct Channel1 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel1

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u16)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource1) -> Channel1InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channel1InputCapture.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channel1InputCapture.html new file mode 100644 index 0000000000..11b49d525a --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channel1InputCapture.html @@ -0,0 +1,26 @@ +Channel1InputCapture in stabilizer::hardware::timers::tim8 - Rust
pub struct Channel1InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel1InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel1InputCapture

§

type MemSize = u16

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channel2.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channel2.html new file mode 100644 index 0000000000..a3dad4ca1b --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channel2.html @@ -0,0 +1,23 @@ +Channel2 in stabilizer::hardware::timers::tim8 - Rust
pub struct Channel2 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel2

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u16)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource2) -> Channel2InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channel2InputCapture.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channel2InputCapture.html new file mode 100644 index 0000000000..87ee11291f --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channel2InputCapture.html @@ -0,0 +1,26 @@ +Channel2InputCapture in stabilizer::hardware::timers::tim8 - Rust
pub struct Channel2InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel2InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel2InputCapture

§

type MemSize = u16

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channel3.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channel3.html new file mode 100644 index 0000000000..b81ae7e979 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channel3.html @@ -0,0 +1,23 @@ +Channel3 in stabilizer::hardware::timers::tim8 - Rust
pub struct Channel3 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel3

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u16)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource3) -> Channel3InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channel3InputCapture.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channel3InputCapture.html new file mode 100644 index 0000000000..3a22f85693 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channel3InputCapture.html @@ -0,0 +1,26 @@ +Channel3InputCapture in stabilizer::hardware::timers::tim8 - Rust
pub struct Channel3InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel3InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel3InputCapture

§

type MemSize = u16

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channel4.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channel4.html new file mode 100644 index 0000000000..8fd6ba7e9a --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channel4.html @@ -0,0 +1,23 @@ +Channel4 in stabilizer::hardware::timers::tim8 - Rust
pub struct Channel4 {}
Expand description

A capture/compare channel of the timer.

+

Implementations§

source§

impl Channel4

source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn to_output_compare(&self, value: u16)

Operate the channel as an output-compare.

+
Args
+
    +
  • value - The value to compare the sampling timer’s counter against.
  • +
+
source

pub fn into_input_capture(self, input: CaptureSource4) -> Channel4InputCapture

Operate the channel in input-capture mode.

+
Args
+
    +
  • input - The input source for the input capture event.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channel4InputCapture.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channel4InputCapture.html new file mode 100644 index 0000000000..462b61244f --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channel4InputCapture.html @@ -0,0 +1,26 @@ +Channel4InputCapture in stabilizer::hardware::timers::tim8 - Rust
pub struct Channel4InputCapture {}
Expand description

A capture channel of the timer.

+

Implementations§

source§

impl Channel4InputCapture

source

pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>

Get the latest capture from the channel.

+
source

pub fn listen_dma(&self)

Allow the channel to generate DMA requests.

+
source

pub fn enable(&mut self)

Enable the input capture to begin capturing timer values.

+
source

pub fn check_overcapture(&self) -> bool

Check if an over-capture event has occurred.

+
source

pub fn configure_filter(&mut self, filter: InputFilter)

Configure the input capture input pre-filter.

+
Args
+
    +
  • filter - The desired input filter stage configuration. Defaults to disabled.
  • +
+
source

pub fn configure_prescaler(&mut self, prescaler: Prescaler)

Configure the input capture prescaler.

+
Args
+
    +
  • psc - Prescaler exponent.
  • +
+

Trait Implementations§

source§

impl TargetAddress<PeripheralToMemory> for Channel4InputCapture

§

type MemSize = u16

Memory size of the target address
source§

const REQUEST_LINE: Option<u8> = _

An optional associated request line
source§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.Channels.html b/firmware/stabilizer/hardware/timers/tim8/struct.Channels.html new file mode 100644 index 0000000000..a7b8abdf6a --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.Channels.html @@ -0,0 +1,20 @@ +Channels in stabilizer::hardware::timers::tim8 - Rust
pub struct Channels {
+    pub ch1: Channel1,
+    pub ch2: Channel2,
+    pub ch3: Channel3,
+    pub ch4: Channel4,
+}
Expand description

The channels representing the timer.

+

Fields§

§ch1: Channel1§ch2: Channel2§ch3: Channel3§ch4: Channel4

Implementations§

source§

impl Channels

source

pub unsafe fn new() -> Self

Construct a new set of channels.

+
Safety
+

This is only safe to call once.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/timers/tim8/struct.UpdateEvent.html b/firmware/stabilizer/hardware/timers/tim8/struct.UpdateEvent.html new file mode 100644 index 0000000000..784492ad35 --- /dev/null +++ b/firmware/stabilizer/hardware/timers/tim8/struct.UpdateEvent.html @@ -0,0 +1,16 @@ +UpdateEvent in stabilizer::hardware::timers::tim8 - Rust
pub struct UpdateEvent {}

Implementations§

source§

impl UpdateEvent

source

pub unsafe fn new() -> Self

Create a new update event

+
Safety
+

This is only safe to call once.

+
source

pub fn listen_dma(&self)

Enable DMA requests upon timer updates.

+
source

pub fn trigger(&self)

Trigger a DMA request manually

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.AFE0.html b/firmware/stabilizer/hardware/type.AFE0.html new file mode 100644 index 0000000000..cd43b0aef3 --- /dev/null +++ b/firmware/stabilizer/hardware/type.AFE0.html @@ -0,0 +1 @@ +AFE0 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::AFE0

source ·
pub type AFE0 = ProgrammableGainAmplifier<PF2<Output<PushPull>>, PF5<Output<PushPull>>>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.AFE1.html b/firmware/stabilizer/hardware/type.AFE1.html new file mode 100644 index 0000000000..ed3be94673 --- /dev/null +++ b/firmware/stabilizer/hardware/type.AFE1.html @@ -0,0 +1 @@ +AFE1 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::AFE1

source ·
pub type AFE1 = ProgrammableGainAmplifier<PD14<Output<PushPull>>, PD15<Output<PushPull>>>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.DigitalInput0.html b/firmware/stabilizer/hardware/type.DigitalInput0.html new file mode 100644 index 0000000000..9d330dda35 --- /dev/null +++ b/firmware/stabilizer/hardware/type.DigitalInput0.html @@ -0,0 +1 @@ +DigitalInput0 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::DigitalInput0

source ·
pub type DigitalInput0 = PG9<Input>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.DigitalInput1.html b/firmware/stabilizer/hardware/type.DigitalInput1.html new file mode 100644 index 0000000000..69c939083b --- /dev/null +++ b/firmware/stabilizer/hardware/type.DigitalInput1.html @@ -0,0 +1 @@ +DigitalInput1 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::DigitalInput1

source ·
pub type DigitalInput1 = PC15<Input>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.EemDigitalInput0.html b/firmware/stabilizer/hardware/type.EemDigitalInput0.html new file mode 100644 index 0000000000..b119afe655 --- /dev/null +++ b/firmware/stabilizer/hardware/type.EemDigitalInput0.html @@ -0,0 +1 @@ +EemDigitalInput0 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::EemDigitalInput0

source ·
pub type EemDigitalInput0 = PD1<Input>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.EemDigitalInput1.html b/firmware/stabilizer/hardware/type.EemDigitalInput1.html new file mode 100644 index 0000000000..f605527550 --- /dev/null +++ b/firmware/stabilizer/hardware/type.EemDigitalInput1.html @@ -0,0 +1 @@ +EemDigitalInput1 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::EemDigitalInput1

source ·
pub type EemDigitalInput1 = PD2<Input>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.EemDigitalOutput0.html b/firmware/stabilizer/hardware/type.EemDigitalOutput0.html new file mode 100644 index 0000000000..1e76e3826a --- /dev/null +++ b/firmware/stabilizer/hardware/type.EemDigitalOutput0.html @@ -0,0 +1 @@ +EemDigitalOutput0 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::EemDigitalOutput0

source ·
pub type EemDigitalOutput0 = PD3<Output>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.EemDigitalOutput1.html b/firmware/stabilizer/hardware/type.EemDigitalOutput1.html new file mode 100644 index 0000000000..d2a82cd9fa --- /dev/null +++ b/firmware/stabilizer/hardware/type.EemDigitalOutput1.html @@ -0,0 +1 @@ +EemDigitalOutput1 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::EemDigitalOutput1

source ·
pub type EemDigitalOutput1 = PD4<Output>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.EthernetPhy.html b/firmware/stabilizer/hardware/type.EthernetPhy.html new file mode 100644 index 0000000000..9f84db65ae --- /dev/null +++ b/firmware/stabilizer/hardware/type.EthernetPhy.html @@ -0,0 +1 @@ +EthernetPhy in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::EthernetPhy

source ·
pub type EthernetPhy = LAN8742A<EthernetMAC>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.I2c1.html b/firmware/stabilizer/hardware/type.I2c1.html new file mode 100644 index 0000000000..c136e40234 --- /dev/null +++ b/firmware/stabilizer/hardware/type.I2c1.html @@ -0,0 +1 @@ +I2c1 in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::I2c1

source ·
pub type I2c1 = I2c<I2C1>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.I2c1Proxy.html b/firmware/stabilizer/hardware/type.I2c1Proxy.html new file mode 100644 index 0000000000..375f9f4ad8 --- /dev/null +++ b/firmware/stabilizer/hardware/type.I2c1Proxy.html @@ -0,0 +1 @@ +I2c1Proxy in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::I2c1Proxy

source ·
pub type I2c1Proxy = I2cProxy<'static, AtomicCheckMutex<I2c1>>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.NetworkManager.html b/firmware/stabilizer/hardware/type.NetworkManager.html new file mode 100644 index 0000000000..7af8d2c8a3 --- /dev/null +++ b/firmware/stabilizer/hardware/type.NetworkManager.html @@ -0,0 +1 @@ +NetworkManager in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::NetworkManager

source ·
pub type NetworkManager = NetworkManager<'static, EthernetDMA<TX_DESRING_CNT, RX_DESRING_CNT>, SystemTimer>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.NetworkStack.html b/firmware/stabilizer/hardware/type.NetworkStack.html new file mode 100644 index 0000000000..54fa83cbf0 --- /dev/null +++ b/firmware/stabilizer/hardware/type.NetworkStack.html @@ -0,0 +1 @@ +NetworkStack in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::NetworkStack

source ·
pub type NetworkStack = NetworkStack<'static, EthernetDMA<TX_DESRING_CNT, RX_DESRING_CNT>, SystemTimer>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.SystemTimer.html b/firmware/stabilizer/hardware/type.SystemTimer.html new file mode 100644 index 0000000000..e2953807ad --- /dev/null +++ b/firmware/stabilizer/hardware/type.SystemTimer.html @@ -0,0 +1 @@ +SystemTimer in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::SystemTimer

source ·
pub type SystemTimer = MonoClock<u32, MONOTONIC_FREQUENCY>;
\ No newline at end of file diff --git a/firmware/stabilizer/hardware/type.Systick.html b/firmware/stabilizer/hardware/type.Systick.html new file mode 100644 index 0000000000..16c09989da --- /dev/null +++ b/firmware/stabilizer/hardware/type.Systick.html @@ -0,0 +1 @@ +Systick in stabilizer::hardware - Rust

Type Definition stabilizer::hardware::Systick

source ·
pub type Systick = Systick<MONOTONIC_FREQUENCY>;
\ No newline at end of file diff --git a/firmware/stabilizer/index.html b/firmware/stabilizer/index.html new file mode 100644 index 0000000000..795b679b20 --- /dev/null +++ b/firmware/stabilizer/index.html @@ -0,0 +1 @@ +stabilizer - Rust
\ No newline at end of file diff --git a/firmware/stabilizer/net/constant.DEFAULT_MQTT_BROKER.html b/firmware/stabilizer/net/constant.DEFAULT_MQTT_BROKER.html new file mode 100644 index 0000000000..d4740e0aad --- /dev/null +++ b/firmware/stabilizer/net/constant.DEFAULT_MQTT_BROKER.html @@ -0,0 +1,2 @@ +DEFAULT_MQTT_BROKER in stabilizer::net - Rust
pub const DEFAULT_MQTT_BROKER: [u8; 4];
Expand description

The default MQTT broker IP address if unspecified.

+
\ No newline at end of file diff --git a/firmware/stabilizer/net/data_stream/enum.StreamFormat.html b/firmware/stabilizer/net/data_stream/enum.StreamFormat.html new file mode 100644 index 0000000000..d526e40ef8 --- /dev/null +++ b/firmware/stabilizer/net/data_stream/enum.StreamFormat.html @@ -0,0 +1,27 @@ +StreamFormat in stabilizer::net::data_stream - Rust
#[repr(u8)]
+pub enum StreamFormat {
+    Unknown,
+    AdcDacData,
+    Fls,
+}
Expand description

Specifies the format of streamed data

+

Variants§

§

Unknown

Reserved, unused format specifier.

+
§

AdcDacData

Streamed data contains ADC0, ADC1, DAC0, and DAC1 sequentially in little-endian format.

+

Example

+

With a batch size of 2, the serialization would take the following form:

+ +
<ADC0[0]> <ADC0[1]> <ADC1[0]> <ADC1[1]> <DAC0[0]> <DAC0[1]> <DAC1[0]> <DAC1[1]>
+
§

Fls

Streamed data in FLS (fiber length stabilization) format. See the FLS application for +detailed definition.

+

Trait Implementations§

source§

impl Clone for StreamFormat

source§

fn clone(&self) -> StreamFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StreamFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<StreamFormat> for u8

source§

fn from(enum_value: StreamFormat) -> Self

Converts to this type from the input type.
source§

impl PartialEq<StreamFormat> for StreamFormat

source§

fn eq(&self, other: &StreamFormat) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl Copy for StreamFormat

source§

impl Eq for StreamFormat

source§

impl StructuralEq for StreamFormat

source§

impl StructuralPartialEq for StreamFormat

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/data_stream/fn.setup_streaming.html b/firmware/stabilizer/net/data_stream/fn.setup_streaming.html new file mode 100644 index 0000000000..d55cfbf127 --- /dev/null +++ b/firmware/stabilizer/net/data_stream/fn.setup_streaming.html @@ -0,0 +1,9 @@ +setup_streaming in stabilizer::net::data_stream - Rust
pub fn setup_streaming(stack: NetworkReference) -> (FrameGenerator, DataStream)
Expand description

Configure streaming on a device.

+

Args

+
    +
  • stack - A reference to the shared network stack.
  • +
+

Returns

+

(generator, stream) where generator can be used to enqueue “batches” for transmission. The +stream is the logically consumer (UDP transmitter) of the enqueued data.

+
\ No newline at end of file diff --git a/firmware/stabilizer/net/data_stream/index.html b/firmware/stabilizer/net/data_stream/index.html new file mode 100644 index 0000000000..74681f9571 --- /dev/null +++ b/firmware/stabilizer/net/data_stream/index.html @@ -0,0 +1,22 @@ +stabilizer::net::data_stream - Rust

Module stabilizer::net::data_stream

source ·
Expand description

Stabilizer data stream capabilities

+

Design

+

Data streamining utilizes UDP packets to send live data streams at high throughput. +Packets are always sent in a best-effort fashion, and data may be dropped.

+

Stabilizer organizes livestreamed data into batches within a “Frame” that will be sent as a UDP +packet. Each frame consits of a header followed by sequential batch serializations. The packet +header is constant for all streaming capabilities, but the serialization format after the header +is application-defined.

+

Frame Header

+

The header consists of the following, all in little-endian.

+
    +
  • Magic word 0x057B (u16): a constant to identify Stabilizer streaming data.
  • +
  • Format Code (u8): a unique ID that indicates the serialization format of each batch of data +in the frame. Refer to StreamFormat for further information.
  • +
  • Batch Size (u8): the number of samples in each batch of data.
  • +
  • Sequence Number (u32): an the sequence number of the first batch in the frame. +This can be used to determine if and how many stream batches are lost.
  • +
+

Example

+

A sample Python script is available in scripts/stream_throughput.py to demonstrate reception +of livestreamed data.

+

Structs

Enums

Functions

\ No newline at end of file diff --git a/firmware/stabilizer/net/data_stream/sidebar-items.js b/firmware/stabilizer/net/data_stream/sidebar-items.js new file mode 100644 index 0000000000..c817651fea --- /dev/null +++ b/firmware/stabilizer/net/data_stream/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["StreamFormat"],"fn":["setup_streaming"],"struct":["DataStream","FrameGenerator","StreamTarget"]}; \ No newline at end of file diff --git a/firmware/stabilizer/net/data_stream/struct.DataStream.html b/firmware/stabilizer/net/data_stream/struct.DataStream.html new file mode 100644 index 0000000000..ce397c8476 --- /dev/null +++ b/firmware/stabilizer/net/data_stream/struct.DataStream.html @@ -0,0 +1,20 @@ +DataStream in stabilizer::net::data_stream - Rust
pub struct DataStream { /* private fields */ }
Expand description

The “consumer” portion of the data stream.

+

Note

+

This is responsible for consuming data and sending it over UDP.

+

Implementations§

source§

impl DataStream

source

pub fn set_remote(&mut self, remote: SocketAddr)

Configure the remote endpoint of the stream.

+
Args
+
    +
  • remote - The destination to send stream data to.
  • +
+
source

pub fn process(&mut self)

Process any data for transmission.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/data_stream/struct.FrameGenerator.html b/firmware/stabilizer/net/data_stream/struct.FrameGenerator.html new file mode 100644 index 0000000000..9ff166a8be --- /dev/null +++ b/firmware/stabilizer/net/data_stream/struct.FrameGenerator.html @@ -0,0 +1,19 @@ +FrameGenerator in stabilizer::net::data_stream - Rust
pub struct FrameGenerator { /* private fields */ }
Expand description

The data generator for a stream.

+

Implementations§

source§

impl FrameGenerator

source

pub fn add<F, const T: usize>(&mut self, f: F)where + F: FnMut(&mut [MaybeUninit<u8>]),

Add a batch to the current stream frame.

+
Args
+
    +
  • f - A closure that will be provided the buffer to write batch data into. The buffer will +be the size of the T template argument.
  • +
+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/data_stream/struct.StreamTarget.html b/firmware/stabilizer/net/data_stream/struct.StreamTarget.html new file mode 100644 index 0000000000..a2c68e462b --- /dev/null +++ b/firmware/stabilizer/net/data_stream/struct.StreamTarget.html @@ -0,0 +1,26 @@ +StreamTarget in stabilizer::net::data_stream - Rust
pub struct StreamTarget {
+    pub ip: [u8; 4],
+    pub port: u16,
+}
Expand description

Represents the destination for the UDP stream to send data to.

+

Miniconf

+

{"ip": <addr>, "port": <port>}

+
    +
  • <addr> is an array of 4 bytes. E.g. [192, 168, 0, 1]
  • +
  • <port> is any unsigned 16-bit value.
  • +
+

Example

+

{"ip": [192, 168,0, 1], "port": 1111}

+

Fields§

§ip: [u8; 4]§port: u16

Trait Implementations§

source§

impl Clone for StreamTarget

source§

fn clone(&self) -> StreamTarget

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StreamTarget

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StreamTarget

source§

fn default() -> StreamTarget

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for StreamTarget

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<StreamTarget> for SocketAddr

source§

fn from(target: StreamTarget) -> SocketAddr

Converts to this type from the input type.
source§

impl Serialize for StreamTarget

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for StreamTarget

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/firmware/stabilizer/net/enum.NetworkState.html b/firmware/stabilizer/net/enum.NetworkState.html new file mode 100644 index 0000000000..c758faa4f0 --- /dev/null +++ b/firmware/stabilizer/net/enum.NetworkState.html @@ -0,0 +1,15 @@ +NetworkState in stabilizer::net - Rust
pub enum NetworkState {
+    SettingsChanged(String<128>),
+    Updated,
+    NoChange,
+}

Variants§

§

SettingsChanged(String<128>)

§

Updated

§

NoChange

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/enum.UpdateState.html b/firmware/stabilizer/net/enum.UpdateState.html new file mode 100644 index 0000000000..1734821867 --- /dev/null +++ b/firmware/stabilizer/net/enum.UpdateState.html @@ -0,0 +1,14 @@ +UpdateState in stabilizer::net - Rust
pub enum UpdateState {
+    NoChange,
+    Updated,
+}

Variants§

§

NoChange

§

Updated

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/fn.get_device_prefix.html b/firmware/stabilizer/net/fn.get_device_prefix.html new file mode 100644 index 0000000000..ba5a5656dc --- /dev/null +++ b/firmware/stabilizer/net/fn.get_device_prefix.html @@ -0,0 +1,9 @@ +get_device_prefix in stabilizer::net - Rust
pub fn get_device_prefix(app: &str, mac: EthernetAddress) -> String<128>
Expand description

Get the MQTT prefix of a device.

+

Args

+
    +
  • app - The name of the application that is executing.
  • +
  • mac - The ethernet MAC address of the device.
  • +
+

Returns

+

The MQTT prefix used for this device.

+
\ No newline at end of file diff --git a/firmware/stabilizer/net/index.html b/firmware/stabilizer/net/index.html new file mode 100644 index 0000000000..0eddfecf45 --- /dev/null +++ b/firmware/stabilizer/net/index.html @@ -0,0 +1 @@ +stabilizer::net - Rust

Module stabilizer::net

source ·

Re-exports

Modules

Structs

  • A structure of Stabilizer’s default network users.

Enums

Constants

Functions

Type Definitions

\ No newline at end of file diff --git a/firmware/stabilizer/net/network_processor/index.html b/firmware/stabilizer/net/network_processor/index.html new file mode 100644 index 0000000000..c6090e7d73 --- /dev/null +++ b/firmware/stabilizer/net/network_processor/index.html @@ -0,0 +1 @@ +stabilizer::net::network_processor - Rust

Structs

\ No newline at end of file diff --git a/firmware/stabilizer/net/network_processor/sidebar-items.js b/firmware/stabilizer/net/network_processor/sidebar-items.js new file mode 100644 index 0000000000..559f731fde --- /dev/null +++ b/firmware/stabilizer/net/network_processor/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["NetworkProcessor"]}; \ No newline at end of file diff --git a/firmware/stabilizer/net/network_processor/struct.NetworkProcessor.html b/firmware/stabilizer/net/network_processor/struct.NetworkProcessor.html new file mode 100644 index 0000000000..3663c69930 --- /dev/null +++ b/firmware/stabilizer/net/network_processor/struct.NetworkProcessor.html @@ -0,0 +1,33 @@ +NetworkProcessor in stabilizer::net::network_processor - Rust
pub struct NetworkProcessor {
+    pub stack: NetworkReference,
+    /* private fields */
+}
Expand description

Processor for managing network hardware.

+

Fields§

§stack: NetworkReference

Implementations§

source§

impl NetworkProcessor

source

pub fn new(stack: NetworkReference, phy: EthernetPhy) -> Self

Construct a new network processor.

+
Args
+
    +
  • stack - A reference to the shared network stack
  • +
  • phy - The ethernet PHY used for the network.
  • +
+
Returns
+

The newly constructed processor.

+

Handle ethernet link connection status.

+
Note
+

This may take non-trivial amounts of time to communicate with the PHY. As such, this should +only be called as often as necessary (e.g. once per second or so).

+
source

pub fn update(&mut self) -> UpdateState

Process and update the state of the network.

+
Note
+

This function should be called regularly before other network tasks to update the state of +all relevant network sockets.

+
Returns
+

An update state corresponding with any changes in the underlying network.

+

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/sidebar-items.js b/firmware/stabilizer/net/sidebar-items.js new file mode 100644 index 0000000000..a4650d6ee4 --- /dev/null +++ b/firmware/stabilizer/net/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"constant":["DEFAULT_MQTT_BROKER"],"enum":["NetworkState","UpdateState"],"fn":["get_device_prefix"],"mod":["data_stream","network_processor","telemetry"],"struct":["NetworkUsers"],"type":["NetworkReference"]}; \ No newline at end of file diff --git a/firmware/stabilizer/net/struct.NetworkUsers.html b/firmware/stabilizer/net/struct.NetworkUsers.html new file mode 100644 index 0000000000..be870a584a --- /dev/null +++ b/firmware/stabilizer/net/struct.NetworkUsers.html @@ -0,0 +1,60 @@ +NetworkUsers in stabilizer::net - Rust
pub struct NetworkUsers<S: Default + Miniconf + Clone, T: Serialize> {
+    pub miniconf: MqttClient<S, NetworkReference, SystemTimer, 512>,
+    pub processor: NetworkProcessor,
+    pub telemetry: TelemetryClient<T>,
+    /* private fields */
+}
Expand description

A structure of Stabilizer’s default network users.

+

Fields§

§miniconf: MqttClient<S, NetworkReference, SystemTimer, 512>§processor: NetworkProcessor§telemetry: TelemetryClient<T>

Implementations§

source§

impl<S, T> NetworkUsers<S, T>where + S: Default + Miniconf + Clone, + T: Serialize,

source

pub fn new( + stack: NetworkStack, + phy: EthernetPhy, + clock: SystemTimer, + app: &str, + mac: EthernetAddress, + broker: IpAddr +) -> Self

Construct Stabilizer’s default network users.

+
Args
+
    +
  • stack - The network stack that will be used to share with all network users.
  • +
  • phy - The ethernet PHY connecting the network.
  • +
  • clock - A SystemTimer implementing Clock.
  • +
  • app - The name of the application.
  • +
  • mac - The MAC address of the network.
  • +
  • broker - The IP address of the MQTT broker to use.
  • +
+
Returns
+

A new struct of network users.

+
source

pub fn configure_streaming( + &mut self, + format: impl Into<u8>, + batch_size: u8 +) -> FrameGenerator

Enable live data streaming.

+
Args
+
    +
  • format - A unique u8 code indicating the format of the data.
  • +
+
source

pub fn direct_stream(&mut self, remote: SocketAddr)

Direct the stream to the provided remote target.

+
Args
+
    +
  • remote - The destination for the streamed data.
  • +
+
source

pub fn update(&mut self) -> NetworkState

Update and process all of the network users state.

+
Returns
+

An indication if any of the network users indicated a state change. +The SettingsChanged option contains the path of the settings that changed.

+

Auto Trait Implementations§

§

impl<S, T> !RefUnwindSafe for NetworkUsers<S, T>

§

impl<S, T> Send for NetworkUsers<S, T>where + S: Send, + T: Send,

§

impl<S, T> !Sync for NetworkUsers<S, T>

§

impl<S, T> Unpin for NetworkUsers<S, T>where + S: Unpin, + T: Unpin,

§

impl<S, T> !UnwindSafe for NetworkUsers<S, T>

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/telemetry/index.html b/firmware/stabilizer/net/telemetry/index.html new file mode 100644 index 0000000000..4af9d8b981 --- /dev/null +++ b/firmware/stabilizer/net/telemetry/index.html @@ -0,0 +1 @@ +stabilizer::net::telemetry - Rust

Module stabilizer::net::telemetry

source ·

Structs

  • The telemetry structure is data that is ultimately reported as telemetry over MQTT.
  • The telemetry buffer is used for storing sample values during execution.
  • The telemetry client for reporting telemetry data over MQTT.
\ No newline at end of file diff --git a/firmware/stabilizer/net/telemetry/sidebar-items.js b/firmware/stabilizer/net/telemetry/sidebar-items.js new file mode 100644 index 0000000000..1ba2dcdaa2 --- /dev/null +++ b/firmware/stabilizer/net/telemetry/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Telemetry","TelemetryBuffer","TelemetryClient"]}; \ No newline at end of file diff --git a/firmware/stabilizer/net/telemetry/struct.Telemetry.html b/firmware/stabilizer/net/telemetry/struct.Telemetry.html new file mode 100644 index 0000000000..9f0da9916a --- /dev/null +++ b/firmware/stabilizer/net/telemetry/struct.Telemetry.html @@ -0,0 +1,25 @@ +Telemetry in stabilizer::net::telemetry - Rust
pub struct Telemetry {
+    pub adcs: [f32; 2],
+    pub dacs: [f32; 2],
+    pub digital_inputs: [bool; 2],
+    pub cpu_temp: f32,
+}
Expand description

The telemetry structure is data that is ultimately reported as telemetry over MQTT.

+

Note

+

This structure should be generated on-demand by the buffer when required to minimize conversion +overhead.

+

Fields§

§adcs: [f32; 2]

Most recent input voltage measurement.

+
§dacs: [f32; 2]

Most recent output voltage.

+
§digital_inputs: [bool; 2]

Most recent digital input assertion state.

+
§cpu_temp: f32

The CPU temperature in degrees Celsius.

+

Trait Implementations§

source§

impl Serialize for Telemetry

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/telemetry/struct.TelemetryBuffer.html b/firmware/stabilizer/net/telemetry/struct.TelemetryBuffer.html new file mode 100644 index 0000000000..d9b27481ff --- /dev/null +++ b/firmware/stabilizer/net/telemetry/struct.TelemetryBuffer.html @@ -0,0 +1,32 @@ +TelemetryBuffer in stabilizer::net::telemetry - Rust
pub struct TelemetryBuffer {
+    pub adcs: [AdcCode; 2],
+    pub dacs: [DacCode; 2],
+    pub digital_inputs: [bool; 2],
+}
Expand description

The telemetry buffer is used for storing sample values during execution.

+

Note

+

These values can be converted to SI units immediately before reporting to save processing time. +This allows for the DSP process to continually update the values without incurring significant +run-time overhead during conversion to SI units.

+

Fields§

§adcs: [AdcCode; 2]

The latest input sample on ADC0/ADC1.

+
§dacs: [DacCode; 2]

The latest output code on DAC0/DAC1.

+
§digital_inputs: [bool; 2]

The latest digital input states during processing.

+

Implementations§

source§

impl TelemetryBuffer

source

pub fn finalize(self, afe0: Gain, afe1: Gain, cpu_temp: f32) -> Telemetry

Convert the telemetry buffer to finalized, SI-unit telemetry for reporting.

+
Args
+
    +
  • afe0 - The current AFE configuration for channel 0.
  • +
  • afe1 - The current AFE configuration for channel 1.
  • +
  • cpu_temp - The current CPU temperature.
  • +
+
Returns
+

The finalized telemetry structure that can be serialized and reported.

+

Trait Implementations§

source§

impl Clone for TelemetryBuffer

source§

fn clone(&self) -> TelemetryBuffer

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for TelemetryBuffer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for TelemetryBuffer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/telemetry/struct.TelemetryClient.html b/firmware/stabilizer/net/telemetry/struct.TelemetryClient.html new file mode 100644 index 0000000000..0b2ddcc58d --- /dev/null +++ b/firmware/stabilizer/net/telemetry/struct.TelemetryClient.html @@ -0,0 +1,45 @@ +TelemetryClient in stabilizer::net::telemetry - Rust
pub struct TelemetryClient<T: Serialize> { /* private fields */ }
Expand description

The telemetry client for reporting telemetry data over MQTT.

+

Implementations§

source§

impl<T: Serialize> TelemetryClient<T>

source

pub fn new( + stack: NetworkReference, + clock: SystemTimer, + client_id: &str, + prefix: &str, + broker: IpAddr +) -> Self

Construct a new telemetry client.

+
Args
+
    +
  • stack - A reference to the (shared) underlying network stack.
  • +
  • clock - A SystemTimer implementing Clock.
  • +
  • client_id - The MQTT client ID of the telemetry client.
  • +
  • prefix - The device prefix to use for MQTT telemetry reporting.
  • +
  • broker - The IP address of the MQTT broker to use.
  • +
+
Returns
+

A new telemetry client.

+
source

pub fn publish(&mut self, telemetry: &T)

Publish telemetry over MQTT

+
Note
+

Telemetry is reported in a “best-effort” fashion. Failure to transmit telemetry will cause +it to be silently dropped.

+
Args
+
    +
  • telemetry - The telemetry to report
  • +
+
source

pub fn update(&mut self)

Update the telemetry client

+
Note
+

This function is provided to force the underlying MQTT state machine to process incoming +and outgoing messages. Without this, the client will never connect to the broker. This +should be called regularly.

+

Auto Trait Implementations§

§

impl<T> !RefUnwindSafe for TelemetryClient<T>

§

impl<T> Send for TelemetryClient<T>where + T: Send,

§

impl<T> Sync for TelemetryClient<T>where + T: Sync,

§

impl<T> Unpin for TelemetryClient<T>where + T: Unpin,

§

impl<T> !UnwindSafe for TelemetryClient<T>

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/firmware/stabilizer/net/type.NetworkReference.html b/firmware/stabilizer/net/type.NetworkReference.html new file mode 100644 index 0000000000..d5e3e1264c --- /dev/null +++ b/firmware/stabilizer/net/type.NetworkReference.html @@ -0,0 +1 @@ +NetworkReference in stabilizer::net - Rust

Type Definition stabilizer::net::NetworkReference

source ·
pub type NetworkReference = NetworkStackProxy<'static, NetworkStack>;
\ No newline at end of file diff --git a/firmware/stabilizer/sidebar-items.js b/firmware/stabilizer/sidebar-items.js new file mode 100644 index 0000000000..6b19193927 --- /dev/null +++ b/firmware/stabilizer/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["hardware","net"]}; \ No newline at end of file diff --git a/firmware/static.files/COPYRIGHT-23e9bde6c69aea69.txt b/firmware/static.files/COPYRIGHT-23e9bde6c69aea69.txt new file mode 100644 index 0000000000..1447df792f --- /dev/null +++ b/firmware/static.files/COPYRIGHT-23e9bde6c69aea69.txt @@ -0,0 +1,50 @@ +# REUSE-IgnoreStart + +These documentation pages include resources by third parties. This copyright +file applies only to those resources. The following third party resources are +included, and carry their own copyright notices and license terms: + +* Fira Sans (FiraSans-Regular.woff2, FiraSans-Medium.woff2): + + Copyright (c) 2014, Mozilla Foundation https://mozilla.org/ + with Reserved Font Name Fira Sans. + + Copyright (c) 2014, Telefonica S.A. + + Licensed under the SIL Open Font License, Version 1.1. + See FiraSans-LICENSE.txt. + +* rustdoc.css, main.js, and playpen.js: + + Copyright 2015 The Rust Developers. + Licensed under the Apache License, Version 2.0 (see LICENSE-APACHE.txt) or + the MIT license (LICENSE-MIT.txt) at your option. + +* normalize.css: + + Copyright (c) Nicolas Gallagher and Jonathan Neal. + Licensed under the MIT license (see LICENSE-MIT.txt). + +* Source Code Pro (SourceCodePro-Regular.ttf.woff2, + SourceCodePro-Semibold.ttf.woff2, SourceCodePro-It.ttf.woff2): + + Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), + with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark + of Adobe Systems Incorporated in the United States and/or other countries. + + Licensed under the SIL Open Font License, Version 1.1. + See SourceCodePro-LICENSE.txt. + +* Source Serif 4 (SourceSerif4-Regular.ttf.woff2, SourceSerif4-Bold.ttf.woff2, + SourceSerif4-It.ttf.woff2): + + Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name + 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United + States and/or other countries. + + Licensed under the SIL Open Font License, Version 1.1. + See SourceSerif4-LICENSE.md. + +This copyright file is intended to be distributed with rustdoc output. + +# REUSE-IgnoreEnd diff --git a/firmware/static.files/FiraSans-LICENSE-db4b642586e02d97.txt b/firmware/static.files/FiraSans-LICENSE-db4b642586e02d97.txt new file mode 100644 index 0000000000..d7e9c149b7 --- /dev/null +++ b/firmware/static.files/FiraSans-LICENSE-db4b642586e02d97.txt @@ -0,0 +1,98 @@ +// REUSE-IgnoreStart + +Digitized data copyright (c) 2012-2015, The Mozilla Foundation and Telefonica S.A. +with Reserved Font Name < Fira >, + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +// REUSE-IgnoreEnd diff --git a/firmware/static.files/FiraSans-Medium-8f9a781e4970d388.woff2 b/firmware/static.files/FiraSans-Medium-8f9a781e4970d388.woff2 new file mode 100644 index 0000000000..7a1e5fc548 Binary files /dev/null and b/firmware/static.files/FiraSans-Medium-8f9a781e4970d388.woff2 differ diff --git a/firmware/static.files/FiraSans-Regular-018c141bf0843ffd.woff2 b/firmware/static.files/FiraSans-Regular-018c141bf0843ffd.woff2 new file mode 100644 index 0000000000..e766e06ccb Binary files /dev/null and b/firmware/static.files/FiraSans-Regular-018c141bf0843ffd.woff2 differ diff --git a/firmware/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt b/firmware/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt new file mode 100644 index 0000000000..16fe87b06e --- /dev/null +++ b/firmware/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/firmware/static.files/LICENSE-MIT-65090b722b3f6c56.txt b/firmware/static.files/LICENSE-MIT-65090b722b3f6c56.txt new file mode 100644 index 0000000000..31aa79387f --- /dev/null +++ b/firmware/static.files/LICENSE-MIT-65090b722b3f6c56.txt @@ -0,0 +1,23 @@ +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/firmware/static.files/NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2 b/firmware/static.files/NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2 new file mode 100644 index 0000000000..1866ad4bce Binary files /dev/null and b/firmware/static.files/NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2 differ diff --git a/firmware/static.files/NanumBarunGothic-LICENSE-18c5adf4b52b4041.txt b/firmware/static.files/NanumBarunGothic-LICENSE-18c5adf4b52b4041.txt new file mode 100644 index 0000000000..4b3edc29eb --- /dev/null +++ b/firmware/static.files/NanumBarunGothic-LICENSE-18c5adf4b52b4041.txt @@ -0,0 +1,103 @@ +// REUSE-IgnoreStart + +Copyright (c) 2010, NAVER Corporation (https://www.navercorp.com/), + +with Reserved Font Name Nanum, Naver Nanum, NanumGothic, Naver NanumGothic, +NanumMyeongjo, Naver NanumMyeongjo, NanumBrush, Naver NanumBrush, NanumPen, +Naver NanumPen, Naver NanumGothicEco, NanumGothicEco, Naver NanumMyeongjoEco, +NanumMyeongjoEco, Naver NanumGothicLight, NanumGothicLight, NanumBarunGothic, +Naver NanumBarunGothic, NanumSquareRound, NanumBarunPen, MaruBuri + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +// REUSE-IgnoreEnd diff --git a/firmware/static.files/SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2 b/firmware/static.files/SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2 new file mode 100644 index 0000000000..462c34efcd Binary files /dev/null and b/firmware/static.files/SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2 differ diff --git a/firmware/static.files/SourceCodePro-LICENSE-d180d465a756484a.txt b/firmware/static.files/SourceCodePro-LICENSE-d180d465a756484a.txt new file mode 100644 index 0000000000..0d2941e148 --- /dev/null +++ b/firmware/static.files/SourceCodePro-LICENSE-d180d465a756484a.txt @@ -0,0 +1,97 @@ +// REUSE-IgnoreStart + +Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +// REUSE-IgnoreEnd diff --git a/firmware/static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2 b/firmware/static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2 new file mode 100644 index 0000000000..10b558e0b6 Binary files /dev/null and b/firmware/static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2 differ diff --git a/firmware/static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2 b/firmware/static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2 new file mode 100644 index 0000000000..5ec64eef0e Binary files /dev/null and b/firmware/static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2 differ diff --git a/firmware/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 b/firmware/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 new file mode 100644 index 0000000000..181a07f63b Binary files /dev/null and b/firmware/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 differ diff --git a/firmware/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 b/firmware/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 new file mode 100644 index 0000000000..2ae08a7bed Binary files /dev/null and b/firmware/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 differ diff --git a/firmware/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 b/firmware/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 new file mode 100644 index 0000000000..0263fc3042 Binary files /dev/null and b/firmware/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 differ diff --git a/firmware/static.files/ayu-614652228113ac93.css b/firmware/static.files/ayu-614652228113ac93.css new file mode 100644 index 0000000000..8fd09c9e44 --- /dev/null +++ b/firmware/static.files/ayu-614652228113ac93.css @@ -0,0 +1 @@ + :root{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--test-arrow-color:#788797;--test-arrow-background-color:rgba(57,175,215,0.09);--test-arrow-hover-color:#c5c5c5;--test-arrow-hover-background-color:rgba(57,175,215,0.368);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--source-sidebar-background-selected:#14191f;--source-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:rgb(91,59,1);--scrape-example-code-line-highlight-focus:rgb(124,75,15);--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);}h1,h2,h3,h4,h1 a,.sidebar h2 a,.sidebar h3 a,#source-sidebar>.title{color:#fff;}h4{border:none;}.docblock code{color:#ffb454;}.docblock a>code{color:#39AFD7 !important;}.code-header,.docblock pre>code,pre,pre>code,.item-info code,.rustdoc.source .example-wrap{color:#e6e1cf;}.sidebar .current,.sidebar a:hover,#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus,#source-sidebar div.files>a.selected{color:#ffb44c;}.sidebar-elems .location{color:#ff7733;}.src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}.search-results a:hover,.search-results a:focus{color:#fff !important;background-color:#3c3c3c;}.search-results a{color:#0096cf;}.search-results a div.desc{color:#c5c5c5;}.result-name .primitive>i,.result-name .keyword>i{color:#788797;}#search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}#search-tabs>button:not(.selected){border:none;background-color:transparent !important;}#search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}#settings-menu>a img{filter:invert(100);} \ No newline at end of file diff --git a/firmware/static.files/clipboard-7571035ce49a181d.svg b/firmware/static.files/clipboard-7571035ce49a181d.svg new file mode 100644 index 0000000000..8adbd99630 --- /dev/null +++ b/firmware/static.files/clipboard-7571035ce49a181d.svg @@ -0,0 +1 @@ + diff --git a/firmware/static.files/dark-1097f8e92a01e3cf.css b/firmware/static.files/dark-1097f8e92a01e3cf.css new file mode 100644 index 0000000000..1e5e7d1944 --- /dev/null +++ b/firmware/static.files/dark-1097f8e92a01e3cf.css @@ -0,0 +1 @@ +:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--source-sidebar-background-selected:#333;--source-sidebar-background-hover:#444;--table-alt-row-background-color:#2A2A2A;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:rgb(91,59,1);--scrape-example-code-line-highlight-focus:rgb(124,75,15);--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);} \ No newline at end of file diff --git a/firmware/static.files/favicon-16x16-8b506e7a72182f1c.png b/firmware/static.files/favicon-16x16-8b506e7a72182f1c.png new file mode 100644 index 0000000000..ea4b45cae1 Binary files /dev/null and b/firmware/static.files/favicon-16x16-8b506e7a72182f1c.png differ diff --git a/firmware/static.files/favicon-2c020d218678b618.svg b/firmware/static.files/favicon-2c020d218678b618.svg new file mode 100644 index 0000000000..8b34b51198 --- /dev/null +++ b/firmware/static.files/favicon-2c020d218678b618.svg @@ -0,0 +1,24 @@ + + + + + diff --git a/firmware/static.files/favicon-32x32-422f7d1d52889060.png b/firmware/static.files/favicon-32x32-422f7d1d52889060.png new file mode 100644 index 0000000000..69b8613ce1 Binary files /dev/null and b/firmware/static.files/favicon-32x32-422f7d1d52889060.png differ diff --git a/firmware/static.files/light-0f8c037637f9eb3e.css b/firmware/static.files/light-0f8c037637f9eb3e.css new file mode 100644 index 0000000000..21c3a859b8 --- /dev/null +++ b/firmware/static.files/light-0f8c037637f9eb3e.css @@ -0,0 +1 @@ +:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#F5F5F5;--sidebar-background-color-hover:#E0E0E0;--code-block-background-color:#F5F5F5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#ffffff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--source-sidebar-background-selected:#fff;--source-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#F5F5F5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);} \ No newline at end of file diff --git a/firmware/static.files/main-f61008743c98d196.js b/firmware/static.files/main-f61008743c98d196.js new file mode 100644 index 0000000000..18fb9381cc --- /dev/null +++ b/firmware/static.files/main-f61008743c98d196.js @@ -0,0 +1,7 @@ +"use strict";function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function elemIsInParent(elem,parent){while(elem&&elem!==document.body){if(elem===parent){return true}elem=elem.parentElement}return false}function blurHandler(event,parentElem,hideCallback){if(!elemIsInParent(document.activeElement,parentElem)&&!elemIsInParent(event.relatedTarget,parentElem)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileLocationTitle=document.querySelector(".mobile-topbar h2");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileLocationTitle&&locationTitle){mobileLocationTitle.innerHTML=locationTitle.innerHTML}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function loadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(link)}function preLoadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="preload";link.as="style";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url){const script=document.createElement("script");script.src=url;document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadCss(getVar("static-root-path")+getVar("settings-css"));loadScript(getVar("static-root-path")+getVar("settings-js"));preLoadCss(getVar("static-root-path")+getVar("theme-light-css"));preLoadCss(getVar("static-root-path")+getVar("theme-dark-css"));preLoadCss(getVar("static-root-path")+getVar("theme-ayu-css"));setTimeout(()=>{const themes=getVar("themes").split(",");for(const theme of themes){if(theme!==""){preLoadCss(getVar("root-path")+theme+".css")}}},0)};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},hideResults:()=>{switchDisplayedElement(null);document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"));loadScript(resourcePath("search-index",".js"))}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

"+searchState.loadingText+"

";searchState.showResults(search)},};const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}const pageId=window.location.hash.replace(/^#/,"");if(savedHash!==pageId){savedHash=pageId;if(pageId!==""){expandSection(pageId)}}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();switchDisplayedElement(null);if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=name+"/index.html"}else{path=shortty+"."+name+".html"}const current_page=document.location.href.split("/").pop();const link=document.createElement("a");link.href=path;if(path===current_page){link.className="current"}link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("union","unions","Unions");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Definitions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=script?script.getAttribute("data-ignore-extern-crates"):"";for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.indexOf(lib)!==-1){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";if(window.rootPath!=="./"&&crate===window.currentCrate){link.className="current"}link.textContent=crate;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}})}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}function showSidebar(){window.hideAllModals(false);const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
"+window.NOTABLE_TRAITS[notable_ty]+"
"}else if(e.getAttribute("title")!==undefined){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("title")));wrapper.appendChild(titleContent)}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";const body=document.getElementsByTagName("body")[0];body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px")}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;wrapper.onpointerleave=function(ev){if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!elemIsInParent(event.relatedTarget,e)){hideTooltip(true)}}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!elemIsInParent(document.activeElement,window.CURRENT_TOOLTIP_ELEMENT)&&!elemIsInParent(event.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT)&&!elemIsInParent(document.activeElement,window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE)&&!elemIsInParent(event.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}const body=document.getElementsByTagName("body")[0];body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=function(){this.TOOLTIP_FORCE_VISIBLE=this.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!this.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(this);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=function(ev){if(ev.pointerType!=="mouse"){return}showTooltip(this)};e.onpointerleave=function(ev){if(ev.pointerType!=="mouse"){return}if(!this.TOOLTIP_FORCE_VISIBLE&&!elemIsInParent(ev.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT)){hideTooltip(true)}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");book_info.className="top";book_info.innerHTML="You can find more information in \ + the rustdoc book.";const shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
"+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
"+x[1]+"
").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

Keyboard Shortcuts

"+shortcuts+"
";const infos=["Prefix searches with a type followed by a colon (e.g., fn:) to \ + restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ + enum, trait, type, macro, \ + and const.","Search functions by type signature (e.g., vec -> usize or \ + -> vec or String, enum:Cow -> bool)","You can look for items with an exact name by putting double quotes around \ + your request: \"string\"","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

"+x+"

").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

Search Tricks

"+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=function(switchFocus){hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=function(){onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){let reset_button_timeout=null;const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});const el=document.createElement("textarea");el.value=path.join("::");el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el);but.children[0].style.display="none";let tmp;if(but.childNodes.length<2){tmp=document.createTextNode("✓");but.appendChild(tmp)}else{onEachLazy(but.childNodes,e=>{if(e.nodeType===Node.TEXT_NODE){tmp=e;return true}});tmp.textContent="✓"}if(reset_button_timeout!==null){window.clearTimeout(reset_button_timeout)}function reset_button(){tmp.textContent="";reset_button_timeout=null;but.children[0].style.display=""}reset_button_timeout=window.setTimeout(reset_button,1000)}}()) \ No newline at end of file diff --git a/firmware/static.files/normalize-76eba96aa4d2e634.css b/firmware/static.files/normalize-76eba96aa4d2e634.css new file mode 100644 index 0000000000..469959f137 --- /dev/null +++ b/firmware/static.files/normalize-76eba96aa4d2e634.css @@ -0,0 +1,2 @@ + /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ +html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type="button"],[type="reset"],[type="submit"],button{-webkit-appearance:button}[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none} \ No newline at end of file diff --git a/firmware/static.files/noscript-13285aec31fa243e.css b/firmware/static.files/noscript-13285aec31fa243e.css new file mode 100644 index 0000000000..c32e0cb135 --- /dev/null +++ b/firmware/static.files/noscript-13285aec31fa243e.css @@ -0,0 +1 @@ + #main-content .attributes{margin-left:0 !important;}#copy-path{display:none;}nav.sub{display:none;}.source .sidebar{display:none;}.notable-traits{display:none;} \ No newline at end of file diff --git a/firmware/static.files/rust-logo-151179464ae7ed46.svg b/firmware/static.files/rust-logo-151179464ae7ed46.svg new file mode 100644 index 0000000000..62424d8ffd --- /dev/null +++ b/firmware/static.files/rust-logo-151179464ae7ed46.svg @@ -0,0 +1,61 @@ + + + diff --git a/firmware/static.files/rustdoc-ba5701c5741a7b69.css b/firmware/static.files/rustdoc-ba5701c5741a7b69.css new file mode 100644 index 0000000000..55584a76d3 --- /dev/null +++ b/firmware/static.files/rustdoc-ba5701c5741a7b69.css @@ -0,0 +1,8 @@ + :root{--nav-sub-mobile-padding:8px;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,span.since,a.srclink,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.small-section-header a,#source-sidebar a,.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name .primitive>i,.result-name .keyword>i{color:var(--main-color);}span.enum,a.enum,span.struct,a.struct,span.union,a.union,span.primitive,a.primitive,span.type,a.type,span.foreigntype,a.foreigntype{color:var(--type-link-color);}span.trait,a.trait,span.traitalias,a.traitalias{color:var(--trait-link-color);}span.associatedtype,a.associatedtype,span.constant,a.constant,span.static,a.static{color:var(--assoc-item-link-color);}span.fn,a.fn,span.method,a.method,span.tymethod,a.tymethod{color:var(--function-link-color);}span.attr,a.attr,span.derive,a.derive,span.macro,a.macro{color:var(--macro-link-color);}span.mod,a.mod{color:var(--mod-link-color);}span.keyword,a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p{margin:0 0 .75em 0;}p:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.source main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.source .content pre{padding:20px;}.rustdoc.source .example-wrap pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.sub-logo-container,.logo-container{line-height:0;display:block;}.sub-logo-container{margin-right:32px;}.sub-logo-container>img{height:60px;width:60px;object-fit:contain;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 200px;overflow-y:scroll;overscroll-behavior:contain;position:sticky;height:100vh;top:0;left:0;}.rustdoc.source .sidebar{flex-basis:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;z-index:1;}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar-toggle,#source-sidebar{background-color:var(--sidebar-background-color);}#src-sidebar-toggle>button:hover,#src-sidebar-toggle>button:focus{background-color:var(--sidebar-background-color-hover);}.source .sidebar>*:not(#src-sidebar-toggle){visibility:hidden;}.source-sidebar-expanded .source .sidebar{overflow-y:auto;flex-basis:300px;}.source-sidebar-expanded .source .sidebar>*:not(#src-sidebar-toggle){visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.sidebar .logo-container{margin-top:10px;margin-bottom:10px;text-align:center;}.version{overflow-wrap:break-word;}.logo-container>img{height:100px;width:100px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-left:-0.25rem;}.sidebar h2{overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>h2{padding-left:24px;}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.rustdoc:not(.source) .example-wrap pre{overflow:auto hidden;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.source .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}.method .where,.fn .where,.where.fmt-newline{display:block;white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.source nav.sub{margin:0 0 15px 0;}.small-section-header{display:block;position:relative;}.small-section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.small-section-header>.anchor{left:-15px;padding-right:8px;}h2.small-section-header>.anchor{padding-right:6px;}.main-heading a:hover,.example-wrap .rust a:hover,.all-items a:hover,.docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block a.current{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}@-moz-document url-prefix(){#crate-search{padding-left:0px;padding-right:19px;}}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ + ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div{flex:1;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name span.alias{color:var(--search-results-alias-color);}.search-results .result-name span.grey{color:var(--search-results-grey-color);}.popover{position:absolute;top:100%;right:0;z-index:2;margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{min-height:36px;display:flex;padding:3px;margin-bottom:5px;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;align-items:center;white-space:pre-wrap;border-radius:3px;display:inline-flex;vertical-align:text-bottom;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji{font-size:1.25rem;margin-right:0.3rem;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.source .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}a.test-arrow{visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;color:var(--test-arrow-color);background-color:var(--test-arrow-background-color);}a.test-arrow:hover{color:var(--test-arrow-hover-color);background-color:var(--test-arrow-hover-background-color);}.example-wrap:hover .test-arrow{visibility:visible;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}#src-sidebar-toggle{position:sticky;top:0;left:0;font-size:1.25rem;border-bottom:1px solid;display:flex;height:40px;justify-content:stretch;align-items:stretch;z-index:10;}#source-sidebar{width:100%;overflow:auto;}#source-sidebar>.title{font-size:1.5rem;text-align:center;border-bottom:1px solid var(--border-color);margin-bottom:6px;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--source-sidebar-background-hover);}#source-sidebar div.files>a.selected{background-color:var(--source-sidebar-background-selected);}#src-sidebar-toggle>button{font-size:inherit;font-weight:bold;background:none;color:inherit;text-align:center;border:none;outline:none;flex:1 1;-webkit-appearance:none;opacity:1;}#settings-menu,#help-button{margin-left:4px;display:flex;}#settings-menu>a,#help-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:2px;color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus{border-color:var(--settings-button-border-focus);}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:34px;margin-left:10px;padding:0;padding-left:2px;border:0;width:33px;}#copy-path>img{filter:var(--copy-path-img-filter);}#copy-path:hover>img{filter:var(--copy-path-img-hover-filter);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,') no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,') no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.source main,.rustdoc.source .sidebar{top:0;padding:0;height:100vh;border:0;}.sidebar.shown,.source-sidebar-expanded .source .sidebar,.rustdoc:not(.source) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;}.mobile-topbar h2 a{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.sidebar-menu-toggle{width:45px;font-size:32px;border:none;color:var(--main-color);}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#search-tabs .count{display:block;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#src-sidebar-toggle{position:fixed;left:1px;top:100px;width:30px;font-size:1.5rem;padding:0;z-index:10;border-top-right-radius:3px;border-bottom-right-radius:3px;border:1px solid;border-left:0;}.source-sidebar-expanded #src-sidebar-toggle{left:unset;top:unset;width:unset;border-top-right-radius:unset;border-bottom-right-radius:unset;position:sticky;border:0;border-bottom:1px solid;}#copy-path,#help-button{display:none;}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.source-sidebar-expanded .source .sidebar{max-width:100vw;width:100vw;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.source nav.sub{margin:0;padding:var(--nav-sub-mobile-padding);}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}}@media print{nav.sidebar,nav.sub,.out-of-band,a.srclink,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}.sub-logo-container>img{height:35px;width:35px;margin-bottom:var(--nav-sub-mobile-padding);}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper::before,.scraped-example:not(.expanded) .code-wrapper::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .code-wrapper::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;} \ No newline at end of file diff --git a/firmware/static.files/scrape-examples-ef1e698c1d417c0c.js b/firmware/static.files/scrape-examples-ef1e698c1d417c0c.js new file mode 100644 index 0000000000..ba830e3744 --- /dev/null +++ b/firmware/static.files/scrape-examples-ef1e698c1d417c0c.js @@ -0,0 +1 @@ +"use strict";(function(){const DEFAULT_MAX_LINES=5;const HIDDEN_MAX_LINES=10;function scrollToLoc(elt,loc,isHidden){const lines=elt.querySelector(".src-line-numbers");let scrollOffset;const maxLines=isHidden?HIDDEN_MAX_LINES:DEFAULT_MAX_LINES;if(loc[1]-loc[0]>maxLines){const line=Math.max(0,loc[0]-1);scrollOffset=lines.children[line].offsetTop}else{const wrapper=elt.querySelector(".code-wrapper");const halfHeight=wrapper.offsetHeight/2;const offsetTop=lines.children[loc[0]].offsetTop;const lastLine=lines.children[loc[1]];const offsetBot=lastLine.offsetTop+lastLine.offsetHeight;const offsetMid=(offsetTop+offsetBot)/2;scrollOffset=offsetMid-halfHeight}lines.scrollTo(0,scrollOffset);elt.querySelector(".rust").scrollTo(0,scrollOffset)}function updateScrapedExample(example,isHidden){const locs=JSON.parse(example.attributes.getNamedItem("data-locs").textContent);let locIndex=0;const highlights=Array.prototype.slice.call(example.querySelectorAll(".highlight"));const link=example.querySelector(".scraped-example-title a");if(locs.length>1){const onChangeLoc=changeIndex=>{removeClass(highlights[locIndex],"focus");changeIndex();scrollToLoc(example,locs[locIndex][0],isHidden);addClass(highlights[locIndex],"focus");const url=locs[locIndex][1];const title=locs[locIndex][2];link.href=url;link.innerHTML=title};example.querySelector(".prev").addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex-1+locs.length)%locs.length})});example.querySelector(".next").addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex+1)%locs.length})})}const expandButton=example.querySelector(".expand");if(expandButton){expandButton.addEventListener("click",()=>{if(hasClass(example,"expanded")){removeClass(example,"expanded");scrollToLoc(example,locs[0][0],isHidden)}else{addClass(example,"expanded")}})}scrollToLoc(example,locs[0][0],isHidden)}const firstExamples=document.querySelectorAll(".scraped-example-list > .scraped-example");onEachLazy(firstExamples,el=>updateScrapedExample(el,false));onEachLazy(document.querySelectorAll(".more-examples-toggle"),toggle=>{onEachLazy(toggle.querySelectorAll(".toggle-line, .hide-more"),button=>{button.addEventListener("click",()=>{toggle.open=false})});const moreExamples=toggle.querySelectorAll(".scraped-example");toggle.querySelector("summary").addEventListener("click",()=>{setTimeout(()=>{onEachLazy(moreExamples,el=>updateScrapedExample(el,true))})},{once:true})})})() \ No newline at end of file diff --git a/firmware/static.files/search-e077946657036a58.js b/firmware/static.files/search-e077946657036a58.js new file mode 100644 index 0000000000..3b21179bf9 --- /dev/null +++ b/firmware/static.files/search-e077946657036a58.js @@ -0,0 +1 @@ +"use strict";(function(){const itemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias",];const TY_PRIMITIVE=itemTypes.indexOf("primitive");const TY_KEYWORD=itemTypes.indexOf("keyword");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";function hasOwnPropertyRustdoc(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)}function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("search-tabs").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb}else if(nb!==0){printTab(0)}}const editDistanceState={current:[],prev:[],prevPrev:[],calculate:function calculate(a,b,limit){if(a.lengthlimit){return limit+1}while(b.length>0&&b[0]===a[0]){a=a.substring(1);b=b.substring(1)}while(b.length>0&&b[b.length-1]===a[a.length-1]){a=a.substring(0,a.length-1);b=b.substring(0,b.length-1)}if(b.length===0){return minDist}const aLength=a.length;const bLength=b.length;for(let i=0;i<=bLength;++i){this.current[i]=0;this.prev[i]=i;this.prevPrev[i]=Number.MAX_VALUE}for(let i=1;i<=aLength;++i){this.current[0]=i;const aIdx=i-1;for(let j=1;j<=bLength;++j){const bIdx=j-1;const substitutionCost=a[aIdx]===b[bIdx]?0:1;this.current[j]=Math.min(this.prev[j]+1,this.current[j-1]+1,this.prev[j-1]+substitutionCost);if((i>1)&&(j>1)&&(a[aIdx]===b[bIdx-1])&&(a[aIdx-1]===b[bIdx])){this.current[j]=Math.min(this.current[j],this.prevPrev[j-2]+1)}}const prevPrevTmp=this.prevPrev;this.prevPrev=this.prev;this.prev=this.current;this.current=prevPrevTmp}const distance=this.prev[bLength];return distance<=limit?distance:(limit+1)},};function editDistance(a,b,limit){return editDistanceState.calculate(a,b,limit)}function initSearch(rawSearchIndex){const MAX_RESULTS=200;const NO_TYPE_FILTER=-1;let searchIndex;let currentResults;const ALIASES=new Map();function isWhitespace(c){return" \t\n\r".indexOf(c)!==-1}function isSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}function isEndCharacter(c){return",>-".indexOf(c)!==-1}function isStopCharacter(c){return isWhitespace(c)||isEndCharacter(c)}function isErrorCharacter(c){return"()".indexOf(c)!==-1}function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}function getStringElem(query,parserState,isInGenerics){if(isInGenerics){throw["Unexpected ","\""," in generics"]}else if(query.literalSearch){throw["Cannot have more than one literal search element"]}else if(parserState.totalElems-parserState.genericsElems>0){throw["Cannot use literal search when there is more than one element"]}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw["Unclosed ","\""]}else if(parserState.userQuery[end]!=="\""){throw["Unexpected ",parserState.userQuery[end]," in a string element"]}else if(start===end){throw["Cannot have empty string element"]}parserState.pos+=1;query.literalSearch=true}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function isIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}function isSeparatorCharacter(c){return c===","||isWhitespaceCharacter(c)}function isWhitespaceCharacter(c){return c===" "||c==="\t"}function createQueryElement(query,parserState,name,generics,isInGenerics){if(name==="*"||(name.length===0&&generics.length===0)){return}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){throw["You cannot have more than one element if you use quotes"]}const pathSegments=name.split("::");if(pathSegments.length>1){for(let i=0,len=pathSegments.length;i=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}if(start>=end&&generics.length===0){return}elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics))}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;let start=parserState.pos;const oldTypeFilter=parserState.typeFilter;parserState.typeFilter=null;while(parserState.pos"){extra="<"}else if(endChar===""){extra="->"}else{extra=endChar}throw["Unexpected ",c," after ",extra]}if(!foundStopChar){if(endChar!==""){throw["Expected ",",",", "," "," or ",endChar,", found ",c,]}throw["Expected ",","," or "," ",", found ",c,]}const posBefore=parserState.pos;start=parserState.pos;getNextElem(query,parserState,elems,endChar===">");if(endChar!==""&&parserState.pos>=parserState.length){throw["Unclosed ","<"]}if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}if(parserState.pos>=parserState.length&&endChar!==""){throw["Unclosed ","<"]}parserState.pos+=1;parserState.typeFilter=oldTypeFilter}function checkExtraTypeFilterCharacters(start,parserState){const query=parserState.userQuery;for(let pos=start;pos"){if(isReturnArrow(parserState)){break}throw["Unexpected ",c," (did you mean ","->","?)"]}throw["Unexpected ",c]}else if(c===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"]}if(query.elems.length===0){throw["Expected type filter before ",":"]}else if(query.literalSearch){throw["You cannot use quotes on type filter"]}const typeFilterElem=query.elems.pop();checkExtraTypeFilterCharacters(start,parserState);parserState.typeFilter=typeFilterElem.name;parserState.pos+=1;parserState.totalElems-=1;query.literalSearch=false;foundStopChar=true;continue}if(!foundStopChar){if(parserState.typeFilter!==null){throw["Expected ",",",", "," "," or ","->",", found ",c,]}throw["Expected ",",",", "," ",", ",":"," or ","->",", found ",c,]}const before=query.elems.length;start=parserState.pos;getNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter)"]}while(parserState.pos"]}break}else{parserState.pos+=1}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),elems:[],returned:[],foundElems:0,literalSearch:false,error:null,}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&hasOwnPropertyRustdoc(rawSearchIndex,elem.value)){return elem.value}return null}function parseQuery(userQuery){function convertTypeFilterOnElem(elem){if(elem.typeFilter!==null){let typeFilter=elem.typeFilter;if(typeFilter==="const"){typeFilter="constant"}elem.typeFilter=itemTypeFromName(typeFilter)}else{elem.typeFilter=NO_TYPE_FILTER}for(const elem2 of elem.generics){convertTypeFilterOnElem(elem2)}}userQuery=userQuery.trim();const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);for(const elem of query.elems){convertTypeFilterOnElem(elem)}for(const elem of query.returned){convertTypeFilterOnElem(elem)}}catch(err){query=newParsedQuery(userQuery);query.error=err;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;return query}function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}function execQuery(parsedQuery,searchWords,filterCrates,currentCrate){const results_others=new Map(),results_in_args=new Map(),results_returned=new Map();function transformResults(results){const duplicates=new Set();const out=[];for(const result of results){if(result.id>-1){const obj=searchIndex[result.id];obj.dist=result.dist;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;if(duplicates.has(obj.fullPath)){continue}duplicates.add(obj.fullPath);obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out}function sortResults(results,isType,preferredCrate){if(results.size===0){return[]}const userQuery=parsedQuery.userQuery;const result_list=[];for(const result of results.values()){result.word=searchWords[result.id];result.item=searchIndex[result.id]||{};result_list.push(result)}result_list.sort((aaa,bbb)=>{let a,b;a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.path_dist;b=bbb.path_dist;if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}a=(aaa.dist);b=(bbb.dist);if(a!==b){return a-b}a=aaa.item.deprecated;b=bbb.item.deprecated;if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}if((aaa.item.ty===TY_PRIMITIVE&&bbb.item.ty!==TY_KEYWORD)||(aaa.item.ty===TY_KEYWORD&&bbb.item.ty!==TY_PRIMITIVE)){return-1}if((bbb.item.ty===TY_PRIMITIVE&&aaa.item.ty!==TY_PRIMITIVE)||(bbb.item.ty===TY_KEYWORD&&aaa.item.ty!==TY_KEYWORD)){return 1}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});let nameSplit=null;if(parsedQuery.elems.length===1){const hasPath=typeof parsedQuery.elems[0].path==="undefined";nameSplit=hasPath?null:parsedQuery.elems[0].path}for(const result of result_list){if(result.dontValidate){continue}const name=result.item.name.toLowerCase(),path=result.item.path.toLowerCase(),parent=result.item.parent;if(!isType&&!validateResult(name,path,nameSplit,parent)){result.id=-1}}return transformResults(result_list)}function checkGenerics(row,elem,defaultDistance,maxEditDistance){if(row.generics.length===0){return elem.generics.length===0?defaultDistance:maxEditDistance+1}else if(row.generics.length>0&&row.generics[0].name===null){return checkGenerics(row.generics[0],elem,defaultDistance,maxEditDistance)}if(elem.generics.length>0&&row.generics.length>=elem.generics.length){const elems=new Map();for(const entry of row.generics){if(entry.name===""){if(checkGenerics(entry,elem,maxEditDistance+1,maxEditDistance)!==0){return maxEditDistance+1}continue}let currentEntryElems;if(elems.has(entry.name)){currentEntryElems=elems.get(entry.name)}else{currentEntryElems=[];elems.set(entry.name,currentEntryElems)}currentEntryElems.push(entry)}const handleGeneric=generic=>{if(!elems.has(generic.name)){return false}const matchElems=elems.get(generic.name);const matchIdx=matchElems.findIndex(tmp_elem=>{if(checkGenerics(tmp_elem,generic,0,maxEditDistance)!==0){return false}return typePassesFilter(generic.typeFilter,tmp_elem.ty)});if(matchIdx===-1){return false}matchElems.splice(matchIdx,1);if(matchElems.length===0){elems.delete(generic.name)}return true};for(const generic of elem.generics){if(generic.typeFilter!==-1&&!handleGeneric(generic)){return maxEditDistance+1}}for(const generic of elem.generics){if(generic.typeFilter===-1&&!handleGeneric(generic)){return maxEditDistance+1}}return 0}return maxEditDistance+1}function checkIfInGenerics(row,elem,maxEditDistance){let dist=maxEditDistance+1;for(const entry of row.generics){dist=Math.min(checkType(entry,elem,true,maxEditDistance),dist);if(dist===0){break}}return dist}function checkType(row,elem,literalSearch,maxEditDistance){if(row.name===null){if(row.generics.length>0){return checkIfInGenerics(row,elem,maxEditDistance)}return maxEditDistance+1}let dist;if(typePassesFilter(elem.typeFilter,row.ty)){dist=editDistance(row.name,elem.name,maxEditDistance)}else{dist=maxEditDistance+1}if(literalSearch){if(dist!==0){if(elem.generics.length===0){const checkGeneric=row.generics.length>0;if(checkGeneric&&row.generics.findIndex(tmp_elem=>tmp_elem.name===elem.name&&typePassesFilter(elem.typeFilter,tmp_elem.ty))!==-1){return 0}}return maxEditDistance+1}else if(elem.generics.length>0){return checkGenerics(row,elem,maxEditDistance+1,maxEditDistance)}return 0}else if(row.generics.length>0){if(elem.generics.length===0){if(dist===0){return 0}dist=Math.min(dist,checkIfInGenerics(row,elem,maxEditDistance));return dist}else if(dist>maxEditDistance){return checkIfInGenerics(row,elem,maxEditDistance)}else{const tmp_dist=checkGenerics(row,elem,dist,maxEditDistance);if(tmp_dist>maxEditDistance){return maxEditDistance+1}return(tmp_dist+dist)/2}}else if(elem.generics.length>0){return maxEditDistance+1}return dist}function findArg(row,elem,maxEditDistance,skipPositions){let dist=maxEditDistance+1;let position=-1;if(row&&row.type&&row.type.inputs&&row.type.inputs.length>0){let i=0;for(const input of row.type.inputs){if(skipPositions.indexOf(i)!==-1){i+=1;continue}const typeDist=checkType(input,elem,parsedQuery.literalSearch,maxEditDistance);if(typeDist===0){return{dist:0,position:i}}if(typeDist0){const ret=row.type.output;let i=0;for(const ret_ty of ret){if(skipPositions.indexOf(i)!==-1){i+=1;continue}const typeDist=checkType(ret_ty,elem,parsedQuery.literalSearch,maxEditDistance);if(typeDist===0){return{dist:0,position:i}}if(typeDistlength){return maxEditDistance+1}for(let i=0;ilength){break}let dist_total=0;let aborted=false;for(let x=0;xmaxEditDistance){aborted=true;break}dist_total+=dist}if(!aborted){ret_dist=Math.min(ret_dist,Math.round(dist_total/clength))}}return ret_dist}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,deprecated:item.deprecated,}}function handleAliases(ret,query,filterCrates,currentCrate){const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(ALIASES.has(filterCrates)&&ALIASES.get(filterCrates).has(lowerQuery)){const query_aliases=ALIASES.get(filterCrates).get(lowerQuery);for(const alias of query_aliases){aliases.push(createAliasFromItem(searchIndex[alias]))}}}else{for(const[crate,crateAliasesIndex]of ALIASES){if(crateAliasesIndex.has(lowerQuery)){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=crateAliasesIndex.get(lowerQuery);for(const alias of query_aliases){pushTo.push(createAliasFromItem(searchIndex[alias]))}}}}const sortFunc=(aaa,bbb)=>{if(aaa.path{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach(pushFunc);crateAliases.forEach(pushFunc)}function addIntoResults(results,fullId,id,index,dist,path_dist,maxEditDistance){const inBounds=dist<=maxEditDistance||index!==-1;if(dist===0||(!parsedQuery.literalSearch&&inBounds)){if(results.has(fullId)){const result=results.get(fullId);if(result.dontValidate||result.dist<=dist){return}}results.set(fullId,{id:id,index:index,dontValidate:parsedQuery.literalSearch,dist:dist,path_dist:path_dist,})}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned,maxEditDistance){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let dist,index=-1,path_dist=0;const fullId=row.id;const searchWord=searchWords[pos];const in_args=findArg(row,elem,maxEditDistance,[]);const returned=checkReturned(row,elem,maxEditDistance,[]);addIntoResults(results_in_args,fullId,pos,-1,in_args.dist,0,maxEditDistance);addIntoResults(results_returned,fullId,pos,-1,returned.dist,0,maxEditDistance);if(!typePassesFilter(elem.typeFilter,row.ty)){return}const row_index=row.normalizedName.indexOf(elem.pathLast);const word_index=searchWord.indexOf(elem.pathLast);if(row_index===-1){index=word_index}else if(word_index===-1){index=row_index}else if(word_index1){path_dist=checkPath(elem.pathWithoutLast,row,maxEditDistance);if(path_dist>maxEditDistance){return}}if(parsedQuery.literalSearch){if(searchWord===elem.name){addIntoResults(results_others,fullId,pos,index,0,path_dist)}return}dist=editDistance(searchWord,elem.pathLast,maxEditDistance);if(index===-1&&dist+path_dist>maxEditDistance){return}addIntoResults(results_others,fullId,pos,index,dist,path_dist,maxEditDistance)}function handleArgs(row,pos,results,maxEditDistance){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let totalDist=0;let nbDist=0;function checkArgs(elems,callback){const skipPositions=[];for(const elem of elems){const{dist,position}=callback(row,elem,maxEditDistance,skipPositions);if(dist<=1){nbDist+=1;totalDist+=dist;skipPositions.push(position)}else{return false}}return true}if(!checkArgs(parsedQuery.elems,findArg)){return}if(!checkArgs(parsedQuery.returned,checkReturned)){return}if(nbDist===0){return}const dist=Math.round(totalDist/nbDist);addIntoResults(results,row.id,pos,0,dist,0,maxEditDistance)}function innerRunQuery(){let elem,i,nSearchWords,in_returned,row;let queryLen=0;for(const elem of parsedQuery.elems){queryLen+=elem.name.length}for(const elem of parsedQuery.returned){queryLen+=elem.name.length}const maxEditDistance=Math.floor(queryLen/3);if(parsedQuery.foundElems===1){if(parsedQuery.elems.length===1){elem=parsedQuery.elems[0];for(i=0,nSearchWords=searchWords.length;i0){for(i=0,nSearchWords=searchWords.length;i-1||path.indexOf(key)>-1||(parent!==undefined&&parent.name!==undefined&&parent.name.toLowerCase().indexOf(key)>-1)||editDistance(name,key,maxEditDistance)<=maxEditDistance)){return false}}return true}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#search-tabs button").item(searchState.currentTab);searchState.focusedByTab[searchState.currentTab]=null;if(target){target.focus()}}function buildHrefAndPath(item){let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;if(type==="mod"){displayPath=path+"::";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=ROOT_PATH+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor="#"+type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="#variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}href=ROOT_PATH+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html"+anchor}else{displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href]}function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){let extraClass="";if(display===true){extraClass=" active"}const output=document.createElement("div");let length=0;if(array.length>0){output.className="search-results "+extraClass;array.forEach(item=>{const name=item.name;const type=itemTypes[item.ty];length+=1;let extra="";if(type==="primitive"){extra=" (primitive type)"}else if(type==="keyword"){extra=" (keyword)"}const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const resultName=document.createElement("div");resultName.className="result-name";if(item.is_alias){const alias=document.createElement("span");alias.className="alias";const bold=document.createElement("b");bold.innerText=item.alias;alias.appendChild(bold);alias.insertAdjacentHTML("beforeend"," - see ");resultName.appendChild(alias)}resultName.insertAdjacentHTML("beforeend",item.displayPath+""+name+extra+"");link.appendChild(resultName);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)})}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
"+"Try on DuckDuckGo?

"+"Or try looking in one of these:"}return[output,length]}function makeTabHeader(tabNb,text,nbElems){if(searchState.currentTab===tabNb){return""}return""}function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const ret_others=addTab(results.others,results.query,true);const ret_in_args=addTab(results.in_args,results.query,false);const ret_returned=addTab(results.returned,results.query,false);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";const crates_list=Object.keys(rawSearchIndex);if(crates_list.length>1){crates=" in 
"}let output=`

Results${crates}

`;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value}`}else{error[index]=value}});output+=`

Query parser error: "${error.join("")}".

`;output+="
"+makeTabHeader(0,"In Names",ret_others[1])+"
";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
"+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
"}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
"+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
";currentTab=0}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function search(e,forced){if(e){e.preventDefault()}const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";if(browserSupportsHistoryApi()){const newURL=buildUrl(query.original,filterCrates);if(!history.state&&!params.search){history.pushState(null,"",newURL)}else{history.replaceState(null,"",newURL)}}showResults(execQuery(query,searchWords,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;return types.map(type=>{let pathIndex,generics;if(typeof type==="number"){pathIndex=type;generics=[]}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths)}return{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:generics,}})}function buildFunctionSearchType(functionSearchType,lowercasePaths){const INPUTS_DATA=0;const OUTPUT_DATA=1;if(functionSearchType===0){return null}let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){const pathIndex=functionSearchType[INPUTS_DATA];inputs=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){const pathIndex=functionSearchType[OUTPUT_DATA];output=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths)}}else{output=[]}return{inputs,output,}}function buildIndex(rawSearchIndex){searchIndex=[];const searchWords=[];const charA="A".charCodeAt(0);let currentIndex=0;let id=0;for(const crate in rawSearchIndex){if(!hasOwnPropertyRustdoc(rawSearchIndex,crate)){continue}let crateSize=0;const crateCorpus=rawSearchIndex[crate];searchWords.push(crate);const crateRow={crate:crate,ty:1,name:crate,path:"",desc:crateCorpus.doc,parent:undefined,type:null,id:id,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),deprecated:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemDescs=crateCorpus.d;const itemParentIdxs=crateCorpus.i;const itemFunctionSearchTypes=crateCorpus.f;const deprecatedItems=new Set(crateCorpus.c);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];let len=paths.length;for(let i=0;i0?paths[itemParentIdxs[i]-1]:undefined,type:buildFunctionSearchType(itemFunctionSearchTypes[i],lowercasePaths),id:id,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),deprecated:deprecatedItems.has(i),};id+=1;searchIndex.push(row);lastPath=row.path;crateSize+=1}if(aliases){const currentCrateAliases=new Map();ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!hasOwnPropertyRustdoc(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=crateSize}return searchWords}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;search(e)}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const params=searchState.getQueryStringParams();const query=searchState.input.value.trim();if(!history.state&&!params.search){history.pushState(null,"",buildUrl(query,null))}else{history.replaceState(null,"",buildUrl(query,null))}}currentResults=null;search(undefined,true)}const searchWords=buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}return searchWords}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch({})}})() \ No newline at end of file diff --git a/firmware/static.files/settings-298e1ea74db45b39.js b/firmware/static.files/settings-298e1ea74db45b39.js new file mode 100644 index 0000000000..a426aef32f --- /dev/null +++ b/firmware/static.files/settings-298e1ea74db45b39.js @@ -0,0 +1,17 @@ +"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break}}function handleKey(ev){if(ev.ctrlKey||ev.altKey||ev.metaKey){return}switch(getVirtualKey(ev)){case"Enter":case"Return":case"Space":ev.target.checked=!ev.target.checked;ev.preventDefault();break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=function(){changeSetting(this.id,this.checked)};toggle.onkeyup=handleKey;toggle.onkeyrelease=handleKey});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\ +
+
${setting_name}
+
`;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\ + `});output+=`\ +
+
`}else{const checked=setting["default"]===true?" checked":"";output+=`\ +
\ + \ +
`}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`
${buildSettingsPageSections(settings)}
`;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display=""}function settingsBlurHandler(event){blurHandler(event,getSettingsButton(),window.hidePopoverMenus)}if(isSettingsPage){getSettingsButton().onclick=function(event){event.preventDefault()}}else{const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=function(event){if(elemIsInParent(event.target,settingsMenu)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})() \ No newline at end of file diff --git a/firmware/static.files/settings-7bfb4c59cc6bc502.css b/firmware/static.files/settings-7bfb4c59cc6bc502.css new file mode 100644 index 0000000000..79ad215813 --- /dev/null +++ b/firmware/static.files/settings-7bfb4c59cc6bc502.css @@ -0,0 +1,3 @@ +.setting-line{margin:1.2em 0.6em;position:relative;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;color:inherit;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-check input:checked{content:url('data:image/svg+xml,\ + \ + ');}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;} \ No newline at end of file diff --git a/firmware/static.files/source-script-905937fbbdc8e9ea.js b/firmware/static.files/source-script-905937fbbdc8e9ea.js new file mode 100644 index 0000000000..fc5080998f --- /dev/null +++ b/firmware/static.files/source-script-905937fbbdc8e9ea.js @@ -0,0 +1 @@ +"use strict";(function(){const rootPath=document.getElementById("rustdoc-vars").attributes["data-root-path"].value;const NAME_OFFSET=0;const DIRS_OFFSET=1;const FILES_OFFSET=2;const RUSTDOC_MOBILE_BREAKPOINT=700;function closeSidebarIfMobile(){if(window.innerWidth"){addClass(document.documentElement,"source-sidebar-expanded");child.innerText="<";updateLocalStorage("source-sidebar-show","true")}else{removeClass(document.documentElement,"source-sidebar-expanded");child.innerText=">";updateLocalStorage("source-sidebar-show","false")}}function createSidebarToggle(){const sidebarToggle=document.createElement("div");sidebarToggle.id="src-sidebar-toggle";const inner=document.createElement("button");if(getCurrentValue("source-sidebar-show")==="true"){inner.innerText="<"}else{inner.innerText=">"}inner.onclick=toggleSidebar;sidebarToggle.appendChild(inner);return sidebarToggle}function createSourceSidebar(){const container=document.querySelector("nav.sidebar");const sidebarToggle=createSidebarToggle();container.insertBefore(sidebarToggle,container.firstChild);const sidebar=document.createElement("div");sidebar.id="source-sidebar";let hasFoundFile=false;const title=document.createElement("div");title.className="title";title.innerText="Files";sidebar.appendChild(title);Object.keys(sourcesIndex).forEach(key=>{sourcesIndex[key][NAME_OFFSET]=key;hasFoundFile=createDirEntry(sourcesIndex[key],sidebar,"",hasFoundFile)});container.appendChild(sidebar);const selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}}const lineNumbersRegex=/^#?(\d+)(?:-(\d+))?$/;function highlightSourceLines(match){if(typeof match==="undefined"){match=window.location.hash.match(lineNumbersRegex)}if(!match){return}let from=parseInt(match[1],10);let to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to{onEachLazy(e.getElementsByTagName("a"),i_e=>{removeClass(i_e,"line-highlighted")})});for(let i=from;i<=to;++i){elem=document.getElementById(i);if(!elem){break}addClass(elem,"line-highlighted")}}const handleSourceHighlight=(function(){let prev_line_id=0;const set_fragment=name=>{const x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSourceLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return ev=>{let cur_line_id=parseInt(ev.target.id,10);if(isNaN(cur_line_id)||ev.ctrlKey||ev.altKey||ev.metaKey){return}ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){const tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());window.addEventListener("hashchange",()=>{const match=window.location.hash.match(lineNumbersRegex);if(match){return highlightSourceLines(match)}});onEachLazy(document.getElementsByClassName("src-line-numbers"),el=>{el.addEventListener("click",handleSourceHighlight)});highlightSourceLines();window.createSourceSidebar=createSourceSidebar})() \ No newline at end of file diff --git a/firmware/static.files/storage-62ce34ea385b278a.js b/firmware/static.files/storage-62ce34ea385b278a.js new file mode 100644 index 0000000000..6f4ec2e545 --- /dev/null +++ b/firmware/static.files/storage-62ce34ea385b278a.js @@ -0,0 +1 @@ +"use strict";const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");return settingsElement&&settingsElement.dataset?settingsElement.dataset:null})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current===null&&settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return current}const localStoredTheme=getSettingValue("theme");function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(elem&&elem.classList){elem.classList.add(className)}}function removeClass(elem,className){if(elem&&elem.classList){elem.classList.remove(className)}}function onEach(arr,func,reversed){if(arr&&arr.length>0){if(reversed){for(let i=arr.length-1;i>=0;--i){if(func(arr[i])){return true}}}else{for(const elem of arr){if(func(elem)){return true}}}}return false}function onEachLazy(lazyArray,func,reversed){return onEach(Array.prototype.slice.call(lazyArray),func,reversed)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}const getVar=(function getVar(name){const el=document.getElementById("rustdoc-vars");return el?el.attributes["data-"+name].value:null});function switchTheme(newThemeName,saveTheme){if(saveTheme){updateLocalStorage("theme",newThemeName)}let newHref;if(newThemeName==="light"||newThemeName==="dark"||newThemeName==="ayu"){newHref=getVar("static-root-path")+getVar("theme-"+newThemeName+"-css")}else{newHref=getVar("root-path")+newThemeName+getVar("resource-suffix")+".css"}if(!window.currentTheme){document.write(``);window.currentTheme=document.getElementById("themeStyle")}else if(newHref!==window.currentTheme.href){window.currentTheme.href=newHref}}const updateTheme=(function(){const mql=window.matchMedia("(prefers-color-scheme: dark)");function updateTheme(){if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";updateLocalStorage("use-system-theme","true");switchTheme(mql.matches?darkTheme:lightTheme,true)}else{switchTheme(getSettingValue("theme"),false)}}mql.addEventListener("change",updateTheme);return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"source-sidebar-expanded")}window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0)}}) \ No newline at end of file diff --git a/firmware/static.files/wheel-7b819b6101059cd0.svg b/firmware/static.files/wheel-7b819b6101059cd0.svg new file mode 100644 index 0000000000..83c07f63d1 --- /dev/null +++ b/firmware/static.files/wheel-7b819b6101059cd0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/fonts/OPEN-SANS-LICENSE.txt b/fonts/OPEN-SANS-LICENSE.txt new file mode 100644 index 0000000000..d645695673 --- /dev/null +++ b/fonts/OPEN-SANS-LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/fonts/SOURCE-CODE-PRO-LICENSE.txt b/fonts/SOURCE-CODE-PRO-LICENSE.txt new file mode 100644 index 0000000000..366206f549 --- /dev/null +++ b/fonts/SOURCE-CODE-PRO-LICENSE.txt @@ -0,0 +1,93 @@ +Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/fonts.css b/fonts/fonts.css new file mode 100644 index 0000000000..858efa5980 --- /dev/null +++ b/fonts/fonts.css @@ -0,0 +1,100 @@ +/* Open Sans is licensed under the Apache License, Version 2.0. See http://www.apache.org/licenses/LICENSE-2.0 */ +/* Source Code Pro is under the Open Font License. See https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL */ + +/* open-sans-300 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 300; + src: local('Open Sans Light'), local('OpenSans-Light'), + url('open-sans-v17-all-charsets-300.woff2') format('woff2'); +} + +/* open-sans-300italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 300; + src: local('Open Sans Light Italic'), local('OpenSans-LightItalic'), + url('open-sans-v17-all-charsets-300italic.woff2') format('woff2'); +} + +/* open-sans-regular - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans Regular'), local('OpenSans-Regular'), + url('open-sans-v17-all-charsets-regular.woff2') format('woff2'); +} + +/* open-sans-italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 400; + src: local('Open Sans Italic'), local('OpenSans-Italic'), + url('open-sans-v17-all-charsets-italic.woff2') format('woff2'); +} + +/* open-sans-600 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 600; + src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), + url('open-sans-v17-all-charsets-600.woff2') format('woff2'); +} + +/* open-sans-600italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 600; + src: local('Open Sans SemiBold Italic'), local('OpenSans-SemiBoldItalic'), + url('open-sans-v17-all-charsets-600italic.woff2') format('woff2'); +} + +/* open-sans-700 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), + url('open-sans-v17-all-charsets-700.woff2') format('woff2'); +} + +/* open-sans-700italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 700; + src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), + url('open-sans-v17-all-charsets-700italic.woff2') format('woff2'); +} + +/* open-sans-800 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 800; + src: local('Open Sans ExtraBold'), local('OpenSans-ExtraBold'), + url('open-sans-v17-all-charsets-800.woff2') format('woff2'); +} + +/* open-sans-800italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 800; + src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'), + url('open-sans-v17-all-charsets-800italic.woff2') format('woff2'); +} + +/* source-code-pro-500 - latin_vietnamese_latin-ext_greek_cyrillic-ext_cyrillic */ +@font-face { + font-family: 'Source Code Pro'; + font-style: normal; + font-weight: 500; + src: url('source-code-pro-v11-all-charsets-500.woff2') format('woff2'); +} diff --git a/fonts/open-sans-v17-all-charsets-300.woff2 b/fonts/open-sans-v17-all-charsets-300.woff2 new file mode 100644 index 0000000000..9f51be370f Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-300.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-300italic.woff2 b/fonts/open-sans-v17-all-charsets-300italic.woff2 new file mode 100644 index 0000000000..2f54544841 Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-300italic.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-600.woff2 b/fonts/open-sans-v17-all-charsets-600.woff2 new file mode 100644 index 0000000000..f503d558d5 Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-600.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-600italic.woff2 b/fonts/open-sans-v17-all-charsets-600italic.woff2 new file mode 100644 index 0000000000..c99aabe803 Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-600italic.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-700.woff2 b/fonts/open-sans-v17-all-charsets-700.woff2 new file mode 100644 index 0000000000..421a1ab25f Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-700.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-700italic.woff2 b/fonts/open-sans-v17-all-charsets-700italic.woff2 new file mode 100644 index 0000000000..12ce3d20d1 Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-700italic.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-800.woff2 b/fonts/open-sans-v17-all-charsets-800.woff2 new file mode 100644 index 0000000000..c94a223b03 Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-800.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-800italic.woff2 b/fonts/open-sans-v17-all-charsets-800italic.woff2 new file mode 100644 index 0000000000..eed7d3c63d Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-800italic.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-italic.woff2 b/fonts/open-sans-v17-all-charsets-italic.woff2 new file mode 100644 index 0000000000..398b68a085 Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-italic.woff2 differ diff --git a/fonts/open-sans-v17-all-charsets-regular.woff2 b/fonts/open-sans-v17-all-charsets-regular.woff2 new file mode 100644 index 0000000000..8383e94c65 Binary files /dev/null and b/fonts/open-sans-v17-all-charsets-regular.woff2 differ diff --git a/fonts/source-code-pro-v11-all-charsets-500.woff2 b/fonts/source-code-pro-v11-all-charsets-500.woff2 new file mode 100644 index 0000000000..722245682f Binary files /dev/null and b/fonts/source-code-pro-v11-all-charsets-500.woff2 differ diff --git a/highlight.css b/highlight.css new file mode 100644 index 0000000000..c234322720 --- /dev/null +++ b/highlight.css @@ -0,0 +1,83 @@ +/* + * An increased contrast highlighting scheme loosely based on the + * "Base16 Atelier Dune Light" theme by Bram de Haan + * (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) + * Original Base16 color scheme by Chris Kempson + * (https://github.com/chriskempson/base16) + */ + +/* Comment */ +.hljs-comment, +.hljs-quote { + color: #575757; +} + +/* Red */ +.hljs-variable, +.hljs-template-variable, +.hljs-attribute, +.hljs-tag, +.hljs-name, +.hljs-regexp, +.hljs-link, +.hljs-name, +.hljs-selector-id, +.hljs-selector-class { + color: #d70025; +} + +/* Orange */ +.hljs-number, +.hljs-meta, +.hljs-built_in, +.hljs-builtin-name, +.hljs-literal, +.hljs-type, +.hljs-params { + color: #b21e00; +} + +/* Green */ +.hljs-string, +.hljs-symbol, +.hljs-bullet { + color: #008200; +} + +/* Blue */ +.hljs-title, +.hljs-section { + color: #0030f2; +} + +/* Purple */ +.hljs-keyword, +.hljs-selector-tag { + color: #9d00ec; +} + +.hljs { + display: block; + overflow-x: auto; + background: #f6f7f6; + color: #000; + padding: 0.5em; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} + +.hljs-addition { + color: #22863a; + background-color: #f0fff4; +} + +.hljs-deletion { + color: #b31d28; + background-color: #ffeef0; +} diff --git a/highlight.js b/highlight.js new file mode 100644 index 0000000000..180385b702 --- /dev/null +++ b/highlight.js @@ -0,0 +1,6 @@ +/* + Highlight.js 10.1.1 (93fd0d73) + License: BSD-3-Clause + Copyright (c) 2006-2020, Ivan Sagalaev +*/ +var hljs=function(){"use strict";function e(n){Object.freeze(n);var t="function"==typeof n;return Object.getOwnPropertyNames(n).forEach((function(r){!Object.hasOwnProperty.call(n,r)||null===n[r]||"object"!=typeof n[r]&&"function"!=typeof n[r]||t&&("caller"===r||"callee"===r||"arguments"===r)||Object.isFrozen(n[r])||e(n[r])})),n}class n{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function t(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function r(e,...n){var t={};for(const n in e)t[n]=e[n];return n.forEach((function(e){for(const n in e)t[n]=e[n]})),t}function a(e){return e.nodeName.toLowerCase()}var i=Object.freeze({__proto__:null,escapeHTML:t,inherit:r,nodeStream:function(e){var n=[];return function e(t,r){for(var i=t.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(n.push({event:"start",offset:r,node:i}),r=e(i,r),a(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:r,node:i}));return r}(e,0),n},mergeStreams:function(e,n,r){var i=0,s="",o=[];function l(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function u(e){s+=""}function d(e){("start"===e.event?c:u)(e.node)}for(;e.length||n.length;){var g=l();if(s+=t(r.substring(i,g[0].offset)),i=g[0].offset,g===e){o.reverse().forEach(u);do{d(g.splice(0,1)[0]),g=l()}while(g===e&&g.length&&g[0].offset===i);o.reverse().forEach(c)}else"start"===g[0].event?o.push(g[0].node):o.pop(),d(g.splice(0,1)[0])}return s+t(r.substr(i))}});const s="
",o=e=>!!e.kind;class l{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=t(e)}openNode(e){if(!o(e))return;let n=e.kind;e.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(e){o(e)&&(this.buffer+=s)}value(){return this.buffer}span(e){this.buffer+=``}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(n=>this._walk(e,n)),e.closeNode(n)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{c._collapse(e)}))}}class u extends c{constructor(e){super(),this.options=e}addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function d(e){return e?"string"==typeof e?e:e.source:null}const g="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",h={begin:"\\\\[\\s\\S]",relevance:0},f={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[h]},p={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[h]},b={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},m=function(e,n,t={}){var a=r({className:"comment",begin:e,end:n,contains:[]},t);return a.contains.push(b),a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),a},v=m("//","$"),x=m("/\\*","\\*/"),E=m("#","$");var _=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:g,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>d(e)).join("")}(n,/.*\b/,e.binary,/\b.*/)),r({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:h,APOS_STRING_MODE:f,QUOTE_STRING_MODE:p,PHRASAL_WORDS_MODE:b,COMMENT:m,C_LINE_COMMENT_MODE:v,C_BLOCK_COMMENT_MODE:x,HASH_COMMENT_MODE:E,NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},C_NUMBER_MODE:{className:"number",begin:g,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:"\\b(0b[01]+)",relevance:0},CSS_NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[h,{begin:/\[/,end:/\]/,relevance:0,contains:[h]}]}]},TITLE_MODE:{className:"title",begin:"[a-zA-Z]\\w*",relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}}),N="of and for in not or if then".split(" ");function w(e,n){return n?+n:function(e){return N.includes(e.toLowerCase())}(e)?0:1}const R=t,y=r,{nodeStream:k,mergeStreams:O}=i,M=Symbol("nomatch");return function(t){var a=[],i={},s={},o=[],l=!0,c=/(^(<[^>]+>|\t|)+|\n)/gm,g="Could not find the language '{}', did you forget to load/include a language module?";const h={disableAutodetect:!0,name:"Plain text",contains:[]};var f={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:u};function p(e){return f.noHighlightRe.test(e)}function b(e,n,t,r){var a={code:n,language:e};S("before:highlight",a);var i=a.result?a.result:m(a.language,a.code,t,r);return i.code=a.code,S("after:highlight",i),i}function m(e,t,a,s){var o=t;function c(e,n){var t=E.case_insensitive?n[0].toLowerCase():n[0];return Object.prototype.hasOwnProperty.call(e.keywords,t)&&e.keywords[t]}function u(){null!=y.subLanguage?function(){if(""!==A){var e=null;if("string"==typeof y.subLanguage){if(!i[y.subLanguage])return void O.addText(A);e=m(y.subLanguage,A,!0,k[y.subLanguage]),k[y.subLanguage]=e.top}else e=v(A,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(I+=e.relevance),O.addSublanguage(e.emitter,e.language)}}():function(){if(!y.keywords)return void O.addText(A);let e=0;y.keywordPatternRe.lastIndex=0;let n=y.keywordPatternRe.exec(A),t="";for(;n;){t+=A.substring(e,n.index);const r=c(y,n);if(r){const[e,a]=r;O.addText(t),t="",I+=a,O.addKeyword(n[0],e)}else t+=n[0];e=y.keywordPatternRe.lastIndex,n=y.keywordPatternRe.exec(A)}t+=A.substr(e),O.addText(t)}(),A=""}function h(e){return e.className&&O.openNode(e.className),y=Object.create(e,{parent:{value:y}})}function p(e){return 0===y.matcher.regexIndex?(A+=e[0],1):(L=!0,0)}var b={};function x(t,r){var i=r&&r[0];if(A+=t,null==i)return u(),0;if("begin"===b.type&&"end"===r.type&&b.index===r.index&&""===i){if(A+=o.slice(r.index,r.index+1),!l){const n=Error("0 width match regex");throw n.languageName=e,n.badRule=b.rule,n}return 1}if(b=r,"begin"===r.type)return function(e){var t=e[0],r=e.rule;const a=new n(r),i=[r.__beforeBegin,r["on:begin"]];for(const n of i)if(n&&(n(e,a),a.ignore))return p(t);return r&&r.endSameAsBegin&&(r.endRe=RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?A+=t:(r.excludeBegin&&(A+=t),u(),r.returnBegin||r.excludeBegin||(A=t)),h(r),r.returnBegin?0:t.length}(r);if("illegal"===r.type&&!a){const e=Error('Illegal lexeme "'+i+'" for mode "'+(y.className||"")+'"');throw e.mode=y,e}if("end"===r.type){var s=function(e){var t=e[0],r=o.substr(e.index),a=function e(t,r,a){let i=function(e,n){var t=e&&e.exec(n);return t&&0===t.index}(t.endRe,a);if(i){if(t["on:end"]){const e=new n(t);t["on:end"](r,e),e.ignore&&(i=!1)}if(i){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,r,a)}(y,e,r);if(!a)return M;var i=y;i.skip?A+=t:(i.returnEnd||i.excludeEnd||(A+=t),u(),i.excludeEnd&&(A=t));do{y.className&&O.closeNode(),y.skip||y.subLanguage||(I+=y.relevance),y=y.parent}while(y!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),h(a.starts)),i.returnEnd?0:t.length}(r);if(s!==M)return s}if("illegal"===r.type&&""===i)return 1;if(B>1e5&&B>3*r.index)throw Error("potential infinite loop, way more iterations than matches");return A+=i,i.length}var E=T(e);if(!E)throw console.error(g.replace("{}",e)),Error('Unknown language: "'+e+'"');var _=function(e){function n(n,t){return RegExp(d(n),"m"+(e.case_insensitive?"i":"")+(t?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=function(e){return RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,n="|"){for(var t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,r=0,a="",i=0;i0&&(a+=n),a+="(";o.length>0;){var l=t.exec(o);if(null==l){a+=o;break}a+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),"\\"===l[0][0]&&l[1]?a+="\\"+(+l[1]+s):(a+=l[0],"("===l[0]&&r++)}a+=")"}return a}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const n=this.matcherRe.exec(e);if(!n)return null;const t=n.findIndex((e,n)=>n>0&&void 0!==e),r=this.matchIndexes[t];return n.splice(0,t),Object.assign(n,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t;return this.rules.slice(e).forEach(([e,t])=>n.addRule(e,t)),n.compile(),this.multiRegexes[e]=n,n}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;const t=n.exec(e);return t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count&&(this.regexIndex=0)),t}}function i(e,n){const t=e.input[e.index-1],r=e.input[e.index+e[0].length];"."!==t&&"."!==r||n.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return function t(s,o){const l=s;if(s.compiled)return l;s.compiled=!0,s.__beforeBegin=null,s.keywords=s.keywords||s.beginKeywords;let c=null;if("object"==typeof s.keywords&&(c=s.keywords.$pattern,delete s.keywords.$pattern),s.keywords&&(s.keywords=function(e,n){var t={};return"string"==typeof e?r("keyword",e):Object.keys(e).forEach((function(n){r(n,e[n])})),t;function r(e,r){n&&(r=r.toLowerCase()),r.split(" ").forEach((function(n){var r=n.split("|");t[r[0]]=[e,w(r[0],r[1])]}))}}(s.keywords,e.case_insensitive)),s.lexemes&&c)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return l.keywordPatternRe=n(s.lexemes||c||/\w+/,!0),o&&(s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?=\\b|\\s)",s.__beforeBegin=i),s.begin||(s.begin=/\B|\b/),l.beginRe=n(s.begin),s.endSameAsBegin&&(s.end=s.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(l.endRe=n(s.end)),l.terminator_end=d(s.end)||"",s.endsWithParent&&o.terminator_end&&(l.terminator_end+=(s.end?"|":"")+o.terminator_end)),s.illegal&&(l.illegalRe=n(s.illegal)),void 0===s.relevance&&(s.relevance=1),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(n){return r(e,{variants:null},n)}))),e.cached_variants?e.cached_variants:function e(n){return!!n&&(n.endsWithParent||e(n.starts))}(e)?r(e,{starts:e.starts?r(e.starts):null}):Object.isFrozen(e)?r(e):e}("self"===e?s:e)}))),s.contains.forEach((function(e){t(e,l)})),s.starts&&t(s.starts,o),l.matcher=function(e){const n=new a;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:"begin"})),e.terminator_end&&n.addRule(e.terminator_end,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}(l),l}(e)}(E),N="",y=s||_,k={},O=new f.__emitter(f);!function(){for(var e=[],n=y;n!==E;n=n.parent)n.className&&e.unshift(n.className);e.forEach(e=>O.openNode(e))}();var A="",I=0,S=0,B=0,L=!1;try{for(y.matcher.considerAll();;){B++,L?L=!1:(y.matcher.lastIndex=S,y.matcher.considerAll());const e=y.matcher.exec(o);if(!e)break;const n=x(o.substring(S,e.index),e);S=e.index+n}return x(o.substr(S)),O.closeAllNodes(),O.finalize(),N=O.toHTML(),{relevance:I,value:N,language:e,illegal:!1,emitter:O,top:y}}catch(n){if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:n.message,context:o.slice(S-100,S+100),mode:n.mode},sofar:N,relevance:0,value:R(o),emitter:O};if(l)return{illegal:!1,relevance:0,value:R(o),emitter:O,language:e,top:y,errorRaised:n};throw n}}function v(e,n){n=n||f.languages||Object.keys(i);var t=function(e){const n={relevance:0,emitter:new f.__emitter(f),value:R(e),illegal:!1,top:h};return n.emitter.addText(e),n}(e),r=t;return n.filter(T).filter(I).forEach((function(n){var a=m(n,e,!1);a.language=n,a.relevance>r.relevance&&(r=a),a.relevance>t.relevance&&(r=t,t=a)})),r.language&&(t.second_best=r),t}function x(e){return f.tabReplace||f.useBR?e.replace(c,e=>"\n"===e?f.useBR?"
":e:f.tabReplace?e.replace(/\t/g,f.tabReplace):e):e}function E(e){let n=null;const t=function(e){var n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";const t=f.languageDetectRe.exec(n);if(t){var r=T(t[1]);return r||(console.warn(g.replace("{}",t[1])),console.warn("Falling back to no-highlight mode for this block.",e)),r?t[1]:"no-highlight"}return n.split(/\s+/).find(e=>p(e)||T(e))}(e);if(p(t))return;S("before:highlightBlock",{block:e,language:t}),f.useBR?(n=document.createElement("div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"):n=e;const r=n.textContent,a=t?b(t,r,!0):v(r),i=k(n);if(i.length){const e=document.createElement("div");e.innerHTML=a.value,a.value=O(i,k(e),r)}a.value=x(a.value),S("after:highlightBlock",{block:e,result:a}),e.innerHTML=a.value,e.className=function(e,n,t){var r=n?s[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),e.includes(r)||a.push(r),a.join(" ").trim()}(e.className,t,a.language),e.result={language:a.language,re:a.relevance,relavance:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance,relavance:a.second_best.relevance})}const N=()=>{if(!N.called){N.called=!0;var e=document.querySelectorAll("pre code");a.forEach.call(e,E)}};function T(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}function A(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach(e=>{s[e]=n})}function I(e){var n=T(e);return n&&!n.disableAutodetect}function S(e,n){var t=e;o.forEach((function(e){e[t]&&e[t](n)}))}Object.assign(t,{highlight:b,highlightAuto:v,fixMarkup:x,highlightBlock:E,configure:function(e){f=y(f,e)},initHighlighting:N,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",N,!1)},registerLanguage:function(e,n){var r=null;try{r=n(t)}catch(n){if(console.error("Language definition for '{}' could not be registered.".replace("{}",e)),!l)throw n;console.error(n),r=h}r.name||(r.name=e),i[e]=r,r.rawDefinition=n.bind(null,t),r.aliases&&A(r.aliases,{languageName:e})},listLanguages:function(){return Object.keys(i)},getLanguage:T,registerAliases:A,requireLanguage:function(e){var n=T(e);if(n)return n;throw Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:I,inherit:y,addPlugin:function(e){o.push(e)}}),t.debugMode=function(){l=!1},t.safeMode=function(){l=!0},t.versionString="10.1.1";for(const n in _)"object"==typeof _[n]&&e(_[n]);return Object.assign(t,_),t}({})}();"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);hljs.registerLanguage("php",function(){"use strict";return function(e){var r={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},t={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},a={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Throwable Traversable WeakReference Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php","php3","php4","php5","php6","php7"],case_insensitive:!0,keywords:i,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[t]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},t,{className:"keyword",begin:/\$this\b/},r,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",r,e.C_BLOCK_COMMENT_MODE,a,n]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},a,n]}}}());hljs.registerLanguage("nginx",function(){"use strict";return function(e){var n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/}/},{begin:"[\\$\\@]"+e.UNDERSCORE_IDENT_RE}]},a={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+{",returnBegin:!0,end:"{",contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}]"}}}());hljs.registerLanguage("csharp",function(){"use strict";return function(e){var n={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let nameof on orderby partial remove select set value var when where yield",literal:"null false true"},i=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},t=e.inherit(s,{illegal:/\n/}),l={className:"subst",begin:"{",end:"}",keywords:n},r=e.inherit(l,{illegal:/\n/}),c={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},e.BACKSLASH_ESCAPE,r]},o={className:"string",begin:/\$@"/,end:'"',contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},l]},g=e.inherit(o,{illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},r]});l.contains=[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],r.contains=[g,c,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var d={variants:[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},i]},_=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",b={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},d,a,{beginKeywords:"class interface",end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},i,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+_+"\\s+)+"+e.IDENT_RE+"\\s*(\\<.+\\>)?\\s*\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.IDENT_RE+"\\s*(\\<.+\\>)?\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE,E],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0,contains:[d,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},b]}}}());hljs.registerLanguage("perl",function(){"use strict";return function(e){var n={$pattern:/[\w.]+/,keyword:"getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qq fileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmget sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedir ioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when"},t={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:n},s={begin:"->{",end:"}"},r={variants:[{begin:/\$\d/},{begin:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{begin:/[\$%@][^\s\w{]/,relevance:0}]},i=[e.BACKSLASH_ESCAPE,t,r],a=[r,e.HASH_COMMENT_MODE,e.COMMENT("^\\=\\w","\\=cut",{endsWithParent:!0}),s,{className:"string",contains:i,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*\\<",end:"\\>",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:"{\\w+}",contains:[],relevance:0},{begin:"-?\\w+\\s*\\=\\>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{className:"regexp",begin:"(m|qr)?/",end:"/[a-z]*",contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return t.contains=a,s.contains=a,{name:"Perl",aliases:["pl","pm"],keywords:n,contains:a}}}());hljs.registerLanguage("swift",function(){"use strict";return function(e){var i={keyword:"#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c compactMap contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),t={className:"subst",begin:/\\\(/,end:"\\)",keywords:i,contains:[]},a={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"""/,end:/"""/},{begin:/"/,end:/"/}]},r={className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0};return t.contains=[r],{name:"Swift",keywords:i,contains:[a,e.C_LINE_COMMENT_MODE,n,{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*[!?]"},{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},r,{className:"function",beginKeywords:"func",end:"{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin://},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,contains:["self",r,a,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:i,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{className:"meta",begin:"(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|@propertyWrapper)\\b"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,n]}]}}}());hljs.registerLanguage("makefile",function(){"use strict";return function(e){var i={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[a,i,t,s,{begin:"\\[",end:"\\]",contains:[{className:"meta",begin:"",contains:[a,s,i,t]}]}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},n,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:")",end:">",keywords:{name:"style"},contains:[c],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:")",end:">",keywords:{name:"script"},contains:[c],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},c]}]}}}());hljs.registerLanguage("bash",function(){"use strict";return function(e){const s={};Object.assign(s,{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{/,end:/\}/,contains:[{begin:/:-/,contains:[s]}]}]});const t={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,t]};t.contains.push(n);const a={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,s]},i=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b-?[a-z\._]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[i,e.SHEBANG(),c,a,e.HASH_COMMENT_MODE,n,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},s]}}}());hljs.registerLanguage("c-like",function(){"use strict";return function(e){function t(e){return"(?:"+e+")?"}var n="(decltype\\(auto\\)|"+t("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+t("<.*?>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o={className:"title",begin:t("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},c=t("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",l={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},d=[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:l,contains:d.concat([{begin:/\(/,end:/\)/,keywords:l,contains:d.concat(["self"]),relevance:0}]),relevance:0},u={className:"function",begin:"("+n+"[\\*&\\s]+)+"+c,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:l,illegal:/[^\w\s\*&:<>]/,contains:[{begin:"decltype\\(auto\\)",keywords:l,relevance:0},{begin:c,returnBegin:!0,contains:[o],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r,{begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r]}]},r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:l,disableAutodetect:!0,illegal:"",keywords:l,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:l},{className:"class",beginKeywords:"class struct",end:/[{;:]/,contains:[{begin://,contains:["self"]},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:a,keywords:l}}}}());hljs.registerLanguage("coffeescript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return function(r){var t={keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((e=>n=>!e.includes(n))(["var","const","let","function","static"])).join(" "),literal:n.concat(["yes","no","on","off"]).join(" "),built_in:a.concat(["npm","print"]).join(" ")},i="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/}/,keywords:t},o=[r.BINARY_NUMBER_MODE,r.inherit(r.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[r.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[r.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[r.BACKSLASH_ESCAPE,s]},{begin:/"/,end:/"/,contains:[r.BACKSLASH_ESCAPE,s]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[s,r.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+i},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];s.contains=o;var c=r.inherit(r.TITLE_MODE,{begin:i}),l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(o)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:o.concat([r.COMMENT("###","###"),r.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+i+"\\s*=\\s*(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[c,l]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[c]},c]},{begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}());hljs.registerLanguage("ruby",function(){"use strict";return function(e){var n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},s={className:"doctag",begin:"@[A-Za-z]+"},i={begin:"#<",end:">"},r=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^\\=begin","^\\=end",{contains:[s],relevance:10}),e.COMMENT("^__END__","\\n$")],c={className:"subst",begin:"#\\{",end:"}",keywords:a},t={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},b={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:a},d=[t,i,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(r)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:n}),b].concat(r)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[t,{begin:n}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"params",begin:/\|/,end:/\|/,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[i,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r),relevance:0}].concat(r);c.contains=d,b.contains=d;var g=[{begin:/^\s*=>/,starts:{end:"$",contains:d}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{end:"$",contains:d}}];return{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:r.concat(g).concat(d)}}}());hljs.registerLanguage("yaml",function(){"use strict";return function(e){var n="true false yes no null",a="[\\w#;/?:@&=+$,.~*\\'()[\\]]+",s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]}]},i=e.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={end:",",endsWithParent:!0,excludeEnd:!0,contains:[],keywords:n,relevance:0},t={begin:"{",end:"}",contains:[l],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[l],illegal:"\\n",relevance:0},b=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"\\-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b"},t,g,s],c=[...b];return c.pop(),c.push(i),l.contains=c,{name:"YAML",case_insensitive:!0,aliases:["yml","YAML"],contains:b}}}());hljs.registerLanguage("d",function(){"use strict";return function(e){var a={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},d="((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))",n="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",t={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},_={className:"number",begin:"\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},r={className:"string",begin:"'("+n+"|.)",end:"'",illegal:"."},i={className:"string",begin:'"',contains:[{begin:n,relevance:0}],end:'"[cwd]?'},s=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},i,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},_,t,r,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}}}());hljs.registerLanguage("properties",function(){"use strict";return function(e){var n="[ \\t\\f]*",t="("+n+"[:=]"+n+"|[ \\t\\f]+)",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:t,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+"+t,returnBegin:!0,contains:[{className:"attr",begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",endsParent:!0,relevance:0}],starts:s},{begin:a+t,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:a,endsParent:!0,relevance:0}],starts:s},{className:"attr",relevance:0,begin:a+n+"$"}]}}}());hljs.registerLanguage("http",function(){"use strict";return function(e){var n="HTTP/[0-9\\.]+";return{name:"HTTP",aliases:["https"],illegal:"\\S",contains:[{begin:"^"+n,end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) "+n+"$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:n},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}}}());hljs.registerLanguage("haskell",function(){"use strict";return function(e){var n={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},i={className:"meta",begin:"{-#",end:"#-}"},a={className:"meta",begin:"^#",end:"$"},s={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},l={begin:"\\(",end:"\\)",illegal:'"',contains:[i,a,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),n]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[l,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[l,n],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[s,l,n]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[i,s,l,{begin:"{",end:"}",contains:l.contains},n]},{beginKeywords:"default",end:"$",contains:[s,l,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[s,e.QUOTE_STRING_MODE,n]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},i,a,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,s,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}]}}}());hljs.registerLanguage("handlebars",function(){"use strict";function e(...e){return e.map(e=>(function(e){return e?"string"==typeof e?e:e.source:null})(e)).join("")}return function(n){const a={"builtin-name":"action bindattr collection component concat debugger each each-in get hash if in input link-to loc log lookup mut outlet partial query-params render template textarea unbound unless view with yield"},t=/\[.*?\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,i=e("(",/'.*?'/,"|",/".*?"/,"|",t,"|",s,"|",/\.|\//,")+"),r=e("(",t,"|",s,")(?==)"),l={begin:i,lexemes:/[\w.\/]+/},c=n.inherit(l,{keywords:{literal:"true false undefined null"}}),o={begin:/\(/,end:/\)/},m={className:"attr",begin:r,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[n.NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,c,o]}}},d={contains:[n.NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},m,c,o],returnEnd:!0},g=n.inherit(l,{className:"name",keywords:a,starts:n.inherit(d,{end:/\)/})});o.contains=[g];const u=n.inherit(l,{keywords:a,className:"name",starts:n.inherit(d,{end:/}}/})}),b=n.inherit(l,{keywords:a,className:"name"}),h=n.inherit(l,{className:"name",keywords:a,starts:n.inherit(d,{end:/}}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},n.COMMENT(/\{\{!--/,/--\}\}/),n.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[u],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[b]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[u]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[b]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[h]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[h]}]}}}());hljs.registerLanguage("rust",function(){"use strict";return function(e){var n="([ui](8|16|32|64|128|size)|f(32|64))?",t="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:t},illegal:""}]}}}());hljs.registerLanguage("cpp",function(){"use strict";return function(e){var t=e.getLanguage("c-like").rawDefinition();return t.disableAutodetect=!1,t.name="C++",t.aliases=["cc","c++","h++","hpp","hh","hxx","cxx"],t}}());hljs.registerLanguage("ini",function(){"use strict";function e(e){return e?"string"==typeof e?e:e.source:null}function n(...n){return n.map(n=>e(n)).join("")}return function(a){var s={className:"number",relevance:0,variants:[{begin:/([\+\-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},i=a.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];var t={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},r={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,r,t,l,s,"self"],relevance:0},g="("+[/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/].map(n=>e(n)).join("|")+")";return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:n(g,"(\\s*\\.\\s*",g,")*",n("(?=",/\s*=\s*[^#\s]/,")")),className:"attr",starts:{end:/$/,contains:[i,c,r,t,l,s]}}]}}}());hljs.registerLanguage("objectivec",function(){"use strict";return function(e){var n=/[a-zA-Z@][a-zA-Z0-9_]*/,_={$pattern:n,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c"],keywords:{$pattern:n,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.split(" ").join("|")+")\\b",end:"({|$)",excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}}());hljs.registerLanguage("apache",function(){"use strict";return function(e){var n={className:"number",begin:"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?"};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:"",contains:[n,{className:"number",begin:":\\d{1,5}"},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",{className:"number",begin:"[\\$%]\\d+"}]},n,{className:"number",begin:"\\d+"},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}}());hljs.registerLanguage("java",function(){"use strict";function e(e){return e?"string"==typeof e?e:e.source:null}function n(e){return a("(",e,")?")}function a(...n){return n.map(n=>e(n)).join("")}function s(...n){return"("+n.map(n=>e(n)).join("|")+")"}return function(e){var t="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",i={className:"meta",begin:"@[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},r=e=>a("[",e,"]+([",e,"_]*[",e,"]+)?"),c={className:"number",variants:[{begin:`\\b(0[bB]${r("01")})[lL]?`},{begin:`\\b(0${r("0-7")})[dDfFlL]?`},{begin:a(/\b0[xX]/,s(a(r("a-fA-F0-9"),/\./,r("a-fA-F0-9")),a(r("a-fA-F0-9"),/\.?/),a(/\./,r("a-fA-F0-9"))),/([pP][+-]?(\d+))?/,/[fFdDlL]?/)},{begin:a(/\b/,s(a(/\d*\./,r("\\d")),r("\\d")),/[eE][+-]?[\d]+[dDfF]?/)},{begin:a(/\b/,r(/\d/),n(/\.?/),n(r(/\d/)),/[dDfFlL]?/)}],relevance:0};return{name:"Java",aliases:["jsp"],keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},c,i]}}}());hljs.registerLanguage("x86asm",function(){"use strict";return function(s){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+s.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[s.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},s.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}}());hljs.registerLanguage("kotlin",function(){"use strict";return function(e){var n={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:"\\${",end:"}",contains:[e.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},t={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,s,i]}]};i.contains.push(t);var r={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(t,{className:"meta-string"})]}]},c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),o={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},d=o;return d.variants[1].contains=[o],o.variants[1].contains=[d],{name:"Kotlin",aliases:["kt"],keywords:n,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},a,r,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:n,illegal:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[o,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,r,l,t,e.C_NUMBER_MODE]},c]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},r,l]},t,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},{className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0}]}}}());hljs.registerLanguage("armasm",function(){"use strict";return function(s){const e={variants:[s.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),s.COMMENT("[;@]","$",{relevance:0}),s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+s.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},e,s.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}}());hljs.registerLanguage("go",function(){"use strict";return function(e){var n={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:n,illegal:">>|\.\.\.) /},i={className:"subst",begin:/\{/,end:/\}/,keywords:n,illegal:/#/},s={begin:/\{\{/,relevance:0},r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,i]},{begin:/(fr|rf|f)"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,i]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},l={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},t={className:"params",variants:[{begin:/\(\s*\)/,skip:!0,className:null},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:["self",a,l,r,e.HASH_COMMENT_MODE]}]};return i.contains=[r,l,a],{name:"Python",aliases:["py","gyp","ipython"],keywords:n,illegal:/(<\/|->|\?)|=>/,contains:[a,l,{beginKeywords:"if",relevance:0},r,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,t,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}}());hljs.registerLanguage("shell",function(){"use strict";return function(s){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:"^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]",starts:{end:"$",subLanguage:"bash"}}]}}}());hljs.registerLanguage("scala",function(){"use strict";return function(e){var n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:"\\${",end:"}"}]},a={className:"string",variants:[{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'"""',end:'"""',relevance:10},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[n],relevance:10}]},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},t={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},i={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s]},t]},l={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[t]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,{className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},s,l,i,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}}());hljs.registerLanguage("julia",function(){"use strict";return function(e){var r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",t={$pattern:r,keyword:"in isa where baremodule begin break catch ccall const continue do else elseif end export false finally for function global if import importall let local macro module quote return true try using while type immutable abstract bitstype typealias ",literal:"true false ARGS C_NULL DevNull ENDIAN_BOM ENV I Inf Inf16 Inf32 Inf64 InsertionSort JULIA_HOME LOAD_PATH MergeSort NaN NaN16 NaN32 NaN64 PROGRAM_FILE QuickSort RoundDown RoundFromZero RoundNearest RoundNearestTiesAway RoundNearestTiesUp RoundToZero RoundUp STDERR STDIN STDOUT VERSION catalan e|0 eu|0 eulergamma golden im nothing pi γ π φ ",built_in:"ANY AbstractArray AbstractChannel AbstractFloat AbstractMatrix AbstractRNG AbstractSerializer AbstractSet AbstractSparseArray AbstractSparseMatrix AbstractSparseVector AbstractString AbstractUnitRange AbstractVecOrMat AbstractVector Any ArgumentError Array AssertionError Associative Base64DecodePipe Base64EncodePipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError BufferStream CachingPool CapturedException CartesianIndex CartesianRange Cchar Cdouble Cfloat Channel Char Cint Cintmax_t Clong Clonglong ClusterManager Cmd CodeInfo Colon Complex Complex128 Complex32 Complex64 CompositeException Condition ConjArray ConjMatrix ConjVector Cptrdiff_t Cshort Csize_t Cssize_t Cstring Cuchar Cuint Cuintmax_t Culong Culonglong Cushort Cwchar_t Cwstring DataType Date DateFormat DateTime DenseArray DenseMatrix DenseVecOrMat DenseVector Diagonal Dict DimensionMismatch Dims DirectIndexString Display DivideError DomainError EOFError EachLine Enum Enumerate ErrorException Exception ExponentialBackOff Expr Factorization FileMonitor Float16 Float32 Float64 Function Future GlobalRef GotoNode HTML Hermitian IO IOBuffer IOContext IOStream IPAddr IPv4 IPv6 IndexCartesian IndexLinear IndexStyle InexactError InitError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException InvalidStateException Irrational KeyError LabelNode LinSpace LineNumberNode LoadError LowerTriangular MIME Matrix MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode NullException Nullable Number ObjectIdDict OrdinalRange OutOfMemoryError OverflowError Pair ParseError PartialQuickSort PermutedDimsArray Pipe PollingFileWatcher ProcessExitedException Ptr QuoteNode RandomDevice Range RangeIndex Rational RawFD ReadOnlyMemoryError Real ReentrantLock Ref Regex RegexMatch RemoteChannel RemoteException RevString RoundingMode RowVector SSAValue SegmentationFault SerializationState Set SharedArray SharedMatrix SharedVector Signed SimpleVector Slot SlotNumber SparseMatrixCSC SparseVector StackFrame StackOverflowError StackTrace StepRange StepRangeLen StridedArray StridedMatrix StridedVecOrMat StridedVector String SubArray SubString SymTridiagonal Symbol Symmetric SystemError TCPSocket Task Text TextDisplay Timer Tridiagonal Tuple Type TypeError TypeMapEntry TypeMapLevel TypeName TypeVar TypedSlot UDPSocket UInt UInt128 UInt16 UInt32 UInt64 UInt8 UndefRefError UndefVarError UnicodeError UniformScaling Union UnionAll UnitRange Unsigned UpperTriangular Val Vararg VecElement VecOrMat Vector VersionNumber Void WeakKeyDict WeakRef WorkerConfig WorkerPool "},a={keywords:t,illegal:/<\//},n={className:"subst",begin:/\$\(/,end:/\)/,keywords:t},o={className:"variable",begin:"\\$"+r},i={className:"string",contains:[e.BACKSLASH_ESCAPE,n,o],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},l={className:"string",contains:[e.BACKSLASH_ESCAPE,n,o],begin:"`",end:"`"},s={className:"meta",begin:"@"+r};return a.name="Julia",a.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i,l,s,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],n.contains=a.contains,a}}());hljs.registerLanguage("php-template",function(){"use strict";return function(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}}());hljs.registerLanguage("scss",function(){"use strict";return function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},i={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{className:"selector-pseudo",begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{className:"selector-pseudo",begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(src|z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:"and or not only",contains:[{begin:"@[a-z-]+",className:"keyword"},t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,e.CSS_NUMBER_MODE]}]}}}());hljs.registerLanguage("r",function(){"use strict";return function(e){var n="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{name:"R",contains:[e.HASH_COMMENT_MODE,{begin:n,keywords:{$pattern:n,keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{begin:"`",end:"`",relevance:0},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]}]}}}());hljs.registerLanguage("sql",function(){"use strict";return function(e){var t=e.COMMENT("--","$");return{name:"SQL",case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]}}}());hljs.registerLanguage("c",function(){"use strict";return function(e){var n=e.getLanguage("c-like").rawDefinition();return n.name="C",n.aliases=["c","h"],n}}());hljs.registerLanguage("json",function(){"use strict";return function(n){var e={literal:"true false null"},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],t=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],a={end:",",endsWithParent:!0,excludeEnd:!0,contains:t,keywords:e},l={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(a,{begin:/:/})].concat(i),illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[n.inherit(a)],illegal:"\\S"};return t.push(l,s),i.forEach((function(n){t.push(n)})),{name:"JSON",contains:t,keywords:e,illegal:"\\S"}}}());hljs.registerLanguage("python-repl",function(){"use strict";return function(n){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}}());hljs.registerLanguage("markdown",function(){"use strict";return function(n){const e={begin:"<",end:">",subLanguage:"xml",relevance:0},a={begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},i={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},s={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};i.contains.push(s),s.contains.push(i);var c=[e,a];return i.contains=i.contains.concat(c),s.contains=s.contains.concat(c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:c=c.concat(i,s)},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:c}]}]},e,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i,s,{className:"quote",begin:"^>\\s+",contains:c,end:"$"},{className:"code",variants:[{begin:"(`{3,})(.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})(.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},a,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}}());hljs.registerLanguage("javascript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function s(e){return r("(?=",e,")")}function r(...e){return e.map(e=>(function(e){return e?"string"==typeof e?e:e.source:null})(e)).join("")}return function(t){var i="[A-Za-z$_][0-9A-Za-z$_]*",c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/},o={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:e.join(" "),literal:n.join(" "),built_in:a.join(" ")},l={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:t.C_NUMBER_RE+"n?"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"css"}},u={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,E]};E.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,g,u,l,t.REGEXP_MODE];var b=E.contains.concat([{begin:/\(/,end:/\)/,contains:["self"].concat(E.contains,[t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE])},t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:b};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,contains:[t.SHEBANG({binary:"node",relevance:5}),{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,g,u,t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,l,{begin:r(/[{,\n]\s*/,s(r(/(((\/\/.*)|(\/\*(.|\n)*\*\/))\s*)*/,i+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:i+s("\\s*:"),relevance:0}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:b}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:"<>",end:""},{begin:c.begin,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:i}),_],illegal:/\[|%/},{begin:/\$[(.]/},t.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0},{begin:"(get|set)\\s+(?="+i+"\\()",end:/{/,keywords:"get set",contains:[t.inherit(t.TITLE_MODE,{begin:i}),{begin:/\(\)/},_]}],illegal:/#(?!!)/}}}());hljs.registerLanguage("typescript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return function(r){var t={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:e.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]).join(" "),literal:n.join(" "),built_in:a.concat(["any","void","number","boolean","string","object","never","enum"]).join(" ")},s={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:r.C_NUMBER_RE+"n?"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:t,contains:[]},c={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},l={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"css"}},E={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,o]};o.contains=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,c,l,E,i,r.REGEXP_MODE];var d={begin:"\\(",end:/\)/,keywords:t,contains:["self",r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,r.NUMBER_MODE]},u={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,s,d]};return{name:"TypeScript",aliases:["ts"],keywords:t,contains:[r.SHEBANG(),{className:"meta",begin:/^\s*['"]use strict['"]/},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,c,l,E,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,i,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.REGEXP_MODE,{className:"function",begin:"(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:d.contains}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",r.inherit(r.TITLE_MODE,{begin:"[A-Za-z$_][0-9A-Za-z$_]*"}),u],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/[\{;]/,excludeEnd:!0,contains:["self",u]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+r.IDENT_RE,relevance:0},s,d]}}}());hljs.registerLanguage("plaintext",function(){"use strict";return function(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}}());hljs.registerLanguage("less",function(){"use strict";return function(e){var n="([\\w-]+|@{[\\w-]+})",a=[],s=[],t=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},r=function(e,n,a){return{className:e,begin:n,relevance:a}},i={begin:"\\(",end:"\\)",contains:s,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t("'"),t('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},r("number","#[0-9A-Fa-f]+\\b"),i,r("variable","@@?[\\w-]+",10),r("variable","@{[\\w-]+}"),r("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var c=s.concat({begin:"{",end:"}",contains:a}),l={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},o={begin:n+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:n,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:s,relevance:0}},d={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:c}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:n,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l,r("keyword","all\\b"),r("variable","@{[\\w-]+}"),r("selector-tag",n+"%?",0),r("selector-id","#"+n),r("selector-class","\\."+n,0),r("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:c},{begin:"!important"}]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,o,b),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:a}}}());hljs.registerLanguage("lua",function(){"use strict";return function(e){var t={begin:"\\[=*\\[",end:"\\]=*\\]",contains:["self"]},a=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[","\\]=*\\]",{contains:[t],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\[=*\\[",end:"\\]=*\\]",contains:[t],relevance:5}])}}}()); diff --git a/index.html b/index.html new file mode 100644 index 0000000000..4294723b53 --- /dev/null +++ b/index.html @@ -0,0 +1,221 @@ + + + + + + Overview - Stabilizer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + +
+
+

Overview

+

Stabilizer is a flexible tool designed for quantum physics experiments. Fundamentally, Stabilizer +samples up two two analog input signals, performs digital signal processing internally, and then +generates up to two output signals.

+

Stabilizer firmware supports run-time configuration of the internal signal processing algorithms, +which allows for a wide variety of experimental uses, such as digital filter design or +implementation of digital lockin schemes.

+

This documentation is intended to bring a user up to speed on using Stabilizer and the firmware +provided by QUARTIQ and contributors.

+

Hardware

+

The Stabilizer hardware is managed via a separate repository. +Some information about the hardware is gathered in the Stabilizer wiki. More detailed data, measurements, discussions, and tests have been posted in the Stabilizer issue tracker.

+

Hardware

+

Stabilizer can be extended and coupled with a mezzanine board. One such mezzanine is the DDS upconversion/downconversion frontend Pounder. The Pounder hardware is managed via a separate repository, again with wiki and issue tracker.

+

Applications

+

This firmware offers a library of hardware and software functionality targeting the use of the Stabilizer hardware in various digital signal processing applications commonly occurring in Quantum Technology. +It provides abstractions over the fast analog inputs and outputs, time stamping, Pounder DDS interfaces and a collection of tailored and optimized digital signal processing algorithms (IIR, FIR, Lockin, PLL, reciprocal PLL, Unwrapper, Lowpass, Cosine-Sine, Atan2) in the idsp crate. +An application, which is the compiled firmware running on the device, can compose and configure these hardware and software components to implement different use cases. +Several applications are provided by default.

+

The following documentation links contain the application-specific settings and telemetry +information.

+ + + +
ApplicationDescription
dual-iirTwo channel biquad IIR filter
lockinLockin amplifier support various various reference sources
+

Library Documentation

+

The Stabilizer library docs contain documentation for common components used in all Stabilizer +applications.

+

The Stabilizer library documentation is available here.

+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + diff --git a/mark.min.js b/mark.min.js new file mode 100644 index 0000000000..1636231883 --- /dev/null +++ b/mark.min.js @@ -0,0 +1,7 @@ +/*!*************************************************** +* mark.js v8.11.1 +* https://markjs.io/ +* Copyright (c) 2014–2018, Julian Kühnel +* Released under the MIT license https://git.io/vwTVl +*****************************************************/ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Mark=t()}(this,function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=i,this.iframesTimeout=o}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(function(t){var n=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||n||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=void 0;try{var i=e.contentWindow;if(r=i.document,!i||!r)throw new Error("iframe inaccessible")}catch(e){n()}r&&t(r)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var r=this,i=!1,o=null,a=function a(){if(!i){i=!0,clearTimeout(o);try{r.isIframeBlank(e)||(e.removeEventListener("load",a),r.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",a),o=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,r=0;this.forEachIframe(e,function(){return!0},function(e){r++,n.waitForIframes(e.querySelector("html"),function(){--r||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=t.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);var u=function(){--s<=0&&o(c)};s||u(),a.forEach(function(t){e.matches(t,i.exclude)?u():i.onIframeReady(t,function(e){n(t)&&(c++,r(e)),u()},u)})}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:null===t?e.nextNode():e.nextNode()&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,n,r){var i=!1,o=!1;return r.forEach(function(e,t){e.val===n&&(i=t,o=e.handled)}),this.compareNodeIframe(e,t,n)?(!1!==i||o?!1===i||o||(r[i].handled=!0):r.push({val:n,handled:!0}),!0):(!1===i&&r.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,r){var i=this;e.forEach(function(e){e.handled||i.getIframeContents(e.val,function(e){i.createInstanceOnIframe(e).forEachNode(t,n,r)})})}},{key:"iterateThroughNodes",value:function(e,t,n,r,i){for(var o,a=this,s=this.createIterator(t,e,r),c=[],u=[],l=void 0,h=void 0;void 0,o=a.getIteratorNode(s),h=o.prevNode,l=o.node;)this.iframes&&this.forEachIframe(t,function(e){return a.checkIframeFilter(l,h,e,c)},function(t){a.createInstanceOnIframe(t).forEachNode(e,function(e){return u.push(e)},r)}),u.push(l);u.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(c,e,n,r),i()}},{key:"forEachNode",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=this.getContexts(),a=o.length;a||i(),o.forEach(function(o){var s=function(){r.iterateThroughNodes(e,o,t,n,function(){--a<=0&&i()})};r.iframes?r.waitForIframes(o,s):s()})}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var i=!1;return n.every(function(t){return!r.call(e,t)||(i=!0,!1)}),i}return!1}}]),e}(),o=function(){function e(n){t(this,e),this.opt=r({},{diacritics:!0,synonyms:{},accuracy:"partially",caseSensitive:!1,ignoreJoiners:!1,ignorePunctuation:[],wildcards:"disabled"},n)}return n(e,[{key:"create",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),new RegExp(e,"gm"+(this.opt.caseSensitive?"":"i"))}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(o):this.escapeStr(o);""!==a&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(s)+")","gm"+n),r+"("+this.processSynonyms(a)+"|"+this.processSynonyms(s)+")"+r))}return e}},{key:"processSynonyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":""})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":""})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||""===r?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],r=[];return e.split("").forEach(function(i){n.every(function(n){if(-1!==n.indexOf(i)){if(r.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),r.push(n)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,r="string"==typeof n?n:n.value,i="";switch(("string"==typeof n?[]:n.limiters).forEach(function(e){i+="|"+t.escapeStr(e)}),r){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+i+"]*)";case"exactly":return"(^|\\s"+i+")("+e+")(?=$|\\s"+i+")"}}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(a,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",r=this.opt.log;this.opt.debug&&"object"===(void 0===r?"undefined":e(r))&&"function"==typeof r[n]&&r[n]("mark.js: "+t)}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)}):e.trim()&&-1===n.indexOf(e)&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],r=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var i=t.callNoMatchOnInvalidRanges(e,r),o=i.start,a=i.end;i.valid&&(e.start=o,e.length=a-o,n.push(e),r=a)}),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,r=void 0,i=!1;return e&&void 0!==e.start?(r=(n=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:i}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var r=void 0,i=!0,o=n.length,a=t-o,s=parseInt(e.start,10)-a;return(r=(s=s>o?o:s)+parseInt(e.length,10))>o&&(r=o,this.log("End range automatically set to the max value of "+o)),s<0||r-s<0||s>o||r>o?(i=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,r).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:i}}},{key:"getTextNodes",value:function(e){var t=this,n="",r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:r})})}},{key:"matchesExclude",value:function(e){return i.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var r=this.opt.element?this.opt.element:"mark",i=e.splitText(t),o=i.splitText(n-t),a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=i.textContent,i.parentNode.replaceChild(a,i),o}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,r,i){var o=this;e.nodes.every(function(a,s){var c=e.nodes[s+1];if(void 0===c||c.start>t){if(!r(a.node))return!1;var u=t-a.start,l=(n>a.end?a.end:n)-a.start,h=e.value.substr(0,a.start),f=e.value.substr(l+a.start);if(a.node=o.wrapRangeInTextNode(a.node,u,l),e.value=h+f,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=l),e.nodes[n].end-=l)}),n-=l,i(a.node.previousSibling,a.start),!(n>a.end))return!1;t=a.end}return!0})}},{key:"wrapGroups",value:function(e,t,n,r){return r((e=this.wrapRangeInTextNode(e,t,t+n)).previousSibling),e}},{key:"separateGroups",value:function(e,t,n,r,i){for(var o=t.length,a=1;a-1&&r(t[a],e)&&(e=this.wrapGroups(e,s,t[a].length,i))}return e}},{key:"wrapMatches",value:function(e,t,n,r,i){var o=this,a=0===t?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var i=void 0;null!==(i=e.exec(t.textContent))&&""!==i[a];){if(o.opt.separateGroups)t=o.separateGroups(t,i,a,n,r);else{if(!n(i[a],t))continue;var s=i.index;if(0!==a)for(var c=1;c + + + + + Overview - Stabilizer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + +
+
+

Overview

+

Stabilizer is a flexible tool designed for quantum physics experiments. Fundamentally, Stabilizer +samples up two two analog input signals, performs digital signal processing internally, and then +generates up to two output signals.

+

Stabilizer firmware supports run-time configuration of the internal signal processing algorithms, +which allows for a wide variety of experimental uses, such as digital filter design or +implementation of digital lockin schemes.

+

This documentation is intended to bring a user up to speed on using Stabilizer and the firmware +provided by QUARTIQ and contributors.

+

Hardware

+

The Stabilizer hardware is managed via a separate repository. +Some information about the hardware is gathered in the Stabilizer wiki. More detailed data, measurements, discussions, and tests have been posted in the Stabilizer issue tracker.

+

Hardware

+

Stabilizer can be extended and coupled with a mezzanine board. One such mezzanine is the DDS upconversion/downconversion frontend Pounder. The Pounder hardware is managed via a separate repository, again with wiki and issue tracker.

+

Applications

+

This firmware offers a library of hardware and software functionality targeting the use of the Stabilizer hardware in various digital signal processing applications commonly occurring in Quantum Technology. +It provides abstractions over the fast analog inputs and outputs, time stamping, Pounder DDS interfaces and a collection of tailored and optimized digital signal processing algorithms (IIR, FIR, Lockin, PLL, reciprocal PLL, Unwrapper, Lowpass, Cosine-Sine, Atan2) in the idsp crate. +An application, which is the compiled firmware running on the device, can compose and configure these hardware and software components to implement different use cases. +Several applications are provided by default.

+

The following documentation links contain the application-specific settings and telemetry +information.

+ + + +
ApplicationDescription
dual-iirTwo channel biquad IIR filter
lockinLockin amplifier support various various reference sources
+

Library Documentation

+

The Stabilizer library docs contain documentation for common components used in all Stabilizer +applications.

+

The Stabilizer library documentation is available here.

+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + diff --git a/print.html b/print.html new file mode 100644 index 0000000000..c4d8b5a1f6 --- /dev/null +++ b/print.html @@ -0,0 +1,553 @@ + + + + + + Stabilizer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + +
+
+

Overview

+

Stabilizer is a flexible tool designed for quantum physics experiments. Fundamentally, Stabilizer +samples up two two analog input signals, performs digital signal processing internally, and then +generates up to two output signals.

+

Stabilizer firmware supports run-time configuration of the internal signal processing algorithms, +which allows for a wide variety of experimental uses, such as digital filter design or +implementation of digital lockin schemes.

+

This documentation is intended to bring a user up to speed on using Stabilizer and the firmware +provided by QUARTIQ and contributors.

+

Hardware

+

The Stabilizer hardware is managed via a separate repository. +Some information about the hardware is gathered in the Stabilizer wiki. More detailed data, measurements, discussions, and tests have been posted in the Stabilizer issue tracker.

+

Hardware

+

Stabilizer can be extended and coupled with a mezzanine board. One such mezzanine is the DDS upconversion/downconversion frontend Pounder. The Pounder hardware is managed via a separate repository, again with wiki and issue tracker.

+

Applications

+

This firmware offers a library of hardware and software functionality targeting the use of the Stabilizer hardware in various digital signal processing applications commonly occurring in Quantum Technology. +It provides abstractions over the fast analog inputs and outputs, time stamping, Pounder DDS interfaces and a collection of tailored and optimized digital signal processing algorithms (IIR, FIR, Lockin, PLL, reciprocal PLL, Unwrapper, Lowpass, Cosine-Sine, Atan2) in the idsp crate. +An application, which is the compiled firmware running on the device, can compose and configure these hardware and software components to implement different use cases. +Several applications are provided by default.

+

The following documentation links contain the application-specific settings and telemetry +information.

+ + + +
ApplicationDescription
dual-iirTwo channel biquad IIR filter
lockinLockin amplifier support various various reference sources
+

Library Documentation

+

The Stabilizer library docs contain documentation for common components used in all Stabilizer +applications.

+

The Stabilizer library documentation is available here.

+

Table of Contents

+ +

Setup

+

The Stabilizer firmware consists of different applications tailored to different use cases. +Only one application can run on the device at a given time. +After receiving the Stabilizer hardware, you will need to choose, build, and flash one +of the applications onto the device.

+

Power

+

Power Stabilizer through exactly one of the following mechanisms.

+
    +
  1. Via the backside 12V barrel connector
  2. +
  3. Via Power-over-Ethernet using a PoE capable switch (802.3af or preferrably +802.3at) and the RJ45 front panel port
  4. +
  5. Via an EEM connection to Kasli
  6. +
+
+

Note: Applying power through more than one mechanism may lead to damage. +Ensure the two unused methods are not connected or explicitly disabled.

+
+

Network and DHCP

+

Stabilizer supports 10Base-T or 100Base-T with Auto MDI-X. +Stabilizer uses DHCP to obtain its network configuration information. Ensure there is a +properly configured DHCP server running on the network segment that Stabilizer is +connected to. +Alternatively, a static IP can be enforced in the firmware build command by specifying +the environmental variable STATIC_IP analogous to how a specific broker IP is set.

+
+

Note: If Stabilizer is connected directly to an Ubuntu system (for example using a USB-Ethernet dongle) +you can set the IPv4 settings of this Ethernet connection in the Ubuntu network settings to +"Shared to other computers". This will start and configure a DHCP server for this connection.

+
+

MQTT Broker

+

Stabilizer requires an MQTT broker that supports MQTTv5. +The MQTT broker is used to distribute and exchange elemetry data and to view/change application settings. +The broker must be reachable by both the host-side applications used to +interact with the application on Stabilizer and by the application running on Stabilizer. +Determine the IPv4 address of the broker as seen from the network Stabilizer is +connected to. The broker IP address must be stable. It will be used later +during firmware build. +The broker must be reachable on port 1883 on that IP address. +Firewalls between Stabilizer and the broker may need to be configured to +allow connections from Stabilizer to that port and IP address.

+

Mosquitto has been used as a MQTT broker during development, +but any MQTTv5 broker without authentication or encryption will likely work.

+
+

Note: Mosquitto version 1 only supports MQTTv3.1. If using Mosquitto, ensure version 2.0.0 or +later is used.

+
+

We recommend running Mosquitto through Docker to easily run it on +Windows, Linux, and OSX. After docker has been installed, run the following command from +the stabilizer repository to create a container named mosquitto that can be stopped +and started easily via docker:

+
# Bash
+docker run -p 1883:1883 --name mosquitto -v `pwd`/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2
+
+# Powershell
+docker run -p 1883:1883 --name mosquitto -v ${pwd}/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2
+
+

Building

+
    +
  1. Get and install rustup and use it to install a current stable Rust toolchain. +Stabilizer tracks stable Rust. The minimum supported Rust version (MSRV) is specified in the manifest (Cargo.toml).
  2. +
  3. Install target support +
    rustup target add thumbv7em-none-eabihf
    +
    +
  4. +
  5. Install cargo-binutils +
    cargo install cargo-binutils
    +rustup component add llvm-tools-preview
    +
    +
  6. +
  7. Clone or download the firmware +
    git clone https://github.com/quartiq/stabilizer
    +cd stabilizer
    +
    +
  8. +
  9. Build firmware specifying the MQTT broker IP. Replace 10.34.16.1 by the +stable and reachable broker IPv4 address determined above. +
    # Bash
    +BROKER="10.34.16.1" cargo build --release
    +
    +# Powershell
    +# Note: This sets the broker for all future builds as well.
    +$env:BROKER='10.34.16.1'; cargo build --release
    +
    +
  10. +
  11. Extract the application binary (substitute dual-iir below with the desired application name) +
    # Bash
    +BROKER="10.34.16.1" cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin
    +
    +# Powershell
    +$env:BROKER='10.34.16.1'; cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin
    +
    +
  12. +
+

Flashing

+

Firmware can be loaded onto stabilizer using one of the three following methods.

+
+

Note: All methods require access to the circuit board. Pulling the device from a +crate always requires power removal as there are sensitive leads and components on +both sides of the board that may come into contact with adjacent front panels. +Every access to the board also requires proper ESD precautions. Never +hot-plug the device or the probe.

+
+ +

If a ST-Link V2-1 or later is available this method can be used.

+

Power down the device, remove it from the crate, and connect the +SWD/JTAG probe as shown below to the device and to your computer.

+

JTAG Connection

+

Power up the device and copy dual-iir.bin onto the virtual mass storage ST-Link drive +that has appeared on your computer. +Power down the device before removing the probe, inserting it into the crate +and applying power again.

+

DFU Upload

+

If an SWD/JTAG probe is not available, +you can flash firmware using only a micro USB cable +plugged in to the front of Stabilizer, a DFU utility, and a jumper to activate +the bootloader.

+
    +
  1. Install the DFU USB tool dfu-util
  2. +
  3. Remove power
  4. +
  5. Then carefully remove the module from the crate to gain +access to the board
  6. +
  7. Short JC2/BOOT with the jumper
  8. +
  9. Connect your computer to the Micro USB connector below/left of the RJ45 +connector on the front panel
  10. +
  11. Insert the module into the crate
  12. +
  13. Then power it
  14. +
  15. Perform the Device Firmware Upgrade (DFU) +
    dfu-util -a 0 -s 0x08000000:leave -D dual-iir.bin
    +
    +
  16. +
  17. To keep the device from entering the bootloader remove power, +pull the board from the crate, remove the JC2/BOOT jumper, insert the module +into the crate, and power it again
  18. +
+

SWD/JTAG Firmware Development

+

To observe logging messages or to develop and debug applications a SWD/JTAG +probe is required. To use a compatible probe with probe-run connect it as +described above.

+
    +
  1. Install probe-run +
    cargo install probe-run
    +
    +
  2. +
  3. Build and run firmware on the device +
    # Bash
    +BROKER="10.34.16.1" cargo run --release --bin dual-iir
    +
    +# Powershell
    +$Env:BROKER='10.34.16.1'; cargo run --release --bin dual-iir
    +
    +
  4. +
+

When using debug (non --release) mode, decrease the sampling frequency significantly. +The added error checking code and missing optimizations may lead to the application +missing timer deadlines and panicing.

+

Verify MQTT connection

+

Once your MQTT broker and Stabilizer are both running, verify that the application +connects to the broker.

+

A Stabilizer application on a device is reporting its status on the following topic

+
dt/sinara/dual-iir/+/alive
+
+

The + is a wildcard matching the unique MAC address of the device (e.g. aa-bb-cc-00-11-22).

+

Download MQTT-Explorer to observe which topics have been posted to the +Broker.

+

MQTT Explorer Configuration

+
+

Note: In MQTT explorer, use the same broker address that you used when building the firmware.

+
+

In addition to the alive status, telemetry messages are published at regular intervals +when Stabilizer has connected to the broker. Once you observe incoming telemetry, +Stabilizer is operational.

+

Table of Contents

+ +

Miniconf Run-time Settings

+

Stabilizer supports run-time settings configuration using MQTT.

+

Settings can be stored in the MQTT broker so that they are automatically applied whenever +Stabilizer reboots and connects. This is referred to as "retained" settings. Broker implementations +may optionally store these retained settings as well such that they will be reapplied between +restarts of the MQTT broker.

+

Settings are specific to a device. Any settings configured for one Stabilizer will not be applied +to another. Disambiguation of devices is done by using Stabilizer's MAC address.

+

Settings are specific to an application. If two identical settings exist for two different +applications, each application maintains its own independent value.

+

Installation

+

Install the Miniconf configuration utilities using a virtual environment:

+
python -m venv --system-site-packages vpy
+
+# Refer to https://docs.python.org/3/tutorial/venv.html for more information on activating the
+# virtual environment. This command is different on different platforms.
+./vpy/Scripts/activate
+
+

Next, install prerequisite packages

+
python -m pip install -e py
+
+

To use miniconf, execute it as follows:

+
python -m miniconf --help
+
+

Miniconf also exposes a programmatic Python API, so it's possible to write automation scripting of +Stabilizer as well.

+

Usage

+

The Miniconf Python utility utilizes a unique "device prefix". The device prefix is always of the +form dt/sinara/<app>/<mac-address>, where <app> is the name of the application and +<mac-address> is the MAC address of the device, formatted with delimiting dashes, and lower case letters.

+

Settings have a path and a value being configured. The value parameter is JSON-encoded data +and the path value is a path-like string.

+

As an example, for configuring dual-iir's stream_target, the following information would be +used:

+
    +
  • path = stream_target
  • +
  • value = {"ip": [192, 168, 0, 1], "port": 4000}
  • +
+
python -m miniconf --broker 10.34.16.1 dt/sinara/dual-iir/00-11-22-33-44-55 stream_target='{"ip": [10, 34, 16, 123], "port": 4000}'
+
+Where `10.34.16.1` is the MQTT broker address that matches the one configured in the source code and `10.34.16.123` and `4000` are the desire stream target IP and port.
+
+

The prefix can be found for a specific device by looking at the topic on which telemetry that is +being published. It can also be automatically discovered if there is only one +device alive.

+

Refer to the application documentation for the exact settings and values exposed +for each application.

+

The rules for constructing path values are documented in miniconf's +documentation

+

Refer to the documentation for Miniconf for a +description of the possible error codes that Miniconf may return if the settings update was +unsuccessful.

+

IIR Configuration

+

For the dual-iir application, a Python utility has been written to easily configure the IIR +filters for a variety of filtering and control applications.

+

Then, use the built-in help to learn how the utility can automatically configure your IIR filters +for you:

+
python -m stabilizer.iir_coefficients --help
+
+

Telemetry

+

Stabilizer applications publish telemetry utilizes MQTT for managing run-time settings configurations as well as live telemetry +reporting.

+

Telemetry is defined as low rate, general health information. It is not intended for high throughput +or efficiency. Telemetry is generally used to determine that the device is functioning nominally.

+

Stabilizer applications publish telemetry over MQTT at a set rate. Telemetry data units are defined +by the application. All telemetry is reported using standard JSON format.

+

Telemetry is intended for low-bandwidth monitoring. It is not intended to transfer large amounts of +data and uses a minimal amount of bandwidth. Telemetry is published using "best effort" semantics - +individual messages may be dropped or Stabilizer may fail to publish telemetry due to internal +buffering requirements.

+

In its most basic form, telemetry publishes the latest ADC input voltages, DAC output voltages, and +digital input states.

+

Refer to the respective application documentation for more information on telemetry.

+

Livestream

+

Stabilizer supports livestream capabilities for streaming real-time data over UDP. The livestream is +intended to be a high-bandwidth mechanism to transfer large amounts of data from Stabilizer to a +host computer for further analysis.

+

Livestreamed data is sent with "best effort" - it's possible that data may be lost either due to +network congestion or by Stabilizer.

+

Refer to the the respective application documentation for more information.

+
dual_iir - Rust
Expand description

Dual IIR

+

The Dual IIR application exposes two configurable channels. Stabilizer samples input at a fixed +rate, digitally filters the data, and then generates filtered output signals on the respective +channel outputs.

+

Features

+
    +
  • Two indpenendent channels
  • +
  • up to 800 kHz rate, timed sampling
  • +
  • Run-time filter configuration
  • +
  • Input/Output data streaming
  • +
  • Down to 2 µs latency
  • +
  • f32 IIR math
  • +
  • Generic biquad (second order) IIR filter
  • +
  • Anti-windup
  • +
  • Derivative kick avoidance
  • +
+

Settings

+

Refer to the Settings structure for documentation of run-time configurable settings for this +application.

+

Telemetry

+

Refer to Telemetry for information about telemetry reported by this application.

+

Livestreaming

+

This application streams raw ADC and DAC data over UDP. Refer to +stabilizer::net::data_stream for more information.

+

Modules

  • The RTIC application module

Structs

Constants

lockin - Rust
Expand description

Lockin

+

The lockin application implements a lock-in amplifier using either an external or internally +generated reference.

+

Features

+
    +
  • Up to 800 kHz sampling
  • +
  • Up to 400 kHz modulation frequency
  • +
  • Supports internal and external reference sources: +
      +
    1. Internal: Generate reference internally and output on one of the channel outputs
    2. +
    3. External: Reciprocal PLL, reference input applied to DI0.
    4. +
    +
  • +
  • Adjustable PLL and locking time constants
  • +
  • Adjustable phase offset and harmonic index
  • +
  • Run-time configurable output modes (in-phase, quadrature, magnitude, log2 power, phase, frequency)
  • +
  • Input/output data streamng via UDP
  • +
+

Settings

+

Refer to the Settings structure for documentation of run-time configurable settings for this +application.

+

Telemetry

+

Refer to Telemetry for information about telemetry reported by this application.

+

Livestreaming

+

This application streams raw ADC and DAC data over UDP. Refer to +stabilizer::net::data_stream for more information.

+

Modules

  • The RTIC application module

Structs

Enums

Constants

+
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/searcher.js b/searcher.js new file mode 100644 index 0000000000..d2b0aeed38 --- /dev/null +++ b/searcher.js @@ -0,0 +1,483 @@ +"use strict"; +window.search = window.search || {}; +(function search(search) { + // Search functionality + // + // You can use !hasFocus() to prevent keyhandling in your key + // event handlers while the user is typing their search. + + if (!Mark || !elasticlunr) { + return; + } + + //IE 11 Compatibility from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith + if (!String.prototype.startsWith) { + String.prototype.startsWith = function(search, pos) { + return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; + }; + } + + var search_wrap = document.getElementById('search-wrapper'), + searchbar = document.getElementById('searchbar'), + searchbar_outer = document.getElementById('searchbar-outer'), + searchresults = document.getElementById('searchresults'), + searchresults_outer = document.getElementById('searchresults-outer'), + searchresults_header = document.getElementById('searchresults-header'), + searchicon = document.getElementById('search-toggle'), + content = document.getElementById('content'), + + searchindex = null, + doc_urls = [], + results_options = { + teaser_word_count: 30, + limit_results: 30, + }, + search_options = { + bool: "AND", + expand: true, + fields: { + title: {boost: 1}, + body: {boost: 1}, + breadcrumbs: {boost: 0} + } + }, + mark_exclude = [], + marker = new Mark(content), + current_searchterm = "", + URL_SEARCH_PARAM = 'search', + URL_MARK_PARAM = 'highlight', + teaser_count = 0, + + SEARCH_HOTKEY_KEYCODE = 83, + ESCAPE_KEYCODE = 27, + DOWN_KEYCODE = 40, + UP_KEYCODE = 38, + SELECT_KEYCODE = 13; + + function hasFocus() { + return searchbar === document.activeElement; + } + + function removeChildren(elem) { + while (elem.firstChild) { + elem.removeChild(elem.firstChild); + } + } + + // Helper to parse a url into its building blocks. + function parseURL(url) { + var a = document.createElement('a'); + a.href = url; + return { + source: url, + protocol: a.protocol.replace(':',''), + host: a.hostname, + port: a.port, + params: (function(){ + var ret = {}; + var seg = a.search.replace(/^\?/,'').split('&'); + var len = seg.length, i = 0, s; + for (;i': '>', + '"': '"', + "'": ''' + }; + var repl = function(c) { return MAP[c]; }; + return function(s) { + return s.replace(/[&<>'"]/g, repl); + }; + })(); + + function formatSearchMetric(count, searchterm) { + if (count == 1) { + return count + " search result for '" + searchterm + "':"; + } else if (count == 0) { + return "No search results for '" + searchterm + "'."; + } else { + return count + " search results for '" + searchterm + "':"; + } + } + + function formatSearchResult(result, searchterms) { + var teaser = makeTeaser(escapeHTML(result.doc.body), searchterms); + teaser_count++; + + // The ?URL_MARK_PARAM= parameter belongs inbetween the page and the #heading-anchor + var url = doc_urls[result.ref].split("#"); + if (url.length == 1) { // no anchor found + url.push(""); + } + + // encodeURIComponent escapes all chars that could allow an XSS except + // for '. Due to that we also manually replace ' with its url-encoded + // representation (%27). + var searchterms = encodeURIComponent(searchterms.join(" ")).replace(/\'/g, "%27"); + + return '' + result.doc.breadcrumbs + '' + + '' + + teaser + ''; + } + + function makeTeaser(body, searchterms) { + // The strategy is as follows: + // First, assign a value to each word in the document: + // Words that correspond to search terms (stemmer aware): 40 + // Normal words: 2 + // First word in a sentence: 8 + // Then use a sliding window with a constant number of words and count the + // sum of the values of the words within the window. Then use the window that got the + // maximum sum. If there are multiple maximas, then get the last one. + // Enclose the terms in . + var stemmed_searchterms = searchterms.map(function(w) { + return elasticlunr.stemmer(w.toLowerCase()); + }); + var searchterm_weight = 40; + var weighted = []; // contains elements of ["word", weight, index_in_document] + // split in sentences, then words + var sentences = body.toLowerCase().split('. '); + var index = 0; + var value = 0; + var searchterm_found = false; + for (var sentenceindex in sentences) { + var words = sentences[sentenceindex].split(' '); + value = 8; + for (var wordindex in words) { + var word = words[wordindex]; + if (word.length > 0) { + for (var searchtermindex in stemmed_searchterms) { + if (elasticlunr.stemmer(word).startsWith(stemmed_searchterms[searchtermindex])) { + value = searchterm_weight; + searchterm_found = true; + } + }; + weighted.push([word, value, index]); + value = 2; + } + index += word.length; + index += 1; // ' ' or '.' if last word in sentence + }; + index += 1; // because we split at a two-char boundary '. ' + }; + + if (weighted.length == 0) { + return body; + } + + var window_weight = []; + var window_size = Math.min(weighted.length, results_options.teaser_word_count); + + var cur_sum = 0; + for (var wordindex = 0; wordindex < window_size; wordindex++) { + cur_sum += weighted[wordindex][1]; + }; + window_weight.push(cur_sum); + for (var wordindex = 0; wordindex < weighted.length - window_size; wordindex++) { + cur_sum -= weighted[wordindex][1]; + cur_sum += weighted[wordindex + window_size][1]; + window_weight.push(cur_sum); + }; + + if (searchterm_found) { + var max_sum = 0; + var max_sum_window_index = 0; + // backwards + for (var i = window_weight.length - 1; i >= 0; i--) { + if (window_weight[i] > max_sum) { + max_sum = window_weight[i]; + max_sum_window_index = i; + } + }; + } else { + max_sum_window_index = 0; + } + + // add around searchterms + var teaser_split = []; + var index = weighted[max_sum_window_index][2]; + for (var i = max_sum_window_index; i < max_sum_window_index+window_size; i++) { + var word = weighted[i]; + if (index < word[2]) { + // missing text from index to start of `word` + teaser_split.push(body.substring(index, word[2])); + index = word[2]; + } + if (word[1] == searchterm_weight) { + teaser_split.push("") + } + index = word[2] + word[0].length; + teaser_split.push(body.substring(word[2], index)); + if (word[1] == searchterm_weight) { + teaser_split.push("") + } + }; + + return teaser_split.join(''); + } + + function init(config) { + results_options = config.results_options; + search_options = config.search_options; + searchbar_outer = config.searchbar_outer; + doc_urls = config.doc_urls; + searchindex = elasticlunr.Index.load(config.index); + + // Set up events + searchicon.addEventListener('click', function(e) { searchIconClickHandler(); }, false); + searchbar.addEventListener('keyup', function(e) { searchbarKeyUpHandler(); }, false); + document.addEventListener('keydown', function(e) { globalKeyHandler(e); }, false); + // If the user uses the browser buttons, do the same as if a reload happened + window.onpopstate = function(e) { doSearchOrMarkFromUrl(); }; + // Suppress "submit" events so the page doesn't reload when the user presses Enter + document.addEventListener('submit', function(e) { e.preventDefault(); }, false); + + // If reloaded, do the search or mark again, depending on the current url parameters + doSearchOrMarkFromUrl(); + } + + function unfocusSearchbar() { + // hacky, but just focusing a div only works once + var tmp = document.createElement('input'); + tmp.setAttribute('style', 'position: absolute; opacity: 0;'); + searchicon.appendChild(tmp); + tmp.focus(); + tmp.remove(); + } + + // On reload or browser history backwards/forwards events, parse the url and do search or mark + function doSearchOrMarkFromUrl() { + // Check current URL for search request + var url = parseURL(window.location.href); + if (url.params.hasOwnProperty(URL_SEARCH_PARAM) + && url.params[URL_SEARCH_PARAM] != "") { + showSearch(true); + searchbar.value = decodeURIComponent( + (url.params[URL_SEARCH_PARAM]+'').replace(/\+/g, '%20')); + searchbarKeyUpHandler(); // -> doSearch() + } else { + showSearch(false); + } + + if (url.params.hasOwnProperty(URL_MARK_PARAM)) { + var words = decodeURIComponent(url.params[URL_MARK_PARAM]).split(' '); + marker.mark(words, { + exclude: mark_exclude + }); + + var markers = document.querySelectorAll("mark"); + function hide() { + for (var i = 0; i < markers.length; i++) { + markers[i].classList.add("fade-out"); + window.setTimeout(function(e) { marker.unmark(); }, 300); + } + } + for (var i = 0; i < markers.length; i++) { + markers[i].addEventListener('click', hide); + } + } + } + + // Eventhandler for keyevents on `document` + function globalKeyHandler(e) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.target.type === 'textarea' || e.target.type === 'text') { return; } + + if (e.keyCode === ESCAPE_KEYCODE) { + e.preventDefault(); + searchbar.classList.remove("active"); + setSearchUrlParameters("", + (searchbar.value.trim() !== "") ? "push" : "replace"); + if (hasFocus()) { + unfocusSearchbar(); + } + showSearch(false); + marker.unmark(); + } else if (!hasFocus() && e.keyCode === SEARCH_HOTKEY_KEYCODE) { + e.preventDefault(); + showSearch(true); + window.scrollTo(0, 0); + searchbar.select(); + } else if (hasFocus() && e.keyCode === DOWN_KEYCODE) { + e.preventDefault(); + unfocusSearchbar(); + searchresults.firstElementChild.classList.add("focus"); + } else if (!hasFocus() && (e.keyCode === DOWN_KEYCODE + || e.keyCode === UP_KEYCODE + || e.keyCode === SELECT_KEYCODE)) { + // not `:focus` because browser does annoying scrolling + var focused = searchresults.querySelector("li.focus"); + if (!focused) return; + e.preventDefault(); + if (e.keyCode === DOWN_KEYCODE) { + var next = focused.nextElementSibling; + if (next) { + focused.classList.remove("focus"); + next.classList.add("focus"); + } + } else if (e.keyCode === UP_KEYCODE) { + focused.classList.remove("focus"); + var prev = focused.previousElementSibling; + if (prev) { + prev.classList.add("focus"); + } else { + searchbar.select(); + } + } else { // SELECT_KEYCODE + window.location.assign(focused.querySelector('a')); + } + } + } + + function showSearch(yes) { + if (yes) { + search_wrap.classList.remove('hidden'); + searchicon.setAttribute('aria-expanded', 'true'); + } else { + search_wrap.classList.add('hidden'); + searchicon.setAttribute('aria-expanded', 'false'); + var results = searchresults.children; + for (var i = 0; i < results.length; i++) { + results[i].classList.remove("focus"); + } + } + } + + function showResults(yes) { + if (yes) { + searchresults_outer.classList.remove('hidden'); + } else { + searchresults_outer.classList.add('hidden'); + } + } + + // Eventhandler for search icon + function searchIconClickHandler() { + if (search_wrap.classList.contains('hidden')) { + showSearch(true); + window.scrollTo(0, 0); + searchbar.select(); + } else { + showSearch(false); + } + } + + // Eventhandler for keyevents while the searchbar is focused + function searchbarKeyUpHandler() { + var searchterm = searchbar.value.trim(); + if (searchterm != "") { + searchbar.classList.add("active"); + doSearch(searchterm); + } else { + searchbar.classList.remove("active"); + showResults(false); + removeChildren(searchresults); + } + + setSearchUrlParameters(searchterm, "push_if_new_search_else_replace"); + + // Remove marks + marker.unmark(); + } + + // Update current url with ?URL_SEARCH_PARAM= parameter, remove ?URL_MARK_PARAM and #heading-anchor . + // `action` can be one of "push", "replace", "push_if_new_search_else_replace" + // and replaces or pushes a new browser history item. + // "push_if_new_search_else_replace" pushes if there is no `?URL_SEARCH_PARAM=abc` yet. + function setSearchUrlParameters(searchterm, action) { + var url = parseURL(window.location.href); + var first_search = ! url.params.hasOwnProperty(URL_SEARCH_PARAM); + if (searchterm != "" || action == "push_if_new_search_else_replace") { + url.params[URL_SEARCH_PARAM] = searchterm; + delete url.params[URL_MARK_PARAM]; + url.hash = ""; + } else { + delete url.params[URL_MARK_PARAM]; + delete url.params[URL_SEARCH_PARAM]; + } + // A new search will also add a new history item, so the user can go back + // to the page prior to searching. A updated search term will only replace + // the url. + if (action == "push" || (action == "push_if_new_search_else_replace" && first_search) ) { + history.pushState({}, document.title, renderURL(url)); + } else if (action == "replace" || (action == "push_if_new_search_else_replace" && !first_search) ) { + history.replaceState({}, document.title, renderURL(url)); + } + } + + function doSearch(searchterm) { + + // Don't search the same twice + if (current_searchterm == searchterm) { return; } + else { current_searchterm = searchterm; } + + if (searchindex == null) { return; } + + // Do the actual search + var results = searchindex.search(searchterm, search_options); + var resultcount = Math.min(results.length, results_options.limit_results); + + // Display search metrics + searchresults_header.innerText = formatSearchMetric(resultcount, searchterm); + + // Clear and insert results + var searchterms = searchterm.split(' '); + removeChildren(searchresults); + for(var i = 0; i < resultcount ; i++){ + var resultElem = document.createElement('li'); + resultElem.innerHTML = formatSearchResult(results[i], searchterms); + searchresults.appendChild(resultElem); + } + + // Display results + showResults(true); + } + + fetch(path_to_root + 'searchindex.json') + .then(response => response.json()) + .then(json => init(json)) + .catch(error => { // Try to load searchindex.js if fetch failed + var script = document.createElement('script'); + script.src = path_to_root + 'searchindex.js'; + script.onload = () => init(window.search); + document.head.appendChild(script); + }); + + // Exported functions + search.hasFocus = hasFocus; +})(window.search); diff --git a/searchindex.js b/searchindex.js new file mode 100644 index 0000000000..2bc297c922 --- /dev/null +++ b/searchindex.js @@ -0,0 +1 @@ +Object.assign(window.search, {"doc_urls":["overview.html#overview","overview.html#hardware","overview.html#applications","overview.html#library-documentation","setup.html#table-of-contents","setup.html#setup","setup.html#power","setup.html#network-and-dhcp","setup.html#mqtt-broker","setup.html#building","setup.html#flashing","setup.html#st-link-virtual-mass-storage","setup.html#dfu-upload","setup.html#swdjtag-firmware-development","setup.html#verify-mqtt-connection","usage.html#table-of-contents","usage.html#miniconf-run-time-settings","usage.html#installation","usage.html#usage","usage.html#iir-configuration","usage.html#telemetry","usage.html#livestream"],"index":{"documentStore":{"docInfo":{"0":{"body":61,"breadcrumbs":2,"title":1},"1":{"body":44,"breadcrumbs":2,"title":1},"10":{"body":44,"breadcrumbs":2,"title":1},"11":{"body":48,"breadcrumbs":6,"title":5},"12":{"body":79,"breadcrumbs":3,"title":2},"13":{"body":65,"breadcrumbs":4,"title":3},"14":{"body":69,"breadcrumbs":4,"title":3},"15":{"body":10,"breadcrumbs":3,"title":2},"16":{"body":65,"breadcrumbs":5,"title":4},"17":{"body":56,"breadcrumbs":2,"title":1},"18":{"body":136,"breadcrumbs":2,"title":1},"19":{"body":27,"breadcrumbs":3,"title":2},"2":{"body":95,"breadcrumbs":2,"title":1},"20":{"body":104,"breadcrumbs":2,"title":1},"21":{"body":43,"breadcrumbs":2,"title":1},"3":{"body":15,"breadcrumbs":3,"title":2},"4":{"body":21,"breadcrumbs":3,"title":2},"5":{"body":26,"breadcrumbs":2,"title":1},"6":{"body":47,"breadcrumbs":2,"title":1},"7":{"body":68,"breadcrumbs":3,"title":2},"8":{"body":145,"breadcrumbs":3,"title":2},"9":{"body":115,"breadcrumbs":2,"title":1}},"docs":{"0":{"body":"Stabilizer is a flexible tool designed for quantum physics experiments. Fundamentally, Stabilizer samples up two two analog input signals, performs digital signal processing internally, and then generates up to two output signals. Stabilizer firmware supports run-time configuration of the internal signal processing algorithms, which allows for a wide variety of experimental uses, such as digital filter design or implementation of digital lockin schemes. This documentation is intended to bring a user up to speed on using Stabilizer and the firmware provided by QUARTIQ and contributors.","breadcrumbs":"Overview » Overview","id":"0","title":"Overview"},"1":{"body":"The Stabilizer hardware is managed via a separate repository . Some information about the hardware is gathered in the Stabilizer wiki . More detailed data, measurements, discussions, and tests have been posted in the Stabilizer issue tracker . Hardware Stabilizer can be extended and coupled with a mezzanine board. One such mezzanine is the DDS upconversion/downconversion frontend Pounder. The Pounder hardware is managed via a separate repository , again with wiki and issue tracker .","breadcrumbs":"Overview » Hardware","id":"1","title":"Hardware"},"10":{"body":"Firmware can be loaded onto stabilizer using one of the three following methods. Note: All methods require access to the circuit board. Pulling the device from a crate always requires power removal as there are sensitive leads and components on both sides of the board that may come into contact with adjacent front panels. Every access to the board also requires proper ESD precautions. Never hot-plug the device or the probe.","breadcrumbs":"Setup » Flashing","id":"10","title":"Flashing"},"11":{"body":"If a ST-Link V2-1 or later is available this method can be used. Power down the device, remove it from the crate, and connect the SWD/JTAG probe as shown below to the device and to your computer. JTAG Connection Power up the device and copy dual-iir.bin onto the virtual mass storage ST-Link drive that has appeared on your computer. Power down the device before removing the probe, inserting it into the crate and applying power again.","breadcrumbs":"Setup » ST-Link virtual mass storage","id":"11","title":"ST-Link virtual mass storage"},"12":{"body":"If an SWD/JTAG probe is not available, you can flash firmware using only a micro USB cable plugged in to the front of Stabilizer, a DFU utility, and a jumper to activate the bootloader. Install the DFU USB tool dfu-util Remove power Then carefully remove the module from the crate to gain access to the board Short JC2/BOOT with the jumper Connect your computer to the Micro USB connector below/left of the RJ45 connector on the front panel Insert the module into the crate Then power it Perform the Device Firmware Upgrade (DFU) dfu-util -a 0 -s 0x08000000:leave -D dual-iir.bin To keep the device from entering the bootloader remove power, pull the board from the crate, remove the JC2/BOOT jumper, insert the module into the crate, and power it again","breadcrumbs":"Setup » DFU Upload","id":"12","title":"DFU Upload"},"13":{"body":"To observe logging messages or to develop and debug applications a SWD/JTAG probe is required. To use a compatible probe with probe-run connect it as described above . Install probe-run cargo install probe-run Build and run firmware on the device # Bash\nBROKER=\"10.34.16.1\" cargo run --release --bin dual-iir # Powershell\n$Env:BROKER='10.34.16.1'; cargo run --release --bin dual-iir When using debug (non --release) mode, decrease the sampling frequency significantly. The added error checking code and missing optimizations may lead to the application missing timer deadlines and panicing.","breadcrumbs":"Setup » SWD/JTAG Firmware Development","id":"13","title":"SWD/JTAG Firmware Development"},"14":{"body":"Once your MQTT broker and Stabilizer are both running, verify that the application connects to the broker. A Stabilizer application on a device is reporting its status on the following topic dt/sinara/dual-iir/+/alive The + is a wildcard matching the unique MAC address of the device (e.g. aa-bb-cc-00-11-22). Download MQTT-Explorer to observe which topics have been posted to the Broker. MQTT Explorer Configuration Note: In MQTT explorer, use the same broker address that you used when building the firmware. In addition to the alive status, telemetry messages are published at regular intervals when Stabilizer has connected to the broker. Once you observe incoming telemetry, Stabilizer is operational.","breadcrumbs":"Setup » Verify MQTT connection","id":"14","title":"Verify MQTT connection"},"15":{"body":"Miniconf Run-time Settings Installation Usage IIR Configuration Telemetry Livestream","breadcrumbs":"Usage » Table of Contents","id":"15","title":"Table of Contents"},"16":{"body":"Stabilizer supports run-time settings configuration using MQTT. Settings can be stored in the MQTT broker so that they are automatically applied whenever Stabilizer reboots and connects. This is referred to as \"retained\" settings. Broker implementations may optionally store these retained settings as well such that they will be reapplied between restarts of the MQTT broker. Settings are specific to a device. Any settings configured for one Stabilizer will not be applied to another. Disambiguation of devices is done by using Stabilizer's MAC address. Settings are specific to an application. If two identical settings exist for two different applications, each application maintains its own independent value.","breadcrumbs":"Usage » Miniconf Run-time Settings","id":"16","title":"Miniconf Run-time Settings"},"17":{"body":"Install the Miniconf configuration utilities using a virtual environment: python -m venv --system-site-packages vpy # Refer to https://docs.python.org/3/tutorial/venv.html for more information on activating the\n# virtual environment. This command is different on different platforms.\n./vpy/Scripts/activate Next, install prerequisite packages python -m pip install -e py To use miniconf, execute it as follows: python -m miniconf --help Miniconf also exposes a programmatic Python API, so it's possible to write automation scripting of Stabilizer as well.","breadcrumbs":"Usage » Installation","id":"17","title":"Installation"},"18":{"body":"The Miniconf Python utility utilizes a unique \"device prefix\". The device prefix is always of the form dt/sinara//, where is the name of the application and is the MAC address of the device, formatted with delimiting dashes, and lower case letters. Settings have a path and a value being configured. The value parameter is JSON-encoded data and the path value is a path-like string. As an example, for configuring dual-iir's stream_target, the following information would be used: path = stream_target value = {\"ip\": [192, 168, 0, 1], \"port\": 4000} python -m miniconf --broker 10.34.16.1 dt/sinara/dual-iir/00-11-22-33-44-55 stream_target='{\"ip\": [10, 34, 16, 123], \"port\": 4000}' Where `10.34.16.1` is the MQTT broker address that matches the one configured in the source code and `10.34.16.123` and `4000` are the desire stream target IP and port. The prefix can be found for a specific device by looking at the topic on which telemetry that is being published. It can also be automatically discovered if there is only one device alive. Refer to the application documentation for the exact settings and values exposed for each application. The rules for constructing path values are documented in miniconf's documentation Refer to the documentation for Miniconf for a description of the possible error codes that Miniconf may return if the settings update was unsuccessful.","breadcrumbs":"Usage » Usage","id":"18","title":"Usage"},"19":{"body":"For the dual-iir application, a Python utility has been written to easily configure the IIR filters for a variety of filtering and control applications. Then, use the built-in help to learn how the utility can automatically configure your IIR filters for you: python -m stabilizer.iir_coefficients --help","breadcrumbs":"Usage » IIR Configuration","id":"19","title":"IIR Configuration"},"2":{"body":"This firmware offers a library of hardware and software functionality targeting the use of the Stabilizer hardware in various digital signal processing applications commonly occurring in Quantum Technology. It provides abstractions over the fast analog inputs and outputs, time stamping, Pounder DDS interfaces and a collection of tailored and optimized digital signal processing algorithms (IIR, FIR, Lockin, PLL, reciprocal PLL, Unwrapper, Lowpass, Cosine-Sine, Atan2) in the idsp crate . An application, which is the compiled firmware running on the device, can compose and configure these hardware and software components to implement different use cases. Several applications are provided by default. The following documentation links contain the application-specific settings and telemetry information. Application Description dual-iir Two channel biquad IIR filter lockin Lockin amplifier support various various reference sources","breadcrumbs":"Overview » Applications","id":"2","title":"Applications"},"20":{"body":"Stabilizer applications publish telemetry utilizes MQTT for managing run-time settings configurations as well as live telemetry reporting. Telemetry is defined as low rate, general health information. It is not intended for high throughput or efficiency. Telemetry is generally used to determine that the device is functioning nominally. Stabilizer applications publish telemetry over MQTT at a set rate. Telemetry data units are defined by the application. All telemetry is reported using standard JSON format. Telemetry is intended for low-bandwidth monitoring. It is not intended to transfer large amounts of data and uses a minimal amount of bandwidth. Telemetry is published using \"best effort\" semantics - individual messages may be dropped or Stabilizer may fail to publish telemetry due to internal buffering requirements. In its most basic form, telemetry publishes the latest ADC input voltages, DAC output voltages, and digital input states. Refer to the respective application documentation for more information on telemetry.","breadcrumbs":"Usage » Telemetry","id":"20","title":"Telemetry"},"21":{"body":"Stabilizer supports livestream capabilities for streaming real-time data over UDP. The livestream is intended to be a high-bandwidth mechanism to transfer large amounts of data from Stabilizer to a host computer for further analysis. Livestreamed data is sent with \"best effort\" - it's possible that data may be lost either due to network congestion or by Stabilizer. Refer to the the respective application documentation for more information.","breadcrumbs":"Usage » Livestream","id":"21","title":"Livestream"},"3":{"body":"The Stabilizer library docs contain documentation for common components used in all Stabilizer applications. The Stabilizer library documentation is available here .","breadcrumbs":"Overview » Library Documentation","id":"3","title":"Library Documentation"},"4":{"body":"Setup Power Network and DHCP MQTT Broker Building Flashing ST-Link virtual mass storage DFU Upload SWD/JTAG Firmware Development Verify MQTT connection","breadcrumbs":"Setup » Table of Contents","id":"4","title":"Table of Contents"},"5":{"body":"The Stabilizer firmware consists of different applications tailored to different use cases. Only one application can run on the device at a given time. After receiving the Stabilizer hardware, you will need to choose, build, and flash one of the applications onto the device.","breadcrumbs":"Setup » Setup","id":"5","title":"Setup"},"6":{"body":"Power Stabilizer through exactly one of the following mechanisms. Via the backside 12V barrel connector Via Power-over-Ethernet using a PoE capable switch (802.3af or preferrably 802.3at) and the RJ45 front panel port Via an EEM connection to Kasli Note: Applying power through more than one mechanism may lead to damage. Ensure the two unused methods are not connected or explicitly disabled.","breadcrumbs":"Setup » Power","id":"6","title":"Power"},"7":{"body":"Stabilizer supports 10Base-T or 100Base-T with Auto MDI-X. Stabilizer uses DHCP to obtain its network configuration information. Ensure there is a properly configured DHCP server running on the network segment that Stabilizer is connected to. Alternatively, a static IP can be enforced in the firmware build command by specifying the environmental variable STATIC_IP analogous to how a specific broker IP is set. Note: If Stabilizer is connected directly to an Ubuntu system (for example using a USB-Ethernet dongle) you can set the IPv4 settings of this Ethernet connection in the Ubuntu network settings to \"Shared to other computers\". This will start and configure a DHCP server for this connection.","breadcrumbs":"Setup » Network and DHCP","id":"7","title":"Network and DHCP"},"8":{"body":"Stabilizer requires an MQTT broker that supports MQTTv5. The MQTT broker is used to distribute and exchange elemetry data and to view/change application settings. The broker must be reachable by both the host-side applications used to interact with the application on Stabilizer and by the application running on Stabilizer. Determine the IPv4 address of the broker as seen from the network Stabilizer is connected to. The broker IP address must be stable. It will be used later during firmware build. The broker must be reachable on port 1883 on that IP address. Firewalls between Stabilizer and the broker may need to be configured to allow connections from Stabilizer to that port and IP address. Mosquitto has been used as a MQTT broker during development, but any MQTTv5 broker without authentication or encryption will likely work. Note: Mosquitto version 1 only supports MQTTv3.1. If using Mosquitto, ensure version 2.0.0 or later is used. We recommend running Mosquitto through Docker to easily run it on Windows, Linux, and OSX. After docker has been installed, run the following command from the stabilizer repository to create a container named mosquitto that can be stopped and started easily via docker: # Bash\ndocker run -p 1883:1883 --name mosquitto -v `pwd`/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2 # Powershell\ndocker run -p 1883:1883 --name mosquitto -v ${pwd}/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2","breadcrumbs":"Setup » MQTT Broker","id":"8","title":"MQTT Broker"},"9":{"body":"Get and install rustup and use it to install a current stable Rust toolchain. Stabilizer tracks stable Rust. The minimum supported Rust version (MSRV) is specified in the manifest (Cargo.toml). Install target support rustup target add thumbv7em-none-eabihf Install cargo-binutils cargo install cargo-binutils\nrustup component add llvm-tools-preview Clone or download the firmware git clone https://github.com/quartiq/stabilizer\ncd stabilizer Build firmware specifying the MQTT broker IP. Replace 10.34.16.1 by the stable and reachable broker IPv4 address determined above. # Bash\nBROKER=\"10.34.16.1\" cargo build --release # Powershell\n# Note: This sets the broker for all future builds as well.\n$env:BROKER='10.34.16.1'; cargo build --release Extract the application binary (substitute dual-iir below with the desired application name) # Bash\nBROKER=\"10.34.16.1\" cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin # Powershell\n$env:BROKER='10.34.16.1'; cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin","breadcrumbs":"Setup » Building","id":"9","title":"Building"}},"length":22,"save":true},"fields":["title","body","breadcrumbs"],"index":{"body":{"root":{"0":{"0":{"df":1,"docs":{"14":{"tf":1.0}}},"df":2,"docs":{"12":{"tf":1.0},"18":{"tf":1.0}},"x":{"0":{"8":{"0":{"0":{"0":{"0":{"0":{"0":{":":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"v":{"df":1,"docs":{"12":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}},"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"2":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":2,"docs":{"18":{"tf":1.4142135623730951},"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"0":{"b":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"b":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}},"df":1,"docs":{"18":{"tf":1.0}}},"1":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}},"2":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{},"v":{"df":1,"docs":{"6":{"tf":1.0}}}},"6":{"8":{"df":1,"docs":{"18":{"tf":1.0}}},"df":1,"docs":{"18":{"tf":1.0}}},"8":{"8":{"3":{":":{"1":{"8":{"8":{"3":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"9":{"2":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":3,"docs":{"11":{"tf":1.0},"18":{"tf":1.0},"8":{"tf":1.0}}},"2":{".":{"0":{".":{"0":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"2":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}},"df":0,"docs":{}},"3":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"4":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"4":{"0":{"0":{"0":{"df":1,"docs":{"18":{"tf":1.7320508075688772}}},"df":0,"docs":{}},"df":0,"docs":{}},"4":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"5":{"5":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"8":{"0":{"2":{".":{"3":{"a":{"df":0,"docs":{},"f":{"df":1,"docs":{"6":{"tf":1.0}}},"t":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"a":{"a":{"df":1,"docs":{"14":{"tf":1.0}}},"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"c":{"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"10":{"tf":1.4142135623730951},"12":{"tf":1.0}}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":2,"docs":{"12":{"tf":1.0},"17":{"tf":1.0}}}}}},"d":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"d":{"df":1,"docs":{"9":{"tf":1.4142135623730951}},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"14":{"tf":1.0}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":5,"docs":{"14":{"tf":1.4142135623730951},"16":{"tf":1.0},"18":{"tf":2.0},"8":{"tf":2.0},"9":{"tf":1.0}}}}}}},"df":1,"docs":{"13":{"tf":1.0}},"j":{"a":{"c":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{},"g":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"1":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0}}}}},"df":0,"docs":{}},"l":{"df":0,"docs":{},"g":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.0}}}}}}}}},"i":{"df":0,"docs":{},"v":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":2,"docs":{"0":{"tf":1.0},"8":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"7":{"tf":1.0}}}}}},"w":{"a":{"df":0,"docs":{},"y":{"df":2,"docs":{"10":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.4142135623730951},"21":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":1,"docs":{"2":{"tf":1.0}}}}}}}},"n":{"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"7":{"tf":1.0}}}},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":1,"docs":{"21":{"tf":1.0}}}}}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"17":{"tf":1.0}}},"p":{"df":1,"docs":{"18":{"tf":1.0}},"e":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}},"l":{"df":0,"docs":{},"i":{"c":{"df":12,"docs":{"13":{"tf":1.4142135623730951},"14":{"tf":1.4142135623730951},"16":{"tf":1.7320508075688772},"18":{"tf":1.7320508075688772},"19":{"tf":1.4142135623730951},"2":{"tf":2.449489742783178},"20":{"tf":2.0},"21":{"tf":1.0},"3":{"tf":1.0},"5":{"tf":1.7320508075688772},"8":{"tf":2.0},"9":{"tf":1.4142135623730951}}},"df":3,"docs":{"11":{"tf":1.0},"16":{"tf":1.4142135623730951},"6":{"tf":1.0}}}}}},"t":{"a":{"df":0,"docs":{},"n":{"2":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"o":{"df":1,"docs":{"7":{"tf":1.0}},"m":{"a":{"df":0,"docs":{},"t":{"df":3,"docs":{"16":{"tf":1.0},"18":{"tf":1.0},"19":{"tf":1.0}}}},"df":1,"docs":{"17":{"tf":1.0}}}}}},"v":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":3,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"3":{"tf":1.0}}}}},"df":0,"docs":{}}},"b":{"a":{"c":{"df":0,"docs":{},"k":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"d":{"df":1,"docs":{"6":{"tf":1.0}}},"df":0,"docs":{}}}}},"df":0,"docs":{},"n":{"d":{"df":0,"docs":{},"w":{"df":0,"docs":{},"i":{"d":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":2,"docs":{"20":{"tf":1.4142135623730951},"21":{"tf":1.0}}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"s":{"df":0,"docs":{},"h":{"df":3,"docs":{"13":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"i":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{}}}},"b":{"df":1,"docs":{"14":{"tf":1.0}}},"df":0,"docs":{},"e":{"df":1,"docs":{"18":{"tf":1.4142135623730951}},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"11":{"tf":1.0}}}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"/":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.0}}}}}}},"df":2,"docs":{"11":{"tf":1.0},"9":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":2,"docs":{"16":{"tf":1.0},"8":{"tf":1.0}}}}}}}},"i":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"9":{"tf":1.7320508075688772}}}}},"df":2,"docs":{"13":{"tf":1.4142135623730951},"9":{"tf":1.4142135623730951}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}}},"q":{"df":0,"docs":{},"u":{"a":{"d":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"o":{"a":{"df":0,"docs":{},"r":{"d":{"df":3,"docs":{"1":{"tf":1.0},"10":{"tf":1.7320508075688772},"12":{"tf":1.4142135623730951}}},"df":0,"docs":{}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"t":{"df":0,"docs":{},"h":{"df":3,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"8":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"0":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"=":{"\"":{"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":7,"docs":{"14":{"tf":2.23606797749979},"16":{"tf":1.7320508075688772},"18":{"tf":1.4142135623730951},"4":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":3.1622776601683795},"9":{"tf":1.7320508075688772}}}}}}},"u":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"20":{"tf":1.0}}}}}},"i":{"df":0,"docs":{},"l":{"d":{"df":7,"docs":{"13":{"tf":1.0},"14":{"tf":1.0},"4":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":2.23606797749979}}},"df":0,"docs":{},"t":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"c":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"12":{"tf":1.0}}}},"df":0,"docs":{},"p":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"21":{"tf":1.0},"6":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"12":{"tf":1.0}}}}}}}},"g":{"df":0,"docs":{},"o":{".":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"df":2,"docs":{"13":{"tf":1.7320508075688772},"9":{"tf":2.6457513110645907}}}}},"s":{"df":0,"docs":{},"e":{"df":3,"docs":{"18":{"tf":1.0},"2":{"tf":1.0},"5":{"tf":1.0}}}}},"c":{"df":1,"docs":{"14":{"tf":1.0}}},"d":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"k":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":1,"docs":{"5":{"tf":1.0}}}}}},"i":{"df":0,"docs":{},"r":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}}},"df":0,"docs":{}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}},"o":{"d":{"df":0,"docs":{},"e":{"df":2,"docs":{"13":{"tf":1.0},"18":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}},"df":0,"docs":{}}}},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"10":{"tf":1.0}}},"m":{"a":{"df":0,"docs":{},"n":{"d":{"df":3,"docs":{"17":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"3":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"2":{"tf":1.0}}}}}}},"p":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.0}}}},"o":{"df":0,"docs":{},"n":{"df":4,"docs":{"10":{"tf":1.0},"2":{"tf":1.0},"3":{"tf":1.0},"9":{"tf":1.0}}},"s":{"df":1,"docs":{"2":{"tf":1.0}}}},"u":{"df":0,"docs":{},"t":{"df":4,"docs":{"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"21":{"tf":1.0},"7":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":11,"docs":{"0":{"tf":1.0},"14":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"17":{"tf":1.0},"18":{"tf":1.7320508075688772},"19":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.0},"7":{"tf":1.7320508075688772},"8":{"tf":1.0}}}}}}},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"21":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":9,"docs":{"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"13":{"tf":1.0},"14":{"tf":1.7320508075688772},"16":{"tf":1.0},"4":{"tf":1.0},"6":{"tf":1.4142135623730951},"7":{"tf":2.0},"8":{"tf":1.4142135623730951}},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"12":{"tf":1.4142135623730951},"6":{"tf":1.0}}}}}},"df":0,"docs":{}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"5":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"u":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}}}}},"t":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"2":{"tf":1.0},"3":{"tf":1.0},"8":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"15":{"tf":1.0},"4":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"l":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"11":{"tf":1.0}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"2":{"tf":1.0}}}}},"u":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"r":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":4,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":2.0},"2":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}}},"u":{"df":0,"docs":{},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}}},"d":{"a":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}},"s":{"df":0,"docs":{},"h":{"df":1,"docs":{"18":{"tf":1.0}}}},"t":{"a":{"df":5,"docs":{"1":{"tf":1.0},"18":{"tf":1.0},"20":{"tf":1.4142135623730951},"21":{"tf":2.0},"8":{"tf":1.0}}},"df":0,"docs":{}}},"d":{"df":2,"docs":{"1":{"tf":1.0},"2":{"tf":1.0}}},"df":1,"docs":{"12":{"tf":1.0}},"e":{"a":{"d":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"13":{"tf":1.0}}}}}},"df":0,"docs":{}},"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.4142135623730951}}}}},"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"s":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{},"f":{"a":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}}},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"s":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"b":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":2,"docs":{"18":{"tf":1.0},"2":{"tf":1.0}}}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"n":{"df":1,"docs":{"0":{"tf":1.4142135623730951}}}},"r":{"df":2,"docs":{"18":{"tf":1.0},"9":{"tf":1.0}}}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"1":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"20":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":3,"docs":{"13":{"tf":1.4142135623730951},"4":{"tf":1.0},"8":{"tf":1.0}}}}}},"i":{"c":{"df":10,"docs":{"10":{"tf":1.4142135623730951},"11":{"tf":2.0},"12":{"tf":1.4142135623730951},"13":{"tf":1.0},"14":{"tf":1.4142135623730951},"16":{"tf":1.4142135623730951},"18":{"tf":2.23606797749979},"2":{"tf":1.0},"20":{"tf":1.0},"5":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}},"f":{"df":0,"docs":{},"u":{"df":2,"docs":{"12":{"tf":2.449489742783178},"4":{"tf":1.0}}}},"h":{"c":{"df":0,"docs":{},"p":{"df":2,"docs":{"4":{"tf":1.0},"7":{"tf":2.0}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":4,"docs":{"16":{"tf":1.0},"17":{"tf":1.4142135623730951},"2":{"tf":1.0},"5":{"tf":1.4142135623730951}}}}}},"g":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.7320508075688772},"2":{"tf":1.4142135623730951},"20":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}}}},"df":0,"docs":{}}},"s":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{},"m":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"df":0,"docs":{}}},"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":1,"docs":{"18":{"tf":1.0}}}},"u":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}}}}},"o":{"c":{"df":1,"docs":{"3":{"tf":1.0}},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"8":{"tf":2.23606797749979}}}}},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":6,"docs":{"0":{"tf":1.0},"18":{"tf":2.0},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"3":{"tf":1.7320508075688772}}}}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.0}}},"g":{"df":0,"docs":{},"l":{"df":1,"docs":{"7":{"tf":1.0}}}}},"w":{"df":0,"docs":{},"n":{"df":1,"docs":{"11":{"tf":1.4142135623730951}},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":2,"docs":{"14":{"tf":1.0},"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":1,"docs":{"11":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"20":{"tf":1.0}}}}},"t":{"/":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"r":{"a":{"/":{"<":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{">":{"/":{"<":{"df":0,"docs":{},"m":{"a":{"c":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}},"df":0,"docs":{}},"d":{"df":0,"docs":{},"u":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"u":{"a":{"df":0,"docs":{},"l":{"df":7,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"18":{"tf":1.0},"19":{"tf":1.0},"2":{"tf":1.0},"9":{"tf":2.23606797749979}}}},"df":0,"docs":{},"e":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"e":{".":{"df":0,"docs":{},"g":{"df":1,"docs":{"14":{"tf":1.0}}}},"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"h":{"df":0,"docs":{},"f":{"df":1,"docs":{"9":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"df":2,"docs":{"16":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":2,"docs":{"19":{"tf":1.0},"8":{"tf":1.4142135623730951}}}}}}},"c":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"s":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}}},"df":1,"docs":{"17":{"tf":1.0}},"e":{"df":0,"docs":{},"m":{"df":1,"docs":{"6":{"tf":1.0}}}},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":1,"docs":{"20":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}}}},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"8":{"tf":1.0}}}}}}}}},"n":{"c":{"df":0,"docs":{},"o":{"d":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"y":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"c":{"df":1,"docs":{"7":{"tf":1.0}}},"df":0,"docs":{}}}},"s":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":3,"docs":{"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"12":{"tf":1.0}}}}},"v":{":":{"b":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"=":{"'":{"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"17":{"tf":1.4142135623730951}},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"7":{"tf":1.0}}}}}}}}}}}},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"13":{"tf":1.0},"18":{"tf":1.0}}}}}},"s":{"d":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":2,"docs":{"6":{"tf":1.0},"7":{"tf":1.4142135623730951}}}}}}}}},"x":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":2,"docs":{"18":{"tf":1.0},"7":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"0":{"tf":1.0}},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"0":{"tf":1.0}}}}}}}}},"l":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.7320508075688772}}}}},"o":{"df":0,"docs":{},"s":{"df":2,"docs":{"17":{"tf":1.0},"18":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"1":{"tf":1.0}}},"df":0,"docs":{}}},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"f":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"20":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":3,"docs":{"0":{"tf":1.0},"19":{"tf":1.7320508075688772},"2":{"tf":1.0}}}}}},"r":{"df":1,"docs":{"2":{"tf":1.0}},"e":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":11,"docs":{"0":{"tf":1.4142135623730951},"10":{"tf":1.0},"12":{"tf":1.4142135623730951},"13":{"tf":1.4142135623730951},"14":{"tf":1.0},"2":{"tf":1.4142135623730951},"4":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}}},"l":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":4,"docs":{"10":{"tf":1.0},"12":{"tf":1.0},"4":{"tf":1.0},"5":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"x":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"0":{"tf":1.0}}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":7,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"6":{"tf":1.0},"8":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"t":{"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}},"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}},"u":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"c":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{}}}}}},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":3,"docs":{"10":{"tf":1.0},"12":{"tf":1.4142135623730951},"6":{"tf":1.0}},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"1":{"tf":1.0}}},"df":0,"docs":{}}}}}}},"u":{"df":0,"docs":{},"n":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"2":{"tf":1.0},"20":{"tf":1.0}}}}}}},"d":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"21":{"tf":1.0}}}}}}},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"g":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"12":{"tf":1.0}}}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"0":{"tf":1.0},"20":{"tf":1.4142135623730951}}}}}},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"5":{"tf":1.0}}}}}}},"h":{"a":{"df":0,"docs":{},"r":{"d":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":3,"docs":{"1":{"tf":2.23606797749979},"2":{"tf":1.7320508075688772},"5":{"tf":1.0}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"20":{"tf":1.0}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"p":{"df":2,"docs":{"17":{"tf":1.0},"19":{"tf":1.4142135623730951}}}},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"3":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"h":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":2,"docs":{"21":{"tf":1.0},"8":{"tf":1.0}}}},"t":{"df":1,"docs":{"10":{"tf":1.0}}}},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"p":{"df":0,"docs":{},"s":{":":{"/":{"/":{"d":{"df":0,"docs":{},"o":{"c":{"df":0,"docs":{},"s":{".":{"df":0,"docs":{},"p":{"df":0,"docs":{},"y":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{".":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"/":{"3":{"/":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"a":{"df":0,"docs":{},"l":{"/":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{".":{"df":0,"docs":{},"h":{"df":0,"docs":{},"t":{"df":0,"docs":{},"m":{"df":0,"docs":{},"l":{"df":1,"docs":{"17":{"tf":1.0}}}}}}},"df":0,"docs":{}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"u":{"b":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"/":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"/":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"df":0,"docs":{}}}}}},"df":0,"docs":{}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"'":{"df":1,"docs":{"18":{"tf":1.0}}},".":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}},"df":0,"docs":{}},"/":{"+":{"/":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"0":{"0":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":5,"docs":{"13":{"tf":1.4142135623730951},"15":{"tf":1.0},"19":{"tf":2.0},"2":{"tf":1.7320508075688772},"9":{"tf":1.7320508075688772}}}},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"16":{"tf":1.0},"2":{"tf":1.0}}}}}}}}}},"n":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"df":1,"docs":{"14":{"tf":1.0}}}}},"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"16":{"tf":1.0}}},"df":0,"docs":{}}}}},"i":{"df":0,"docs":{},"v":{"df":0,"docs":{},"i":{"d":{"df":0,"docs":{},"u":{"df":1,"docs":{"20":{"tf":1.0}}}},"df":0,"docs":{}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":7,"docs":{"1":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.4142135623730951},"21":{"tf":1.0},"7":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.4142135623730951}}}}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"11":{"tf":1.0},"12":{"tf":1.4142135623730951}}}}},"t":{"a":{"df":0,"docs":{},"l":{"df":6,"docs":{"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"15":{"tf":1.0},"17":{"tf":2.0},"8":{"tf":1.0},"9":{"tf":2.23606797749979}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":3,"docs":{"0":{"tf":1.0},"20":{"tf":1.7320508075688772},"21":{"tf":1.0}}},"df":0,"docs":{}},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"f":{"a":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"n":{"df":2,"docs":{"0":{"tf":1.4142135623730951},"20":{"tf":1.0}}},"v":{"df":1,"docs":{"14":{"tf":1.0}}}}}}},"p":{"df":4,"docs":{"18":{"tf":1.4142135623730951},"7":{"tf":1.4142135623730951},"8":{"tf":1.7320508075688772},"9":{"tf":1.0}},"v":{"4":{"df":3,"docs":{"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}},"df":0,"docs":{}}},"s":{"df":0,"docs":{},"s":{"df":0,"docs":{},"u":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}},"t":{"'":{"df":2,"docs":{"17":{"tf":1.0},"21":{"tf":1.0}}},"df":0,"docs":{}}},"j":{"c":{"2":{"/":{"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{},"s":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}}},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"12":{"tf":1.7320508075688772}}}}}}}},"k":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"p":{"df":1,"docs":{"12":{"tf":1.0}}}}}},"l":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"11":{"tf":1.0},"8":{"tf":1.4142135623730951}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"a":{"d":{"df":3,"docs":{"10":{"tf":1.0},"13":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"19":{"tf":1.0}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"i":{"b":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":2,"docs":{"2":{"tf":1.0},"3":{"tf":1.7320508075688772}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"k":{"df":3,"docs":{"11":{"tf":1.7320508075688772},"2":{"tf":1.0},"4":{"tf":1.0}}},"u":{"df":0,"docs":{},"x":{"df":1,"docs":{"8":{"tf":1.0}}}}},"v":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.0}},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"df":2,"docs":{"15":{"tf":1.0},"21":{"tf":2.0}}}},"df":0,"docs":{}}}}}}}},"l":{"df":0,"docs":{},"v":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}},"o":{"a":{"d":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"c":{"df":0,"docs":{},"k":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.7320508075688772}}}}}},"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.0}}},"o":{"df":0,"docs":{},"k":{"df":1,"docs":{"18":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"21":{"tf":1.0}}}},"w":{"df":1,"docs":{"20":{"tf":1.4142135623730951}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"18":{"tf":1.0}}}},"p":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}}}}},"m":{"a":{"c":{"df":3,"docs":{"14":{"tf":1.0},"16":{"tf":1.0},"18":{"tf":1.4142135623730951}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}},"df":0,"docs":{}}}},"n":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"20":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"11":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"t":{"c":{"df":0,"docs":{},"h":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}}},"d":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":3,"docs":{"17":{"tf":1.7320508075688772},"18":{"tf":1.0},"19":{"tf":1.0}},"e":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":2,"docs":{"21":{"tf":1.0},"6":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}},"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"a":{"df":0,"docs":{},"g":{"df":3,"docs":{"13":{"tf":1.0},"14":{"tf":1.0},"20":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"d":{"df":3,"docs":{"10":{"tf":1.4142135623730951},"11":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{}}}},"z":{"df":0,"docs":{},"z":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}}}},"i":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"'":{"df":1,"docs":{"18":{"tf":1.0}}},"df":4,"docs":{"15":{"tf":1.0},"16":{"tf":1.0},"17":{"tf":2.0},"18":{"tf":2.0}}}}}},"df":0,"docs":{},"m":{"df":1,"docs":{"20":{"tf":1.0}},"u":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"13":{"tf":1.4142135623730951}}}}},"o":{"d":{"df":0,"docs":{},"e":{"df":1,"docs":{"13":{"tf":1.0}}},"u":{"df":0,"docs":{},"l":{"df":1,"docs":{"12":{"tf":1.7320508075688772}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"20":{"tf":1.0}}}}}}},"r":{"df":0,"docs":{},"e":{"df":5,"docs":{"1":{"tf":1.0},"17":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"6":{"tf":1.0}}}},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"d":{"a":{"df":0,"docs":{},"t":{"a":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}},":":{"2":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":1,"docs":{"8":{"tf":2.6457513110645907}}}}}}}}}},"q":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":7,"docs":{"14":{"tf":2.23606797749979},"16":{"tf":1.7320508075688772},"18":{"tf":1.0},"20":{"tf":1.4142135623730951},"4":{"tf":1.4142135623730951},"8":{"tf":2.0},"9":{"tf":1.0}},"v":{"3":{".":{"1":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"5":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}}},"s":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":1,"docs":{"9":{"tf":1.0}}}}}},"n":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":3,"docs":{"18":{"tf":1.0},"8":{"tf":1.7320508075688772},"9":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"d":{"df":2,"docs":{"5":{"tf":1.0},"8":{"tf":1.0}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":4,"docs":{"21":{"tf":1.0},"4":{"tf":1.0},"7":{"tf":2.0},"8":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"10":{"tf":1.0}}}}},"x":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"20":{"tf":1.0}}}}},"n":{"df":1,"docs":{"13":{"tf":1.0}},"e":{"df":1,"docs":{"9":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":6,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}}},"o":{"b":{"df":0,"docs":{},"j":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":2,"docs":{"13":{"tf":1.0},"14":{"tf":1.4142135623730951}}}}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}}},"c":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}},"df":1,"docs":{"9":{"tf":1.4142135623730951}},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"n":{"c":{"df":1,"docs":{"14":{"tf":1.4142135623730951}}},"df":6,"docs":{"1":{"tf":1.0},"10":{"tf":1.0},"16":{"tf":1.0},"18":{"tf":1.4142135623730951},"5":{"tf":1.4142135623730951},"6":{"tf":1.4142135623730951}},"t":{"df":0,"docs":{},"o":{"df":3,"docs":{"10":{"tf":1.0},"11":{"tf":1.0},"5":{"tf":1.0}}}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.0}}}},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"m":{"df":2,"docs":{"13":{"tf":1.0},"2":{"tf":1.0}}},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"s":{"df":0,"docs":{},"x":{"df":1,"docs":{"8":{"tf":1.0}}}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":4,"docs":{"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"6":{"tf":1.0}},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":1,"docs":{"0":{"tf":1.0}}}}}}}}}},"p":{"a":{"c":{"df":0,"docs":{},"k":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"17":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":3,"docs":{"10":{"tf":1.0},"12":{"tf":1.0},"6":{"tf":1.0}}}},"i":{"c":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{}}},"r":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"18":{"tf":2.23606797749979}}}}},"df":1,"docs":{"8":{"tf":1.4142135623730951}},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"12":{"tf":1.0}}}}}}}},"h":{"df":0,"docs":{},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"c":{"df":1,"docs":{"0":{"tf":1.0}}},"df":0,"docs":{}}}}},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"17":{"tf":1.0}}}},"l":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":1,"docs":{"17":{"tf":1.0}}}}}}}},"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.4142135623730951}}},"u":{"df":0,"docs":{},"g":{"df":2,"docs":{"10":{"tf":1.0},"12":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"e":{"df":1,"docs":{"6":{"tf":1.0}}},"r":{"df":0,"docs":{},"t":{"df":3,"docs":{"18":{"tf":1.7320508075688772},"6":{"tf":1.0},"8":{"tf":1.4142135623730951}}}},"s":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"l":{"df":3,"docs":{"17":{"tf":1.0},"18":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":2,"docs":{"1":{"tf":1.0},"14":{"tf":1.0}}}},"u":{"df":0,"docs":{},"n":{"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"2":{"tf":1.0}}}}},"df":0,"docs":{}}},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":5,"docs":{"10":{"tf":1.0},"11":{"tf":2.0},"12":{"tf":2.0},"4":{"tf":1.0},"6":{"tf":2.0}},"s":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":3,"docs":{"13":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}}}}}},"r":{"df":0,"docs":{},"e":{"c":{"a":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"r":{"df":1,"docs":{"6":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"x":{"df":1,"docs":{"18":{"tf":1.7320508075688772}}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}}}}}}},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"o":{"b":{"df":0,"docs":{},"e":{"df":4,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"13":{"tf":2.23606797749979}}}},"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"0":{"tf":1.4142135623730951},"2":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"10":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"i":{"d":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}}},"u":{"b":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":3,"docs":{"14":{"tf":1.0},"18":{"tf":1.0},"20":{"tf":2.23606797749979}}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":2,"docs":{"10":{"tf":1.0},"12":{"tf":1.0}}}}},"w":{"d":{"`":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{":":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{},"}":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{":":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"y":{"df":1,"docs":{"17":{"tf":1.0}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":3,"docs":{"17":{"tf":2.0},"18":{"tf":1.4142135623730951},"19":{"tf":1.4142135623730951}}}}}}}},"q":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}}},"r":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"e":{"a":{"c":{"df":0,"docs":{},"h":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"8":{"tf":1.4142135623730951},"9":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{},"l":{"df":1,"docs":{"21":{"tf":1.0}}},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":1,"docs":{"5":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":6,"docs":{"16":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.4142135623730951},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0}}}}},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}}}},"l":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"s":{"df":2,"docs":{"13":{"tf":1.7320508075688772},"9":{"tf":2.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":3,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":2.0}}}}},"p":{"df":0,"docs":{},"l":{"a":{"c":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"14":{"tf":1.0},"20":{"tf":1.4142135623730951}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"8":{"tf":1.0}}}}}}}}}},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":4,"docs":{"10":{"tf":1.7320508075688772},"13":{"tf":1.0},"20":{"tf":1.0},"8":{"tf":1.0}}}}}},"s":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"df":0,"docs":{}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"j":{"4":{"5":{"df":2,"docs":{"12":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":1,"docs":{"18":{"tf":1.0}}}},"n":{"df":10,"docs":{"0":{"tf":1.0},"13":{"tf":2.449489742783178},"14":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"2":{"tf":1.0},"20":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":2.449489742783178}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.7320508075688772}},"u":{"df":0,"docs":{},"p":{"df":1,"docs":{"9":{"tf":1.7320508075688772}}}}}}}},"s":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"14":{"tf":1.0}}},"p":{"df":0,"docs":{},"l":{"df":2,"docs":{"0":{"tf":1.0},"13":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"0":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}}}},"df":1,"docs":{"12":{"tf":1.0}},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"8":{"tf":1.0}}}},"g":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"7":{"tf":1.0}}}}}}},"m":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}},"df":0,"docs":{}},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}},"t":{"df":1,"docs":{"21":{"tf":1.0}}}},"p":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"7":{"tf":1.4142135623730951}}}}}},"t":{"df":8,"docs":{"15":{"tf":1.0},"16":{"tf":3.0},"18":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.4142135623730951},"7":{"tf":2.0},"8":{"tf":1.0},"9":{"tf":1.0}},"u":{"df":0,"docs":{},"p":{"df":2,"docs":{"4":{"tf":1.0},"5":{"tf":1.0}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"h":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.0}}}},"w":{"df":0,"docs":{},"n":{"df":1,"docs":{"11":{"tf":1.0}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":2,"docs":{"10":{"tf":1.0},"8":{"tf":1.0}}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"l":{"df":2,"docs":{"0":{"tf":2.0},"2":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"13":{"tf":1.0}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"2":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"17":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"f":{"df":0,"docs":{},"t":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}},"u":{"df":0,"docs":{},"r":{"c":{"df":2,"docs":{"18":{"tf":1.0},"2":{"tf":1.0}}},"df":0,"docs":{}}}},"p":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":4,"docs":{"16":{"tf":1.4142135623730951},"18":{"tf":1.0},"2":{"tf":1.0},"7":{"tf":1.0}},"i":{"df":2,"docs":{"7":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"e":{"d":{"df":1,"docs":{"0":{"tf":1.0}}},"df":0,"docs":{}}}},"t":{"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":16,"docs":{"0":{"tf":2.0},"1":{"tf":2.0},"10":{"tf":1.0},"12":{"tf":1.0},"14":{"tf":2.0},"16":{"tf":1.7320508075688772},"17":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.7320508075688772},"21":{"tf":1.7320508075688772},"3":{"tf":1.7320508075688772},"5":{"tf":1.4142135623730951},"6":{"tf":1.0},"7":{"tf":2.0},"8":{"tf":2.6457513110645907},"9":{"tf":1.4142135623730951}},"i":{"df":0,"docs":{},"z":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"'":{"df":1,"docs":{"16":{"tf":1.0}}},".":{"df":0,"docs":{},"i":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"_":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":1,"docs":{"19":{"tf":1.0}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}}}}}}},"l":{"df":2,"docs":{"8":{"tf":1.0},"9":{"tf":1.7320508075688772}}}},"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}},"n":{"d":{"a":{"df":0,"docs":{},"r":{"d":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"7":{"tf":1.0},"8":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.0}}},"i":{"c":{"_":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":1,"docs":{"7":{"tf":1.0}}},"df":0,"docs":{}},"u":{"df":1,"docs":{"14":{"tf":1.4142135623730951}}}}},"df":2,"docs":{"11":{"tf":1.7320508075688772},"4":{"tf":1.0}},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"8":{"tf":1.0}}},"r":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"11":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.4142135623730951}}}}},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"_":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"=":{"'":{"df":0,"docs":{},"{":{"\"":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"18":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":1,"docs":{"18":{"tf":1.4142135623730951}}}}}}},"df":0,"docs":{}}},"df":2,"docs":{"18":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"u":{"b":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}}},"c":{"df":0,"docs":{},"h":{"df":3,"docs":{"0":{"tf":1.0},"1":{"tf":1.0},"16":{"tf":1.0}}}},"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":7,"docs":{"0":{"tf":1.0},"16":{"tf":1.0},"2":{"tf":1.0},"21":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.4142135623730951},"9":{"tf":1.4142135623730951}}}}}}}},"w":{"d":{"/":{"df":0,"docs":{},"j":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":4,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"c":{"df":0,"docs":{},"h":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}}}},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":2,"docs":{"17":{"tf":1.0},"7":{"tf":1.0}}}}}}}},"t":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"15":{"tf":1.0},"4":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"2":{"tf":1.0},"5":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":3,"docs":{"18":{"tf":1.0},"2":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}}},"df":1,"docs":{"7":{"tf":1.4142135623730951}},"e":{"c":{"df":0,"docs":{},"h":{"df":0,"docs":{},"n":{"df":0,"docs":{},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":1,"docs":{"2":{"tf":1.0}}}}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":5,"docs":{"14":{"tf":1.4142135623730951},"15":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":3.605551275463989}}}}}}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"1":{"tf":1.0}}}}},"h":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":1,"docs":{"10":{"tf":1.0}}}},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"g":{"df":0,"docs":{},"h":{"df":2,"docs":{"6":{"tf":1.4142135623730951},"8":{"tf":1.0}},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}}}}}}},"u":{"df":0,"docs":{},"m":{"b":{"df":0,"docs":{},"v":{"7":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":7,"docs":{"0":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"5":{"tf":1.0}},"r":{"df":1,"docs":{"13":{"tf":1.0}}}}}},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"l":{"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":3,"docs":{"0":{"tf":1.0},"12":{"tf":1.0},"9":{"tf":1.0}}}},"p":{"df":0,"docs":{},"i":{"c":{"df":2,"docs":{"14":{"tf":1.4142135623730951},"18":{"tf":1.0}}},"df":0,"docs":{}}}},"r":{"a":{"c":{"df":0,"docs":{},"k":{"df":1,"docs":{"9":{"tf":1.0}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}}}}},"df":0,"docs":{}},"w":{"df":0,"docs":{},"o":{"df":4,"docs":{"0":{"tf":1.7320508075688772},"16":{"tf":1.4142135623730951},"2":{"tf":1.0},"6":{"tf":1.0}}}}},"u":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":1,"docs":{"7":{"tf":1.4142135623730951}}}}}}},"d":{"df":0,"docs":{},"p":{"df":1,"docs":{"21":{"tf":1.0}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"t":{"df":1,"docs":{"20":{"tf":1.0}}}},"s":{"df":0,"docs":{},"u":{"c":{"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"18":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"u":{"df":0,"docs":{},"s":{"df":1,"docs":{"6":{"tf":1.0}}}},"w":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}}}},"p":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"/":{"d":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":0,"docs":{},"n":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"s":{"df":1,"docs":{"1":{"tf":1.0}}}}}}}}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"d":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}},"df":2,"docs":{"0":{"tf":1.7320508075688772},"11":{"tf":1.0}},"g":{"df":0,"docs":{},"r":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":2,"docs":{"12":{"tf":1.0},"4":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"s":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"15":{"tf":1.0},"18":{"tf":1.0}}}},"b":{"df":2,"docs":{"12":{"tf":1.7320508075688772},"7":{"tf":1.0}}},"df":18,"docs":{"0":{"tf":1.4142135623730951},"10":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"14":{"tf":1.4142135623730951},"16":{"tf":1.4142135623730951},"17":{"tf":1.4142135623730951},"18":{"tf":1.0},"19":{"tf":1.0},"2":{"tf":1.4142135623730951},"20":{"tf":2.0},"3":{"tf":1.0},"5":{"tf":1.0},"6":{"tf":1.0},"7":{"tf":1.4142135623730951},"8":{"tf":2.449489742783178},"9":{"tf":1.0}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"0":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":5,"docs":{"12":{"tf":1.7320508075688772},"17":{"tf":1.0},"18":{"tf":1.4142135623730951},"19":{"tf":1.4142135623730951},"20":{"tf":1.0}}}}}},"v":{"2":{"df":1,"docs":{"11":{"tf":1.0}}},"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"u":{"df":2,"docs":{"16":{"tf":1.0},"18":{"tf":2.449489742783178}}}},"r":{"df":0,"docs":{},"i":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":2,"docs":{"0":{"tf":1.0},"19":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"u":{"df":1,"docs":{"2":{"tf":1.7320508075688772}}}}}}},"df":1,"docs":{"8":{"tf":2.449489742783178}},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":1,"docs":{"17":{"tf":1.0}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":2,"docs":{"14":{"tf":1.4142135623730951},"4":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"8":{"tf":1.4142135623730951},"9":{"tf":1.0}}}}}}}},"i":{"a":{"df":3,"docs":{"1":{"tf":1.4142135623730951},"6":{"tf":1.7320508075688772},"8":{"tf":1.0}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"/":{"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"l":{"df":3,"docs":{"11":{"tf":1.4142135623730951},"17":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"17":{"tf":1.0}}},"y":{"/":{"df":0,"docs":{},"s":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":0,"docs":{},"s":{"/":{"a":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":1,"docs":{"17":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":4,"docs":{"16":{"tf":1.0},"17":{"tf":1.0},"20":{"tf":1.0},"9":{"tf":1.0}}}}},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"v":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":1,"docs":{"0":{"tf":1.0}}}},"df":0,"docs":{},"k":{"df":0,"docs":{},"i":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}},"l":{"d":{"c":{"a":{"df":0,"docs":{},"r":{"d":{"df":1,"docs":{"14":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"n":{"d":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}}}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":1,"docs":{"8":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"17":{"tf":1.0}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"19":{"tf":1.0}}}}}}}}},"x":{"df":1,"docs":{"7":{"tf":1.0}}}}},"breadcrumbs":{"root":{"0":{"0":{"df":1,"docs":{"14":{"tf":1.0}}},"df":2,"docs":{"12":{"tf":1.0},"18":{"tf":1.0}},"x":{"0":{"8":{"0":{"0":{"0":{"0":{"0":{"0":{":":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"v":{"df":1,"docs":{"12":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}},"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"2":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":2,"docs":{"18":{"tf":1.4142135623730951},"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"0":{"b":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"b":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}},"df":1,"docs":{"18":{"tf":1.0}}},"1":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}},"2":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{},"v":{"df":1,"docs":{"6":{"tf":1.0}}}},"6":{"8":{"df":1,"docs":{"18":{"tf":1.0}}},"df":1,"docs":{"18":{"tf":1.0}}},"8":{"8":{"3":{":":{"1":{"8":{"8":{"3":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"9":{"2":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":3,"docs":{"11":{"tf":1.0},"18":{"tf":1.0},"8":{"tf":1.0}}},"2":{".":{"0":{".":{"0":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"2":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}},"df":0,"docs":{}},"3":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"4":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"4":{"0":{"0":{"0":{"df":1,"docs":{"18":{"tf":1.7320508075688772}}},"df":0,"docs":{}},"df":0,"docs":{}},"4":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"5":{"5":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"8":{"0":{"2":{".":{"3":{"a":{"df":0,"docs":{},"f":{"df":1,"docs":{"6":{"tf":1.0}}},"t":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"a":{"a":{"df":1,"docs":{"14":{"tf":1.0}}},"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"c":{"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"10":{"tf":1.4142135623730951},"12":{"tf":1.0}}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":2,"docs":{"12":{"tf":1.0},"17":{"tf":1.0}}}}}},"d":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"d":{"df":1,"docs":{"9":{"tf":1.4142135623730951}},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"14":{"tf":1.0}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":5,"docs":{"14":{"tf":1.4142135623730951},"16":{"tf":1.0},"18":{"tf":2.0},"8":{"tf":2.0},"9":{"tf":1.0}}}}}}},"df":1,"docs":{"13":{"tf":1.0}},"j":{"a":{"c":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{},"g":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"1":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0}}}}},"df":0,"docs":{}},"l":{"df":0,"docs":{},"g":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.0}}}}}}}}},"i":{"df":0,"docs":{},"v":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":2,"docs":{"0":{"tf":1.0},"8":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"7":{"tf":1.0}}}}}},"w":{"a":{"df":0,"docs":{},"y":{"df":2,"docs":{"10":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.4142135623730951},"21":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":1,"docs":{"2":{"tf":1.0}}}}}}}},"n":{"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"7":{"tf":1.0}}}},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":1,"docs":{"21":{"tf":1.0}}}}}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"17":{"tf":1.0}}},"p":{"df":1,"docs":{"18":{"tf":1.0}},"e":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}},"l":{"df":0,"docs":{},"i":{"c":{"df":12,"docs":{"13":{"tf":1.4142135623730951},"14":{"tf":1.4142135623730951},"16":{"tf":1.7320508075688772},"18":{"tf":1.7320508075688772},"19":{"tf":1.4142135623730951},"2":{"tf":2.6457513110645907},"20":{"tf":2.0},"21":{"tf":1.0},"3":{"tf":1.0},"5":{"tf":1.7320508075688772},"8":{"tf":2.0},"9":{"tf":1.4142135623730951}}},"df":3,"docs":{"11":{"tf":1.0},"16":{"tf":1.4142135623730951},"6":{"tf":1.0}}}}}},"t":{"a":{"df":0,"docs":{},"n":{"2":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"o":{"df":1,"docs":{"7":{"tf":1.0}},"m":{"a":{"df":0,"docs":{},"t":{"df":3,"docs":{"16":{"tf":1.0},"18":{"tf":1.0},"19":{"tf":1.0}}}},"df":1,"docs":{"17":{"tf":1.0}}}}}},"v":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":3,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"3":{"tf":1.0}}}}},"df":0,"docs":{}}},"b":{"a":{"c":{"df":0,"docs":{},"k":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"d":{"df":1,"docs":{"6":{"tf":1.0}}},"df":0,"docs":{}}}}},"df":0,"docs":{},"n":{"d":{"df":0,"docs":{},"w":{"df":0,"docs":{},"i":{"d":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":2,"docs":{"20":{"tf":1.4142135623730951},"21":{"tf":1.0}}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"s":{"df":0,"docs":{},"h":{"df":3,"docs":{"13":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"i":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{}}}},"b":{"df":1,"docs":{"14":{"tf":1.0}}},"df":0,"docs":{},"e":{"df":1,"docs":{"18":{"tf":1.4142135623730951}},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"11":{"tf":1.0}}}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"/":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.0}}}}}}},"df":2,"docs":{"11":{"tf":1.0},"9":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":2,"docs":{"16":{"tf":1.0},"8":{"tf":1.0}}}}}}}},"i":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"9":{"tf":1.7320508075688772}}}}},"df":2,"docs":{"13":{"tf":1.4142135623730951},"9":{"tf":1.4142135623730951}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}}},"q":{"df":0,"docs":{},"u":{"a":{"d":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"o":{"a":{"df":0,"docs":{},"r":{"d":{"df":3,"docs":{"1":{"tf":1.0},"10":{"tf":1.7320508075688772},"12":{"tf":1.4142135623730951}}},"df":0,"docs":{}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"t":{"df":0,"docs":{},"h":{"df":3,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"8":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"0":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"=":{"\"":{"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":7,"docs":{"14":{"tf":2.23606797749979},"16":{"tf":1.7320508075688772},"18":{"tf":1.4142135623730951},"4":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":3.3166247903554},"9":{"tf":1.7320508075688772}}}}}}},"u":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"20":{"tf":1.0}}}}}},"i":{"df":0,"docs":{},"l":{"d":{"df":7,"docs":{"13":{"tf":1.0},"14":{"tf":1.0},"4":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":2.449489742783178}}},"df":0,"docs":{},"t":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"c":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"12":{"tf":1.0}}}},"df":0,"docs":{},"p":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"21":{"tf":1.0},"6":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"12":{"tf":1.0}}}}}}}},"g":{"df":0,"docs":{},"o":{".":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"df":2,"docs":{"13":{"tf":1.7320508075688772},"9":{"tf":2.6457513110645907}}}}},"s":{"df":0,"docs":{},"e":{"df":3,"docs":{"18":{"tf":1.0},"2":{"tf":1.0},"5":{"tf":1.0}}}}},"c":{"df":1,"docs":{"14":{"tf":1.0}}},"d":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"k":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":1,"docs":{"5":{"tf":1.0}}}}}},"i":{"df":0,"docs":{},"r":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}}},"df":0,"docs":{}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}},"o":{"d":{"df":0,"docs":{},"e":{"df":2,"docs":{"13":{"tf":1.0},"18":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}},"df":0,"docs":{}}}},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"10":{"tf":1.0}}},"m":{"a":{"df":0,"docs":{},"n":{"d":{"df":3,"docs":{"17":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"3":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"2":{"tf":1.0}}}}}}},"p":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.0}}}},"o":{"df":0,"docs":{},"n":{"df":4,"docs":{"10":{"tf":1.0},"2":{"tf":1.0},"3":{"tf":1.0},"9":{"tf":1.0}}},"s":{"df":1,"docs":{"2":{"tf":1.0}}}},"u":{"df":0,"docs":{},"t":{"df":4,"docs":{"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"21":{"tf":1.0},"7":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":11,"docs":{"0":{"tf":1.0},"14":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"17":{"tf":1.0},"18":{"tf":1.7320508075688772},"19":{"tf":2.0},"2":{"tf":1.0},"20":{"tf":1.0},"7":{"tf":1.7320508075688772},"8":{"tf":1.0}}}}}}},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"21":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":9,"docs":{"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"13":{"tf":1.0},"14":{"tf":2.0},"16":{"tf":1.0},"4":{"tf":1.0},"6":{"tf":1.4142135623730951},"7":{"tf":2.0},"8":{"tf":1.4142135623730951}},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"12":{"tf":1.4142135623730951},"6":{"tf":1.0}}}}}},"df":0,"docs":{}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"5":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"u":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}}}}},"t":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"2":{"tf":1.0},"3":{"tf":1.0},"8":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"15":{"tf":1.4142135623730951},"4":{"tf":1.4142135623730951}}}}},"r":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"l":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"11":{"tf":1.0}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"2":{"tf":1.0}}}}},"u":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"r":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":4,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":2.0},"2":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}}},"u":{"df":0,"docs":{},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}}},"d":{"a":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}},"s":{"df":0,"docs":{},"h":{"df":1,"docs":{"18":{"tf":1.0}}}},"t":{"a":{"df":5,"docs":{"1":{"tf":1.0},"18":{"tf":1.0},"20":{"tf":1.4142135623730951},"21":{"tf":2.0},"8":{"tf":1.0}}},"df":0,"docs":{}}},"d":{"df":2,"docs":{"1":{"tf":1.0},"2":{"tf":1.0}}},"df":1,"docs":{"12":{"tf":1.0}},"e":{"a":{"d":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"13":{"tf":1.0}}}}}},"df":0,"docs":{}},"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.4142135623730951}}}}},"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"s":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{},"f":{"a":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}}},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"s":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"b":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":2,"docs":{"18":{"tf":1.0},"2":{"tf":1.0}}}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"n":{"df":1,"docs":{"0":{"tf":1.4142135623730951}}}},"r":{"df":2,"docs":{"18":{"tf":1.0},"9":{"tf":1.0}}}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"1":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"20":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":3,"docs":{"13":{"tf":1.7320508075688772},"4":{"tf":1.0},"8":{"tf":1.0}}}}}},"i":{"c":{"df":10,"docs":{"10":{"tf":1.4142135623730951},"11":{"tf":2.0},"12":{"tf":1.4142135623730951},"13":{"tf":1.0},"14":{"tf":1.4142135623730951},"16":{"tf":1.4142135623730951},"18":{"tf":2.23606797749979},"2":{"tf":1.0},"20":{"tf":1.0},"5":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}},"f":{"df":0,"docs":{},"u":{"df":2,"docs":{"12":{"tf":2.6457513110645907},"4":{"tf":1.0}}}},"h":{"c":{"df":0,"docs":{},"p":{"df":2,"docs":{"4":{"tf":1.0},"7":{"tf":2.23606797749979}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":4,"docs":{"16":{"tf":1.0},"17":{"tf":1.4142135623730951},"2":{"tf":1.0},"5":{"tf":1.4142135623730951}}}}}},"g":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.7320508075688772},"2":{"tf":1.4142135623730951},"20":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}}}},"df":0,"docs":{}}},"s":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{},"m":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"df":0,"docs":{}}},"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":1,"docs":{"18":{"tf":1.0}}}},"u":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}}}}},"o":{"c":{"df":1,"docs":{"3":{"tf":1.0}},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"8":{"tf":2.23606797749979}}}}},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":6,"docs":{"0":{"tf":1.0},"18":{"tf":2.0},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"3":{"tf":2.0}}}}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.0}}},"g":{"df":0,"docs":{},"l":{"df":1,"docs":{"7":{"tf":1.0}}}}},"w":{"df":0,"docs":{},"n":{"df":1,"docs":{"11":{"tf":1.4142135623730951}},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":2,"docs":{"14":{"tf":1.0},"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":1,"docs":{"11":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"20":{"tf":1.0}}}}},"t":{"/":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"r":{"a":{"/":{"<":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{">":{"/":{"<":{"df":0,"docs":{},"m":{"a":{"c":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}},"df":0,"docs":{}},"d":{"df":0,"docs":{},"u":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"u":{"a":{"df":0,"docs":{},"l":{"df":7,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"18":{"tf":1.0},"19":{"tf":1.0},"2":{"tf":1.0},"9":{"tf":2.23606797749979}}}},"df":0,"docs":{},"e":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"e":{".":{"df":0,"docs":{},"g":{"df":1,"docs":{"14":{"tf":1.0}}}},"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"h":{"df":0,"docs":{},"f":{"df":1,"docs":{"9":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"df":2,"docs":{"16":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":2,"docs":{"19":{"tf":1.0},"8":{"tf":1.4142135623730951}}}}}}},"c":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"s":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}}},"df":1,"docs":{"17":{"tf":1.0}},"e":{"df":0,"docs":{},"m":{"df":1,"docs":{"6":{"tf":1.0}}}},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":1,"docs":{"20":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}}}},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"8":{"tf":1.0}}}}}}}}},"n":{"c":{"df":0,"docs":{},"o":{"d":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"y":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"c":{"df":1,"docs":{"7":{"tf":1.0}}},"df":0,"docs":{}}}},"s":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":3,"docs":{"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"12":{"tf":1.0}}}}},"v":{":":{"b":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"=":{"'":{"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"17":{"tf":1.4142135623730951}},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"7":{"tf":1.0}}}}}}}}}}}},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"13":{"tf":1.0},"18":{"tf":1.0}}}}}},"s":{"d":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":2,"docs":{"6":{"tf":1.0},"7":{"tf":1.4142135623730951}}}}}}}}},"x":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":2,"docs":{"18":{"tf":1.0},"7":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"0":{"tf":1.0}},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"0":{"tf":1.0}}}}}}}}},"l":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.7320508075688772}}}}},"o":{"df":0,"docs":{},"s":{"df":2,"docs":{"17":{"tf":1.0},"18":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"1":{"tf":1.0}}},"df":0,"docs":{}}},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"f":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"20":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":3,"docs":{"0":{"tf":1.0},"19":{"tf":1.7320508075688772},"2":{"tf":1.0}}}}}},"r":{"df":1,"docs":{"2":{"tf":1.0}},"e":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":11,"docs":{"0":{"tf":1.4142135623730951},"10":{"tf":1.0},"12":{"tf":1.4142135623730951},"13":{"tf":1.7320508075688772},"14":{"tf":1.0},"2":{"tf":1.4142135623730951},"4":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}}},"l":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":4,"docs":{"10":{"tf":1.4142135623730951},"12":{"tf":1.0},"4":{"tf":1.0},"5":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"x":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"0":{"tf":1.0}}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":7,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"6":{"tf":1.0},"8":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"t":{"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}},"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}},"u":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"c":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{}}}}}},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":3,"docs":{"10":{"tf":1.0},"12":{"tf":1.4142135623730951},"6":{"tf":1.0}},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"1":{"tf":1.0}}},"df":0,"docs":{}}}}}}},"u":{"df":0,"docs":{},"n":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"2":{"tf":1.0},"20":{"tf":1.0}}}}}}},"d":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"21":{"tf":1.0}}}}}}},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"g":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"12":{"tf":1.0}}}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"0":{"tf":1.0},"20":{"tf":1.4142135623730951}}}}}},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"5":{"tf":1.0}}}}}}},"h":{"a":{"df":0,"docs":{},"r":{"d":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":3,"docs":{"1":{"tf":2.449489742783178},"2":{"tf":1.7320508075688772},"5":{"tf":1.0}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"20":{"tf":1.0}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"p":{"df":2,"docs":{"17":{"tf":1.0},"19":{"tf":1.4142135623730951}}}},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"3":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"h":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":2,"docs":{"21":{"tf":1.0},"8":{"tf":1.0}}}},"t":{"df":1,"docs":{"10":{"tf":1.0}}}},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"p":{"df":0,"docs":{},"s":{":":{"/":{"/":{"d":{"df":0,"docs":{},"o":{"c":{"df":0,"docs":{},"s":{".":{"df":0,"docs":{},"p":{"df":0,"docs":{},"y":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{".":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"/":{"3":{"/":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"a":{"df":0,"docs":{},"l":{"/":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{".":{"df":0,"docs":{},"h":{"df":0,"docs":{},"t":{"df":0,"docs":{},"m":{"df":0,"docs":{},"l":{"df":1,"docs":{"17":{"tf":1.0}}}}}}},"df":0,"docs":{}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"u":{"b":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"/":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"/":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"df":0,"docs":{}}}}}},"df":0,"docs":{}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"'":{"df":1,"docs":{"18":{"tf":1.0}}},".":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}},"df":0,"docs":{}},"/":{"+":{"/":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"0":{"0":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":5,"docs":{"13":{"tf":1.4142135623730951},"15":{"tf":1.0},"19":{"tf":2.23606797749979},"2":{"tf":1.7320508075688772},"9":{"tf":1.7320508075688772}}}},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"16":{"tf":1.0},"2":{"tf":1.0}}}}}}}}}},"n":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"df":1,"docs":{"14":{"tf":1.0}}}}},"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"16":{"tf":1.0}}},"df":0,"docs":{}}}}},"i":{"df":0,"docs":{},"v":{"df":0,"docs":{},"i":{"d":{"df":0,"docs":{},"u":{"df":1,"docs":{"20":{"tf":1.0}}}},"df":0,"docs":{}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":7,"docs":{"1":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.4142135623730951},"21":{"tf":1.0},"7":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.4142135623730951}}}}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"11":{"tf":1.0},"12":{"tf":1.4142135623730951}}}}},"t":{"a":{"df":0,"docs":{},"l":{"df":6,"docs":{"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"15":{"tf":1.0},"17":{"tf":2.23606797749979},"8":{"tf":1.0},"9":{"tf":2.23606797749979}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":3,"docs":{"0":{"tf":1.0},"20":{"tf":1.7320508075688772},"21":{"tf":1.0}}},"df":0,"docs":{}},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"f":{"a":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"n":{"df":2,"docs":{"0":{"tf":1.4142135623730951},"20":{"tf":1.0}}},"v":{"df":1,"docs":{"14":{"tf":1.0}}}}}}},"p":{"df":4,"docs":{"18":{"tf":1.4142135623730951},"7":{"tf":1.4142135623730951},"8":{"tf":1.7320508075688772},"9":{"tf":1.0}},"v":{"4":{"df":3,"docs":{"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}},"df":0,"docs":{}}},"s":{"df":0,"docs":{},"s":{"df":0,"docs":{},"u":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}},"t":{"'":{"df":2,"docs":{"17":{"tf":1.0},"21":{"tf":1.0}}},"df":0,"docs":{}}},"j":{"c":{"2":{"/":{"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{},"s":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}}},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"12":{"tf":1.7320508075688772}}}}}}}},"k":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"p":{"df":1,"docs":{"12":{"tf":1.0}}}}}},"l":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"11":{"tf":1.0},"8":{"tf":1.4142135623730951}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"a":{"d":{"df":3,"docs":{"10":{"tf":1.0},"13":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"19":{"tf":1.0}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"i":{"b":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":2,"docs":{"2":{"tf":1.0},"3":{"tf":2.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"k":{"df":3,"docs":{"11":{"tf":2.0},"2":{"tf":1.0},"4":{"tf":1.0}}},"u":{"df":0,"docs":{},"x":{"df":1,"docs":{"8":{"tf":1.0}}}}},"v":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.0}},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"df":2,"docs":{"15":{"tf":1.0},"21":{"tf":2.23606797749979}}}},"df":0,"docs":{}}}}}}}},"l":{"df":0,"docs":{},"v":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}},"o":{"a":{"d":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"c":{"df":0,"docs":{},"k":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.7320508075688772}}}}}},"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.0}}},"o":{"df":0,"docs":{},"k":{"df":1,"docs":{"18":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"21":{"tf":1.0}}}},"w":{"df":1,"docs":{"20":{"tf":1.4142135623730951}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"18":{"tf":1.0}}}},"p":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}}}}},"m":{"a":{"c":{"df":3,"docs":{"14":{"tf":1.0},"16":{"tf":1.0},"18":{"tf":1.4142135623730951}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}},"df":0,"docs":{}}}},"n":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"20":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"11":{"tf":1.7320508075688772},"4":{"tf":1.0}}}},"t":{"c":{"df":0,"docs":{},"h":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}}},"d":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":3,"docs":{"17":{"tf":1.7320508075688772},"18":{"tf":1.0},"19":{"tf":1.0}},"e":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":2,"docs":{"21":{"tf":1.0},"6":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}},"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"a":{"df":0,"docs":{},"g":{"df":3,"docs":{"13":{"tf":1.0},"14":{"tf":1.0},"20":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"d":{"df":3,"docs":{"10":{"tf":1.4142135623730951},"11":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{}}}},"z":{"df":0,"docs":{},"z":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}}}},"i":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"'":{"df":1,"docs":{"18":{"tf":1.0}}},"df":4,"docs":{"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"17":{"tf":2.0},"18":{"tf":2.0}}}}}},"df":0,"docs":{},"m":{"df":1,"docs":{"20":{"tf":1.0}},"u":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"13":{"tf":1.4142135623730951}}}}},"o":{"d":{"df":0,"docs":{},"e":{"df":1,"docs":{"13":{"tf":1.0}}},"u":{"df":0,"docs":{},"l":{"df":1,"docs":{"12":{"tf":1.7320508075688772}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"20":{"tf":1.0}}}}}}},"r":{"df":0,"docs":{},"e":{"df":5,"docs":{"1":{"tf":1.0},"17":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"6":{"tf":1.0}}}},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"d":{"a":{"df":0,"docs":{},"t":{"a":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}},":":{"2":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":1,"docs":{"8":{"tf":2.6457513110645907}}}}}}}}}},"q":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":7,"docs":{"14":{"tf":2.449489742783178},"16":{"tf":1.7320508075688772},"18":{"tf":1.0},"20":{"tf":1.4142135623730951},"4":{"tf":1.4142135623730951},"8":{"tf":2.23606797749979},"9":{"tf":1.0}},"v":{"3":{".":{"1":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"5":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}}},"s":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":1,"docs":{"9":{"tf":1.0}}}}}},"n":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":3,"docs":{"18":{"tf":1.0},"8":{"tf":1.7320508075688772},"9":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"d":{"df":2,"docs":{"5":{"tf":1.0},"8":{"tf":1.0}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":4,"docs":{"21":{"tf":1.0},"4":{"tf":1.0},"7":{"tf":2.23606797749979},"8":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"10":{"tf":1.0}}}}},"x":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"20":{"tf":1.0}}}}},"n":{"df":1,"docs":{"13":{"tf":1.0}},"e":{"df":1,"docs":{"9":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":6,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}}},"o":{"b":{"df":0,"docs":{},"j":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":2,"docs":{"13":{"tf":1.0},"14":{"tf":1.4142135623730951}}}}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}}},"c":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}},"df":1,"docs":{"9":{"tf":1.4142135623730951}},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"n":{"c":{"df":1,"docs":{"14":{"tf":1.4142135623730951}}},"df":6,"docs":{"1":{"tf":1.0},"10":{"tf":1.0},"16":{"tf":1.0},"18":{"tf":1.4142135623730951},"5":{"tf":1.4142135623730951},"6":{"tf":1.4142135623730951}},"t":{"df":0,"docs":{},"o":{"df":3,"docs":{"10":{"tf":1.0},"11":{"tf":1.0},"5":{"tf":1.0}}}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.0}}}},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"m":{"df":2,"docs":{"13":{"tf":1.0},"2":{"tf":1.0}}},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"s":{"df":0,"docs":{},"x":{"df":1,"docs":{"8":{"tf":1.0}}}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":4,"docs":{"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"6":{"tf":1.0}},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":4,"docs":{"0":{"tf":1.7320508075688772},"1":{"tf":1.0},"2":{"tf":1.0},"3":{"tf":1.0}}}}}}}}}},"p":{"a":{"c":{"df":0,"docs":{},"k":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"17":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":3,"docs":{"10":{"tf":1.0},"12":{"tf":1.0},"6":{"tf":1.0}}}},"i":{"c":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{}}},"r":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"18":{"tf":2.23606797749979}}}}},"df":1,"docs":{"8":{"tf":1.4142135623730951}},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"12":{"tf":1.0}}}}}}}},"h":{"df":0,"docs":{},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"c":{"df":1,"docs":{"0":{"tf":1.0}}},"df":0,"docs":{}}}}},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"17":{"tf":1.0}}}},"l":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":1,"docs":{"17":{"tf":1.0}}}}}}}},"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.4142135623730951}}},"u":{"df":0,"docs":{},"g":{"df":2,"docs":{"10":{"tf":1.0},"12":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"e":{"df":1,"docs":{"6":{"tf":1.0}}},"r":{"df":0,"docs":{},"t":{"df":3,"docs":{"18":{"tf":1.7320508075688772},"6":{"tf":1.0},"8":{"tf":1.4142135623730951}}}},"s":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"l":{"df":3,"docs":{"17":{"tf":1.0},"18":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":2,"docs":{"1":{"tf":1.0},"14":{"tf":1.0}}}},"u":{"df":0,"docs":{},"n":{"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"2":{"tf":1.0}}}}},"df":0,"docs":{}}},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":5,"docs":{"10":{"tf":1.0},"11":{"tf":2.0},"12":{"tf":2.0},"4":{"tf":1.0},"6":{"tf":2.23606797749979}},"s":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":3,"docs":{"13":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}}}}}},"r":{"df":0,"docs":{},"e":{"c":{"a":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"r":{"df":1,"docs":{"6":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"x":{"df":1,"docs":{"18":{"tf":1.7320508075688772}}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}}}}}}},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"o":{"b":{"df":0,"docs":{},"e":{"df":4,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"13":{"tf":2.23606797749979}}}},"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"0":{"tf":1.4142135623730951},"2":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"10":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"i":{"d":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}}},"u":{"b":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":3,"docs":{"14":{"tf":1.0},"18":{"tf":1.0},"20":{"tf":2.23606797749979}}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":2,"docs":{"10":{"tf":1.0},"12":{"tf":1.0}}}}},"w":{"d":{"`":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{":":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{},"}":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{":":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"y":{"df":1,"docs":{"17":{"tf":1.0}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":3,"docs":{"17":{"tf":2.0},"18":{"tf":1.4142135623730951},"19":{"tf":1.4142135623730951}}}}}}}},"q":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}}},"r":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"e":{"a":{"c":{"df":0,"docs":{},"h":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"8":{"tf":1.4142135623730951},"9":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{},"l":{"df":1,"docs":{"21":{"tf":1.0}}},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":1,"docs":{"5":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":6,"docs":{"16":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.4142135623730951},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0}}}}},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}}}},"l":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"s":{"df":2,"docs":{"13":{"tf":1.7320508075688772},"9":{"tf":2.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":3,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":2.0}}}}},"p":{"df":0,"docs":{},"l":{"a":{"c":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"14":{"tf":1.0},"20":{"tf":1.4142135623730951}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"8":{"tf":1.0}}}}}}}}}},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":4,"docs":{"10":{"tf":1.7320508075688772},"13":{"tf":1.0},"20":{"tf":1.0},"8":{"tf":1.0}}}}}},"s":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"df":0,"docs":{}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"j":{"4":{"5":{"df":2,"docs":{"12":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":1,"docs":{"18":{"tf":1.0}}}},"n":{"df":10,"docs":{"0":{"tf":1.0},"13":{"tf":2.449489742783178},"14":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":2.449489742783178}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.7320508075688772}},"u":{"df":0,"docs":{},"p":{"df":1,"docs":{"9":{"tf":1.7320508075688772}}}}}}}},"s":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"14":{"tf":1.0}}},"p":{"df":0,"docs":{},"l":{"df":2,"docs":{"0":{"tf":1.0},"13":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"0":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}}}},"df":1,"docs":{"12":{"tf":1.0}},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"8":{"tf":1.0}}}},"g":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"7":{"tf":1.0}}}}}}},"m":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}},"df":0,"docs":{}},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}},"t":{"df":1,"docs":{"21":{"tf":1.0}}}},"p":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"7":{"tf":1.4142135623730951}}}}}},"t":{"df":8,"docs":{"15":{"tf":1.0},"16":{"tf":3.1622776601683795},"18":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.4142135623730951},"7":{"tf":2.0},"8":{"tf":1.0},"9":{"tf":1.0}},"u":{"df":0,"docs":{},"p":{"df":11,"docs":{"10":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.0},"14":{"tf":1.0},"4":{"tf":1.4142135623730951},"5":{"tf":1.7320508075688772},"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"h":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.0}}}},"w":{"df":0,"docs":{},"n":{"df":1,"docs":{"11":{"tf":1.0}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":2,"docs":{"10":{"tf":1.0},"8":{"tf":1.0}}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"l":{"df":2,"docs":{"0":{"tf":2.0},"2":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"13":{"tf":1.0}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"2":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"17":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"f":{"df":0,"docs":{},"t":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}},"u":{"df":0,"docs":{},"r":{"c":{"df":2,"docs":{"18":{"tf":1.0},"2":{"tf":1.0}}},"df":0,"docs":{}}}},"p":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":4,"docs":{"16":{"tf":1.4142135623730951},"18":{"tf":1.0},"2":{"tf":1.0},"7":{"tf":1.0}},"i":{"df":2,"docs":{"7":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"e":{"d":{"df":1,"docs":{"0":{"tf":1.0}}},"df":0,"docs":{}}}},"t":{"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":16,"docs":{"0":{"tf":2.0},"1":{"tf":2.0},"10":{"tf":1.0},"12":{"tf":1.0},"14":{"tf":2.0},"16":{"tf":1.7320508075688772},"17":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.7320508075688772},"21":{"tf":1.7320508075688772},"3":{"tf":1.7320508075688772},"5":{"tf":1.4142135623730951},"6":{"tf":1.0},"7":{"tf":2.0},"8":{"tf":2.6457513110645907},"9":{"tf":1.4142135623730951}},"i":{"df":0,"docs":{},"z":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"'":{"df":1,"docs":{"16":{"tf":1.0}}},".":{"df":0,"docs":{},"i":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"_":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":1,"docs":{"19":{"tf":1.0}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}}}}}}},"l":{"df":2,"docs":{"8":{"tf":1.0},"9":{"tf":1.7320508075688772}}}},"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}},"n":{"d":{"a":{"df":0,"docs":{},"r":{"d":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"7":{"tf":1.0},"8":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.0}}},"i":{"c":{"_":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":1,"docs":{"7":{"tf":1.0}}},"df":0,"docs":{}},"u":{"df":1,"docs":{"14":{"tf":1.4142135623730951}}}}},"df":2,"docs":{"11":{"tf":2.0},"4":{"tf":1.0}},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"8":{"tf":1.0}}},"r":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"11":{"tf":1.7320508075688772},"4":{"tf":1.0}}}},"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.4142135623730951}}}}},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"_":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"=":{"'":{"df":0,"docs":{},"{":{"\"":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"18":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":1,"docs":{"18":{"tf":1.4142135623730951}}}}}}},"df":0,"docs":{}}},"df":2,"docs":{"18":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"u":{"b":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}}},"c":{"df":0,"docs":{},"h":{"df":3,"docs":{"0":{"tf":1.0},"1":{"tf":1.0},"16":{"tf":1.0}}}},"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":7,"docs":{"0":{"tf":1.0},"16":{"tf":1.0},"2":{"tf":1.0},"21":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.4142135623730951},"9":{"tf":1.4142135623730951}}}}}}}},"w":{"d":{"/":{"df":0,"docs":{},"j":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":4,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.7320508075688772},"4":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"c":{"df":0,"docs":{},"h":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}}}},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":2,"docs":{"17":{"tf":1.0},"7":{"tf":1.0}}}}}}}},"t":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"15":{"tf":1.4142135623730951},"4":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"2":{"tf":1.0},"5":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":3,"docs":{"18":{"tf":1.0},"2":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}}},"df":1,"docs":{"7":{"tf":1.4142135623730951}},"e":{"c":{"df":0,"docs":{},"h":{"df":0,"docs":{},"n":{"df":0,"docs":{},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":1,"docs":{"2":{"tf":1.0}}}}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":5,"docs":{"14":{"tf":1.4142135623730951},"15":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":3.7416573867739413}}}}}}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"1":{"tf":1.0}}}}},"h":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":1,"docs":{"10":{"tf":1.0}}}},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"g":{"df":0,"docs":{},"h":{"df":2,"docs":{"6":{"tf":1.4142135623730951},"8":{"tf":1.0}},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}}}}}}},"u":{"df":0,"docs":{},"m":{"b":{"df":0,"docs":{},"v":{"7":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":7,"docs":{"0":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"5":{"tf":1.0}},"r":{"df":1,"docs":{"13":{"tf":1.0}}}}}},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"l":{"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":3,"docs":{"0":{"tf":1.0},"12":{"tf":1.0},"9":{"tf":1.0}}}},"p":{"df":0,"docs":{},"i":{"c":{"df":2,"docs":{"14":{"tf":1.4142135623730951},"18":{"tf":1.0}}},"df":0,"docs":{}}}},"r":{"a":{"c":{"df":0,"docs":{},"k":{"df":1,"docs":{"9":{"tf":1.0}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}}}}},"df":0,"docs":{}},"w":{"df":0,"docs":{},"o":{"df":4,"docs":{"0":{"tf":1.7320508075688772},"16":{"tf":1.4142135623730951},"2":{"tf":1.0},"6":{"tf":1.0}}}}},"u":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":1,"docs":{"7":{"tf":1.4142135623730951}}}}}}},"d":{"df":0,"docs":{},"p":{"df":1,"docs":{"21":{"tf":1.0}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"t":{"df":1,"docs":{"20":{"tf":1.0}}}},"s":{"df":0,"docs":{},"u":{"c":{"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"18":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"u":{"df":0,"docs":{},"s":{"df":1,"docs":{"6":{"tf":1.0}}}},"w":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}}}},"p":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"/":{"d":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":0,"docs":{},"n":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"s":{"df":1,"docs":{"1":{"tf":1.0}}}}}}}}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"d":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}},"df":2,"docs":{"0":{"tf":1.7320508075688772},"11":{"tf":1.0}},"g":{"df":0,"docs":{},"r":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":2,"docs":{"12":{"tf":1.4142135623730951},"4":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"s":{"a":{"df":0,"docs":{},"g":{"df":7,"docs":{"15":{"tf":1.4142135623730951},"16":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.7320508075688772},"19":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0}}}},"b":{"df":2,"docs":{"12":{"tf":1.7320508075688772},"7":{"tf":1.0}}},"df":18,"docs":{"0":{"tf":1.4142135623730951},"10":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"14":{"tf":1.4142135623730951},"16":{"tf":1.4142135623730951},"17":{"tf":1.4142135623730951},"18":{"tf":1.0},"19":{"tf":1.0},"2":{"tf":1.4142135623730951},"20":{"tf":2.0},"3":{"tf":1.0},"5":{"tf":1.0},"6":{"tf":1.0},"7":{"tf":1.4142135623730951},"8":{"tf":2.449489742783178},"9":{"tf":1.0}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"0":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":5,"docs":{"12":{"tf":1.7320508075688772},"17":{"tf":1.0},"18":{"tf":1.4142135623730951},"19":{"tf":1.4142135623730951},"20":{"tf":1.0}}}}}},"v":{"2":{"df":1,"docs":{"11":{"tf":1.0}}},"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"u":{"df":2,"docs":{"16":{"tf":1.0},"18":{"tf":2.449489742783178}}}},"r":{"df":0,"docs":{},"i":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":2,"docs":{"0":{"tf":1.0},"19":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"u":{"df":1,"docs":{"2":{"tf":1.7320508075688772}}}}}}},"df":1,"docs":{"8":{"tf":2.449489742783178}},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":1,"docs":{"17":{"tf":1.0}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":2,"docs":{"14":{"tf":1.7320508075688772},"4":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"8":{"tf":1.4142135623730951},"9":{"tf":1.0}}}}}}}},"i":{"a":{"df":3,"docs":{"1":{"tf":1.4142135623730951},"6":{"tf":1.7320508075688772},"8":{"tf":1.0}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"/":{"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"l":{"df":3,"docs":{"11":{"tf":1.7320508075688772},"17":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"17":{"tf":1.0}}},"y":{"/":{"df":0,"docs":{},"s":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":0,"docs":{},"s":{"/":{"a":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":1,"docs":{"17":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":4,"docs":{"16":{"tf":1.0},"17":{"tf":1.0},"20":{"tf":1.0},"9":{"tf":1.0}}}}},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"v":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":1,"docs":{"0":{"tf":1.0}}}},"df":0,"docs":{},"k":{"df":0,"docs":{},"i":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}},"l":{"d":{"c":{"a":{"df":0,"docs":{},"r":{"d":{"df":1,"docs":{"14":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"n":{"d":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}}}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":1,"docs":{"8":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"17":{"tf":1.0}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"19":{"tf":1.0}}}}}}}}},"x":{"df":1,"docs":{"7":{"tf":1.0}}}}},"title":{"root":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}}}}},"b":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"8":{"tf":1.0}}}}}}},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"d":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{}}}}},"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"n":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"15":{"tf":1.0},"4":{"tf":1.0}}}}}}}}},"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"13":{"tf":1.0}}}}}}}},"f":{"df":0,"docs":{},"u":{"df":1,"docs":{"12":{"tf":1.0}}}},"h":{"c":{"df":0,"docs":{},"p":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"3":{"tf":1.0}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}}}}},"l":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":1,"docs":{"10":{"tf":1.0}}}}},"df":0,"docs":{}}},"h":{"a":{"df":0,"docs":{},"r":{"d":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":1,"docs":{"19":{"tf":1.0}}}},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"17":{"tf":1.0}}}},"df":0,"docs":{}}}}},"l":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"3":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"k":{"df":1,"docs":{"11":{"tf":1.0}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"df":1,"docs":{"21":{"tf":1.0}}}},"df":0,"docs":{}}}}}}}}},"m":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"11":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"df":0,"docs":{}}}},"q":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":2,"docs":{"14":{"tf":1.0},"8":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":1,"docs":{"7":{"tf":1.0}}}}}}}}},"o":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":1,"docs":{"0":{"tf":1.0}}}}}}}}}},"p":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"6":{"tf":1.0}}}}}}},"r":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}},"u":{"df":0,"docs":{},"p":{"df":1,"docs":{"5":{"tf":1.0}}}}}},"t":{"df":1,"docs":{"11":{"tf":1.0}},"o":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}}}},"w":{"d":{"/":{"df":0,"docs":{},"j":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"t":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"15":{"tf":1.0},"4":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"20":{"tf":1.0}}}}}}}}}},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"u":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"s":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":1,"docs":{"14":{"tf":1.0}}}}}}},"i":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}}}}}}}}},"lang":"English","pipeline":["trimmer","stopWordFilter","stemmer"],"ref":"id","version":"0.9.5"},"results_options":{"limit_results":30,"teaser_word_count":30},"search_options":{"bool":"OR","expand":true,"fields":{"body":{"boost":1},"breadcrumbs":{"boost":1},"title":{"boost":2}}}}); \ No newline at end of file diff --git a/searchindex.json b/searchindex.json new file mode 100644 index 0000000000..1429b55548 --- /dev/null +++ b/searchindex.json @@ -0,0 +1 @@ +{"doc_urls":["overview.html#overview","overview.html#hardware","overview.html#applications","overview.html#library-documentation","setup.html#table-of-contents","setup.html#setup","setup.html#power","setup.html#network-and-dhcp","setup.html#mqtt-broker","setup.html#building","setup.html#flashing","setup.html#st-link-virtual-mass-storage","setup.html#dfu-upload","setup.html#swdjtag-firmware-development","setup.html#verify-mqtt-connection","usage.html#table-of-contents","usage.html#miniconf-run-time-settings","usage.html#installation","usage.html#usage","usage.html#iir-configuration","usage.html#telemetry","usage.html#livestream"],"index":{"documentStore":{"docInfo":{"0":{"body":61,"breadcrumbs":2,"title":1},"1":{"body":44,"breadcrumbs":2,"title":1},"10":{"body":44,"breadcrumbs":2,"title":1},"11":{"body":48,"breadcrumbs":6,"title":5},"12":{"body":79,"breadcrumbs":3,"title":2},"13":{"body":65,"breadcrumbs":4,"title":3},"14":{"body":69,"breadcrumbs":4,"title":3},"15":{"body":10,"breadcrumbs":3,"title":2},"16":{"body":65,"breadcrumbs":5,"title":4},"17":{"body":56,"breadcrumbs":2,"title":1},"18":{"body":136,"breadcrumbs":2,"title":1},"19":{"body":27,"breadcrumbs":3,"title":2},"2":{"body":95,"breadcrumbs":2,"title":1},"20":{"body":104,"breadcrumbs":2,"title":1},"21":{"body":43,"breadcrumbs":2,"title":1},"3":{"body":15,"breadcrumbs":3,"title":2},"4":{"body":21,"breadcrumbs":3,"title":2},"5":{"body":26,"breadcrumbs":2,"title":1},"6":{"body":47,"breadcrumbs":2,"title":1},"7":{"body":68,"breadcrumbs":3,"title":2},"8":{"body":145,"breadcrumbs":3,"title":2},"9":{"body":115,"breadcrumbs":2,"title":1}},"docs":{"0":{"body":"Stabilizer is a flexible tool designed for quantum physics experiments. Fundamentally, Stabilizer samples up two two analog input signals, performs digital signal processing internally, and then generates up to two output signals. Stabilizer firmware supports run-time configuration of the internal signal processing algorithms, which allows for a wide variety of experimental uses, such as digital filter design or implementation of digital lockin schemes. This documentation is intended to bring a user up to speed on using Stabilizer and the firmware provided by QUARTIQ and contributors.","breadcrumbs":"Overview » Overview","id":"0","title":"Overview"},"1":{"body":"The Stabilizer hardware is managed via a separate repository . Some information about the hardware is gathered in the Stabilizer wiki . More detailed data, measurements, discussions, and tests have been posted in the Stabilizer issue tracker . Hardware Stabilizer can be extended and coupled with a mezzanine board. One such mezzanine is the DDS upconversion/downconversion frontend Pounder. The Pounder hardware is managed via a separate repository , again with wiki and issue tracker .","breadcrumbs":"Overview » Hardware","id":"1","title":"Hardware"},"10":{"body":"Firmware can be loaded onto stabilizer using one of the three following methods. Note: All methods require access to the circuit board. Pulling the device from a crate always requires power removal as there are sensitive leads and components on both sides of the board that may come into contact with adjacent front panels. Every access to the board also requires proper ESD precautions. Never hot-plug the device or the probe.","breadcrumbs":"Setup » Flashing","id":"10","title":"Flashing"},"11":{"body":"If a ST-Link V2-1 or later is available this method can be used. Power down the device, remove it from the crate, and connect the SWD/JTAG probe as shown below to the device and to your computer. JTAG Connection Power up the device and copy dual-iir.bin onto the virtual mass storage ST-Link drive that has appeared on your computer. Power down the device before removing the probe, inserting it into the crate and applying power again.","breadcrumbs":"Setup » ST-Link virtual mass storage","id":"11","title":"ST-Link virtual mass storage"},"12":{"body":"If an SWD/JTAG probe is not available, you can flash firmware using only a micro USB cable plugged in to the front of Stabilizer, a DFU utility, and a jumper to activate the bootloader. Install the DFU USB tool dfu-util Remove power Then carefully remove the module from the crate to gain access to the board Short JC2/BOOT with the jumper Connect your computer to the Micro USB connector below/left of the RJ45 connector on the front panel Insert the module into the crate Then power it Perform the Device Firmware Upgrade (DFU) dfu-util -a 0 -s 0x08000000:leave -D dual-iir.bin To keep the device from entering the bootloader remove power, pull the board from the crate, remove the JC2/BOOT jumper, insert the module into the crate, and power it again","breadcrumbs":"Setup » DFU Upload","id":"12","title":"DFU Upload"},"13":{"body":"To observe logging messages or to develop and debug applications a SWD/JTAG probe is required. To use a compatible probe with probe-run connect it as described above . Install probe-run cargo install probe-run Build and run firmware on the device # Bash\nBROKER=\"10.34.16.1\" cargo run --release --bin dual-iir # Powershell\n$Env:BROKER='10.34.16.1'; cargo run --release --bin dual-iir When using debug (non --release) mode, decrease the sampling frequency significantly. The added error checking code and missing optimizations may lead to the application missing timer deadlines and panicing.","breadcrumbs":"Setup » SWD/JTAG Firmware Development","id":"13","title":"SWD/JTAG Firmware Development"},"14":{"body":"Once your MQTT broker and Stabilizer are both running, verify that the application connects to the broker. A Stabilizer application on a device is reporting its status on the following topic dt/sinara/dual-iir/+/alive The + is a wildcard matching the unique MAC address of the device (e.g. aa-bb-cc-00-11-22). Download MQTT-Explorer to observe which topics have been posted to the Broker. MQTT Explorer Configuration Note: In MQTT explorer, use the same broker address that you used when building the firmware. In addition to the alive status, telemetry messages are published at regular intervals when Stabilizer has connected to the broker. Once you observe incoming telemetry, Stabilizer is operational.","breadcrumbs":"Setup » Verify MQTT connection","id":"14","title":"Verify MQTT connection"},"15":{"body":"Miniconf Run-time Settings Installation Usage IIR Configuration Telemetry Livestream","breadcrumbs":"Usage » Table of Contents","id":"15","title":"Table of Contents"},"16":{"body":"Stabilizer supports run-time settings configuration using MQTT. Settings can be stored in the MQTT broker so that they are automatically applied whenever Stabilizer reboots and connects. This is referred to as \"retained\" settings. Broker implementations may optionally store these retained settings as well such that they will be reapplied between restarts of the MQTT broker. Settings are specific to a device. Any settings configured for one Stabilizer will not be applied to another. Disambiguation of devices is done by using Stabilizer's MAC address. Settings are specific to an application. If two identical settings exist for two different applications, each application maintains its own independent value.","breadcrumbs":"Usage » Miniconf Run-time Settings","id":"16","title":"Miniconf Run-time Settings"},"17":{"body":"Install the Miniconf configuration utilities using a virtual environment: python -m venv --system-site-packages vpy # Refer to https://docs.python.org/3/tutorial/venv.html for more information on activating the\n# virtual environment. This command is different on different platforms.\n./vpy/Scripts/activate Next, install prerequisite packages python -m pip install -e py To use miniconf, execute it as follows: python -m miniconf --help Miniconf also exposes a programmatic Python API, so it's possible to write automation scripting of Stabilizer as well.","breadcrumbs":"Usage » Installation","id":"17","title":"Installation"},"18":{"body":"The Miniconf Python utility utilizes a unique \"device prefix\". The device prefix is always of the form dt/sinara//, where is the name of the application and is the MAC address of the device, formatted with delimiting dashes, and lower case letters. Settings have a path and a value being configured. The value parameter is JSON-encoded data and the path value is a path-like string. As an example, for configuring dual-iir's stream_target, the following information would be used: path = stream_target value = {\"ip\": [192, 168, 0, 1], \"port\": 4000} python -m miniconf --broker 10.34.16.1 dt/sinara/dual-iir/00-11-22-33-44-55 stream_target='{\"ip\": [10, 34, 16, 123], \"port\": 4000}' Where `10.34.16.1` is the MQTT broker address that matches the one configured in the source code and `10.34.16.123` and `4000` are the desire stream target IP and port. The prefix can be found for a specific device by looking at the topic on which telemetry that is being published. It can also be automatically discovered if there is only one device alive. Refer to the application documentation for the exact settings and values exposed for each application. The rules for constructing path values are documented in miniconf's documentation Refer to the documentation for Miniconf for a description of the possible error codes that Miniconf may return if the settings update was unsuccessful.","breadcrumbs":"Usage » Usage","id":"18","title":"Usage"},"19":{"body":"For the dual-iir application, a Python utility has been written to easily configure the IIR filters for a variety of filtering and control applications. Then, use the built-in help to learn how the utility can automatically configure your IIR filters for you: python -m stabilizer.iir_coefficients --help","breadcrumbs":"Usage » IIR Configuration","id":"19","title":"IIR Configuration"},"2":{"body":"This firmware offers a library of hardware and software functionality targeting the use of the Stabilizer hardware in various digital signal processing applications commonly occurring in Quantum Technology. It provides abstractions over the fast analog inputs and outputs, time stamping, Pounder DDS interfaces and a collection of tailored and optimized digital signal processing algorithms (IIR, FIR, Lockin, PLL, reciprocal PLL, Unwrapper, Lowpass, Cosine-Sine, Atan2) in the idsp crate . An application, which is the compiled firmware running on the device, can compose and configure these hardware and software components to implement different use cases. Several applications are provided by default. The following documentation links contain the application-specific settings and telemetry information. Application Description dual-iir Two channel biquad IIR filter lockin Lockin amplifier support various various reference sources","breadcrumbs":"Overview » Applications","id":"2","title":"Applications"},"20":{"body":"Stabilizer applications publish telemetry utilizes MQTT for managing run-time settings configurations as well as live telemetry reporting. Telemetry is defined as low rate, general health information. It is not intended for high throughput or efficiency. Telemetry is generally used to determine that the device is functioning nominally. Stabilizer applications publish telemetry over MQTT at a set rate. Telemetry data units are defined by the application. All telemetry is reported using standard JSON format. Telemetry is intended for low-bandwidth monitoring. It is not intended to transfer large amounts of data and uses a minimal amount of bandwidth. Telemetry is published using \"best effort\" semantics - individual messages may be dropped or Stabilizer may fail to publish telemetry due to internal buffering requirements. In its most basic form, telemetry publishes the latest ADC input voltages, DAC output voltages, and digital input states. Refer to the respective application documentation for more information on telemetry.","breadcrumbs":"Usage » Telemetry","id":"20","title":"Telemetry"},"21":{"body":"Stabilizer supports livestream capabilities for streaming real-time data over UDP. The livestream is intended to be a high-bandwidth mechanism to transfer large amounts of data from Stabilizer to a host computer for further analysis. Livestreamed data is sent with \"best effort\" - it's possible that data may be lost either due to network congestion or by Stabilizer. Refer to the the respective application documentation for more information.","breadcrumbs":"Usage » Livestream","id":"21","title":"Livestream"},"3":{"body":"The Stabilizer library docs contain documentation for common components used in all Stabilizer applications. The Stabilizer library documentation is available here .","breadcrumbs":"Overview » Library Documentation","id":"3","title":"Library Documentation"},"4":{"body":"Setup Power Network and DHCP MQTT Broker Building Flashing ST-Link virtual mass storage DFU Upload SWD/JTAG Firmware Development Verify MQTT connection","breadcrumbs":"Setup » Table of Contents","id":"4","title":"Table of Contents"},"5":{"body":"The Stabilizer firmware consists of different applications tailored to different use cases. Only one application can run on the device at a given time. After receiving the Stabilizer hardware, you will need to choose, build, and flash one of the applications onto the device.","breadcrumbs":"Setup » Setup","id":"5","title":"Setup"},"6":{"body":"Power Stabilizer through exactly one of the following mechanisms. Via the backside 12V barrel connector Via Power-over-Ethernet using a PoE capable switch (802.3af or preferrably 802.3at) and the RJ45 front panel port Via an EEM connection to Kasli Note: Applying power through more than one mechanism may lead to damage. Ensure the two unused methods are not connected or explicitly disabled.","breadcrumbs":"Setup » Power","id":"6","title":"Power"},"7":{"body":"Stabilizer supports 10Base-T or 100Base-T with Auto MDI-X. Stabilizer uses DHCP to obtain its network configuration information. Ensure there is a properly configured DHCP server running on the network segment that Stabilizer is connected to. Alternatively, a static IP can be enforced in the firmware build command by specifying the environmental variable STATIC_IP analogous to how a specific broker IP is set. Note: If Stabilizer is connected directly to an Ubuntu system (for example using a USB-Ethernet dongle) you can set the IPv4 settings of this Ethernet connection in the Ubuntu network settings to \"Shared to other computers\". This will start and configure a DHCP server for this connection.","breadcrumbs":"Setup » Network and DHCP","id":"7","title":"Network and DHCP"},"8":{"body":"Stabilizer requires an MQTT broker that supports MQTTv5. The MQTT broker is used to distribute and exchange elemetry data and to view/change application settings. The broker must be reachable by both the host-side applications used to interact with the application on Stabilizer and by the application running on Stabilizer. Determine the IPv4 address of the broker as seen from the network Stabilizer is connected to. The broker IP address must be stable. It will be used later during firmware build. The broker must be reachable on port 1883 on that IP address. Firewalls between Stabilizer and the broker may need to be configured to allow connections from Stabilizer to that port and IP address. Mosquitto has been used as a MQTT broker during development, but any MQTTv5 broker without authentication or encryption will likely work. Note: Mosquitto version 1 only supports MQTTv3.1. If using Mosquitto, ensure version 2.0.0 or later is used. We recommend running Mosquitto through Docker to easily run it on Windows, Linux, and OSX. After docker has been installed, run the following command from the stabilizer repository to create a container named mosquitto that can be stopped and started easily via docker: # Bash\ndocker run -p 1883:1883 --name mosquitto -v `pwd`/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2 # Powershell\ndocker run -p 1883:1883 --name mosquitto -v ${pwd}/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2","breadcrumbs":"Setup » MQTT Broker","id":"8","title":"MQTT Broker"},"9":{"body":"Get and install rustup and use it to install a current stable Rust toolchain. Stabilizer tracks stable Rust. The minimum supported Rust version (MSRV) is specified in the manifest (Cargo.toml). Install target support rustup target add thumbv7em-none-eabihf Install cargo-binutils cargo install cargo-binutils\nrustup component add llvm-tools-preview Clone or download the firmware git clone https://github.com/quartiq/stabilizer\ncd stabilizer Build firmware specifying the MQTT broker IP. Replace 10.34.16.1 by the stable and reachable broker IPv4 address determined above. # Bash\nBROKER=\"10.34.16.1\" cargo build --release # Powershell\n# Note: This sets the broker for all future builds as well.\n$env:BROKER='10.34.16.1'; cargo build --release Extract the application binary (substitute dual-iir below with the desired application name) # Bash\nBROKER=\"10.34.16.1\" cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin # Powershell\n$env:BROKER='10.34.16.1'; cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin","breadcrumbs":"Setup » Building","id":"9","title":"Building"}},"length":22,"save":true},"fields":["title","body","breadcrumbs"],"index":{"body":{"root":{"0":{"0":{"df":1,"docs":{"14":{"tf":1.0}}},"df":2,"docs":{"12":{"tf":1.0},"18":{"tf":1.0}},"x":{"0":{"8":{"0":{"0":{"0":{"0":{"0":{"0":{":":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"v":{"df":1,"docs":{"12":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}},"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"2":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":2,"docs":{"18":{"tf":1.4142135623730951},"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"0":{"b":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"b":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}},"df":1,"docs":{"18":{"tf":1.0}}},"1":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}},"2":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{},"v":{"df":1,"docs":{"6":{"tf":1.0}}}},"6":{"8":{"df":1,"docs":{"18":{"tf":1.0}}},"df":1,"docs":{"18":{"tf":1.0}}},"8":{"8":{"3":{":":{"1":{"8":{"8":{"3":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"9":{"2":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":3,"docs":{"11":{"tf":1.0},"18":{"tf":1.0},"8":{"tf":1.0}}},"2":{".":{"0":{".":{"0":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"2":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}},"df":0,"docs":{}},"3":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"4":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"4":{"0":{"0":{"0":{"df":1,"docs":{"18":{"tf":1.7320508075688772}}},"df":0,"docs":{}},"df":0,"docs":{}},"4":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"5":{"5":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"8":{"0":{"2":{".":{"3":{"a":{"df":0,"docs":{},"f":{"df":1,"docs":{"6":{"tf":1.0}}},"t":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"a":{"a":{"df":1,"docs":{"14":{"tf":1.0}}},"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"c":{"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"10":{"tf":1.4142135623730951},"12":{"tf":1.0}}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":2,"docs":{"12":{"tf":1.0},"17":{"tf":1.0}}}}}},"d":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"d":{"df":1,"docs":{"9":{"tf":1.4142135623730951}},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"14":{"tf":1.0}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":5,"docs":{"14":{"tf":1.4142135623730951},"16":{"tf":1.0},"18":{"tf":2.0},"8":{"tf":2.0},"9":{"tf":1.0}}}}}}},"df":1,"docs":{"13":{"tf":1.0}},"j":{"a":{"c":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{},"g":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"1":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0}}}}},"df":0,"docs":{}},"l":{"df":0,"docs":{},"g":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.0}}}}}}}}},"i":{"df":0,"docs":{},"v":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":2,"docs":{"0":{"tf":1.0},"8":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"7":{"tf":1.0}}}}}},"w":{"a":{"df":0,"docs":{},"y":{"df":2,"docs":{"10":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.4142135623730951},"21":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":1,"docs":{"2":{"tf":1.0}}}}}}}},"n":{"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"7":{"tf":1.0}}}},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":1,"docs":{"21":{"tf":1.0}}}}}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"17":{"tf":1.0}}},"p":{"df":1,"docs":{"18":{"tf":1.0}},"e":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}},"l":{"df":0,"docs":{},"i":{"c":{"df":12,"docs":{"13":{"tf":1.4142135623730951},"14":{"tf":1.4142135623730951},"16":{"tf":1.7320508075688772},"18":{"tf":1.7320508075688772},"19":{"tf":1.4142135623730951},"2":{"tf":2.449489742783178},"20":{"tf":2.0},"21":{"tf":1.0},"3":{"tf":1.0},"5":{"tf":1.7320508075688772},"8":{"tf":2.0},"9":{"tf":1.4142135623730951}}},"df":3,"docs":{"11":{"tf":1.0},"16":{"tf":1.4142135623730951},"6":{"tf":1.0}}}}}},"t":{"a":{"df":0,"docs":{},"n":{"2":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"o":{"df":1,"docs":{"7":{"tf":1.0}},"m":{"a":{"df":0,"docs":{},"t":{"df":3,"docs":{"16":{"tf":1.0},"18":{"tf":1.0},"19":{"tf":1.0}}}},"df":1,"docs":{"17":{"tf":1.0}}}}}},"v":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":3,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"3":{"tf":1.0}}}}},"df":0,"docs":{}}},"b":{"a":{"c":{"df":0,"docs":{},"k":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"d":{"df":1,"docs":{"6":{"tf":1.0}}},"df":0,"docs":{}}}}},"df":0,"docs":{},"n":{"d":{"df":0,"docs":{},"w":{"df":0,"docs":{},"i":{"d":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":2,"docs":{"20":{"tf":1.4142135623730951},"21":{"tf":1.0}}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"s":{"df":0,"docs":{},"h":{"df":3,"docs":{"13":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"i":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{}}}},"b":{"df":1,"docs":{"14":{"tf":1.0}}},"df":0,"docs":{},"e":{"df":1,"docs":{"18":{"tf":1.4142135623730951}},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"11":{"tf":1.0}}}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"/":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.0}}}}}}},"df":2,"docs":{"11":{"tf":1.0},"9":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":2,"docs":{"16":{"tf":1.0},"8":{"tf":1.0}}}}}}}},"i":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"9":{"tf":1.7320508075688772}}}}},"df":2,"docs":{"13":{"tf":1.4142135623730951},"9":{"tf":1.4142135623730951}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}}},"q":{"df":0,"docs":{},"u":{"a":{"d":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"o":{"a":{"df":0,"docs":{},"r":{"d":{"df":3,"docs":{"1":{"tf":1.0},"10":{"tf":1.7320508075688772},"12":{"tf":1.4142135623730951}}},"df":0,"docs":{}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"t":{"df":0,"docs":{},"h":{"df":3,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"8":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"0":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"=":{"\"":{"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":7,"docs":{"14":{"tf":2.23606797749979},"16":{"tf":1.7320508075688772},"18":{"tf":1.4142135623730951},"4":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":3.1622776601683795},"9":{"tf":1.7320508075688772}}}}}}},"u":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"20":{"tf":1.0}}}}}},"i":{"df":0,"docs":{},"l":{"d":{"df":7,"docs":{"13":{"tf":1.0},"14":{"tf":1.0},"4":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":2.23606797749979}}},"df":0,"docs":{},"t":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"c":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"12":{"tf":1.0}}}},"df":0,"docs":{},"p":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"21":{"tf":1.0},"6":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"12":{"tf":1.0}}}}}}}},"g":{"df":0,"docs":{},"o":{".":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"df":2,"docs":{"13":{"tf":1.7320508075688772},"9":{"tf":2.6457513110645907}}}}},"s":{"df":0,"docs":{},"e":{"df":3,"docs":{"18":{"tf":1.0},"2":{"tf":1.0},"5":{"tf":1.0}}}}},"c":{"df":1,"docs":{"14":{"tf":1.0}}},"d":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"k":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":1,"docs":{"5":{"tf":1.0}}}}}},"i":{"df":0,"docs":{},"r":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}}},"df":0,"docs":{}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}},"o":{"d":{"df":0,"docs":{},"e":{"df":2,"docs":{"13":{"tf":1.0},"18":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}},"df":0,"docs":{}}}},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"10":{"tf":1.0}}},"m":{"a":{"df":0,"docs":{},"n":{"d":{"df":3,"docs":{"17":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"3":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"2":{"tf":1.0}}}}}}},"p":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.0}}}},"o":{"df":0,"docs":{},"n":{"df":4,"docs":{"10":{"tf":1.0},"2":{"tf":1.0},"3":{"tf":1.0},"9":{"tf":1.0}}},"s":{"df":1,"docs":{"2":{"tf":1.0}}}},"u":{"df":0,"docs":{},"t":{"df":4,"docs":{"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"21":{"tf":1.0},"7":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":11,"docs":{"0":{"tf":1.0},"14":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"17":{"tf":1.0},"18":{"tf":1.7320508075688772},"19":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.0},"7":{"tf":1.7320508075688772},"8":{"tf":1.0}}}}}}},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"21":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":9,"docs":{"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"13":{"tf":1.0},"14":{"tf":1.7320508075688772},"16":{"tf":1.0},"4":{"tf":1.0},"6":{"tf":1.4142135623730951},"7":{"tf":2.0},"8":{"tf":1.4142135623730951}},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"12":{"tf":1.4142135623730951},"6":{"tf":1.0}}}}}},"df":0,"docs":{}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"5":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"u":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}}}}},"t":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"2":{"tf":1.0},"3":{"tf":1.0},"8":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"15":{"tf":1.0},"4":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"l":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"11":{"tf":1.0}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"2":{"tf":1.0}}}}},"u":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"r":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":4,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":2.0},"2":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}}},"u":{"df":0,"docs":{},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}}},"d":{"a":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}},"s":{"df":0,"docs":{},"h":{"df":1,"docs":{"18":{"tf":1.0}}}},"t":{"a":{"df":5,"docs":{"1":{"tf":1.0},"18":{"tf":1.0},"20":{"tf":1.4142135623730951},"21":{"tf":2.0},"8":{"tf":1.0}}},"df":0,"docs":{}}},"d":{"df":2,"docs":{"1":{"tf":1.0},"2":{"tf":1.0}}},"df":1,"docs":{"12":{"tf":1.0}},"e":{"a":{"d":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"13":{"tf":1.0}}}}}},"df":0,"docs":{}},"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.4142135623730951}}}}},"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"s":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{},"f":{"a":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}}},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"s":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"b":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":2,"docs":{"18":{"tf":1.0},"2":{"tf":1.0}}}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"n":{"df":1,"docs":{"0":{"tf":1.4142135623730951}}}},"r":{"df":2,"docs":{"18":{"tf":1.0},"9":{"tf":1.0}}}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"1":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"20":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":3,"docs":{"13":{"tf":1.4142135623730951},"4":{"tf":1.0},"8":{"tf":1.0}}}}}},"i":{"c":{"df":10,"docs":{"10":{"tf":1.4142135623730951},"11":{"tf":2.0},"12":{"tf":1.4142135623730951},"13":{"tf":1.0},"14":{"tf":1.4142135623730951},"16":{"tf":1.4142135623730951},"18":{"tf":2.23606797749979},"2":{"tf":1.0},"20":{"tf":1.0},"5":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}},"f":{"df":0,"docs":{},"u":{"df":2,"docs":{"12":{"tf":2.449489742783178},"4":{"tf":1.0}}}},"h":{"c":{"df":0,"docs":{},"p":{"df":2,"docs":{"4":{"tf":1.0},"7":{"tf":2.0}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":4,"docs":{"16":{"tf":1.0},"17":{"tf":1.4142135623730951},"2":{"tf":1.0},"5":{"tf":1.4142135623730951}}}}}},"g":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.7320508075688772},"2":{"tf":1.4142135623730951},"20":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}}}},"df":0,"docs":{}}},"s":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{},"m":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"df":0,"docs":{}}},"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":1,"docs":{"18":{"tf":1.0}}}},"u":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}}}}},"o":{"c":{"df":1,"docs":{"3":{"tf":1.0}},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"8":{"tf":2.23606797749979}}}}},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":6,"docs":{"0":{"tf":1.0},"18":{"tf":2.0},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"3":{"tf":1.7320508075688772}}}}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.0}}},"g":{"df":0,"docs":{},"l":{"df":1,"docs":{"7":{"tf":1.0}}}}},"w":{"df":0,"docs":{},"n":{"df":1,"docs":{"11":{"tf":1.4142135623730951}},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":2,"docs":{"14":{"tf":1.0},"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":1,"docs":{"11":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"20":{"tf":1.0}}}}},"t":{"/":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"r":{"a":{"/":{"<":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{">":{"/":{"<":{"df":0,"docs":{},"m":{"a":{"c":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}},"df":0,"docs":{}},"d":{"df":0,"docs":{},"u":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"u":{"a":{"df":0,"docs":{},"l":{"df":7,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"18":{"tf":1.0},"19":{"tf":1.0},"2":{"tf":1.0},"9":{"tf":2.23606797749979}}}},"df":0,"docs":{},"e":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"e":{".":{"df":0,"docs":{},"g":{"df":1,"docs":{"14":{"tf":1.0}}}},"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"h":{"df":0,"docs":{},"f":{"df":1,"docs":{"9":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"df":2,"docs":{"16":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":2,"docs":{"19":{"tf":1.0},"8":{"tf":1.4142135623730951}}}}}}},"c":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"s":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}}},"df":1,"docs":{"17":{"tf":1.0}},"e":{"df":0,"docs":{},"m":{"df":1,"docs":{"6":{"tf":1.0}}}},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":1,"docs":{"20":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}}}},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"8":{"tf":1.0}}}}}}}}},"n":{"c":{"df":0,"docs":{},"o":{"d":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"y":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"c":{"df":1,"docs":{"7":{"tf":1.0}}},"df":0,"docs":{}}}},"s":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":3,"docs":{"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"12":{"tf":1.0}}}}},"v":{":":{"b":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"=":{"'":{"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"17":{"tf":1.4142135623730951}},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"7":{"tf":1.0}}}}}}}}}}}},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"13":{"tf":1.0},"18":{"tf":1.0}}}}}},"s":{"d":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":2,"docs":{"6":{"tf":1.0},"7":{"tf":1.4142135623730951}}}}}}}}},"x":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":2,"docs":{"18":{"tf":1.0},"7":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"0":{"tf":1.0}},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"0":{"tf":1.0}}}}}}}}},"l":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.7320508075688772}}}}},"o":{"df":0,"docs":{},"s":{"df":2,"docs":{"17":{"tf":1.0},"18":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"1":{"tf":1.0}}},"df":0,"docs":{}}},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"f":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"20":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":3,"docs":{"0":{"tf":1.0},"19":{"tf":1.7320508075688772},"2":{"tf":1.0}}}}}},"r":{"df":1,"docs":{"2":{"tf":1.0}},"e":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":11,"docs":{"0":{"tf":1.4142135623730951},"10":{"tf":1.0},"12":{"tf":1.4142135623730951},"13":{"tf":1.4142135623730951},"14":{"tf":1.0},"2":{"tf":1.4142135623730951},"4":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}}},"l":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":4,"docs":{"10":{"tf":1.0},"12":{"tf":1.0},"4":{"tf":1.0},"5":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"x":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"0":{"tf":1.0}}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":7,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"6":{"tf":1.0},"8":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"t":{"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}},"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}},"u":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"c":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{}}}}}},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":3,"docs":{"10":{"tf":1.0},"12":{"tf":1.4142135623730951},"6":{"tf":1.0}},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"1":{"tf":1.0}}},"df":0,"docs":{}}}}}}},"u":{"df":0,"docs":{},"n":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"2":{"tf":1.0},"20":{"tf":1.0}}}}}}},"d":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"21":{"tf":1.0}}}}}}},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"g":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"12":{"tf":1.0}}}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"0":{"tf":1.0},"20":{"tf":1.4142135623730951}}}}}},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"5":{"tf":1.0}}}}}}},"h":{"a":{"df":0,"docs":{},"r":{"d":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":3,"docs":{"1":{"tf":2.23606797749979},"2":{"tf":1.7320508075688772},"5":{"tf":1.0}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"20":{"tf":1.0}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"p":{"df":2,"docs":{"17":{"tf":1.0},"19":{"tf":1.4142135623730951}}}},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"3":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"h":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":2,"docs":{"21":{"tf":1.0},"8":{"tf":1.0}}}},"t":{"df":1,"docs":{"10":{"tf":1.0}}}},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"p":{"df":0,"docs":{},"s":{":":{"/":{"/":{"d":{"df":0,"docs":{},"o":{"c":{"df":0,"docs":{},"s":{".":{"df":0,"docs":{},"p":{"df":0,"docs":{},"y":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{".":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"/":{"3":{"/":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"a":{"df":0,"docs":{},"l":{"/":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{".":{"df":0,"docs":{},"h":{"df":0,"docs":{},"t":{"df":0,"docs":{},"m":{"df":0,"docs":{},"l":{"df":1,"docs":{"17":{"tf":1.0}}}}}}},"df":0,"docs":{}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"u":{"b":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"/":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"/":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"df":0,"docs":{}}}}}},"df":0,"docs":{}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"'":{"df":1,"docs":{"18":{"tf":1.0}}},".":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}},"df":0,"docs":{}},"/":{"+":{"/":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"0":{"0":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":5,"docs":{"13":{"tf":1.4142135623730951},"15":{"tf":1.0},"19":{"tf":2.0},"2":{"tf":1.7320508075688772},"9":{"tf":1.7320508075688772}}}},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"16":{"tf":1.0},"2":{"tf":1.0}}}}}}}}}},"n":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"df":1,"docs":{"14":{"tf":1.0}}}}},"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"16":{"tf":1.0}}},"df":0,"docs":{}}}}},"i":{"df":0,"docs":{},"v":{"df":0,"docs":{},"i":{"d":{"df":0,"docs":{},"u":{"df":1,"docs":{"20":{"tf":1.0}}}},"df":0,"docs":{}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":7,"docs":{"1":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.4142135623730951},"21":{"tf":1.0},"7":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.4142135623730951}}}}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"11":{"tf":1.0},"12":{"tf":1.4142135623730951}}}}},"t":{"a":{"df":0,"docs":{},"l":{"df":6,"docs":{"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"15":{"tf":1.0},"17":{"tf":2.0},"8":{"tf":1.0},"9":{"tf":2.23606797749979}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":3,"docs":{"0":{"tf":1.0},"20":{"tf":1.7320508075688772},"21":{"tf":1.0}}},"df":0,"docs":{}},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"f":{"a":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"n":{"df":2,"docs":{"0":{"tf":1.4142135623730951},"20":{"tf":1.0}}},"v":{"df":1,"docs":{"14":{"tf":1.0}}}}}}},"p":{"df":4,"docs":{"18":{"tf":1.4142135623730951},"7":{"tf":1.4142135623730951},"8":{"tf":1.7320508075688772},"9":{"tf":1.0}},"v":{"4":{"df":3,"docs":{"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}},"df":0,"docs":{}}},"s":{"df":0,"docs":{},"s":{"df":0,"docs":{},"u":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}},"t":{"'":{"df":2,"docs":{"17":{"tf":1.0},"21":{"tf":1.0}}},"df":0,"docs":{}}},"j":{"c":{"2":{"/":{"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{},"s":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}}},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"12":{"tf":1.7320508075688772}}}}}}}},"k":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"p":{"df":1,"docs":{"12":{"tf":1.0}}}}}},"l":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"11":{"tf":1.0},"8":{"tf":1.4142135623730951}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"a":{"d":{"df":3,"docs":{"10":{"tf":1.0},"13":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"19":{"tf":1.0}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"i":{"b":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":2,"docs":{"2":{"tf":1.0},"3":{"tf":1.7320508075688772}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"k":{"df":3,"docs":{"11":{"tf":1.7320508075688772},"2":{"tf":1.0},"4":{"tf":1.0}}},"u":{"df":0,"docs":{},"x":{"df":1,"docs":{"8":{"tf":1.0}}}}},"v":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.0}},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"df":2,"docs":{"15":{"tf":1.0},"21":{"tf":2.0}}}},"df":0,"docs":{}}}}}}}},"l":{"df":0,"docs":{},"v":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}},"o":{"a":{"d":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"c":{"df":0,"docs":{},"k":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.7320508075688772}}}}}},"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.0}}},"o":{"df":0,"docs":{},"k":{"df":1,"docs":{"18":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"21":{"tf":1.0}}}},"w":{"df":1,"docs":{"20":{"tf":1.4142135623730951}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"18":{"tf":1.0}}}},"p":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}}}}},"m":{"a":{"c":{"df":3,"docs":{"14":{"tf":1.0},"16":{"tf":1.0},"18":{"tf":1.4142135623730951}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}},"df":0,"docs":{}}}},"n":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"20":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"11":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"t":{"c":{"df":0,"docs":{},"h":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}}},"d":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":3,"docs":{"17":{"tf":1.7320508075688772},"18":{"tf":1.0},"19":{"tf":1.0}},"e":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":2,"docs":{"21":{"tf":1.0},"6":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}},"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"a":{"df":0,"docs":{},"g":{"df":3,"docs":{"13":{"tf":1.0},"14":{"tf":1.0},"20":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"d":{"df":3,"docs":{"10":{"tf":1.4142135623730951},"11":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{}}}},"z":{"df":0,"docs":{},"z":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}}}},"i":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"'":{"df":1,"docs":{"18":{"tf":1.0}}},"df":4,"docs":{"15":{"tf":1.0},"16":{"tf":1.0},"17":{"tf":2.0},"18":{"tf":2.0}}}}}},"df":0,"docs":{},"m":{"df":1,"docs":{"20":{"tf":1.0}},"u":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"13":{"tf":1.4142135623730951}}}}},"o":{"d":{"df":0,"docs":{},"e":{"df":1,"docs":{"13":{"tf":1.0}}},"u":{"df":0,"docs":{},"l":{"df":1,"docs":{"12":{"tf":1.7320508075688772}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"20":{"tf":1.0}}}}}}},"r":{"df":0,"docs":{},"e":{"df":5,"docs":{"1":{"tf":1.0},"17":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"6":{"tf":1.0}}}},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"d":{"a":{"df":0,"docs":{},"t":{"a":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}},":":{"2":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":1,"docs":{"8":{"tf":2.6457513110645907}}}}}}}}}},"q":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":7,"docs":{"14":{"tf":2.23606797749979},"16":{"tf":1.7320508075688772},"18":{"tf":1.0},"20":{"tf":1.4142135623730951},"4":{"tf":1.4142135623730951},"8":{"tf":2.0},"9":{"tf":1.0}},"v":{"3":{".":{"1":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"5":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}}},"s":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":1,"docs":{"9":{"tf":1.0}}}}}},"n":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":3,"docs":{"18":{"tf":1.0},"8":{"tf":1.7320508075688772},"9":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"d":{"df":2,"docs":{"5":{"tf":1.0},"8":{"tf":1.0}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":4,"docs":{"21":{"tf":1.0},"4":{"tf":1.0},"7":{"tf":2.0},"8":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"10":{"tf":1.0}}}}},"x":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"20":{"tf":1.0}}}}},"n":{"df":1,"docs":{"13":{"tf":1.0}},"e":{"df":1,"docs":{"9":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":6,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}}},"o":{"b":{"df":0,"docs":{},"j":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":2,"docs":{"13":{"tf":1.0},"14":{"tf":1.4142135623730951}}}}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}}},"c":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}},"df":1,"docs":{"9":{"tf":1.4142135623730951}},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"n":{"c":{"df":1,"docs":{"14":{"tf":1.4142135623730951}}},"df":6,"docs":{"1":{"tf":1.0},"10":{"tf":1.0},"16":{"tf":1.0},"18":{"tf":1.4142135623730951},"5":{"tf":1.4142135623730951},"6":{"tf":1.4142135623730951}},"t":{"df":0,"docs":{},"o":{"df":3,"docs":{"10":{"tf":1.0},"11":{"tf":1.0},"5":{"tf":1.0}}}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.0}}}},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"m":{"df":2,"docs":{"13":{"tf":1.0},"2":{"tf":1.0}}},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"s":{"df":0,"docs":{},"x":{"df":1,"docs":{"8":{"tf":1.0}}}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":4,"docs":{"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"6":{"tf":1.0}},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":1,"docs":{"0":{"tf":1.0}}}}}}}}}},"p":{"a":{"c":{"df":0,"docs":{},"k":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"17":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":3,"docs":{"10":{"tf":1.0},"12":{"tf":1.0},"6":{"tf":1.0}}}},"i":{"c":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{}}},"r":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"18":{"tf":2.23606797749979}}}}},"df":1,"docs":{"8":{"tf":1.4142135623730951}},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"12":{"tf":1.0}}}}}}}},"h":{"df":0,"docs":{},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"c":{"df":1,"docs":{"0":{"tf":1.0}}},"df":0,"docs":{}}}}},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"17":{"tf":1.0}}}},"l":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":1,"docs":{"17":{"tf":1.0}}}}}}}},"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.4142135623730951}}},"u":{"df":0,"docs":{},"g":{"df":2,"docs":{"10":{"tf":1.0},"12":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"e":{"df":1,"docs":{"6":{"tf":1.0}}},"r":{"df":0,"docs":{},"t":{"df":3,"docs":{"18":{"tf":1.7320508075688772},"6":{"tf":1.0},"8":{"tf":1.4142135623730951}}}},"s":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"l":{"df":3,"docs":{"17":{"tf":1.0},"18":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":2,"docs":{"1":{"tf":1.0},"14":{"tf":1.0}}}},"u":{"df":0,"docs":{},"n":{"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"2":{"tf":1.0}}}}},"df":0,"docs":{}}},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":5,"docs":{"10":{"tf":1.0},"11":{"tf":2.0},"12":{"tf":2.0},"4":{"tf":1.0},"6":{"tf":2.0}},"s":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":3,"docs":{"13":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}}}}}},"r":{"df":0,"docs":{},"e":{"c":{"a":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"r":{"df":1,"docs":{"6":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"x":{"df":1,"docs":{"18":{"tf":1.7320508075688772}}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}}}}}}},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"o":{"b":{"df":0,"docs":{},"e":{"df":4,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"13":{"tf":2.23606797749979}}}},"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"0":{"tf":1.4142135623730951},"2":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"10":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"i":{"d":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}}},"u":{"b":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":3,"docs":{"14":{"tf":1.0},"18":{"tf":1.0},"20":{"tf":2.23606797749979}}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":2,"docs":{"10":{"tf":1.0},"12":{"tf":1.0}}}}},"w":{"d":{"`":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{":":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{},"}":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{":":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"y":{"df":1,"docs":{"17":{"tf":1.0}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":3,"docs":{"17":{"tf":2.0},"18":{"tf":1.4142135623730951},"19":{"tf":1.4142135623730951}}}}}}}},"q":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}}},"r":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"e":{"a":{"c":{"df":0,"docs":{},"h":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"8":{"tf":1.4142135623730951},"9":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{},"l":{"df":1,"docs":{"21":{"tf":1.0}}},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":1,"docs":{"5":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":6,"docs":{"16":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.4142135623730951},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0}}}}},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}}}},"l":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"s":{"df":2,"docs":{"13":{"tf":1.7320508075688772},"9":{"tf":2.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":3,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":2.0}}}}},"p":{"df":0,"docs":{},"l":{"a":{"c":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"14":{"tf":1.0},"20":{"tf":1.4142135623730951}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"8":{"tf":1.0}}}}}}}}}},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":4,"docs":{"10":{"tf":1.7320508075688772},"13":{"tf":1.0},"20":{"tf":1.0},"8":{"tf":1.0}}}}}},"s":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"df":0,"docs":{}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"j":{"4":{"5":{"df":2,"docs":{"12":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":1,"docs":{"18":{"tf":1.0}}}},"n":{"df":10,"docs":{"0":{"tf":1.0},"13":{"tf":2.449489742783178},"14":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"2":{"tf":1.0},"20":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":2.449489742783178}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.7320508075688772}},"u":{"df":0,"docs":{},"p":{"df":1,"docs":{"9":{"tf":1.7320508075688772}}}}}}}},"s":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"14":{"tf":1.0}}},"p":{"df":0,"docs":{},"l":{"df":2,"docs":{"0":{"tf":1.0},"13":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"0":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}}}},"df":1,"docs":{"12":{"tf":1.0}},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"8":{"tf":1.0}}}},"g":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"7":{"tf":1.0}}}}}}},"m":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}},"df":0,"docs":{}},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}},"t":{"df":1,"docs":{"21":{"tf":1.0}}}},"p":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"7":{"tf":1.4142135623730951}}}}}},"t":{"df":8,"docs":{"15":{"tf":1.0},"16":{"tf":3.0},"18":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.4142135623730951},"7":{"tf":2.0},"8":{"tf":1.0},"9":{"tf":1.0}},"u":{"df":0,"docs":{},"p":{"df":2,"docs":{"4":{"tf":1.0},"5":{"tf":1.0}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"h":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.0}}}},"w":{"df":0,"docs":{},"n":{"df":1,"docs":{"11":{"tf":1.0}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":2,"docs":{"10":{"tf":1.0},"8":{"tf":1.0}}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"l":{"df":2,"docs":{"0":{"tf":2.0},"2":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"13":{"tf":1.0}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"2":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"17":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"f":{"df":0,"docs":{},"t":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}},"u":{"df":0,"docs":{},"r":{"c":{"df":2,"docs":{"18":{"tf":1.0},"2":{"tf":1.0}}},"df":0,"docs":{}}}},"p":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":4,"docs":{"16":{"tf":1.4142135623730951},"18":{"tf":1.0},"2":{"tf":1.0},"7":{"tf":1.0}},"i":{"df":2,"docs":{"7":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"e":{"d":{"df":1,"docs":{"0":{"tf":1.0}}},"df":0,"docs":{}}}},"t":{"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":16,"docs":{"0":{"tf":2.0},"1":{"tf":2.0},"10":{"tf":1.0},"12":{"tf":1.0},"14":{"tf":2.0},"16":{"tf":1.7320508075688772},"17":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.7320508075688772},"21":{"tf":1.7320508075688772},"3":{"tf":1.7320508075688772},"5":{"tf":1.4142135623730951},"6":{"tf":1.0},"7":{"tf":2.0},"8":{"tf":2.6457513110645907},"9":{"tf":1.4142135623730951}},"i":{"df":0,"docs":{},"z":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"'":{"df":1,"docs":{"16":{"tf":1.0}}},".":{"df":0,"docs":{},"i":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"_":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":1,"docs":{"19":{"tf":1.0}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}}}}}}},"l":{"df":2,"docs":{"8":{"tf":1.0},"9":{"tf":1.7320508075688772}}}},"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}},"n":{"d":{"a":{"df":0,"docs":{},"r":{"d":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"7":{"tf":1.0},"8":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.0}}},"i":{"c":{"_":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":1,"docs":{"7":{"tf":1.0}}},"df":0,"docs":{}},"u":{"df":1,"docs":{"14":{"tf":1.4142135623730951}}}}},"df":2,"docs":{"11":{"tf":1.7320508075688772},"4":{"tf":1.0}},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"8":{"tf":1.0}}},"r":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"11":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.4142135623730951}}}}},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"_":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"=":{"'":{"df":0,"docs":{},"{":{"\"":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"18":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":1,"docs":{"18":{"tf":1.4142135623730951}}}}}}},"df":0,"docs":{}}},"df":2,"docs":{"18":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"u":{"b":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}}},"c":{"df":0,"docs":{},"h":{"df":3,"docs":{"0":{"tf":1.0},"1":{"tf":1.0},"16":{"tf":1.0}}}},"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":7,"docs":{"0":{"tf":1.0},"16":{"tf":1.0},"2":{"tf":1.0},"21":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.4142135623730951},"9":{"tf":1.4142135623730951}}}}}}}},"w":{"d":{"/":{"df":0,"docs":{},"j":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":4,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"c":{"df":0,"docs":{},"h":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}}}},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":2,"docs":{"17":{"tf":1.0},"7":{"tf":1.0}}}}}}}},"t":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"15":{"tf":1.0},"4":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"2":{"tf":1.0},"5":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":3,"docs":{"18":{"tf":1.0},"2":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}}},"df":1,"docs":{"7":{"tf":1.4142135623730951}},"e":{"c":{"df":0,"docs":{},"h":{"df":0,"docs":{},"n":{"df":0,"docs":{},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":1,"docs":{"2":{"tf":1.0}}}}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":5,"docs":{"14":{"tf":1.4142135623730951},"15":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":3.605551275463989}}}}}}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"1":{"tf":1.0}}}}},"h":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":1,"docs":{"10":{"tf":1.0}}}},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"g":{"df":0,"docs":{},"h":{"df":2,"docs":{"6":{"tf":1.4142135623730951},"8":{"tf":1.0}},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}}}}}}},"u":{"df":0,"docs":{},"m":{"b":{"df":0,"docs":{},"v":{"7":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":7,"docs":{"0":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"5":{"tf":1.0}},"r":{"df":1,"docs":{"13":{"tf":1.0}}}}}},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"l":{"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":3,"docs":{"0":{"tf":1.0},"12":{"tf":1.0},"9":{"tf":1.0}}}},"p":{"df":0,"docs":{},"i":{"c":{"df":2,"docs":{"14":{"tf":1.4142135623730951},"18":{"tf":1.0}}},"df":0,"docs":{}}}},"r":{"a":{"c":{"df":0,"docs":{},"k":{"df":1,"docs":{"9":{"tf":1.0}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}}}}},"df":0,"docs":{}},"w":{"df":0,"docs":{},"o":{"df":4,"docs":{"0":{"tf":1.7320508075688772},"16":{"tf":1.4142135623730951},"2":{"tf":1.0},"6":{"tf":1.0}}}}},"u":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":1,"docs":{"7":{"tf":1.4142135623730951}}}}}}},"d":{"df":0,"docs":{},"p":{"df":1,"docs":{"21":{"tf":1.0}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"t":{"df":1,"docs":{"20":{"tf":1.0}}}},"s":{"df":0,"docs":{},"u":{"c":{"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"18":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"u":{"df":0,"docs":{},"s":{"df":1,"docs":{"6":{"tf":1.0}}}},"w":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}}}},"p":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"/":{"d":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":0,"docs":{},"n":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"s":{"df":1,"docs":{"1":{"tf":1.0}}}}}}}}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"d":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}},"df":2,"docs":{"0":{"tf":1.7320508075688772},"11":{"tf":1.0}},"g":{"df":0,"docs":{},"r":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":2,"docs":{"12":{"tf":1.0},"4":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"s":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"15":{"tf":1.0},"18":{"tf":1.0}}}},"b":{"df":2,"docs":{"12":{"tf":1.7320508075688772},"7":{"tf":1.0}}},"df":18,"docs":{"0":{"tf":1.4142135623730951},"10":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"14":{"tf":1.4142135623730951},"16":{"tf":1.4142135623730951},"17":{"tf":1.4142135623730951},"18":{"tf":1.0},"19":{"tf":1.0},"2":{"tf":1.4142135623730951},"20":{"tf":2.0},"3":{"tf":1.0},"5":{"tf":1.0},"6":{"tf":1.0},"7":{"tf":1.4142135623730951},"8":{"tf":2.449489742783178},"9":{"tf":1.0}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"0":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":5,"docs":{"12":{"tf":1.7320508075688772},"17":{"tf":1.0},"18":{"tf":1.4142135623730951},"19":{"tf":1.4142135623730951},"20":{"tf":1.0}}}}}},"v":{"2":{"df":1,"docs":{"11":{"tf":1.0}}},"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"u":{"df":2,"docs":{"16":{"tf":1.0},"18":{"tf":2.449489742783178}}}},"r":{"df":0,"docs":{},"i":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":2,"docs":{"0":{"tf":1.0},"19":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"u":{"df":1,"docs":{"2":{"tf":1.7320508075688772}}}}}}},"df":1,"docs":{"8":{"tf":2.449489742783178}},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":1,"docs":{"17":{"tf":1.0}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":2,"docs":{"14":{"tf":1.4142135623730951},"4":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"8":{"tf":1.4142135623730951},"9":{"tf":1.0}}}}}}}},"i":{"a":{"df":3,"docs":{"1":{"tf":1.4142135623730951},"6":{"tf":1.7320508075688772},"8":{"tf":1.0}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"/":{"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"l":{"df":3,"docs":{"11":{"tf":1.4142135623730951},"17":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"17":{"tf":1.0}}},"y":{"/":{"df":0,"docs":{},"s":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":0,"docs":{},"s":{"/":{"a":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":1,"docs":{"17":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":4,"docs":{"16":{"tf":1.0},"17":{"tf":1.0},"20":{"tf":1.0},"9":{"tf":1.0}}}}},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"v":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":1,"docs":{"0":{"tf":1.0}}}},"df":0,"docs":{},"k":{"df":0,"docs":{},"i":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}},"l":{"d":{"c":{"a":{"df":0,"docs":{},"r":{"d":{"df":1,"docs":{"14":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"n":{"d":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}}}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":1,"docs":{"8":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"17":{"tf":1.0}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"19":{"tf":1.0}}}}}}}}},"x":{"df":1,"docs":{"7":{"tf":1.0}}}}},"breadcrumbs":{"root":{"0":{"0":{"df":1,"docs":{"14":{"tf":1.0}}},"df":2,"docs":{"12":{"tf":1.0},"18":{"tf":1.0}},"x":{"0":{"8":{"0":{"0":{"0":{"0":{"0":{"0":{":":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"v":{"df":1,"docs":{"12":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}},"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"2":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":2,"docs":{"18":{"tf":1.4142135623730951},"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"0":{"b":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"b":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}},"df":1,"docs":{"18":{"tf":1.0}}},"1":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}},"2":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{},"v":{"df":1,"docs":{"6":{"tf":1.0}}}},"6":{"8":{"df":1,"docs":{"18":{"tf":1.0}}},"df":1,"docs":{"18":{"tf":1.0}}},"8":{"8":{"3":{":":{"1":{"8":{"8":{"3":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"9":{"2":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":3,"docs":{"11":{"tf":1.0},"18":{"tf":1.0},"8":{"tf":1.0}}},"2":{".":{"0":{".":{"0":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"2":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}},"df":0,"docs":{}},"3":{"3":{"df":1,"docs":{"18":{"tf":1.0}}},"4":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"4":{"0":{"0":{"0":{"df":1,"docs":{"18":{"tf":1.7320508075688772}}},"df":0,"docs":{}},"df":0,"docs":{}},"4":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"5":{"5":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"8":{"0":{"2":{".":{"3":{"a":{"df":0,"docs":{},"f":{"df":1,"docs":{"6":{"tf":1.0}}},"t":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"a":{"a":{"df":1,"docs":{"14":{"tf":1.0}}},"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"c":{"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"10":{"tf":1.4142135623730951},"12":{"tf":1.0}}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":2,"docs":{"12":{"tf":1.0},"17":{"tf":1.0}}}}}},"d":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"d":{"df":1,"docs":{"9":{"tf":1.4142135623730951}},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"14":{"tf":1.0}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":5,"docs":{"14":{"tf":1.4142135623730951},"16":{"tf":1.0},"18":{"tf":2.0},"8":{"tf":2.0},"9":{"tf":1.0}}}}}}},"df":1,"docs":{"13":{"tf":1.0}},"j":{"a":{"c":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{},"g":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"1":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0}}}}},"df":0,"docs":{}},"l":{"df":0,"docs":{},"g":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.0}}}}}}}}},"i":{"df":0,"docs":{},"v":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":2,"docs":{"0":{"tf":1.0},"8":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"7":{"tf":1.0}}}}}},"w":{"a":{"df":0,"docs":{},"y":{"df":2,"docs":{"10":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.4142135623730951},"21":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":1,"docs":{"2":{"tf":1.0}}}}}}}},"n":{"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"7":{"tf":1.0}}}},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":1,"docs":{"21":{"tf":1.0}}}}}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"17":{"tf":1.0}}},"p":{"df":1,"docs":{"18":{"tf":1.0}},"e":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}},"l":{"df":0,"docs":{},"i":{"c":{"df":12,"docs":{"13":{"tf":1.4142135623730951},"14":{"tf":1.4142135623730951},"16":{"tf":1.7320508075688772},"18":{"tf":1.7320508075688772},"19":{"tf":1.4142135623730951},"2":{"tf":2.6457513110645907},"20":{"tf":2.0},"21":{"tf":1.0},"3":{"tf":1.0},"5":{"tf":1.7320508075688772},"8":{"tf":2.0},"9":{"tf":1.4142135623730951}}},"df":3,"docs":{"11":{"tf":1.0},"16":{"tf":1.4142135623730951},"6":{"tf":1.0}}}}}},"t":{"a":{"df":0,"docs":{},"n":{"2":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"o":{"df":1,"docs":{"7":{"tf":1.0}},"m":{"a":{"df":0,"docs":{},"t":{"df":3,"docs":{"16":{"tf":1.0},"18":{"tf":1.0},"19":{"tf":1.0}}}},"df":1,"docs":{"17":{"tf":1.0}}}}}},"v":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":3,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"3":{"tf":1.0}}}}},"df":0,"docs":{}}},"b":{"a":{"c":{"df":0,"docs":{},"k":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"d":{"df":1,"docs":{"6":{"tf":1.0}}},"df":0,"docs":{}}}}},"df":0,"docs":{},"n":{"d":{"df":0,"docs":{},"w":{"df":0,"docs":{},"i":{"d":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":2,"docs":{"20":{"tf":1.4142135623730951},"21":{"tf":1.0}}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"s":{"df":0,"docs":{},"h":{"df":3,"docs":{"13":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"i":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{}}}},"b":{"df":1,"docs":{"14":{"tf":1.0}}},"df":0,"docs":{},"e":{"df":1,"docs":{"18":{"tf":1.4142135623730951}},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"11":{"tf":1.0}}}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"/":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.0}}}}}}},"df":2,"docs":{"11":{"tf":1.0},"9":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":2,"docs":{"16":{"tf":1.0},"8":{"tf":1.0}}}}}}}},"i":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"9":{"tf":1.7320508075688772}}}}},"df":2,"docs":{"13":{"tf":1.4142135623730951},"9":{"tf":1.4142135623730951}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}}},"q":{"df":0,"docs":{},"u":{"a":{"d":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"o":{"a":{"df":0,"docs":{},"r":{"d":{"df":3,"docs":{"1":{"tf":1.0},"10":{"tf":1.7320508075688772},"12":{"tf":1.4142135623730951}}},"df":0,"docs":{}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"t":{"df":0,"docs":{},"h":{"df":3,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"8":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"0":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"=":{"\"":{"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":7,"docs":{"14":{"tf":2.23606797749979},"16":{"tf":1.7320508075688772},"18":{"tf":1.4142135623730951},"4":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":3.3166247903554},"9":{"tf":1.7320508075688772}}}}}}},"u":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"20":{"tf":1.0}}}}}},"i":{"df":0,"docs":{},"l":{"d":{"df":7,"docs":{"13":{"tf":1.0},"14":{"tf":1.0},"4":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":2.449489742783178}}},"df":0,"docs":{},"t":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"c":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"12":{"tf":1.0}}}},"df":0,"docs":{},"p":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"21":{"tf":1.0},"6":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"12":{"tf":1.0}}}}}}}},"g":{"df":0,"docs":{},"o":{".":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"df":2,"docs":{"13":{"tf":1.7320508075688772},"9":{"tf":2.6457513110645907}}}}},"s":{"df":0,"docs":{},"e":{"df":3,"docs":{"18":{"tf":1.0},"2":{"tf":1.0},"5":{"tf":1.0}}}}},"c":{"df":1,"docs":{"14":{"tf":1.0}}},"d":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"k":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":1,"docs":{"5":{"tf":1.0}}}}}},"i":{"df":0,"docs":{},"r":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}}},"df":0,"docs":{}}},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}},"o":{"d":{"df":0,"docs":{},"e":{"df":2,"docs":{"13":{"tf":1.0},"18":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}},"df":0,"docs":{}}}},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"10":{"tf":1.0}}},"m":{"a":{"df":0,"docs":{},"n":{"d":{"df":3,"docs":{"17":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"3":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"2":{"tf":1.0}}}}}}},"p":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.0}}}},"o":{"df":0,"docs":{},"n":{"df":4,"docs":{"10":{"tf":1.0},"2":{"tf":1.0},"3":{"tf":1.0},"9":{"tf":1.0}}},"s":{"df":1,"docs":{"2":{"tf":1.0}}}},"u":{"df":0,"docs":{},"t":{"df":4,"docs":{"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"21":{"tf":1.0},"7":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":11,"docs":{"0":{"tf":1.0},"14":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"17":{"tf":1.0},"18":{"tf":1.7320508075688772},"19":{"tf":2.0},"2":{"tf":1.0},"20":{"tf":1.0},"7":{"tf":1.7320508075688772},"8":{"tf":1.0}}}}}}},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"21":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":9,"docs":{"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"13":{"tf":1.0},"14":{"tf":2.0},"16":{"tf":1.0},"4":{"tf":1.0},"6":{"tf":1.4142135623730951},"7":{"tf":2.0},"8":{"tf":1.4142135623730951}},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"12":{"tf":1.4142135623730951},"6":{"tf":1.0}}}}}},"df":0,"docs":{}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"5":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"u":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}}}}},"t":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"2":{"tf":1.0},"3":{"tf":1.0},"8":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"15":{"tf":1.4142135623730951},"4":{"tf":1.4142135623730951}}}}},"r":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"l":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"11":{"tf":1.0}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"2":{"tf":1.0}}}}},"u":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"r":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":4,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":2.0},"2":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}}},"u":{"df":0,"docs":{},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}}},"d":{"a":{"c":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}},"s":{"df":0,"docs":{},"h":{"df":1,"docs":{"18":{"tf":1.0}}}},"t":{"a":{"df":5,"docs":{"1":{"tf":1.0},"18":{"tf":1.0},"20":{"tf":1.4142135623730951},"21":{"tf":2.0},"8":{"tf":1.0}}},"df":0,"docs":{}}},"d":{"df":2,"docs":{"1":{"tf":1.0},"2":{"tf":1.0}}},"df":1,"docs":{"12":{"tf":1.0}},"e":{"a":{"d":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"13":{"tf":1.0}}}}}},"df":0,"docs":{}},"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.4142135623730951}}}}},"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"s":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{},"f":{"a":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}}},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"s":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"b":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":2,"docs":{"18":{"tf":1.0},"2":{"tf":1.0}}}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"n":{"df":1,"docs":{"0":{"tf":1.4142135623730951}}}},"r":{"df":2,"docs":{"18":{"tf":1.0},"9":{"tf":1.0}}}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"1":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"20":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":3,"docs":{"13":{"tf":1.7320508075688772},"4":{"tf":1.0},"8":{"tf":1.0}}}}}},"i":{"c":{"df":10,"docs":{"10":{"tf":1.4142135623730951},"11":{"tf":2.0},"12":{"tf":1.4142135623730951},"13":{"tf":1.0},"14":{"tf":1.4142135623730951},"16":{"tf":1.4142135623730951},"18":{"tf":2.23606797749979},"2":{"tf":1.0},"20":{"tf":1.0},"5":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}},"f":{"df":0,"docs":{},"u":{"df":2,"docs":{"12":{"tf":2.6457513110645907},"4":{"tf":1.0}}}},"h":{"c":{"df":0,"docs":{},"p":{"df":2,"docs":{"4":{"tf":1.0},"7":{"tf":2.23606797749979}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":4,"docs":{"16":{"tf":1.0},"17":{"tf":1.4142135623730951},"2":{"tf":1.0},"5":{"tf":1.4142135623730951}}}}}},"g":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.7320508075688772},"2":{"tf":1.4142135623730951},"20":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}}}},"df":0,"docs":{}}},"s":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{},"m":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"df":0,"docs":{}}},"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":1,"docs":{"18":{"tf":1.0}}}},"u":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}}}}},"o":{"c":{"df":1,"docs":{"3":{"tf":1.0}},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"8":{"tf":2.23606797749979}}}}},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":6,"docs":{"0":{"tf":1.0},"18":{"tf":2.0},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"3":{"tf":2.0}}}}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.0}}},"g":{"df":0,"docs":{},"l":{"df":1,"docs":{"7":{"tf":1.0}}}}},"w":{"df":0,"docs":{},"n":{"df":1,"docs":{"11":{"tf":1.4142135623730951}},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":2,"docs":{"14":{"tf":1.0},"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":1,"docs":{"11":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"20":{"tf":1.0}}}}},"t":{"/":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"r":{"a":{"/":{"<":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{">":{"/":{"<":{"df":0,"docs":{},"m":{"a":{"c":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}},"df":0,"docs":{}},"d":{"df":0,"docs":{},"u":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"u":{"a":{"df":0,"docs":{},"l":{"df":7,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"18":{"tf":1.0},"19":{"tf":1.0},"2":{"tf":1.0},"9":{"tf":2.23606797749979}}}},"df":0,"docs":{},"e":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"e":{".":{"df":0,"docs":{},"g":{"df":1,"docs":{"14":{"tf":1.0}}}},"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"h":{"df":0,"docs":{},"f":{"df":1,"docs":{"9":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"df":2,"docs":{"16":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":2,"docs":{"19":{"tf":1.0},"8":{"tf":1.4142135623730951}}}}}}},"c":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"s":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}}},"df":1,"docs":{"17":{"tf":1.0}},"e":{"df":0,"docs":{},"m":{"df":1,"docs":{"6":{"tf":1.0}}}},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":1,"docs":{"20":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}}}},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"8":{"tf":1.0}}}}}}}}},"n":{"c":{"df":0,"docs":{},"o":{"d":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"y":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"c":{"df":1,"docs":{"7":{"tf":1.0}}},"df":0,"docs":{}}}},"s":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":3,"docs":{"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"12":{"tf":1.0}}}}},"v":{":":{"b":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"=":{"'":{"1":{"0":{".":{"3":{"4":{".":{"1":{"6":{".":{"1":{"df":2,"docs":{"13":{"tf":1.0},"9":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"17":{"tf":1.4142135623730951}},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"7":{"tf":1.0}}}}}}}}}}}},"r":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"13":{"tf":1.0},"18":{"tf":1.0}}}}}},"s":{"d":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":2,"docs":{"6":{"tf":1.0},"7":{"tf":1.4142135623730951}}}}}}}}},"x":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":2,"docs":{"18":{"tf":1.0},"7":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"0":{"tf":1.0}},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"0":{"tf":1.0}}}}}}}}},"l":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.7320508075688772}}}}},"o":{"df":0,"docs":{},"s":{"df":2,"docs":{"17":{"tf":1.0},"18":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"1":{"tf":1.0}}},"df":0,"docs":{}}},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"f":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"20":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":3,"docs":{"0":{"tf":1.0},"19":{"tf":1.7320508075688772},"2":{"tf":1.0}}}}}},"r":{"df":1,"docs":{"2":{"tf":1.0}},"e":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":11,"docs":{"0":{"tf":1.4142135623730951},"10":{"tf":1.0},"12":{"tf":1.4142135623730951},"13":{"tf":1.7320508075688772},"14":{"tf":1.0},"2":{"tf":1.4142135623730951},"4":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}}},"l":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":4,"docs":{"10":{"tf":1.4142135623730951},"12":{"tf":1.0},"4":{"tf":1.0},"5":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"x":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"0":{"tf":1.0}}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":7,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"6":{"tf":1.0},"8":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"t":{"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}},"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}},"u":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"c":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{}}}}}},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":3,"docs":{"10":{"tf":1.0},"12":{"tf":1.4142135623730951},"6":{"tf":1.0}},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"1":{"tf":1.0}}},"df":0,"docs":{}}}}}}},"u":{"df":0,"docs":{},"n":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"2":{"tf":1.0},"20":{"tf":1.0}}}}}}},"d":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"21":{"tf":1.0}}}}}}},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"g":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"12":{"tf":1.0}}}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"0":{"tf":1.0},"20":{"tf":1.4142135623730951}}}}}},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"5":{"tf":1.0}}}}}}},"h":{"a":{"df":0,"docs":{},"r":{"d":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":3,"docs":{"1":{"tf":2.449489742783178},"2":{"tf":1.7320508075688772},"5":{"tf":1.0}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"20":{"tf":1.0}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"p":{"df":2,"docs":{"17":{"tf":1.0},"19":{"tf":1.4142135623730951}}}},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"3":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"h":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":2,"docs":{"21":{"tf":1.0},"8":{"tf":1.0}}}},"t":{"df":1,"docs":{"10":{"tf":1.0}}}},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"p":{"df":0,"docs":{},"s":{":":{"/":{"/":{"d":{"df":0,"docs":{},"o":{"c":{"df":0,"docs":{},"s":{".":{"df":0,"docs":{},"p":{"df":0,"docs":{},"y":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{".":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"/":{"3":{"/":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"a":{"df":0,"docs":{},"l":{"/":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{".":{"df":0,"docs":{},"h":{"df":0,"docs":{},"t":{"df":0,"docs":{},"m":{"df":0,"docs":{},"l":{"df":1,"docs":{"17":{"tf":1.0}}}}}}},"df":0,"docs":{}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"u":{"b":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"/":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"/":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"df":0,"docs":{}}}}}},"df":0,"docs":{}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"'":{"df":1,"docs":{"18":{"tf":1.0}}},".":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":3,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}},"df":0,"docs":{}},"/":{"+":{"/":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}},"0":{"0":{"df":1,"docs":{"18":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":5,"docs":{"13":{"tf":1.4142135623730951},"15":{"tf":1.0},"19":{"tf":2.23606797749979},"2":{"tf":1.7320508075688772},"9":{"tf":1.7320508075688772}}}},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"16":{"tf":1.0},"2":{"tf":1.0}}}}}}}}}},"n":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"m":{"df":1,"docs":{"14":{"tf":1.0}}}}},"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"16":{"tf":1.0}}},"df":0,"docs":{}}}}},"i":{"df":0,"docs":{},"v":{"df":0,"docs":{},"i":{"d":{"df":0,"docs":{},"u":{"df":1,"docs":{"20":{"tf":1.0}}}},"df":0,"docs":{}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":7,"docs":{"1":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.4142135623730951},"21":{"tf":1.0},"7":{"tf":1.0}}}}}},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.4142135623730951}}}}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"11":{"tf":1.0},"12":{"tf":1.4142135623730951}}}}},"t":{"a":{"df":0,"docs":{},"l":{"df":6,"docs":{"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"15":{"tf":1.0},"17":{"tf":2.23606797749979},"8":{"tf":1.0},"9":{"tf":2.23606797749979}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":3,"docs":{"0":{"tf":1.0},"20":{"tf":1.7320508075688772},"21":{"tf":1.0}}},"df":0,"docs":{}},"r":{"a":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"f":{"a":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"n":{"df":2,"docs":{"0":{"tf":1.4142135623730951},"20":{"tf":1.0}}},"v":{"df":1,"docs":{"14":{"tf":1.0}}}}}}},"p":{"df":4,"docs":{"18":{"tf":1.4142135623730951},"7":{"tf":1.4142135623730951},"8":{"tf":1.7320508075688772},"9":{"tf":1.0}},"v":{"4":{"df":3,"docs":{"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}},"df":0,"docs":{}}},"s":{"df":0,"docs":{},"s":{"df":0,"docs":{},"u":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}},"t":{"'":{"df":2,"docs":{"17":{"tf":1.0},"21":{"tf":1.0}}},"df":0,"docs":{}}},"j":{"c":{"2":{"/":{"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{},"s":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"18":{"tf":1.0},"20":{"tf":1.0}}}}},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"12":{"tf":1.7320508075688772}}}}}}}},"k":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"6":{"tf":1.0}}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"p":{"df":1,"docs":{"12":{"tf":1.0}}}}}},"l":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"11":{"tf":1.0},"8":{"tf":1.4142135623730951}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}}}},"df":0,"docs":{},"e":{"a":{"d":{"df":3,"docs":{"10":{"tf":1.0},"13":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"19":{"tf":1.0}}}}},"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"i":{"b":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":2,"docs":{"2":{"tf":1.0},"3":{"tf":2.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"k":{"df":3,"docs":{"11":{"tf":2.0},"2":{"tf":1.0},"4":{"tf":1.0}}},"u":{"df":0,"docs":{},"x":{"df":1,"docs":{"8":{"tf":1.0}}}}},"v":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.0}},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"df":2,"docs":{"15":{"tf":1.0},"21":{"tf":2.23606797749979}}}},"df":0,"docs":{}}}}}}}},"l":{"df":0,"docs":{},"v":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}},"o":{"a":{"d":{"df":1,"docs":{"10":{"tf":1.0}}},"df":0,"docs":{}},"c":{"df":0,"docs":{},"k":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.7320508075688772}}}}}},"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.0}}},"o":{"df":0,"docs":{},"k":{"df":1,"docs":{"18":{"tf":1.0}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"21":{"tf":1.0}}}},"w":{"df":1,"docs":{"20":{"tf":1.4142135623730951}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"18":{"tf":1.0}}}},"p":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}}}}},"m":{"a":{"c":{"df":3,"docs":{"14":{"tf":1.0},"16":{"tf":1.0},"18":{"tf":1.4142135623730951}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}},"df":0,"docs":{}}}},"n":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"20":{"tf":1.0}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"11":{"tf":1.7320508075688772},"4":{"tf":1.0}}}},"t":{"c":{"df":0,"docs":{},"h":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"df":0,"docs":{}}},"d":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":3,"docs":{"17":{"tf":1.7320508075688772},"18":{"tf":1.0},"19":{"tf":1.0}},"e":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":2,"docs":{"21":{"tf":1.0},"6":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}},"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"a":{"df":0,"docs":{},"g":{"df":3,"docs":{"13":{"tf":1.0},"14":{"tf":1.0},"20":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"d":{"df":3,"docs":{"10":{"tf":1.4142135623730951},"11":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{}}}},"z":{"df":0,"docs":{},"z":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}}}},"i":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":1,"docs":{"12":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"'":{"df":1,"docs":{"18":{"tf":1.0}}},"df":4,"docs":{"15":{"tf":1.0},"16":{"tf":1.4142135623730951},"17":{"tf":2.0},"18":{"tf":2.0}}}}}},"df":0,"docs":{},"m":{"df":1,"docs":{"20":{"tf":1.0}},"u":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"13":{"tf":1.4142135623730951}}}}},"o":{"d":{"df":0,"docs":{},"e":{"df":1,"docs":{"13":{"tf":1.0}}},"u":{"df":0,"docs":{},"l":{"df":1,"docs":{"12":{"tf":1.7320508075688772}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":1,"docs":{"20":{"tf":1.0}}}}}}},"r":{"df":0,"docs":{},"e":{"df":5,"docs":{"1":{"tf":1.0},"17":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"6":{"tf":1.0}}}},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"d":{"a":{"df":0,"docs":{},"t":{"a":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}}}}},":":{"2":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}},"df":1,"docs":{"8":{"tf":2.6457513110645907}}}}}}}}}},"q":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":7,"docs":{"14":{"tf":2.449489742783178},"16":{"tf":1.7320508075688772},"18":{"tf":1.0},"20":{"tf":1.4142135623730951},"4":{"tf":1.4142135623730951},"8":{"tf":2.23606797749979},"9":{"tf":1.0}},"v":{"3":{".":{"1":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"5":{"df":1,"docs":{"8":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}}},"s":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":1,"docs":{"9":{"tf":1.0}}}}}},"n":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":3,"docs":{"18":{"tf":1.0},"8":{"tf":1.7320508075688772},"9":{"tf":1.0}}}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"d":{"df":2,"docs":{"5":{"tf":1.0},"8":{"tf":1.0}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":4,"docs":{"21":{"tf":1.0},"4":{"tf":1.0},"7":{"tf":2.23606797749979},"8":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"10":{"tf":1.0}}}}},"x":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"20":{"tf":1.0}}}}},"n":{"df":1,"docs":{"13":{"tf":1.0}},"e":{"df":1,"docs":{"9":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":6,"docs":{"10":{"tf":1.0},"14":{"tf":1.0},"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}}},"o":{"b":{"df":0,"docs":{},"j":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"9":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":2,"docs":{"13":{"tf":1.0},"14":{"tf":1.4142135623730951}}}}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{}}},"c":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}},"df":1,"docs":{"9":{"tf":1.4142135623730951}},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"n":{"c":{"df":1,"docs":{"14":{"tf":1.4142135623730951}}},"df":6,"docs":{"1":{"tf":1.0},"10":{"tf":1.0},"16":{"tf":1.0},"18":{"tf":1.4142135623730951},"5":{"tf":1.4142135623730951},"6":{"tf":1.4142135623730951}},"t":{"df":0,"docs":{},"o":{"df":3,"docs":{"10":{"tf":1.0},"11":{"tf":1.0},"5":{"tf":1.0}}}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.0}}}},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"m":{"df":2,"docs":{"13":{"tf":1.0},"2":{"tf":1.0}}},"o":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"s":{"df":0,"docs":{},"x":{"df":1,"docs":{"8":{"tf":1.0}}}},"u":{"df":0,"docs":{},"t":{"df":0,"docs":{},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":3,"docs":{"0":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":4,"docs":{"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"6":{"tf":1.0}},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":4,"docs":{"0":{"tf":1.7320508075688772},"1":{"tf":1.0},"2":{"tf":1.0},"3":{"tf":1.0}}}}}}}}}},"p":{"a":{"c":{"df":0,"docs":{},"k":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"17":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":3,"docs":{"10":{"tf":1.0},"12":{"tf":1.0},"6":{"tf":1.0}}}},"i":{"c":{"df":1,"docs":{"13":{"tf":1.0}}},"df":0,"docs":{}}},"r":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":1,"docs":{"18":{"tf":2.23606797749979}}}}},"df":1,"docs":{"8":{"tf":1.4142135623730951}},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"12":{"tf":1.0}}}}}}}},"h":{"df":0,"docs":{},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"c":{"df":1,"docs":{"0":{"tf":1.0}}},"df":0,"docs":{}}}}},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"17":{"tf":1.0}}}},"l":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"f":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":1,"docs":{"17":{"tf":1.0}}}}}}}},"df":0,"docs":{},"l":{"df":1,"docs":{"2":{"tf":1.4142135623730951}}},"u":{"df":0,"docs":{},"g":{"df":2,"docs":{"10":{"tf":1.0},"12":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"e":{"df":1,"docs":{"6":{"tf":1.0}}},"r":{"df":0,"docs":{},"t":{"df":3,"docs":{"18":{"tf":1.7320508075688772},"6":{"tf":1.0},"8":{"tf":1.4142135623730951}}}},"s":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"l":{"df":3,"docs":{"17":{"tf":1.0},"18":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":2,"docs":{"1":{"tf":1.0},"14":{"tf":1.0}}}},"u":{"df":0,"docs":{},"n":{"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"2":{"tf":1.0}}}}},"df":0,"docs":{}}},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":5,"docs":{"10":{"tf":1.0},"11":{"tf":2.0},"12":{"tf":2.0},"4":{"tf":1.0},"6":{"tf":2.23606797749979}},"s":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":3,"docs":{"13":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}}}}}},"r":{"df":0,"docs":{},"e":{"c":{"a":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}},"df":0,"docs":{}},"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"r":{"df":1,"docs":{"6":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"x":{"df":1,"docs":{"18":{"tf":1.7320508075688772}}}}},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}}}}}}},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":1,"docs":{"9":{"tf":1.0}}}}}}},"o":{"b":{"df":0,"docs":{},"e":{"df":4,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":1.0},"13":{"tf":2.23606797749979}}}},"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":2,"docs":{"0":{"tf":1.4142135623730951},"2":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"m":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}}},"p":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"10":{"tf":1.0}},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"7":{"tf":1.0}}}}}}},"v":{"df":0,"docs":{},"i":{"d":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.4142135623730951}}},"df":0,"docs":{}}}}},"u":{"b":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":3,"docs":{"14":{"tf":1.0},"18":{"tf":1.0},"20":{"tf":2.23606797749979}}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":2,"docs":{"10":{"tf":1.0},"12":{"tf":1.0}}}}},"w":{"d":{"`":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{":":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{},"}":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{":":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"/":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"/":{"df":0,"docs":{},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"s":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{".":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"8":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"y":{"df":1,"docs":{"17":{"tf":1.0}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":3,"docs":{"17":{"tf":2.0},"18":{"tf":1.4142135623730951},"19":{"tf":1.4142135623730951}}}}}}}},"q":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"m":{"df":2,"docs":{"0":{"tf":1.0},"2":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"df":1,"docs":{"0":{"tf":1.0}}}}}}},"df":0,"docs":{}}},"r":{"a":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"e":{"a":{"c":{"df":0,"docs":{},"h":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"8":{"tf":1.4142135623730951},"9":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"df":0,"docs":{},"l":{"df":1,"docs":{"21":{"tf":1.0}}},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"b":{"df":0,"docs":{},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":1,"docs":{"5":{"tf":1.0}}}}},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"m":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"d":{"df":1,"docs":{"8":{"tf":1.0}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":6,"docs":{"16":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.4142135623730951},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0}}}}},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"l":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}}}},"l":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"s":{"df":2,"docs":{"13":{"tf":1.7320508075688772},"9":{"tf":2.0}}}},"df":0,"docs":{}}},"m":{"df":0,"docs":{},"o":{"df":0,"docs":{},"v":{"df":3,"docs":{"10":{"tf":1.0},"11":{"tf":1.4142135623730951},"12":{"tf":2.0}}}}},"p":{"df":0,"docs":{},"l":{"a":{"c":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"14":{"tf":1.0},"20":{"tf":1.4142135623730951}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":2,"docs":{"1":{"tf":1.4142135623730951},"8":{"tf":1.0}}}}}}}}}},"q":{"df":0,"docs":{},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":4,"docs":{"10":{"tf":1.7320508075688772},"13":{"tf":1.0},"20":{"tf":1.0},"8":{"tf":1.0}}}}}},"s":{"df":0,"docs":{},"p":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}}}}},"df":0,"docs":{}}},"t":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.4142135623730951}}}}},"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":0,"docs":{},"n":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"j":{"4":{"5":{"df":2,"docs":{"12":{"tf":1.0},"6":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}},"u":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":1,"docs":{"18":{"tf":1.0}}}},"n":{"df":10,"docs":{"0":{"tf":1.0},"13":{"tf":2.449489742783178},"14":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.0},"5":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":2.449489742783178}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.7320508075688772}},"u":{"df":0,"docs":{},"p":{"df":1,"docs":{"9":{"tf":1.7320508075688772}}}}}}}},"s":{"a":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"14":{"tf":1.0}}},"p":{"df":0,"docs":{},"l":{"df":2,"docs":{"0":{"tf":1.0},"13":{"tf":1.0}}}}}},"c":{"df":0,"docs":{},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"0":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":1,"docs":{"17":{"tf":1.0}}}}}}},"df":1,"docs":{"12":{"tf":1.0}},"e":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"8":{"tf":1.0}}}},"g":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"7":{"tf":1.0}}}}}}},"m":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}},"df":0,"docs":{}},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":1,"docs":{"10":{"tf":1.0}}}}},"t":{"df":1,"docs":{"21":{"tf":1.0}}}},"p":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"7":{"tf":1.4142135623730951}}}}}},"t":{"df":8,"docs":{"15":{"tf":1.0},"16":{"tf":3.1622776601683795},"18":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.4142135623730951},"7":{"tf":2.0},"8":{"tf":1.0},"9":{"tf":1.0}},"u":{"df":0,"docs":{},"p":{"df":11,"docs":{"10":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.0},"14":{"tf":1.0},"4":{"tf":1.4142135623730951},"5":{"tf":1.7320508075688772},"6":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.0},"9":{"tf":1.0}}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.0}}}}}},"h":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":1,"docs":{"12":{"tf":1.0}}}},"w":{"df":0,"docs":{},"n":{"df":1,"docs":{"11":{"tf":1.0}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":2,"docs":{"10":{"tf":1.0},"8":{"tf":1.0}}}},"df":0,"docs":{},"g":{"df":0,"docs":{},"n":{"a":{"df":0,"docs":{},"l":{"df":2,"docs":{"0":{"tf":2.0},"2":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"df":1,"docs":{"13":{"tf":1.0}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}},"n":{"df":0,"docs":{},"e":{"df":1,"docs":{"2":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"17":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"f":{"df":0,"docs":{},"t":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"2":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}},"u":{"df":0,"docs":{},"r":{"c":{"df":2,"docs":{"18":{"tf":1.0},"2":{"tf":1.0}}},"df":0,"docs":{}}}},"p":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":4,"docs":{"16":{"tf":1.4142135623730951},"18":{"tf":1.0},"2":{"tf":1.0},"7":{"tf":1.0}},"i":{"df":2,"docs":{"7":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"e":{"d":{"df":1,"docs":{"0":{"tf":1.0}}},"df":0,"docs":{}}}},"t":{"a":{"b":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":16,"docs":{"0":{"tf":2.0},"1":{"tf":2.0},"10":{"tf":1.0},"12":{"tf":1.0},"14":{"tf":2.0},"16":{"tf":1.7320508075688772},"17":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":1.7320508075688772},"21":{"tf":1.7320508075688772},"3":{"tf":1.7320508075688772},"5":{"tf":1.4142135623730951},"6":{"tf":1.0},"7":{"tf":2.0},"8":{"tf":2.6457513110645907},"9":{"tf":1.4142135623730951}},"i":{"df":0,"docs":{},"z":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"'":{"df":1,"docs":{"16":{"tf":1.0}}},".":{"df":0,"docs":{},"i":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"_":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"e":{"df":0,"docs":{},"f":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"i":{"df":1,"docs":{"19":{"tf":1.0}}}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}},"df":0,"docs":{}}}}}}},"l":{"df":2,"docs":{"8":{"tf":1.0},"9":{"tf":1.7320508075688772}}}},"df":0,"docs":{},"m":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}},"n":{"d":{"a":{"df":0,"docs":{},"r":{"d":{"df":1,"docs":{"20":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"r":{"df":0,"docs":{},"t":{"df":2,"docs":{"7":{"tf":1.0},"8":{"tf":1.0}}}},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"20":{"tf":1.0}}},"i":{"c":{"_":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"7":{"tf":1.0}}}}},"df":1,"docs":{"7":{"tf":1.0}}},"df":0,"docs":{}},"u":{"df":1,"docs":{"14":{"tf":1.4142135623730951}}}}},"df":2,"docs":{"11":{"tf":2.0},"4":{"tf":1.0}},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"8":{"tf":1.0}}},"r":{"a":{"df":0,"docs":{},"g":{"df":2,"docs":{"11":{"tf":1.7320508075688772},"4":{"tf":1.0}}}},"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.4142135623730951}}}}},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"_":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"=":{"'":{"df":0,"docs":{},"{":{"\"":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":1,"docs":{"18":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":1,"docs":{"18":{"tf":1.4142135623730951}}}}}}},"df":0,"docs":{}}},"df":2,"docs":{"18":{"tf":1.0},"21":{"tf":1.0}}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"18":{"tf":1.0}}}}}}},"u":{"b":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"9":{"tf":1.0}}}}}}}}},"c":{"df":0,"docs":{},"h":{"df":3,"docs":{"0":{"tf":1.0},"1":{"tf":1.0},"16":{"tf":1.0}}}},"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":7,"docs":{"0":{"tf":1.0},"16":{"tf":1.0},"2":{"tf":1.0},"21":{"tf":1.0},"7":{"tf":1.0},"8":{"tf":1.4142135623730951},"9":{"tf":1.4142135623730951}}}}}}}},"w":{"d":{"/":{"df":0,"docs":{},"j":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":4,"docs":{"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.7320508075688772},"4":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"c":{"df":0,"docs":{},"h":{"df":1,"docs":{"6":{"tf":1.0}}}},"df":0,"docs":{}}}},"y":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":2,"docs":{"17":{"tf":1.0},"7":{"tf":1.0}}}}}}}},"t":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"15":{"tf":1.4142135623730951},"4":{"tf":1.4142135623730951}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":2,"docs":{"2":{"tf":1.0},"5":{"tf":1.0}}}}}},"r":{"df":0,"docs":{},"g":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":3,"docs":{"18":{"tf":1.0},"2":{"tf":1.0},"9":{"tf":1.4142135623730951}}}}}}},"df":1,"docs":{"7":{"tf":1.4142135623730951}},"e":{"c":{"df":0,"docs":{},"h":{"df":0,"docs":{},"n":{"df":0,"docs":{},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"g":{"df":1,"docs":{"2":{"tf":1.0}}}}}}}}},"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":5,"docs":{"14":{"tf":1.4142135623730951},"15":{"tf":1.0},"18":{"tf":1.0},"2":{"tf":1.0},"20":{"tf":3.7416573867739413}}}}}}}}},"s":{"df":0,"docs":{},"t":{"df":1,"docs":{"1":{"tf":1.0}}}}},"h":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"df":0,"docs":{},"e":{"df":1,"docs":{"10":{"tf":1.0}}}},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"g":{"df":0,"docs":{},"h":{"df":2,"docs":{"6":{"tf":1.4142135623730951},"8":{"tf":1.0}},"p":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"20":{"tf":1.0}}}}}}}}}},"u":{"df":0,"docs":{},"m":{"b":{"df":0,"docs":{},"v":{"7":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":7,"docs":{"0":{"tf":1.0},"15":{"tf":1.0},"16":{"tf":1.7320508075688772},"2":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0},"5":{"tf":1.0}},"r":{"df":1,"docs":{"13":{"tf":1.0}}}}}},"o":{"df":0,"docs":{},"o":{"df":0,"docs":{},"l":{"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":1,"docs":{"9":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":3,"docs":{"0":{"tf":1.0},"12":{"tf":1.0},"9":{"tf":1.0}}}},"p":{"df":0,"docs":{},"i":{"c":{"df":2,"docs":{"14":{"tf":1.4142135623730951},"18":{"tf":1.0}}},"df":0,"docs":{}}}},"r":{"a":{"c":{"df":0,"docs":{},"k":{"df":1,"docs":{"9":{"tf":1.0}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"f":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":2,"docs":{"20":{"tf":1.0},"21":{"tf":1.0}}}}}}}},"df":0,"docs":{}},"w":{"df":0,"docs":{},"o":{"df":4,"docs":{"0":{"tf":1.7320508075688772},"16":{"tf":1.4142135623730951},"2":{"tf":1.0},"6":{"tf":1.0}}}}},"u":{"b":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"df":1,"docs":{"7":{"tf":1.4142135623730951}}}}}}},"d":{"df":0,"docs":{},"p":{"df":1,"docs":{"21":{"tf":1.0}}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"df":0,"docs":{},"q":{"df":0,"docs":{},"u":{"df":2,"docs":{"14":{"tf":1.0},"18":{"tf":1.0}}}},"t":{"df":1,"docs":{"20":{"tf":1.0}}}},"s":{"df":0,"docs":{},"u":{"c":{"c":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"18":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"u":{"df":0,"docs":{},"s":{"df":1,"docs":{"6":{"tf":1.0}}}},"w":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":1,"docs":{"2":{"tf":1.0}}}}},"df":0,"docs":{}}}},"p":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"/":{"d":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":0,"docs":{},"n":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"s":{"df":1,"docs":{"1":{"tf":1.0}}}}}}}}},"df":0,"docs":{}}}}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}}}}}},"d":{"a":{"df":0,"docs":{},"t":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}},"df":2,"docs":{"0":{"tf":1.7320508075688772},"11":{"tf":1.0}},"g":{"df":0,"docs":{},"r":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":2,"docs":{"12":{"tf":1.4142135623730951},"4":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"s":{"a":{"df":0,"docs":{},"g":{"df":7,"docs":{"15":{"tf":1.4142135623730951},"16":{"tf":1.0},"17":{"tf":1.0},"18":{"tf":1.7320508075688772},"19":{"tf":1.0},"20":{"tf":1.0},"21":{"tf":1.0}}}},"b":{"df":2,"docs":{"12":{"tf":1.7320508075688772},"7":{"tf":1.0}}},"df":18,"docs":{"0":{"tf":1.4142135623730951},"10":{"tf":1.0},"11":{"tf":1.0},"12":{"tf":1.0},"13":{"tf":1.4142135623730951},"14":{"tf":1.4142135623730951},"16":{"tf":1.4142135623730951},"17":{"tf":1.4142135623730951},"18":{"tf":1.0},"19":{"tf":1.0},"2":{"tf":1.4142135623730951},"20":{"tf":2.0},"3":{"tf":1.0},"5":{"tf":1.0},"6":{"tf":1.0},"7":{"tf":1.4142135623730951},"8":{"tf":2.449489742783178},"9":{"tf":1.0}},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"0":{"tf":1.0}}}}},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"df":5,"docs":{"12":{"tf":1.7320508075688772},"17":{"tf":1.0},"18":{"tf":1.4142135623730951},"19":{"tf":1.4142135623730951},"20":{"tf":1.0}}}}}},"v":{"2":{"df":1,"docs":{"11":{"tf":1.0}}},"a":{"df":0,"docs":{},"l":{"df":0,"docs":{},"u":{"df":2,"docs":{"16":{"tf":1.0},"18":{"tf":2.449489742783178}}}},"r":{"df":0,"docs":{},"i":{"a":{"b":{"df":0,"docs":{},"l":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":2,"docs":{"0":{"tf":1.0},"19":{"tf":1.0}}}}},"o":{"df":0,"docs":{},"u":{"df":1,"docs":{"2":{"tf":1.7320508075688772}}}}}}},"df":1,"docs":{"8":{"tf":2.449489742783178}},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"v":{"df":1,"docs":{"17":{"tf":1.0}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":2,"docs":{"14":{"tf":1.7320508075688772},"4":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"i":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":2,"docs":{"8":{"tf":1.4142135623730951},"9":{"tf":1.0}}}}}}}},"i":{"a":{"df":3,"docs":{"1":{"tf":1.4142135623730951},"6":{"tf":1.7320508075688772},"8":{"tf":1.0}}},"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"/":{"c":{"df":0,"docs":{},"h":{"a":{"df":0,"docs":{},"n":{"df":0,"docs":{},"g":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}}},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"l":{"df":3,"docs":{"11":{"tf":1.7320508075688772},"17":{"tf":1.4142135623730951},"4":{"tf":1.0}}}},"df":0,"docs":{}}}}},"o":{"df":0,"docs":{},"l":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"20":{"tf":1.4142135623730951}}}},"df":0,"docs":{}}}},"p":{"df":0,"docs":{},"i":{"df":1,"docs":{"17":{"tf":1.0}}},"y":{"/":{"df":0,"docs":{},"s":{"c":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"p":{"df":0,"docs":{},"t":{"df":0,"docs":{},"s":{"/":{"a":{"c":{"df":0,"docs":{},"t":{"df":0,"docs":{},"i":{"df":0,"docs":{},"v":{"df":1,"docs":{"17":{"tf":1.0}}}}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{}}}},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"l":{"df":4,"docs":{"16":{"tf":1.0},"17":{"tf":1.0},"20":{"tf":1.0},"9":{"tf":1.0}}}}},"h":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"v":{"df":1,"docs":{"16":{"tf":1.0}}}}}}},"i":{"d":{"df":0,"docs":{},"e":{"df":1,"docs":{"0":{"tf":1.0}}}},"df":0,"docs":{},"k":{"df":0,"docs":{},"i":{"df":1,"docs":{"1":{"tf":1.4142135623730951}}}},"l":{"d":{"c":{"a":{"df":0,"docs":{},"r":{"d":{"df":1,"docs":{"14":{"tf":1.0}}},"df":0,"docs":{}}},"df":0,"docs":{}},"df":0,"docs":{}},"df":0,"docs":{}},"n":{"d":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":1,"docs":{"8":{"tf":1.0}}}}},"df":0,"docs":{}},"t":{"df":0,"docs":{},"h":{"df":0,"docs":{},"o":{"df":0,"docs":{},"u":{"df":0,"docs":{},"t":{"df":1,"docs":{"8":{"tf":1.0}}}}}}}},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":1,"docs":{"8":{"tf":1.0}}}}},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"t":{"df":0,"docs":{},"e":{"df":1,"docs":{"17":{"tf":1.0}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":1,"docs":{"19":{"tf":1.0}}}}}}}}},"x":{"df":1,"docs":{"7":{"tf":1.0}}}}},"title":{"root":{"a":{"df":0,"docs":{},"p":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"i":{"c":{"df":1,"docs":{"2":{"tf":1.0}}},"df":0,"docs":{}}}}}},"b":{"df":0,"docs":{},"r":{"df":0,"docs":{},"o":{"df":0,"docs":{},"k":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"8":{"tf":1.0}}}}}}},"u":{"df":0,"docs":{},"i":{"df":0,"docs":{},"l":{"d":{"df":1,"docs":{"9":{"tf":1.0}}},"df":0,"docs":{}}}}},"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"g":{"df":0,"docs":{},"u":{"df":0,"docs":{},"r":{"df":1,"docs":{"19":{"tf":1.0}}}}}}},"n":{"df":0,"docs":{},"e":{"c":{"df":0,"docs":{},"t":{"df":1,"docs":{"14":{"tf":1.0}}}},"df":0,"docs":{}}},"t":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":2,"docs":{"15":{"tf":1.0},"4":{"tf":1.0}}}}}}}}},"d":{"df":0,"docs":{},"e":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"df":0,"docs":{},"p":{"df":1,"docs":{"13":{"tf":1.0}}}}}}}},"f":{"df":0,"docs":{},"u":{"df":1,"docs":{"12":{"tf":1.0}}}},"h":{"c":{"df":0,"docs":{},"p":{"df":1,"docs":{"7":{"tf":1.0}}}},"df":0,"docs":{}},"o":{"c":{"df":0,"docs":{},"u":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"n":{"df":0,"docs":{},"t":{"df":1,"docs":{"3":{"tf":1.0}}}}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":0,"docs":{},"m":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}}}}},"l":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"h":{"df":1,"docs":{"10":{"tf":1.0}}}}},"df":0,"docs":{}}},"h":{"a":{"df":0,"docs":{},"r":{"d":{"df":0,"docs":{},"w":{"a":{"df":0,"docs":{},"r":{"df":1,"docs":{"1":{"tf":1.0}}}},"df":0,"docs":{}}},"df":0,"docs":{}}},"df":0,"docs":{}},"i":{"df":0,"docs":{},"i":{"df":0,"docs":{},"r":{"df":1,"docs":{"19":{"tf":1.0}}}},"n":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"17":{"tf":1.0}}}},"df":0,"docs":{}}}}},"l":{"df":0,"docs":{},"i":{"b":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"3":{"tf":1.0}}}}},"df":0,"docs":{}}},"df":0,"docs":{},"n":{"df":0,"docs":{},"k":{"df":1,"docs":{"11":{"tf":1.0}}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"s":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"e":{"a":{"df":0,"docs":{},"m":{"df":1,"docs":{"21":{"tf":1.0}}}},"df":0,"docs":{}}}}}}}}},"m":{"a":{"df":0,"docs":{},"s":{"df":0,"docs":{},"s":{"df":1,"docs":{"11":{"tf":1.0}}}}},"df":0,"docs":{},"i":{"df":0,"docs":{},"n":{"df":0,"docs":{},"i":{"c":{"df":0,"docs":{},"o":{"df":0,"docs":{},"n":{"df":0,"docs":{},"f":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"df":0,"docs":{}}}},"q":{"df":0,"docs":{},"t":{"df":0,"docs":{},"t":{"df":2,"docs":{"14":{"tf":1.0},"8":{"tf":1.0}}}}}},"n":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"w":{"df":0,"docs":{},"o":{"df":0,"docs":{},"r":{"df":0,"docs":{},"k":{"df":1,"docs":{"7":{"tf":1.0}}}}}}}}},"o":{"df":0,"docs":{},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"v":{"df":0,"docs":{},"i":{"df":0,"docs":{},"e":{"df":0,"docs":{},"w":{"df":1,"docs":{"0":{"tf":1.0}}}}}}}}}},"p":{"df":0,"docs":{},"o":{"df":0,"docs":{},"w":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":1,"docs":{"6":{"tf":1.0}}}}}}},"r":{"df":0,"docs":{},"u":{"df":0,"docs":{},"n":{"df":1,"docs":{"16":{"tf":1.0}}}}},"s":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":1,"docs":{"16":{"tf":1.0}},"u":{"df":0,"docs":{},"p":{"df":1,"docs":{"5":{"tf":1.0}}}}}},"t":{"df":1,"docs":{"11":{"tf":1.0}},"o":{"df":0,"docs":{},"r":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}}}},"w":{"d":{"/":{"df":0,"docs":{},"j":{"df":0,"docs":{},"t":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"13":{"tf":1.0}}}},"df":0,"docs":{}}}},"df":0,"docs":{}},"df":0,"docs":{}}},"t":{"a":{"b":{"df":0,"docs":{},"l":{"df":2,"docs":{"15":{"tf":1.0},"4":{"tf":1.0}}}},"df":0,"docs":{}},"df":0,"docs":{},"e":{"df":0,"docs":{},"l":{"df":0,"docs":{},"e":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":0,"docs":{},"t":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":1,"docs":{"20":{"tf":1.0}}}}}}}}}},"i":{"df":0,"docs":{},"m":{"df":0,"docs":{},"e":{"df":1,"docs":{"16":{"tf":1.0}}}}}},"u":{"df":0,"docs":{},"p":{"df":0,"docs":{},"l":{"df":0,"docs":{},"o":{"a":{"d":{"df":1,"docs":{"12":{"tf":1.0}}},"df":0,"docs":{}},"df":0,"docs":{}}}},"s":{"a":{"df":0,"docs":{},"g":{"df":1,"docs":{"18":{"tf":1.0}}}},"df":0,"docs":{}}},"v":{"df":0,"docs":{},"e":{"df":0,"docs":{},"r":{"df":0,"docs":{},"i":{"df":0,"docs":{},"f":{"df":0,"docs":{},"i":{"df":1,"docs":{"14":{"tf":1.0}}}}}}},"i":{"df":0,"docs":{},"r":{"df":0,"docs":{},"t":{"df":0,"docs":{},"u":{"a":{"df":0,"docs":{},"l":{"df":1,"docs":{"11":{"tf":1.0}}}},"df":0,"docs":{}}}}}}}}},"lang":"English","pipeline":["trimmer","stopWordFilter","stemmer"],"ref":"id","version":"0.9.5"},"results_options":{"limit_results":30,"teaser_word_count":30},"search_options":{"bool":"OR","expand":true,"fields":{"body":{"boost":1},"breadcrumbs":{"boost":1},"title":{"boost":2}}}} \ No newline at end of file diff --git a/setup.html b/setup.html new file mode 100644 index 0000000000..6d169e1cf4 --- /dev/null +++ b/setup.html @@ -0,0 +1,388 @@ + + + + + + Setup - Stabilizer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + +
+
+

Table of Contents

+ +

Setup

+

The Stabilizer firmware consists of different applications tailored to different use cases. +Only one application can run on the device at a given time. +After receiving the Stabilizer hardware, you will need to choose, build, and flash one +of the applications onto the device.

+

Power

+

Power Stabilizer through exactly one of the following mechanisms.

+
    +
  1. Via the backside 12V barrel connector
  2. +
  3. Via Power-over-Ethernet using a PoE capable switch (802.3af or preferrably +802.3at) and the RJ45 front panel port
  4. +
  5. Via an EEM connection to Kasli
  6. +
+
+

Note: Applying power through more than one mechanism may lead to damage. +Ensure the two unused methods are not connected or explicitly disabled.

+
+

Network and DHCP

+

Stabilizer supports 10Base-T or 100Base-T with Auto MDI-X. +Stabilizer uses DHCP to obtain its network configuration information. Ensure there is a +properly configured DHCP server running on the network segment that Stabilizer is +connected to. +Alternatively, a static IP can be enforced in the firmware build command by specifying +the environmental variable STATIC_IP analogous to how a specific broker IP is set.

+
+

Note: If Stabilizer is connected directly to an Ubuntu system (for example using a USB-Ethernet dongle) +you can set the IPv4 settings of this Ethernet connection in the Ubuntu network settings to +"Shared to other computers". This will start and configure a DHCP server for this connection.

+
+

MQTT Broker

+

Stabilizer requires an MQTT broker that supports MQTTv5. +The MQTT broker is used to distribute and exchange elemetry data and to view/change application settings. +The broker must be reachable by both the host-side applications used to +interact with the application on Stabilizer and by the application running on Stabilizer. +Determine the IPv4 address of the broker as seen from the network Stabilizer is +connected to. The broker IP address must be stable. It will be used later +during firmware build. +The broker must be reachable on port 1883 on that IP address. +Firewalls between Stabilizer and the broker may need to be configured to +allow connections from Stabilizer to that port and IP address.

+

Mosquitto has been used as a MQTT broker during development, +but any MQTTv5 broker without authentication or encryption will likely work.

+
+

Note: Mosquitto version 1 only supports MQTTv3.1. If using Mosquitto, ensure version 2.0.0 or +later is used.

+
+

We recommend running Mosquitto through Docker to easily run it on +Windows, Linux, and OSX. After docker has been installed, run the following command from +the stabilizer repository to create a container named mosquitto that can be stopped +and started easily via docker:

+
# Bash
+docker run -p 1883:1883 --name mosquitto -v `pwd`/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2
+
+# Powershell
+docker run -p 1883:1883 --name mosquitto -v ${pwd}/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2
+
+

Building

+
    +
  1. Get and install rustup and use it to install a current stable Rust toolchain. +Stabilizer tracks stable Rust. The minimum supported Rust version (MSRV) is specified in the manifest (Cargo.toml).
  2. +
  3. Install target support +
    rustup target add thumbv7em-none-eabihf
    +
    +
  4. +
  5. Install cargo-binutils +
    cargo install cargo-binutils
    +rustup component add llvm-tools-preview
    +
    +
  6. +
  7. Clone or download the firmware +
    git clone https://github.com/quartiq/stabilizer
    +cd stabilizer
    +
    +
  8. +
  9. Build firmware specifying the MQTT broker IP. Replace 10.34.16.1 by the +stable and reachable broker IPv4 address determined above. +
    # Bash
    +BROKER="10.34.16.1" cargo build --release
    +
    +# Powershell
    +# Note: This sets the broker for all future builds as well.
    +$env:BROKER='10.34.16.1'; cargo build --release
    +
    +
  10. +
  11. Extract the application binary (substitute dual-iir below with the desired application name) +
    # Bash
    +BROKER="10.34.16.1" cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin
    +
    +# Powershell
    +$env:BROKER='10.34.16.1'; cargo objcopy --release --bin dual-iir -- -O binary dual-iir.bin
    +
    +
  12. +
+

Flashing

+

Firmware can be loaded onto stabilizer using one of the three following methods.

+
+

Note: All methods require access to the circuit board. Pulling the device from a +crate always requires power removal as there are sensitive leads and components on +both sides of the board that may come into contact with adjacent front panels. +Every access to the board also requires proper ESD precautions. Never +hot-plug the device or the probe.

+
+ +

If a ST-Link V2-1 or later is available this method can be used.

+

Power down the device, remove it from the crate, and connect the +SWD/JTAG probe as shown below to the device and to your computer.

+

JTAG Connection

+

Power up the device and copy dual-iir.bin onto the virtual mass storage ST-Link drive +that has appeared on your computer. +Power down the device before removing the probe, inserting it into the crate +and applying power again.

+

DFU Upload

+

If an SWD/JTAG probe is not available, +you can flash firmware using only a micro USB cable +plugged in to the front of Stabilizer, a DFU utility, and a jumper to activate +the bootloader.

+
    +
  1. Install the DFU USB tool dfu-util
  2. +
  3. Remove power
  4. +
  5. Then carefully remove the module from the crate to gain +access to the board
  6. +
  7. Short JC2/BOOT with the jumper
  8. +
  9. Connect your computer to the Micro USB connector below/left of the RJ45 +connector on the front panel
  10. +
  11. Insert the module into the crate
  12. +
  13. Then power it
  14. +
  15. Perform the Device Firmware Upgrade (DFU) +
    dfu-util -a 0 -s 0x08000000:leave -D dual-iir.bin
    +
    +
  16. +
  17. To keep the device from entering the bootloader remove power, +pull the board from the crate, remove the JC2/BOOT jumper, insert the module +into the crate, and power it again
  18. +
+

SWD/JTAG Firmware Development

+

To observe logging messages or to develop and debug applications a SWD/JTAG +probe is required. To use a compatible probe with probe-run connect it as +described above.

+
    +
  1. Install probe-run +
    cargo install probe-run
    +
    +
  2. +
  3. Build and run firmware on the device +
    # Bash
    +BROKER="10.34.16.1" cargo run --release --bin dual-iir
    +
    +# Powershell
    +$Env:BROKER='10.34.16.1'; cargo run --release --bin dual-iir
    +
    +
  4. +
+

When using debug (non --release) mode, decrease the sampling frequency significantly. +The added error checking code and missing optimizations may lead to the application +missing timer deadlines and panicing.

+

Verify MQTT connection

+

Once your MQTT broker and Stabilizer are both running, verify that the application +connects to the broker.

+

A Stabilizer application on a device is reporting its status on the following topic

+
dt/sinara/dual-iir/+/alive
+
+

The + is a wildcard matching the unique MAC address of the device (e.g. aa-bb-cc-00-11-22).

+

Download MQTT-Explorer to observe which topics have been posted to the +Broker.

+

MQTT Explorer Configuration

+
+

Note: In MQTT explorer, use the same broker address that you used when building the firmware.

+
+

In addition to the alive status, telemetry messages are published at regular intervals +when Stabilizer has connected to the broker. Once you observe incoming telemetry, +Stabilizer is operational.

+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + diff --git a/tomorrow-night.css b/tomorrow-night.css new file mode 100644 index 0000000000..f71979258d --- /dev/null +++ b/tomorrow-night.css @@ -0,0 +1,104 @@ +/* Tomorrow Night Theme */ +/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ + +/* Tomorrow Comment */ +.hljs-comment { + color: #969896; +} + +/* Tomorrow Red */ +.hljs-variable, +.hljs-attribute, +.hljs-tag, +.hljs-regexp, +.ruby .hljs-constant, +.xml .hljs-tag .hljs-title, +.xml .hljs-pi, +.xml .hljs-doctype, +.html .hljs-doctype, +.css .hljs-id, +.css .hljs-class, +.css .hljs-pseudo { + color: #cc6666; +} + +/* Tomorrow Orange */ +.hljs-number, +.hljs-preprocessor, +.hljs-pragma, +.hljs-built_in, +.hljs-literal, +.hljs-params, +.hljs-constant { + color: #de935f; +} + +/* Tomorrow Yellow */ +.ruby .hljs-class .hljs-title, +.css .hljs-rule .hljs-attribute { + color: #f0c674; +} + +/* Tomorrow Green */ +.hljs-string, +.hljs-value, +.hljs-inheritance, +.hljs-header, +.hljs-name, +.ruby .hljs-symbol, +.xml .hljs-cdata { + color: #b5bd68; +} + +/* Tomorrow Aqua */ +.hljs-title, +.css .hljs-hexcolor { + color: #8abeb7; +} + +/* Tomorrow Blue */ +.hljs-function, +.python .hljs-decorator, +.python .hljs-title, +.ruby .hljs-function .hljs-title, +.ruby .hljs-title .hljs-keyword, +.perl .hljs-sub, +.javascript .hljs-title, +.coffeescript .hljs-title { + color: #81a2be; +} + +/* Tomorrow Purple */ +.hljs-keyword, +.javascript .hljs-function { + color: #b294bb; +} + +.hljs { + display: block; + overflow-x: auto; + background: #1d1f21; + color: #c5c8c6; + padding: 0.5em; + -webkit-text-size-adjust: none; +} + +.coffeescript .javascript, +.javascript .xml, +.tex .hljs-formula, +.xml .javascript, +.xml .vbscript, +.xml .css, +.xml .hljs-cdata { + opacity: 0.5; +} + +.hljs-addition { + color: #718c00; +} + +.hljs-deletion { + color: #c82829; +} diff --git a/usage.html b/usage.html new file mode 100644 index 0000000000..ba057c639c --- /dev/null +++ b/usage.html @@ -0,0 +1,290 @@ + + + + + + Usage - Stabilizer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + +
+
+

Table of Contents

+ +

Miniconf Run-time Settings

+

Stabilizer supports run-time settings configuration using MQTT.

+

Settings can be stored in the MQTT broker so that they are automatically applied whenever +Stabilizer reboots and connects. This is referred to as "retained" settings. Broker implementations +may optionally store these retained settings as well such that they will be reapplied between +restarts of the MQTT broker.

+

Settings are specific to a device. Any settings configured for one Stabilizer will not be applied +to another. Disambiguation of devices is done by using Stabilizer's MAC address.

+

Settings are specific to an application. If two identical settings exist for two different +applications, each application maintains its own independent value.

+

Installation

+

Install the Miniconf configuration utilities using a virtual environment:

+
python -m venv --system-site-packages vpy
+
+# Refer to https://docs.python.org/3/tutorial/venv.html for more information on activating the
+# virtual environment. This command is different on different platforms.
+./vpy/Scripts/activate
+
+

Next, install prerequisite packages

+
python -m pip install -e py
+
+

To use miniconf, execute it as follows:

+
python -m miniconf --help
+
+

Miniconf also exposes a programmatic Python API, so it's possible to write automation scripting of +Stabilizer as well.

+

Usage

+

The Miniconf Python utility utilizes a unique "device prefix". The device prefix is always of the +form dt/sinara/<app>/<mac-address>, where <app> is the name of the application and +<mac-address> is the MAC address of the device, formatted with delimiting dashes, and lower case letters.

+

Settings have a path and a value being configured. The value parameter is JSON-encoded data +and the path value is a path-like string.

+

As an example, for configuring dual-iir's stream_target, the following information would be +used:

+
    +
  • path = stream_target
  • +
  • value = {"ip": [192, 168, 0, 1], "port": 4000}
  • +
+
python -m miniconf --broker 10.34.16.1 dt/sinara/dual-iir/00-11-22-33-44-55 stream_target='{"ip": [10, 34, 16, 123], "port": 4000}'
+
+Where `10.34.16.1` is the MQTT broker address that matches the one configured in the source code and `10.34.16.123` and `4000` are the desire stream target IP and port.
+
+

The prefix can be found for a specific device by looking at the topic on which telemetry that is +being published. It can also be automatically discovered if there is only one +device alive.

+

Refer to the application documentation for the exact settings and values exposed +for each application.

+

The rules for constructing path values are documented in miniconf's +documentation

+

Refer to the documentation for Miniconf for a +description of the possible error codes that Miniconf may return if the settings update was +unsuccessful.

+

IIR Configuration

+

For the dual-iir application, a Python utility has been written to easily configure the IIR +filters for a variety of filtering and control applications.

+

Then, use the built-in help to learn how the utility can automatically configure your IIR filters +for you:

+
python -m stabilizer.iir_coefficients --help
+
+

Telemetry

+

Stabilizer applications publish telemetry utilizes MQTT for managing run-time settings configurations as well as live telemetry +reporting.

+

Telemetry is defined as low rate, general health information. It is not intended for high throughput +or efficiency. Telemetry is generally used to determine that the device is functioning nominally.

+

Stabilizer applications publish telemetry over MQTT at a set rate. Telemetry data units are defined +by the application. All telemetry is reported using standard JSON format.

+

Telemetry is intended for low-bandwidth monitoring. It is not intended to transfer large amounts of +data and uses a minimal amount of bandwidth. Telemetry is published using "best effort" semantics - +individual messages may be dropped or Stabilizer may fail to publish telemetry due to internal +buffering requirements.

+

In its most basic form, telemetry publishes the latest ADC input voltages, DAC output voltages, and +digital input states.

+

Refer to the respective application documentation for more information on telemetry.

+

Livestream

+

Stabilizer supports livestream capabilities for streaming real-time data over UDP. The livestream is +intended to be a high-bandwidth mechanism to transfer large amounts of data from Stabilizer to a +host computer for further analysis.

+

Livestreamed data is sent with "best effort" - it's possible that data may be lost either due to +network congestion or by Stabilizer.

+

Refer to the the respective application documentation for more information.

+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + +