Update repo
No files matched your search
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
window.location.href = "http://www.ti.com/product/TMS320F28379S"; //change this to the URL
|
||||
//you want to redirect to
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
# Sphinx build info version 1
|
||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 1b179740ac43d12d690681ce5e03e750
|
||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 164 KiB |
@@ -0,0 +1,768 @@
|
||||
/*
|
||||
* basic.css
|
||||
* ~~~~~~~~~
|
||||
*
|
||||
* Sphinx stylesheet -- basic theme.
|
||||
*
|
||||
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
/* -- main layout ----------------------------------------------------------- */
|
||||
|
||||
div.clearer {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* -- relbar ---------------------------------------------------------------- */
|
||||
|
||||
div.related {
|
||||
width: 100%;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
div.related h3 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.related ul {
|
||||
margin: 0;
|
||||
padding: 0 0 0 10px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
div.related li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
div.related li.right {
|
||||
float: right;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/* -- sidebar --------------------------------------------------------------- */
|
||||
|
||||
div.sphinxsidebarwrapper {
|
||||
padding: 10px 5px 0 10px;
|
||||
}
|
||||
|
||||
div.sphinxsidebar {
|
||||
float: left;
|
||||
width: 230px;
|
||||
margin-left: -100%;
|
||||
font-size: 90%;
|
||||
word-wrap: break-word;
|
||||
overflow-wrap : break-word;
|
||||
}
|
||||
|
||||
div.sphinxsidebar ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
div.sphinxsidebar ul ul,
|
||||
div.sphinxsidebar ul.want-points {
|
||||
margin-left: 20px;
|
||||
list-style: square;
|
||||
}
|
||||
|
||||
div.sphinxsidebar ul ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
div.sphinxsidebar form {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
div.sphinxsidebar input {
|
||||
border: 1px solid #98dbcc;
|
||||
font-family: sans-serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox form.search {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox input[type="text"] {
|
||||
float: left;
|
||||
width: 80%;
|
||||
padding: 0.25em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox input[type="submit"] {
|
||||
float: left;
|
||||
width: 20%;
|
||||
border-left: none;
|
||||
padding: 0.25em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* -- search page ----------------------------------------------------------- */
|
||||
|
||||
ul.search {
|
||||
margin: 10px 0 0 20px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.search li {
|
||||
padding: 5px 0 5px 20px;
|
||||
background-image: url(file.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 7px;
|
||||
}
|
||||
|
||||
ul.search li a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul.search li div.context {
|
||||
color: #888;
|
||||
margin: 2px 0 0 30px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
ul.keywordmatches li.goodmatch a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* -- index page ------------------------------------------------------------ */
|
||||
|
||||
table.contentstable {
|
||||
width: 90%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.contentstable p.biglink {
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
a.biglink {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
span.linkdescr {
|
||||
font-style: italic;
|
||||
padding-top: 5px;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
/* -- general index --------------------------------------------------------- */
|
||||
|
||||
table.indextable {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.indextable td {
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.indextable ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
table.indextable > tbody > tr > td > ul {
|
||||
padding-left: 0em;
|
||||
}
|
||||
|
||||
table.indextable tr.pcap {
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
table.indextable tr.cap {
|
||||
margin-top: 10px;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
img.toggler {
|
||||
margin-right: 3px;
|
||||
margin-top: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
div.modindex-jumpbox {
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin: 1em 0 1em 0;
|
||||
padding: 0.4em;
|
||||
}
|
||||
|
||||
div.genindex-jumpbox {
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin: 1em 0 1em 0;
|
||||
padding: 0.4em;
|
||||
}
|
||||
|
||||
/* -- domain module index --------------------------------------------------- */
|
||||
|
||||
table.modindextable td {
|
||||
padding: 2px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
/* -- general body styles --------------------------------------------------- */
|
||||
|
||||
div.body {
|
||||
min-width: 450px;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
div.body p, div.body dd, div.body li, div.body blockquote {
|
||||
-moz-hyphens: auto;
|
||||
-ms-hyphens: auto;
|
||||
-webkit-hyphens: auto;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
a.headerlink {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
a.brackets:before,
|
||||
span.brackets > a:before{
|
||||
content: "[";
|
||||
}
|
||||
|
||||
a.brackets:after,
|
||||
span.brackets > a:after {
|
||||
content: "]";
|
||||
}
|
||||
|
||||
h1:hover > a.headerlink,
|
||||
h2:hover > a.headerlink,
|
||||
h3:hover > a.headerlink,
|
||||
h4:hover > a.headerlink,
|
||||
h5:hover > a.headerlink,
|
||||
h6:hover > a.headerlink,
|
||||
dt:hover > a.headerlink,
|
||||
caption:hover > a.headerlink,
|
||||
p.caption:hover > a.headerlink,
|
||||
div.code-block-caption:hover > a.headerlink {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
div.body p.caption {
|
||||
text-align: inherit;
|
||||
}
|
||||
|
||||
div.body td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.first {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
p.rubric {
|
||||
margin-top: 30px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left {
|
||||
clear: left;
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right {
|
||||
clear: right;
|
||||
float: right;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
img.align-default, .figure.align-default {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-default {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* -- sidebars -------------------------------------------------------------- */
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em;
|
||||
border: 1px solid #ddb;
|
||||
padding: 7px 7px 0 7px;
|
||||
background-color: #ffe;
|
||||
width: 40%;
|
||||
float: right;
|
||||
}
|
||||
|
||||
p.sidebar-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* -- topics ---------------------------------------------------------------- */
|
||||
|
||||
div.topic {
|
||||
border: 1px solid #ccc;
|
||||
padding: 7px 7px 0 7px;
|
||||
margin: 10px 0 10px 0;
|
||||
}
|
||||
|
||||
p.topic-title {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* -- admonitions ----------------------------------------------------------- */
|
||||
|
||||
div.admonition {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
padding: 7px;
|
||||
}
|
||||
|
||||
div.admonition dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.admonition dl {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
p.admonition-title {
|
||||
margin: 0px 10px 5px 0px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.body p.centered {
|
||||
text-align: center;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
/* -- tables ---------------------------------------------------------------- */
|
||||
|
||||
table.docutils {
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-default {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table caption span.caption-number {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
table caption span.caption-text {
|
||||
}
|
||||
|
||||
table.docutils td, table.docutils th {
|
||||
padding: 1px 8px 1px 5px;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid #aaa;
|
||||
}
|
||||
|
||||
table.footnote td, table.footnote th {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
table.citation td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
th > p:first-child,
|
||||
td > p:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
th > p:last-child,
|
||||
td > p:last-child {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
/* -- figures --------------------------------------------------------------- */
|
||||
|
||||
div.figure {
|
||||
margin: 0.5em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
div.figure p.caption {
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
div.figure p.caption span.caption-number {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
div.figure p.caption span.caption-text {
|
||||
}
|
||||
|
||||
/* -- field list styles ----------------------------------------------------- */
|
||||
|
||||
table.field-list td, table.field-list th {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.field-list ul {
|
||||
margin: 0;
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
.field-list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.field-name {
|
||||
-moz-hyphens: manual;
|
||||
-ms-hyphens: manual;
|
||||
-webkit-hyphens: manual;
|
||||
hyphens: manual;
|
||||
}
|
||||
|
||||
/* -- hlist styles ---------------------------------------------------------- */
|
||||
|
||||
table.hlist td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
||||
/* -- other body styles ----------------------------------------------------- */
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha;
|
||||
}
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha;
|
||||
}
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman;
|
||||
}
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman;
|
||||
}
|
||||
|
||||
li > p:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
li > p:last-child {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
dl.footnote > dt,
|
||||
dl.citation > dt {
|
||||
float: left;
|
||||
}
|
||||
|
||||
dl.footnote > dd,
|
||||
dl.citation > dd {
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
|
||||
dl.footnote > dd:after,
|
||||
dl.citation > dd:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
}
|
||||
|
||||
dl.field-list {
|
||||
display: grid;
|
||||
grid-template-columns: fit-content(30%) auto;
|
||||
}
|
||||
|
||||
dl.field-list > dt {
|
||||
font-weight: bold;
|
||||
word-break: break-word;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
dl.field-list > dt:after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
dl.field-list > dd {
|
||||
padding-left: 0.5em;
|
||||
margin-top: 0em;
|
||||
margin-left: 0em;
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
|
||||
dl {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
dd > p:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
dd ul, dd table {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-top: 3px;
|
||||
margin-bottom: 10px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
dt:target, span.highlighted {
|
||||
background-color: #fbe54e;
|
||||
}
|
||||
|
||||
rect.highlighted {
|
||||
fill: #fbe54e;
|
||||
}
|
||||
|
||||
dl.glossary dt {
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.optional {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.sig-paren {
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
.versionmodified {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.system-message {
|
||||
background-color: #fda;
|
||||
padding: 5px;
|
||||
border: 3px solid red;
|
||||
}
|
||||
|
||||
.footnote:target {
|
||||
background-color: #ffa;
|
||||
}
|
||||
|
||||
.line-block {
|
||||
display: block;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.line-block .line-block {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
.guilabel, .menuselection {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.accelerator {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.classifier {
|
||||
font-style: oblique;
|
||||
}
|
||||
|
||||
.classifier:before {
|
||||
font-style: normal;
|
||||
margin: 0.5em;
|
||||
content: ":";
|
||||
}
|
||||
|
||||
abbr, acronym {
|
||||
border-bottom: dotted 1px;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
/* -- code displays --------------------------------------------------------- */
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
overflow-y: hidden; /* fixes display issues on Chrome browsers */
|
||||
}
|
||||
|
||||
span.pre {
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
-webkit-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
td.linenos pre {
|
||||
padding: 5px 0px;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
table.highlighttable {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
table.highlighttable td {
|
||||
padding: 0 0.5em 0 0.5em;
|
||||
}
|
||||
|
||||
div.code-block-caption {
|
||||
padding: 2px 5px;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
div.code-block-caption code {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
div.code-block-caption + div > div.highlight > pre {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
div.code-block-caption span.caption-number {
|
||||
padding: 0.1em 0.3em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
div.code-block-caption span.caption-text {
|
||||
}
|
||||
|
||||
div.literal-block-wrapper {
|
||||
padding: 1em 1em 0;
|
||||
}
|
||||
|
||||
div.literal-block-wrapper div.highlight {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
code.descname {
|
||||
background-color: transparent;
|
||||
font-weight: bold;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
code.descclassname {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
code.xref, a code {
|
||||
background-color: transparent;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.viewcode-link {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.viewcode-back {
|
||||
float: right;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
div.viewcode-block:target {
|
||||
margin: -1px -10px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
/* -- math display ---------------------------------------------------------- */
|
||||
|
||||
img.math {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
div.body div.math p {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
span.eqno {
|
||||
float: right;
|
||||
}
|
||||
|
||||
span.eqno a.headerlink {
|
||||
position: relative;
|
||||
left: 0px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
div.math:hover a.headerlink {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* -- printout stylesheet --------------------------------------------------- */
|
||||
|
||||
@media print {
|
||||
div.document,
|
||||
div.documentwrapper,
|
||||
div.bodywrapper {
|
||||
margin: 0 !important;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div.sphinxsidebar,
|
||||
div.related,
|
||||
div.footer,
|
||||
#top-link {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-style:normal;font-weight:400;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#FontAwesome) format("svg")}.fa:before{font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1}.fa:before,a .fa{text-decoration:inherit}.fa:before,a .fa,li .fa{display:inline-block}li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-.8em}ul.fas li .fa{width:.8em}ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before,.icon-book:before{content:"\f02d"}.fa-caret-down:before,.icon-caret-down:before{content:"\f0d7"}.fa-caret-up:before,.icon-caret-up:before{content:"\f0d8"}.fa-caret-left:before,.icon-caret-left:before{content:"\f0d9"}.fa-caret-right:before,.icon-caret-right:before{content:"\f0da"}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60}.rst-versions .rst-current-version:after{clear:both;content:"";display:block}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}
|
||||
|
After Width: | Height: | Size: 434 KiB |
@@ -0,0 +1,70 @@
|
||||
/* pygments theme: tango */
|
||||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight .c { color: #8f5902; font-style: italic } /* Comment */
|
||||
.highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */
|
||||
.highlight .g { color: #000000 } /* Generic */
|
||||
.highlight .k { color: #204a87; font-weight: bold } /* Keyword */
|
||||
.highlight .l { color: #000000 } /* Literal */
|
||||
.highlight .n { color: #000000 } /* Name */
|
||||
.highlight .o { color: #ce5c00; font-weight: bold } /* Operator */
|
||||
.highlight .x { color: #000000 } /* Other */
|
||||
.highlight .p { color: #000000; font-weight: bold } /* Punctuation */
|
||||
.highlight .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */
|
||||
.highlight .c1 { color: #8f5902; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */
|
||||
.highlight .gd { color: #a40000 } /* Generic.Deleted */
|
||||
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
|
||||
.highlight .gr { color: #ef2929 } /* Generic.Error */
|
||||
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
||||
.highlight .go { color: #000000; font-style: italic } /* Generic.Output */
|
||||
.highlight .gp { color: #8f5902 } /* Generic.Prompt */
|
||||
.highlight .gs { color: #000000; font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
|
||||
.highlight .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */
|
||||
.highlight .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */
|
||||
.highlight .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #204a87; font-weight: bold } /* Keyword.Type */
|
||||
.highlight .ld { color: #000000 } /* Literal.Date */
|
||||
.highlight .m { color: #0000cf; font-weight: bold } /* Literal.Number */
|
||||
.highlight .s { color: #4e9a06 } /* Literal.String */
|
||||
.highlight .na { color: #c4a000 } /* Name.Attribute */
|
||||
.highlight .nb { color: #204a87 } /* Name.Builtin */
|
||||
.highlight .nc { color: #000000 } /* Name.Class */
|
||||
.highlight .no { color: #000000 } /* Name.Constant */
|
||||
.highlight .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */
|
||||
.highlight .ni { color: #ce5c00 } /* Name.Entity */
|
||||
.highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */
|
||||
.highlight .nf { color: #000000 } /* Name.Function */
|
||||
.highlight .nl { color: #f57900 } /* Name.Label */
|
||||
.highlight .nn { color: #000000 } /* Name.Namespace */
|
||||
.highlight .nx { color: #000000 } /* Name.Other */
|
||||
.highlight .py { color: #000000 } /* Name.Property */
|
||||
.highlight .nt { color: #204a87; font-weight: bold } /* Name.Tag */
|
||||
.highlight .nv { color: #000000 } /* Name.Variable */
|
||||
.highlight .ow { color: #204a87; font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
|
||||
.highlight .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */
|
||||
.highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
|
||||
.highlight .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #4e9a06 } /* Literal.String.Double */
|
||||
.highlight .se { color: #4e9a06 } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #4e9a06 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
|
||||
.highlight .vc { color: #000000 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #000000 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #000000 } /* Name.Variable.Instance */
|
||||
.highlight .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */
|
||||
@@ -0,0 +1,4 @@
|
||||
html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden],audio:not([controls]){display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;text-decoration:none}ins,mark{color:#000}mark{background:#ff0;font-style:italic;font-weight:700}.rst-content code,.rst-content tt,code,kbd,pre,samp{font-family:monospace,serif;_font-family:courier new,monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:after,q:before{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}dl,ol,ul{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure,form{margin:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{body,html,section{background:none!important}*{box-shadow:none!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{text-decoration:underline}.ir a:after,a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}.rst-content .toctree-wrapper>p.caption,h2,h3,p{orphans:3;widows:3}.rst-content .toctree-wrapper>p.caption,h2,h3{page-break-after:avoid}}.btn,.fa:before,.icon:before,.rst-content .admonition,.rst-content .admonition-title:before,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .code-block-caption .headerlink:before,.rst-content .danger,.rst-content .eqno .headerlink:before,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-alert,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before,.wy-nav-top a,.wy-side-nav-search .wy-dropdown>a,.wy-side-nav-search>a,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}/*!
|
||||
* 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?674f50d287a8c48dc19ba404d20fe713);src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix&v=4.7.0) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{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.33333em;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.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa-pull-left.icon,.fa.fa-pull-left,.rst-content .code-block-caption .fa-pull-left.headerlink,.rst-content .eqno .fa-pull-left.headerlink,.rst-content .fa-pull-left.admonition-title,.rst-content code.download span.fa-pull-left:first-child,.rst-content dl dt .fa-pull-left.headerlink,.rst-content h1 .fa-pull-left.headerlink,.rst-content h2 .fa-pull-left.headerlink,.rst-content h3 .fa-pull-left.headerlink,.rst-content h4 .fa-pull-left.headerlink,.rst-content h5 .fa-pull-left.headerlink,.rst-content h6 .fa-pull-left.headerlink,.rst-content p .fa-pull-left.headerlink,.rst-content table>caption .fa-pull-left.headerlink,.rst-content tt.download span.fa-pull-left:first-child,.wy-menu-vertical li.current>a button.fa-pull-left.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-left.toctree-expand,.wy-menu-vertical li button.fa-pull-left.toctree-expand{margin-right:.3em}.fa-pull-right.icon,.fa.fa-pull-right,.rst-content .code-block-caption .fa-pull-right.headerlink,.rst-content .eqno .fa-pull-right.headerlink,.rst-content .fa-pull-right.admonition-title,.rst-content code.download span.fa-pull-right:first-child,.rst-content dl dt .fa-pull-right.headerlink,.rst-content h1 .fa-pull-right.headerlink,.rst-content h2 .fa-pull-right.headerlink,.rst-content h3 .fa-pull-right.headerlink,.rst-content h4 .fa-pull-right.headerlink,.rst-content h5 .fa-pull-right.headerlink,.rst-content h6 .fa-pull-right.headerlink,.rst-content p .fa-pull-right.headerlink,.rst-content table>caption .fa-pull-right.headerlink,.rst-content tt.download span.fa-pull-right:first-child,.wy-menu-vertical li.current>a button.fa-pull-right.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-right.toctree-expand,.wy-menu-vertical li button.fa-pull-right.toctree-expand{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.pull-left.icon,.rst-content .code-block-caption .pull-left.headerlink,.rst-content .eqno .pull-left.headerlink,.rst-content .pull-left.admonition-title,.rst-content code.download span.pull-left:first-child,.rst-content dl dt .pull-left.headerlink,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content p .pull-left.headerlink,.rst-content table>caption .pull-left.headerlink,.rst-content tt.download span.pull-left:first-child,.wy-menu-vertical li.current>a button.pull-left.toctree-expand,.wy-menu-vertical li.on a button.pull-left.toctree-expand,.wy-menu-vertical li button.pull-left.toctree-expand{margin-right:.3em}.fa.pull-right,.pull-right.icon,.rst-content .code-block-caption .pull-right.headerlink,.rst-content .eqno .pull-right.headerlink,.rst-content .pull-right.admonition-title,.rst-content code.download span.pull-right:first-child,.rst-content dl dt .pull-right.headerlink,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-coLine truncated
|
||||
@@ -0,0 +1,315 @@
|
||||
/*
|
||||
* doctools.js
|
||||
* ~~~~~~~~~~~
|
||||
*
|
||||
* Sphinx JavaScript utilities for all documentation.
|
||||
*
|
||||
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* select a different prefix for underscore
|
||||
*/
|
||||
$u = _.noConflict();
|
||||
|
||||
/**
|
||||
* make the code below compatible with browsers without
|
||||
* an installed firebug like debugger
|
||||
if (!window.console || !console.firebug) {
|
||||
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
|
||||
"dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace",
|
||||
"profile", "profileEnd"];
|
||||
window.console = {};
|
||||
for (var i = 0; i < names.length; ++i)
|
||||
window.console[names[i]] = function() {};
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* small helper function to urldecode strings
|
||||
*/
|
||||
jQuery.urldecode = function(x) {
|
||||
return decodeURIComponent(x).replace(/\+/g, ' ');
|
||||
};
|
||||
|
||||
/**
|
||||
* small helper function to urlencode strings
|
||||
*/
|
||||
jQuery.urlencode = encodeURIComponent;
|
||||
|
||||
/**
|
||||
* This function returns the parsed url parameters of the
|
||||
* current request. Multiple values per key are supported,
|
||||
* it will always return arrays of strings for the value parts.
|
||||
*/
|
||||
jQuery.getQueryParameters = function(s) {
|
||||
if (typeof s === 'undefined')
|
||||
s = document.location.search;
|
||||
var parts = s.substr(s.indexOf('?') + 1).split('&');
|
||||
var result = {};
|
||||
for (var i = 0; i < parts.length; i++) {
|
||||
var tmp = parts[i].split('=', 2);
|
||||
var key = jQuery.urldecode(tmp[0]);
|
||||
var value = jQuery.urldecode(tmp[1]);
|
||||
if (key in result)
|
||||
result[key].push(value);
|
||||
else
|
||||
result[key] = [value];
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
/**
|
||||
* highlight a given string on a jquery object by wrapping it in
|
||||
* span elements with the given class name.
|
||||
*/
|
||||
jQuery.fn.highlightText = function(text, className) {
|
||||
function highlight(node, addItems) {
|
||||
if (node.nodeType === 3) {
|
||||
var val = node.nodeValue;
|
||||
var pos = val.toLowerCase().indexOf(text);
|
||||
if (pos >= 0 &&
|
||||
!jQuery(node.parentNode).hasClass(className) &&
|
||||
!jQuery(node.parentNode).hasClass("nohighlight")) {
|
||||
var span;
|
||||
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
|
||||
if (isInSVG) {
|
||||
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
||||
} else {
|
||||
span = document.createElement("span");
|
||||
span.className = className;
|
||||
}
|
||||
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
|
||||
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
|
||||
document.createTextNode(val.substr(pos + text.length)),
|
||||
node.nextSibling));
|
||||
node.nodeValue = val.substr(0, pos);
|
||||
if (isInSVG) {
|
||||
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
||||
var bbox = node.parentElement.getBBox();
|
||||
rect.x.baseVal.value = bbox.x;
|
||||
rect.y.baseVal.value = bbox.y;
|
||||
rect.width.baseVal.value = bbox.width;
|
||||
rect.height.baseVal.value = bbox.height;
|
||||
rect.setAttribute('class', className);
|
||||
addItems.push({
|
||||
"parent": node.parentNode,
|
||||
"target": rect});
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!jQuery(node).is("button, select, textarea")) {
|
||||
jQuery.each(node.childNodes, function() {
|
||||
highlight(this, addItems);
|
||||
});
|
||||
}
|
||||
}
|
||||
var addItems = [];
|
||||
var result = this.each(function() {
|
||||
highlight(this, addItems);
|
||||
});
|
||||
for (var i = 0; i < addItems.length; ++i) {
|
||||
jQuery(addItems[i].parent).before(addItems[i].target);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
/*
|
||||
* backward compatibility for jQuery.browser
|
||||
* This will be supported until firefox bug is fixed.
|
||||
*/
|
||||
if (!jQuery.browser) {
|
||||
jQuery.uaMatch = function(ua) {
|
||||
ua = ua.toLowerCase();
|
||||
|
||||
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(msie) ([\w.]+)/.exec(ua) ||
|
||||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
|
||||
[];
|
||||
|
||||
return {
|
||||
browser: match[ 1 ] || "",
|
||||
version: match[ 2 ] || "0"
|
||||
};
|
||||
};
|
||||
jQuery.browser = {};
|
||||
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Small JavaScript module for the documentation.
|
||||
*/
|
||||
var Documentation = {
|
||||
|
||||
init : function() {
|
||||
this.fixFirefoxAnchorBug();
|
||||
this.highlightSearchWords();
|
||||
this.initIndexTable();
|
||||
if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
|
||||
this.initOnKeyListeners();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* i18n support
|
||||
*/
|
||||
TRANSLATIONS : {},
|
||||
PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; },
|
||||
LOCALE : 'unknown',
|
||||
|
||||
// gettext and ngettext don't access this so that the functions
|
||||
// can safely bound to a different name (_ = Documentation.gettext)
|
||||
gettext : function(string) {
|
||||
var translated = Documentation.TRANSLATIONS[string];
|
||||
if (typeof translated === 'undefined')
|
||||
return string;
|
||||
return (typeof translated === 'string') ? translated : translated[0];
|
||||
},
|
||||
|
||||
ngettext : function(singular, plural, n) {
|
||||
var translated = Documentation.TRANSLATIONS[singular];
|
||||
if (typeof translated === 'undefined')
|
||||
return (n == 1) ? singular : plural;
|
||||
return translated[Documentation.PLURALEXPR(n)];
|
||||
},
|
||||
|
||||
addTranslations : function(catalog) {
|
||||
for (var key in catalog.messages)
|
||||
this.TRANSLATIONS[key] = catalog.messages[key];
|
||||
this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')');
|
||||
this.LOCALE = catalog.locale;
|
||||
},
|
||||
|
||||
/**
|
||||
* add context elements like header anchor links
|
||||
*/
|
||||
addContextElements : function() {
|
||||
$('div[id] > :header:first').each(function() {
|
||||
$('<a class="headerlink">\u00B6</a>').
|
||||
attr('href', '#' + this.id).
|
||||
attr('title', _('Permalink to this headline')).
|
||||
appendTo(this);
|
||||
});
|
||||
$('dt[id]').each(function() {
|
||||
$('<a class="headerlink">\u00B6</a>').
|
||||
attr('href', '#' + this.id).
|
||||
attr('title', _('Permalink to this definition')).
|
||||
appendTo(this);
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* workaround a firefox stupidity
|
||||
* see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
|
||||
*/
|
||||
fixFirefoxAnchorBug : function() {
|
||||
if (document.location.hash && $.browser.mozilla)
|
||||
window.setTimeout(function() {
|
||||
document.location.href += '';
|
||||
}, 10);
|
||||
},
|
||||
|
||||
/**
|
||||
* highlight the search words provided in the url in the text
|
||||
*/
|
||||
highlightSearchWords : function() {
|
||||
var params = $.getQueryParameters();
|
||||
var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : [];
|
||||
if (terms.length) {
|
||||
var body = $('div.body');
|
||||
if (!body.length) {
|
||||
body = $('body');
|
||||
}
|
||||
window.setTimeout(function() {
|
||||
$.each(terms, function() {
|
||||
body.highlightText(this.toLowerCase(), 'highlighted');
|
||||
});
|
||||
}, 10);
|
||||
$('<p class="highlight-link"><a href="javascript:Documentation.' +
|
||||
'hideSearchWords()">' + _('Hide Search Matches') + '</a></p>')
|
||||
.appendTo($('#searchbox'));
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* init the domain index toggle buttons
|
||||
*/
|
||||
initIndexTable : function() {
|
||||
var togglers = $('img.toggler').click(function() {
|
||||
var src = $(this).attr('src');
|
||||
var idnum = $(this).attr('id').substr(7);
|
||||
$('tr.cg-' + idnum).toggle();
|
||||
if (src.substr(-9) === 'minus.png')
|
||||
$(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
|
||||
else
|
||||
$(this).attr('src', src.substr(0, src.length-8) + 'minus.png');
|
||||
}).css('display', '');
|
||||
if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) {
|
||||
togglers.click();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* helper function to hide the search marks again
|
||||
*/
|
||||
hideSearchWords : function() {
|
||||
$('#searchbox .highlight-link').fadeOut(300);
|
||||
$('span.highlighted').removeClass('highlighted');
|
||||
},
|
||||
|
||||
/**
|
||||
* make the url absolute
|
||||
*/
|
||||
makeURL : function(relativeURL) {
|
||||
return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL;
|
||||
},
|
||||
|
||||
/**
|
||||
* get the current relative url
|
||||
*/
|
||||
getCurrentURL : function() {
|
||||
var path = document.location.pathname;
|
||||
var parts = path.split(/\//);
|
||||
$.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
|
||||
if (this === '..')
|
||||
parts.pop();
|
||||
});
|
||||
var url = parts.join('/');
|
||||
return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
|
||||
},
|
||||
|
||||
initOnKeyListeners: function() {
|
||||
$(document).keydown(function(event) {
|
||||
var activeElementType = document.activeElement.tagName;
|
||||
// don't navigate when in search box or textarea
|
||||
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
|
||||
&& !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
|
||||
switch (event.keyCode) {
|
||||
case 37: // left
|
||||
var prevHref = $('link[rel="prev"]').prop('href');
|
||||
if (prevHref) {
|
||||
window.location.href = prevHref;
|
||||
return false;
|
||||
}
|
||||
case 39: // right
|
||||
var nextHref = $('link[rel="next"]').prop('href');
|
||||
if (nextHref) {
|
||||
window.location.href = nextHref;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// quick alias for translations
|
||||
_ = Documentation.gettext;
|
||||
|
||||
$(document).ready(function() {
|
||||
Documentation.init();
|
||||
});
|
||||
@@ -0,0 +1,12 @@
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
|
||||
VERSION: 'v5.04.00.00',
|
||||
LANGUAGE: 'None',
|
||||
COLLAPSE_INDEX: false,
|
||||
BUILDER: 'html',
|
||||
FILE_SUFFIX: '.html',
|
||||
LINK_SUFFIX: '.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt',
|
||||
NAVIGATION_WITH_KEYS: false
|
||||
};
|
||||
|
After Width: | Height: | Size: 286 B |
|
After Width: | Height: | Size: 434 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,2 @@
|
||||
/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:f,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){b(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(d(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(d(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g.apply([],a)},guid:1,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var h=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,k="sizzle"+1*new Date,m=n.document,S=0,r=0,p=ue(),x=ue(),N=ue(),A=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",$=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__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(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}({4:function(e,t,r){}});
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
|
||||
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
|
||||
*/
|
||||
;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=function(){returnLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(i,o,function(e){return n[e]}.bind(null,o));return i},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){t(1),n.exports=t(3)},function(n,e,t){(function(){var e="undefined"!=typeof window?window.jQuery:t(2);n.exports.ThemeNav={navBar:null,win:null,winScroll:!1,winResize:!1,linkScroll:!1,winPosition:0,winHeight:null,docHeight:null,isRunning:!1,enable:function(n){var t=this;void 0===n&&(n=!0),t.isRunning||(t.isRunning=!0,e((function(e){t.init(e),t.reset(),t.win.on("hashchange",t.reset),n&&t.win.on("scroll",(function(){t.linkScroll||t.winScroll||(t.winScroll=!0,requestAnimationFrame((function(){t.onScroll()})))})),t.win.on("resize",(function(){t.winResize||(t.winResize=!0,requestAnimationFrame((function(){t.onResize()})))})),t.onResize()})))},enableSticky:function(){this.enable(!0)},init:function(n){n(document);var e=this;this.navBar=n("div.wy-side-scroll:first"),this.win=n(window),n(document).on("click","[data-toggle='wy-nav-top']",(function(){n("[data-toggle='wy-nav-shift']").toggleClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift")})).on("click",".wy-menu-vertical .current ul li a",(function(){var t=n(this);n("[data-toggle='wy-nav-shift']").removeClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift"),e.toggleCurrent(t),e.hashChange()})).on("click","[data-toggle='rst-current-version']",(function(){n("[data-toggle='rst-versions']").toggleClass("shift-up")})),n("table.docutils:not(.field-list,.footnote,.citation)").wrap("<div class='wy-table-responsive'></div>"),n("table.docutils.footnote").wrap("<div class='wy-table-responsive footnote'></div>"),n("table.docutils.citation").wrap("<div class='wy-table-responsive citation'></div>"),n(".wy-menu-vertical ul").not(".simple").siblings("a").each((function(){var t=n(this);expand=n('<button class="toctree-expand" title="Open/close menu"></button>'),expand.on("click",(function(n){return e.toggleCurrent(t),n.stopPropagation(),!1})),t.prepend(expand)}))},reset:function(){var n=encodeURI(window.location.hash)||"#";try{var e=$(".wy-menu-vertical"),t=e.find('[href="'+n+'"]');if(0===t.length){var i=$('.document [id="'+n.substring(1)+'"]').closest("div.section");0===(t=e.find('[href="#'+i.attr("id")+'"]')).length&&(t=e.find('[href="#"]'))}if(t.length>0){$(".wy-menu-vertical .current").removeClass("current").attr("aria-expanded","false"),t.addClass("current").attr("aria-expanded","true"),t.closest("li.toctree-l1").parent().addClass("current").attr("aria-expanded","true");for(let n=1;n<=10;n++)t.closest("li.toctree-l"+n).addClass("current").attr("aria-expanded","true");t[0].scrollIntoView()}}catch(n){console.log("Error expanding nav for anchor",n)}},onScroll:function(){this.winScroll=!1;var n=this.win.scrollTop(),e=n+this.winHeight,t=this.navBar.scrollTop()+(n-this.winPosition);n<0||e>this.docHeight||(this.navBar.scrollTop(t),this.winPosition=n)},onResize:function(){this.winResize=!1,this.winHeight=this.win.height(),this.docHeight=$(document).height()},hashChange:function(){this.linkScroll=!0,this.win.one("hashchange",(function(){this.linkScroll=!1}))},toggleCurrent:function(n){var e=n.closest("li");e.siblings("li.current").removeClass("current").attr("aria-expanded","false"),e.siblings().find("li.current").removeClass("current").attr("aria-expanded","false");var t=e.find("> ul li");t.length&&(t.removeClass("current").attr("aria-expanded","false"),e.toggleClass("current").attr("aria-expanded",(function(n,e){return"true"==e?"false":"true"})))}},"undefined"!=typeof window&&(window.SphinxRtdTheme={Navigation:n.exports.ThemeNav,StickyNav:n.exports.ThemeNav}),function(){for(var n=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var i=(new Date).getTime(),o=Math.max(0,16-(i-n)),r=window.setTimeout((function(){e(i+o)}),o);return n=i+o,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})}()}).call(window)},function(n,e){n.exports=jQueLine truncated
|
||||
@@ -0,0 +1,297 @@
|
||||
/*
|
||||
* language_data.js
|
||||
* ~~~~~~~~~~~~~~~~
|
||||
*
|
||||
* This script contains the language-specific data used by searchtools.js,
|
||||
* namely the list of stopwords, stemmer, scorer and splitter.
|
||||
*
|
||||
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
|
||||
|
||||
|
||||
/* Non-minified version JS is _stemmer.js if file is provided */
|
||||
/**
|
||||
* Porter Stemmer
|
||||
*/
|
||||
var Stemmer = function() {
|
||||
|
||||
var step2list = {
|
||||
ational: 'ate',
|
||||
tional: 'tion',
|
||||
enci: 'ence',
|
||||
anci: 'ance',
|
||||
izer: 'ize',
|
||||
bli: 'ble',
|
||||
alli: 'al',
|
||||
entli: 'ent',
|
||||
eli: 'e',
|
||||
ousli: 'ous',
|
||||
ization: 'ize',
|
||||
ation: 'ate',
|
||||
ator: 'ate',
|
||||
alism: 'al',
|
||||
iveness: 'ive',
|
||||
fulness: 'ful',
|
||||
ousness: 'ous',
|
||||
aliti: 'al',
|
||||
iviti: 'ive',
|
||||
biliti: 'ble',
|
||||
logi: 'log'
|
||||
};
|
||||
|
||||
var step3list = {
|
||||
icate: 'ic',
|
||||
ative: '',
|
||||
alize: 'al',
|
||||
iciti: 'ic',
|
||||
ical: 'ic',
|
||||
ful: '',
|
||||
ness: ''
|
||||
};
|
||||
|
||||
var c = "[^aeiou]"; // consonant
|
||||
var v = "[aeiouy]"; // vowel
|
||||
var C = c + "[^aeiouy]*"; // consonant sequence
|
||||
var V = v + "[aeiou]*"; // vowel sequence
|
||||
|
||||
var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0
|
||||
var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1
|
||||
var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1
|
||||
var s_v = "^(" + C + ")?" + v; // vowel in stem
|
||||
|
||||
this.stemWord = function (w) {
|
||||
var stem;
|
||||
var suffix;
|
||||
var firstch;
|
||||
var origword = w;
|
||||
|
||||
if (w.length < 3)
|
||||
return w;
|
||||
|
||||
var re;
|
||||
var re2;
|
||||
var re3;
|
||||
var re4;
|
||||
|
||||
firstch = w.substr(0,1);
|
||||
if (firstch == "y")
|
||||
w = firstch.toUpperCase() + w.substr(1);
|
||||
|
||||
// Step 1a
|
||||
re = /^(.+?)(ss|i)es$/;
|
||||
re2 = /^(.+?)([^s])s$/;
|
||||
|
||||
if (re.test(w))
|
||||
w = w.replace(re,"$1$2");
|
||||
else if (re2.test(w))
|
||||
w = w.replace(re2,"$1$2");
|
||||
|
||||
// Step 1b
|
||||
re = /^(.+?)eed$/;
|
||||
re2 = /^(.+?)(ed|ing)$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
re = new RegExp(mgr0);
|
||||
if (re.test(fp[1])) {
|
||||
re = /.$/;
|
||||
w = w.replace(re,"");
|
||||
}
|
||||
}
|
||||
else if (re2.test(w)) {
|
||||
var fp = re2.exec(w);
|
||||
stem = fp[1];
|
||||
re2 = new RegExp(s_v);
|
||||
if (re2.test(stem)) {
|
||||
w = stem;
|
||||
re2 = /(at|bl|iz)$/;
|
||||
re3 = new RegExp("([^aeiouylsz])\\1$");
|
||||
re4 = new RegExp("^" + C + v + "[^aeiouwxy]$");
|
||||
if (re2.test(w))
|
||||
w = w + "e";
|
||||
else if (re3.test(w)) {
|
||||
re = /.$/;
|
||||
w = w.replace(re,"");
|
||||
}
|
||||
else if (re4.test(w))
|
||||
w = w + "e";
|
||||
}
|
||||
}
|
||||
|
||||
// Step 1c
|
||||
re = /^(.+?)y$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
re = new RegExp(s_v);
|
||||
if (re.test(stem))
|
||||
w = stem + "i";
|
||||
}
|
||||
|
||||
// Step 2
|
||||
re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
suffix = fp[2];
|
||||
re = new RegExp(mgr0);
|
||||
if (re.test(stem))
|
||||
w = stem + step2list[suffix];
|
||||
}
|
||||
|
||||
// Step 3
|
||||
re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
suffix = fp[2];
|
||||
re = new RegExp(mgr0);
|
||||
if (re.test(stem))
|
||||
w = stem + step3list[suffix];
|
||||
}
|
||||
|
||||
// Step 4
|
||||
re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;
|
||||
re2 = /^(.+?)(s|t)(ion)$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
re = new RegExp(mgr1);
|
||||
if (re.test(stem))
|
||||
w = stem;
|
||||
}
|
||||
else if (re2.test(w)) {
|
||||
var fp = re2.exec(w);
|
||||
stem = fp[1] + fp[2];
|
||||
re2 = new RegExp(mgr1);
|
||||
if (re2.test(stem))
|
||||
w = stem;
|
||||
}
|
||||
|
||||
// Step 5
|
||||
re = /^(.+?)e$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
re = new RegExp(mgr1);
|
||||
re2 = new RegExp(meq1);
|
||||
re3 = new RegExp("^" + C + v + "[^aeiouwxy]$");
|
||||
if (re.test(stem) || (re2.test(stem) && !(re3.test(stem))))
|
||||
w = stem;
|
||||
}
|
||||
re = /ll$/;
|
||||
re2 = new RegExp(mgr1);
|
||||
if (re.test(w) && re2.test(w)) {
|
||||
re = /.$/;
|
||||
w = w.replace(re,"");
|
||||
}
|
||||
|
||||
// and turn initial Y back to y
|
||||
if (firstch == "y")
|
||||
w = firstch.toLowerCase() + w.substr(1);
|
||||
return w;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var splitChars = (function() {
|
||||
var result = {};
|
||||
var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,
|
||||
1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702,
|
||||
2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971,
|
||||
2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345,
|
||||
3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761,
|
||||
3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823,
|
||||
4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125,
|
||||
8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695,
|
||||
11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587,
|
||||
43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141];
|
||||
var i, j, start, end;
|
||||
for (i = 0; i < singles.length; i++) {
|
||||
result[singles[i]] = true;
|
||||
}
|
||||
var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709],
|
||||
[722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161],
|
||||
[1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568],
|
||||
[1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807],
|
||||
[1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047],
|
||||
[2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383],
|
||||
[2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450],
|
||||
[2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547],
|
||||
[2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673],
|
||||
[2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820],
|
||||
[2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946],
|
||||
[2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023],
|
||||
[3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173],
|
||||
[3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332],
|
||||
[3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481],
|
||||
[3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718],
|
||||
[3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791],
|
||||
[3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095],
|
||||
[4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205],
|
||||
[4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687],
|
||||
[4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968],
|
||||
[4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869],
|
||||
[5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102],
|
||||
[6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271],
|
||||
[6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592],
|
||||
[6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822],
|
||||
[6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167],
|
||||
[7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959],
|
||||
[7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143],
|
||||
[8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318],
|
||||
[8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483],
|
||||
[8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101],
|
||||
[10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567],
|
||||
[11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292],
|
||||
[12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444],
|
||||
[12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783],
|
||||
[12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311],
|
||||
[19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511],
|
||||
[42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774],
|
||||
[42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071],
|
||||
[43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263],
|
||||
[43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519],
|
||||
[43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647],
|
||||
[43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967],
|
||||
[44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295],
|
||||
[57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274],
|
||||
[64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007],
|
||||
[65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381],
|
||||
[65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]];
|
||||
for (i = 0; i < ranges.length; i++) {
|
||||
start = ranges[i][0];
|
||||
end = ranges[i][1];
|
||||
for (j = start; j <= end; j++) {
|
||||
result[j] = true;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
})();
|
||||
|
||||
function splitQuery(query) {
|
||||
var result = [];
|
||||
var start = -1;
|
||||
for (var i = 0; i < query.length; i++) {
|
||||
if (splitChars[query.charCodeAt(i)]) {
|
||||
if (start !== -1) {
|
||||
result.push(query.slice(start, i));
|
||||
start = -1;
|
||||
}
|
||||
} else if (start === -1) {
|
||||
start = i;
|
||||
}
|
||||
}
|
||||
if (start !== -1) {
|
||||
result.push(query.slice(start));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 90 B |
|
After Width: | Height: | Size: 90 B |
@@ -0,0 +1,67 @@
|
||||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight { background: #ffffff; }
|
||||
.highlight .c { color: #999988; font-style: italic } /* Comment */
|
||||
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
|
||||
.highlight .k { font-weight: bold } /* Keyword */
|
||||
.highlight .o { font-weight: bold } /* Operator */
|
||||
.highlight .ch { color: #999988; font-style: italic } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #999988; font-style: italic } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
|
||||
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .gr { color: #aa0000 } /* Generic.Error */
|
||||
.highlight .gh { color: #999999 } /* Generic.Heading */
|
||||
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
|
||||
.highlight .go { color: #888888 } /* Generic.Output */
|
||||
.highlight .gp { color: #555555 } /* Generic.Prompt */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
|
||||
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
|
||||
.highlight .kc { font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .kn { font-weight: bold } /* Keyword.Namespace */
|
||||
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
|
||||
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
|
||||
.highlight .m { color: #009999 } /* Literal.Number */
|
||||
.highlight .s { color: #bb8844 } /* Literal.String */
|
||||
.highlight .na { color: #008080 } /* Name.Attribute */
|
||||
.highlight .nb { color: #999999 } /* Name.Builtin */
|
||||
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
|
||||
.highlight .no { color: #008080 } /* Name.Constant */
|
||||
.highlight .ni { color: #800080 } /* Name.Entity */
|
||||
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
|
||||
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
|
||||
.highlight .nn { color: #555555 } /* Name.Namespace */
|
||||
.highlight .nt { color: #000080 } /* Name.Tag */
|
||||
.highlight .nv { color: #008080 } /* Name.Variable */
|
||||
.highlight .ow { font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
||||
.highlight .mb { color: #009999 } /* Literal.Number.Bin */
|
||||
.highlight .mf { color: #009999 } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
|
||||
.highlight .sa { color: #bb8844 } /* Literal.String.Affix */
|
||||
.highlight .sb { color: #bb8844 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #bb8844 } /* Literal.String.Char */
|
||||
.highlight .dl { color: #bb8844 } /* Literal.String.Delimiter */
|
||||
.highlight .sd { color: #bb8844 } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #bb8844 } /* Literal.String.Double */
|
||||
.highlight .se { color: #bb8844 } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #bb8844 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #bb8844 } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #bb8844 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #808000 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #bb8844 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #bb8844 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
|
||||
.highlight .fm { color: #990000; font-weight: bold } /* Name.Function.Magic */
|
||||
.highlight .vc { color: #008080 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #008080 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
|
||||
.highlight .vm { color: #008080 } /* Name.Variable.Magic */
|
||||
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
|
||||
@@ -0,0 +1,515 @@
|
||||
/*
|
||||
* searchtools.js
|
||||
* ~~~~~~~~~~~~~~~~
|
||||
*
|
||||
* Sphinx JavaScript utilities for the full-text search.
|
||||
*
|
||||
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
if (!Scorer) {
|
||||
/**
|
||||
* Simple result scoring code.
|
||||
*/
|
||||
var Scorer = {
|
||||
// Implement the following function to further tweak the score for each result
|
||||
// The function takes a result array [filename, title, anchor, descr, score]
|
||||
// and returns the new score.
|
||||
/*
|
||||
score: function(result) {
|
||||
return result[4];
|
||||
},
|
||||
*/
|
||||
|
||||
// query matches the full name of an object
|
||||
objNameMatch: 11,
|
||||
// or matches in the last dotted part of the object name
|
||||
objPartialMatch: 6,
|
||||
// Additive scores depending on the priority of the object
|
||||
objPrio: {0: 15, // used to be importantResults
|
||||
1: 5, // used to be objectResults
|
||||
2: -5}, // used to be unimportantResults
|
||||
// Used when the priority is not in the mapping.
|
||||
objPrioDefault: 0,
|
||||
|
||||
// query found in title
|
||||
title: 15,
|
||||
partialTitle: 7,
|
||||
// query found in terms
|
||||
term: 5,
|
||||
partialTerm: 2
|
||||
};
|
||||
}
|
||||
|
||||
if (!splitQuery) {
|
||||
function splitQuery(query) {
|
||||
return query.split(/\s+/);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Search Module
|
||||
*/
|
||||
var Search = {
|
||||
|
||||
_index : null,
|
||||
_queued_query : null,
|
||||
_pulse_status : -1,
|
||||
|
||||
htmlToText : function(htmlString) {
|
||||
var htmlElement = document.createElement('span');
|
||||
htmlElement.innerHTML = htmlString;
|
||||
$(htmlElement).find('.headerlink').remove();
|
||||
docContent = $(htmlElement).find('[role=main]')[0];
|
||||
if(docContent === undefined) {
|
||||
console.warn("Content block not found. Sphinx search tries to obtain it " +
|
||||
"via '[role=main]'. Could you check your theme or template.");
|
||||
return "";
|
||||
}
|
||||
return docContent.textContent || docContent.innerText;
|
||||
},
|
||||
|
||||
init : function() {
|
||||
var params = $.getQueryParameters();
|
||||
if (params.q) {
|
||||
var query = params.q[0];
|
||||
$('input[name="q"]')[0].value = query;
|
||||
this.performSearch(query);
|
||||
}
|
||||
},
|
||||
|
||||
loadIndex : function(url) {
|
||||
$.ajax({type: "GET", url: url, data: null,
|
||||
dataType: "script", cache: true,
|
||||
complete: function(jqxhr, textstatus) {
|
||||
if (textstatus != "success") {
|
||||
document.getElementById("searchindexloader").src = url;
|
||||
}
|
||||
}});
|
||||
},
|
||||
|
||||
setIndex : function(index) {
|
||||
var q;
|
||||
this._index = index;
|
||||
if ((q = this._queued_query) !== null) {
|
||||
this._queued_query = null;
|
||||
Search.query(q);
|
||||
}
|
||||
},
|
||||
|
||||
hasIndex : function() {
|
||||
return this._index !== null;
|
||||
},
|
||||
|
||||
deferQuery : function(query) {
|
||||
this._queued_query = query;
|
||||
},
|
||||
|
||||
stopPulse : function() {
|
||||
this._pulse_status = 0;
|
||||
},
|
||||
|
||||
startPulse : function() {
|
||||
if (this._pulse_status >= 0)
|
||||
return;
|
||||
function pulse() {
|
||||
var i;
|
||||
Search._pulse_status = (Search._pulse_status + 1) % 4;
|
||||
var dotString = '';
|
||||
for (i = 0; i < Search._pulse_status; i++)
|
||||
dotString += '.';
|
||||
Search.dots.text(dotString);
|
||||
if (Search._pulse_status > -1)
|
||||
window.setTimeout(pulse, 500);
|
||||
}
|
||||
pulse();
|
||||
},
|
||||
|
||||
/**
|
||||
* perform a search for something (or wait until index is loaded)
|
||||
*/
|
||||
performSearch : function(query) {
|
||||
// create the required interface elements
|
||||
this.out = $('#search-results');
|
||||
this.title = $('<h2>' + _('Searching') + '</h2>').appendTo(this.out);
|
||||
this.dots = $('<span></span>').appendTo(this.title);
|
||||
this.status = $('<p class="search-summary"> </p>').appendTo(this.out);
|
||||
this.output = $('<ul class="search"/>').appendTo(this.out);
|
||||
|
||||
$('#search-progress').text(_('Preparing search...'));
|
||||
this.startPulse();
|
||||
|
||||
// index already loaded, the browser was quick!
|
||||
if (this.hasIndex())
|
||||
this.query(query);
|
||||
else
|
||||
this.deferQuery(query);
|
||||
},
|
||||
|
||||
/**
|
||||
* execute search (requires search index to be loaded)
|
||||
*/
|
||||
query : function(query) {
|
||||
var i;
|
||||
|
||||
// stem the searchterms and add them to the correct list
|
||||
var stemmer = new Stemmer();
|
||||
var searchterms = [];
|
||||
var excluded = [];
|
||||
var hlterms = [];
|
||||
var tmp = splitQuery(query);
|
||||
var objectterms = [];
|
||||
for (i = 0; i < tmp.length; i++) {
|
||||
if (tmp[i] !== "") {
|
||||
objectterms.push(tmp[i].toLowerCase());
|
||||
}
|
||||
|
||||
if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i].match(/^\d+$/) ||
|
||||
tmp[i] === "") {
|
||||
// skip this "word"
|
||||
continue;
|
||||
}
|
||||
// stem the word
|
||||
var word = stemmer.stemWord(tmp[i].toLowerCase());
|
||||
// prevent stemmer from cutting word smaller than two chars
|
||||
if(word.length < 3 && tmp[i].length >= 3) {
|
||||
word = tmp[i];
|
||||
}
|
||||
var toAppend;
|
||||
// select the correct list
|
||||
if (word[0] == '-') {
|
||||
toAppend = excluded;
|
||||
word = word.substr(1);
|
||||
}
|
||||
else {
|
||||
toAppend = searchterms;
|
||||
hlterms.push(tmp[i].toLowerCase());
|
||||
}
|
||||
// only add if not already in the list
|
||||
if (!$u.contains(toAppend, word))
|
||||
toAppend.push(word);
|
||||
}
|
||||
var highlightstring = '?highlight=' + $.urlencode(hlterms.join(" "));
|
||||
|
||||
// console.debug('SEARCH: searching for:');
|
||||
// console.info('required: ', searchterms);
|
||||
// console.info('excluded: ', excluded);
|
||||
|
||||
// prepare search
|
||||
var terms = this._index.terms;
|
||||
var titleterms = this._index.titleterms;
|
||||
|
||||
// array of [filename, title, anchor, descr, score]
|
||||
var results = [];
|
||||
$('#search-progress').empty();
|
||||
|
||||
// lookup as object
|
||||
for (i = 0; i < objectterms.length; i++) {
|
||||
var others = [].concat(objectterms.slice(0, i),
|
||||
objectterms.slice(i+1, objectterms.length));
|
||||
results = results.concat(this.performObjectSearch(objectterms[i], others));
|
||||
}
|
||||
|
||||
// lookup as search terms in fulltext
|
||||
results = results.concat(this.performTermsSearch(searchterms, excluded, terms, titleterms));
|
||||
|
||||
// let the scorer override scores with a custom scoring function
|
||||
if (Scorer.score) {
|
||||
for (i = 0; i < results.length; i++)
|
||||
results[i][4] = Scorer.score(results[i]);
|
||||
}
|
||||
|
||||
// now sort the results by score (in opposite order of appearance, since the
|
||||
// display function below uses pop() to retrieve items) and then
|
||||
// alphabetically
|
||||
results.sort(function(a, b) {
|
||||
var left = a[4];
|
||||
var right = b[4];
|
||||
if (left > right) {
|
||||
return 1;
|
||||
} else if (left < right) {
|
||||
return -1;
|
||||
} else {
|
||||
// same score: sort alphabetically
|
||||
left = a[1].toLowerCase();
|
||||
right = b[1].toLowerCase();
|
||||
return (left > right) ? -1 : ((left < right) ? 1 : 0);
|
||||
}
|
||||
});
|
||||
|
||||
// for debugging
|
||||
//Search.lastresults = results.slice(); // a copy
|
||||
//console.info('search results:', Search.lastresults);
|
||||
|
||||
// print the results
|
||||
var resultCount = results.length;
|
||||
function displayNextItem() {
|
||||
// results left, load the summary and display it
|
||||
if (results.length) {
|
||||
var item = results.pop();
|
||||
var listItem = $('<li style="display:none"></li>');
|
||||
var requestUrl = "";
|
||||
var linkUrl = "";
|
||||
if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {
|
||||
// dirhtml builder
|
||||
var dirname = item[0] + '/';
|
||||
if (dirname.match(/\/index\/$/)) {
|
||||
dirname = dirname.substring(0, dirname.length-6);
|
||||
} else if (dirname == 'index/') {
|
||||
dirname = '';
|
||||
}
|
||||
requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + dirname;
|
||||
linkUrl = requestUrl;
|
||||
|
||||
} else {
|
||||
// normal html builders
|
||||
requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX;
|
||||
linkUrl = item[0] + DOCUMENTATION_OPTIONS.LINK_SUFFIX;
|
||||
}
|
||||
listItem.append($('<a/>').attr('href',
|
||||
linkUrl +
|
||||
highlightstring + item[2]).html(item[1]));
|
||||
if (item[3]) {
|
||||
listItem.append($('<span> (' + item[3] + ')</span>'));
|
||||
Search.output.append(listItem);
|
||||
listItem.slideDown(5, function() {
|
||||
displayNextItem();
|
||||
});
|
||||
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
|
||||
$.ajax({url: requestUrl,
|
||||
dataType: "text",
|
||||
complete: function(jqxhr, textstatus) {
|
||||
var data = jqxhr.responseText;
|
||||
if (data !== '' && data !== undefined) {
|
||||
listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
|
||||
}
|
||||
Search.output.append(listItem);
|
||||
listItem.slideDown(5, function() {
|
||||
displayNextItem();
|
||||
});
|
||||
}});
|
||||
} else {
|
||||
// no source available, just display title
|
||||
Search.output.append(listItem);
|
||||
listItem.slideDown(5, function() {
|
||||
displayNextItem();
|
||||
});
|
||||
}
|
||||
}
|
||||
// search finished, update title and status message
|
||||
else {
|
||||
Search.stopPulse();
|
||||
Search.title.text(_('Search Results'));
|
||||
if (!resultCount)
|
||||
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
|
||||
else
|
||||
Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount));
|
||||
Search.status.fadeIn(500);
|
||||
}
|
||||
}
|
||||
displayNextItem();
|
||||
},
|
||||
|
||||
/**
|
||||
* search for object names
|
||||
*/
|
||||
performObjectSearch : function(object, otherterms) {
|
||||
var filenames = this._index.filenames;
|
||||
var docnames = this._index.docnames;
|
||||
var objects = this._index.objects;
|
||||
var objnames = this._index.objnames;
|
||||
var titles = this._index.titles;
|
||||
|
||||
var i;
|
||||
var results = [];
|
||||
|
||||
for (var prefix in objects) {
|
||||
for (var name in objects[prefix]) {
|
||||
var fullname = (prefix ? prefix + '.' : '') + name;
|
||||
var fullnameLower = fullname.toLowerCase()
|
||||
if (fullnameLower.indexOf(object) > -1) {
|
||||
var score = 0;
|
||||
var parts = fullnameLower.split('.');
|
||||
// check for different match types: exact matches of full name or
|
||||
// "last name" (i.e. last dotted part)
|
||||
if (fullnameLower == object || parts[parts.length - 1] == object) {
|
||||
score += Scorer.objNameMatch;
|
||||
// matches in last name
|
||||
} else if (parts[parts.length - 1].indexOf(object) > -1) {
|
||||
score += Scorer.objPartialMatch;
|
||||
}
|
||||
var match = objects[prefix][name];
|
||||
var objname = objnames[match[1]][2];
|
||||
var title = titles[match[0]];
|
||||
// If more than one term searched for, we require other words to be
|
||||
// found in the name/title/description
|
||||
if (otherterms.length > 0) {
|
||||
var haystack = (prefix + ' ' + name + ' ' +
|
||||
objname + ' ' + title).toLowerCase();
|
||||
var allfound = true;
|
||||
for (i = 0; i < otherterms.length; i++) {
|
||||
if (haystack.indexOf(otherterms[i]) == -1) {
|
||||
allfound = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!allfound) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
var descr = objname + _(', in ') + title;
|
||||
|
||||
var anchor = match[3];
|
||||
if (anchor === '')
|
||||
anchor = fullname;
|
||||
else if (anchor == '-')
|
||||
anchor = objnames[match[1]][1] + '-' + fullname;
|
||||
// add custom score for some objects according to scorer
|
||||
if (Scorer.objPrio.hasOwnProperty(match[2])) {
|
||||
score += Scorer.objPrio[match[2]];
|
||||
} else {
|
||||
score += Scorer.objPrioDefault;
|
||||
}
|
||||
results.push([docnames[match[0]], fullname, '#'+anchor, descr, score, filenames[match[0]]]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return results;
|
||||
},
|
||||
|
||||
/**
|
||||
* search for full-text terms in the index
|
||||
*/
|
||||
performTermsSearch : function(searchterms, excluded, terms, titleterms) {
|
||||
var docnames = this._index.docnames;
|
||||
var filenames = this._index.filenames;
|
||||
var titles = this._index.titles;
|
||||
|
||||
var i, j, file;
|
||||
var fileMap = {};
|
||||
var scoreMap = {};
|
||||
var results = [];
|
||||
|
||||
// perform the search on the required terms
|
||||
for (i = 0; i < searchterms.length; i++) {
|
||||
var word = searchterms[i];
|
||||
var files = [];
|
||||
var _o = [
|
||||
{files: terms[word], score: Scorer.term},
|
||||
{files: titleterms[word], score: Scorer.title}
|
||||
];
|
||||
// add support for partial matches
|
||||
if (word.length > 2) {
|
||||
for (var w in terms) {
|
||||
if (w.match(word) && !terms[word]) {
|
||||
_o.push({files: terms[w], score: Scorer.partialTerm})
|
||||
}
|
||||
}
|
||||
for (var w in titleterms) {
|
||||
if (w.match(word) && !titleterms[word]) {
|
||||
_o.push({files: titleterms[w], score: Scorer.partialTitle})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// no match but word was a required one
|
||||
if ($u.every(_o, function(o){return o.files === undefined;})) {
|
||||
break;
|
||||
}
|
||||
// found search word in contents
|
||||
$u.each(_o, function(o) {
|
||||
var _files = o.files;
|
||||
if (_files === undefined)
|
||||
return
|
||||
|
||||
if (_files.length === undefined)
|
||||
_files = [_files];
|
||||
files = files.concat(_files);
|
||||
|
||||
// set score for the word in each file to Scorer.term
|
||||
for (j = 0; j < _files.length; j++) {
|
||||
file = _files[j];
|
||||
if (!(file in scoreMap))
|
||||
scoreMap[file] = {};
|
||||
scoreMap[file][word] = o.score;
|
||||
}
|
||||
});
|
||||
|
||||
// create the mapping
|
||||
for (j = 0; j < files.length; j++) {
|
||||
file = files[j];
|
||||
if (file in fileMap && fileMap[file].indexOf(word) === -1)
|
||||
fileMap[file].push(word);
|
||||
else
|
||||
fileMap[file] = [word];
|
||||
}
|
||||
}
|
||||
|
||||
// now check if the files don't contain excluded terms
|
||||
for (file in fileMap) {
|
||||
var valid = true;
|
||||
|
||||
// check if all requirements are matched
|
||||
var filteredTermCount = // as search terms with length < 3 are discarded: ignore
|
||||
searchterms.filter(function(term){return term.length > 2}).length
|
||||
if (
|
||||
fileMap[file].length != searchterms.length &&
|
||||
fileMap[file].length != filteredTermCount
|
||||
) continue;
|
||||
|
||||
// ensure that none of the excluded terms is in the search result
|
||||
for (i = 0; i < excluded.length; i++) {
|
||||
if (terms[excluded[i]] == file ||
|
||||
titleterms[excluded[i]] == file ||
|
||||
$u.contains(terms[excluded[i]] || [], file) ||
|
||||
$u.contains(titleterms[excluded[i]] || [], file)) {
|
||||
valid = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// if we have still a valid result we can add it to the result list
|
||||
if (valid) {
|
||||
// select one (max) score for the file.
|
||||
// for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
|
||||
var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]}));
|
||||
results.push([docnames[file], titles[file], '', null, score, filenames[file]]);
|
||||
}
|
||||
}
|
||||
return results;
|
||||
},
|
||||
|
||||
/**
|
||||
* helper function to return a node containing the
|
||||
* search summary for a given text. keywords is a list
|
||||
* of stemmed words, hlwords is the list of normal, unstemmed
|
||||
* words. the first one is used to find the occurrence, the
|
||||
* latter for highlighting it.
|
||||
*/
|
||||
makeSearchSummary : function(htmlText, keywords, hlwords) {
|
||||
var text = Search.htmlToText(htmlText);
|
||||
var textLower = text.toLowerCase();
|
||||
var start = 0;
|
||||
$.each(keywords, function() {
|
||||
var i = textLower.indexOf(this.toLowerCase());
|
||||
if (i > -1)
|
||||
start = i;
|
||||
});
|
||||
start = Math.max(start - 120, 0);
|
||||
var excerpt = ((start > 0) ? '...' : '') +
|
||||
$.trim(text.substr(start, 240)) +
|
||||
((start + 240 - text.length) ? '...' : '');
|
||||
var rv = $('<div class="context"></div>').text(excerpt);
|
||||
$.each(hlwords, function() {
|
||||
rv = rv.highlightText(this, 'highlighted');
|
||||
});
|
||||
return rv;
|
||||
}
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
Search.init();
|
||||
});
|
||||
@@ -0,0 +1,221 @@
|
||||
|
||||
/* Open Sans Latin
|
||||
base64 encode done on opensans_latin_v13.woff2 */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('data:font/woff2;base64,d09GMgABAAAAADzUABIAAAAAhjgAADxwAAEZmgAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbDBx0BmAAgUwIgSIJjzQREAqBpESBjUIBNgIkA4ZsE70QC4M8AAQgBYIyB4QoDIIJG8J3CQg7WxX5j0PthLRbJVvedpUoKlTzFUWwcUCG52fZ/////3lJxxAlWAMiaNd12/9PqJmJKW5iyEExieloQ9KxVuZAQ07T1g7vfgVloomBA/UEiuEMCGVsPBsLc9rD3dPKhTisOejgNULCLyjxoeYlBGuZsjRKads6GS6b8QRDIttvKSa68bAbLrwP31TZsuGVyrv7lPcTS4bG9tKpUh76wlIon84X/sDUs5lHxlTP/if+Ns2eosU/nf/Bfw/riGqqb+ffLOvzVA9JiiYPkV3xr7qrZ/bum4pAxULkIPkZgBBQJu/2AG2zs1GxcgYq2FMQpj1RETESsbAKmzJyopiJzNnDKkTX5pwurDm2/l+kLvK/+x/AP6A2ZgrZRvjS1KSQBer9XuGyk3Iw3zfX+1eWZFmG4CQDj7CYnr8CXBV4ueyfuup7tsiSJbYtuxH/jmfaSz7qPupZoCCZ+kF0QXRpQIvhcQTov6omea3KKY0pFP4oK73IomFDl+ISgLSDg2T3m9LqWHnZhsdUX6Zbs2x9S8bARE7Ay+y7Qf/nllVniRftubDauc4suapKNQPzE8citiadRhUeQAB2Or6gcE01zLrqvv3azJyYfdvFLJRBRNN+rORtiKb4r90jEQolkS9CXdeapUUtovJYdjvKac7KcpzMaA1l/uGrT4aVVrGvMVAuLrBgPpJTtAv0AsQv4mpVYhTdrISsR3HVOUDRuJh4nIdPy752XK3pgwsJHaOiCfRBCMYnBZa2NQIs0MJBCLKQcLAUFiLHsSb1NBwDuVM++S0pbMpCb4wnNT80UzMTE9QxNEqUXUj+XtWyBRikfCGFLhWNnelMh67A+x+BHyAogRS0C1I6L0lJt9RGUJGUzgZAjQekU04ENxHSBYHaRMdLMVd257vKTeW69pbnoi9NTzZ4puUyQp2QCOOWBcHlBVHZINQPsqpeQjArJqPxaQKweFrTR1P/k+Xq+/E66DKZ2KGI2ZjJZNOIfxEploB4nMfYbCEuPnLbpwkSihwCCsbniQTAguiPVErkU4mUNL+UgcJFiymBc06kZQAgwjK+x5hwzplJMQDIJhWEDSTOGJKlWpoIMEUadBm6RwiOj8PFkZ74BMmB3NPHvuQZdmtwhPKxaCIC1O5pSECsQvXqWxLjy0SwLDAMtWW45JcEf9qVQU4AAOvKcpvthncBrrn3f6P2TFH5pL6ErAoIPAgbyH0bD2BVQtHJQvXeU9iytiHI6oIFw3FX7KYd/ws48OV6eVger6oIUYdoQXQh+hBbCAZCg0ws5P//30+hOw99btm1DAYcrQBRhWi8jM0FaH419ud9hVS/0ut62vSv6Q/T11+iySYajVNbtUV/b5/exPSeyXTDklT41IpZiv4R2m3Dfcp9KWoG9CMAOmZLgoOTwv9t/XjG7O9no/SNV51dlkUn2AXcpNQTLI0adKlSGjJgNWg3YlhoCCEQH+Dv5+vj7eXp4Y5zw7piXJyd0I6nHeztbG2srSxPIeDmZidNDQ30YVA9XR1tprpw1uhWsieLKhwIhGlDCFAphITMFTNSlJXCvFS7BnGYV1RMYWUSk86rwpJKpWQBZbBSCbm2Z1laCiZ6RfcBbuU87snz7Dx7R5L4WZIjvKrod+rtYCMx9O8mwhLRGcX3ibFESNJCqbD2cGBXU/ncuJtPLlOhOxfmmcPUG5mPZuIouu1w9CKPimlUnXUEk4VEgpJLUlkHBxWtYuH7JsyXkXXj7AS4sDsaU8uIxeWw2Z6h9iA3uWnrBnnWSoOFDnWyWxohn666Da3a54egEGCM4tGe/q6VLupikmKFCY7LkmodtkTc48IxKTyS9g+Eon9/U0Gfmor/91YEWgYeaf9eEUU9e7fPaySLVll/ZPSApEe2n04/31YHDfx09bMcma9lC2vvLpFPB/ysabdbsZqgVGlqkCjKQZaCw9RL5J8Wfq78fbpRRBgkAAxoN+77EOTWB8wGH4agD/WBsmqI94A+FBiQym357qjcbDkjVNVS8mFxqGkbhEW5Q0rbxes+9DWsbK1TFiIP2X/hky3m5JlDhoxIiRi5oUREAgQUJuwkwnKXsPYD82bP2nAFm5nLbZFniAVCw4pU+qg9HOyqPE6GeWwEVpAL1OD4ReXMWGnlZg8RK1l6TAzjjnw3zNBtlCkyLGpSVg1rGp+rMhHlAiC6HaUwo4ZUViqrXkR1biihit4A5P8VJcWHBXYcMDHm+VEtaISkshedHnqp6MBKe1ILH2yAviHdNTbXS94mvwv/XjJusom6TmqUVBr6dCPYTMTqM4WFYrEPaeGMiEBczEg9JsYNFvESiiy+aBSdP6UREzNPxAMb5yCrnRydl5oLRghNYHpYqm5Mgj6bGcLtSEgUSpzEqZvZQFUoCd/491qYH9vIUigQkxnUr0rZ1DjE2gzGWOAk0qO4y+JrS01dMjSQ4BtaLQQN1jAHBNY3Z6by+icjUAwNoFPEHxGQX4a1QACbwPpnIaq0UdSymS9t3E1qlrFMKJ/BEWWA/Wb4dE4kRd6bmY5kiLfD64zt8+WeHB+cZTDDLXesW9PnCSGUaC/E0/g8RZElPKlHYd4R7O5c/qbimL+pNfRGnjFI1Yl+T0jLaWSclz9Gb1iMoXN8hCL0wWchLqS69sXHGrHBDM6USOEEjrLDEcJdS7xNCJA/n3BSiMbMyQ2EY0xIu4G4X+P7uAO45rs8N8kzl2cvL4xlqOUwSd5HLl85EA942MMMthyFVM0aP+LaJViU0jrK0n3ILadidX5Df0hDFXwCIWJ0r4T58QM6uleTuOxYSd5zM7DK9LQcKM+QeJzGwd2LDM6BRtSKpoM5txsh5UZ5vkuBS74pKpYGVnlVvQ5o+QbwNE+9qX3yYO35Jmz+n5HIpUfJ2vyfcGnkNDFvIWM3+l0SAJ48tws8taOvAL+PojsDoRsZILghY5rGbIwyhURLrWp55YC9KERyteUrrJvBxgK83RyXPcVHMCoV1zkeyAymKLA4qBuCE17rUFLPeFWiZKX9NFIPkWfjuZHm4voKGHuz5gt7xXpTvCZPhpARHTMjea8/wnPKhOSEpZhhrY3kuKgm88Euz4ZRsxiLqrUUXDCM2Sh/KjJmOI83BylGUktaOGk4F61UfJ35fCC5yHDGsBjkhYxBFaw8KhGxVNLhVakk7yq4dSzlWFZijCc1zkeTkYwYnyJoLlobOWOUa2uxks1KRCtDLiVjk7zikMsiyxS/O+RxwCZCqTBKXOZTycx5EuMsI/y25wHe4lzgXyOx2rgm/VNMKc6TRgCgiHfgRiM/FYcSvBA7nUJ2UqhAvL6znIECFAsKRIF0WBJkLQgKX9nAKe6KytVSyscM/YoBzpAcZ0LQDwAHwYTaxCTnK7Eg7dJpjEys+mX+ymSpJybTABwIUK3FISB+vfEPpaYfX6dhYCS/ArvbXpMxAOujddHcKCy9oAuosBwO/d66aodBZ6D7bZbgOVjxhKzQcG9DNEl3hATNHPFDklxcc4NylfRkG88t2VfSoUwj1nL97IcKprRrU0xLaftUQLvKqBE0YCLFJ3XjQTVlx5kKoTYQIvTnMDpYqQumFfIquUaT3+TlFnBAUcDaS6Ykgm4D6mHZ3T5LS7ASqCHVNII69RkiqGYX8m+KFuRyLBfKpASn+ovFuh8NjOEFNgt3km/K1AYKDnTQbKHVKfxpUg74CJVZ/QzVmPSrAGHPRrKIU8EQJywFPBHiZyoRp9ZiqatfCUYZAy10RUjDNhY0ApFk/RCyRru7v1GbH2EdpTUYrJNxdP9Ib3+Ky+LdDlcvu7brITIlW20bGBWyvH0bbUTBXw42+LKEajBc93Xyvzg460i8KDqQpbI8P3hvRfdjuH3yYpVuP7ea3AJpxwwZtyHxnXa/nKVrKjEQL0ouoeIxVpsuMrmtKoWLpgAemjUmg13xepWbjuhaStVsQCvFIriQZRKfAWu5xpjxjqLR+92hNWoQUpec70wOSdjJSPAalndek2pgvd9VjXFyCq44wwNIpqzRTtwaEINuYuVywyQb9DmkDnaB+Qq/KBrBntgVwLySNWNI3LTiTgU3U4wpJTHRMn+LtfsYleDP1XfFrU2cbdHOGW1GMxq7WE17UZzrbpJsXeX1zvkSyQmmvmRPyMTrQqFtbSYuvTlGSycJKvDElm2kcqatiRtM+XAOliz6XR6Ql9bpw5unABUyOZmgUjozRPHLFnqBm/wT1OcWK8qbpMEwmn6fkxQEFdGYoZxDwFdZbaHVC/ztMekCVCMn9lawhkKL7TRk45pkUC+5tZSrFzs5CgqwTej3T7yWhaE5gLHwn+0h+1rVeqVTATVL7Tx7iWvUzv/Jv4Af1N+6fX3rQ6vzx0zd7AM9pZGZ08pB7ixFyHMPMxRekmvk8+3fknvFVjbKAAscRdHPQn3bUdqk4DItx4uAP4uJoEdaEbR9+hVL1jrs8QEmOsah78uflhUlTGTIDO74+gLrewWOW3kkDAFWPFFoTSDBczNkV+TIpFW0FdcpU7qk8OkJ36V4143X8/RiB6b0k02n+PhuQfsjDBbaNp6O24mTETI5ypKMLGM+Slrrls1SDdfGMEMfrBVHTthLvtRiagZGJqAA2xWj/LQSS0wDnrjYqKDWY/RsARcIH4dVTFwMoU+ztku1jDMPKPHUi0CfPBUERXHmkBwha9YGGWoT4OvQAnlRhh0FcT9RN9eB9p2k9lUBEL4Kdj9SqUBb3XloMCJaYYQk4unEKTGtoGNjJ0UjPt+F0WKcKYdukt4QMO73z5xqVuff5E9rtA/fYyz/MnjX2wNnKQ6l27H9CWD+RO1+1pn9i7z/JfyrHBDGtR4e3FSyLine truncated
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
|
||||
}
|
||||
|
||||
/* Open Sans Semibold Latin
|
||||
base64 encode done on opensans_semibold_latin_v13.woff2 */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: url('data:font/woff2;base64,d09GMgABAAAAAD8kABIAAAAAiowAAD7AAAEZmgAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbDBx0BmAAgUwIgSYJjzQRDAqBrFiBlGQBNgIkA4ZsE70QC4M8AAQgBYJoB4QoDIIYG6l7Z9BbO0QSerOUWMD9/1cTRZXq2KKIMQ6wzSjJ/v///7TkRIYSYiG1VafTff+DiA2TMhx6R6GCiKKipNXRGIIlEUHG3ELP2MRhdzx4LfCiOw5RpfZw4irWRaVroe2CMIx3WUxkQNxk6z461hFuVKenMJLHnEzY2FGtGIcST7Sp1cxTYd8E50vso/yPErfe33BNR2HDauKu3AktsDKFzxgVf7HfsTCZGph8ip/4Uwt9iS3xxX/jfik50+uSSvluohaoxGhW+QffZ0VxQ/GM8sOOfD3skKRo8vC8f/27ju6d9yKpcgWhygSeSCgqcvLLdBLvHsBtzrwRdYwKMEHBAIxCG6PBxMBITIzIX70341Y99elDvde3/30frfnvzA4t8N0FHiQ/nyhlhYpTFKZKttIVlLGFqAtdnOXCPfh/ppp/5s/MptmdsGE2YZeAAAIiCELEKsEJcKJwJ/KynfnO1bVyn4tOV3TO9YVUOtHOcq59RemitP+pqmCq3alMuiDl8/5IMr1QhE46pskVkHI+0pVKL2OFsw0Pdt+yZtn6Fo+Zb26vHjKL5K9xJojdAa1M3xoi2sTMDYexavi4tFLAtdy6hn5NhRHIvdLOsRxnVwW7mrbd/dLaMceF1hxqKaWqy1M0wnGOUpUjcZlXCIOSPyiwgRYekEwk0wQSeYETiachON3GSksRmej5eOx5AgFckz8qFxU4sFuBDwh2aNMare3AjGQ4P3L7FXIFJNjEd3EIjsBrNet/jg/qRyg6IBQYDvgdMlk3NkNNgB+qwG7TqarbF/I8LPB7hDBogrwqc+2nJJCrmTE6e/O3AQw9WXmJicB2G0w+CQKLMusyiTVt+7VeBVQSlulYqexUqapgXzGwx058eVSam5Ez/+qsWpG8bIipC1c0vuzbiq7kJ8HXR3gQZsaCScAk2ZMEttfCnh1JcHeCS9i7uQq5uxgQkxCzfoeYlIwvhVCl0IVcNN12t9cdPdngmZbLCHVCIoxbFgSXF0Rlg1A/yKp6CYHaWA+i8bm1dBjU8NCvvWp+i8tPihQN4Xy4MWSPrDmG2TSlyfUr8c9+GtZUM29n7LsMByrIY8kQ1PSvN5MwN7xjeYm+Z6Fjs63IOyxLAcXRh0WHA3Sqhv/AGHf0OMAboONkkhqh6SqMber2rJnbwoSAyHiIyrZsPBhdDfcIJb1nz97ZXbZD3r3ZFlX9JDujMWp3NHVAWo4OtbwMm74D8lx9V0Y15/oRyh+3InYAAFhd436DrdGmAGD5+NuJDlyQOSrMzssDFPcaaerubRRgeZJJFtd9djWV1yY2p3ObD5ylFJt2/adoQueV/Dg/XT4TExATEQOJSYnpiZmJRYvdAHH8/y+jtWSl2ZY9ZgB1bSrGJybUT/cDGJ8qjlexgDmei4II/f/X39P/Tz7C0c2jG0c9R51H5Uf5R14frfzfuZJeMY2qWxgvm6qGecX0LG078j3V3XHJBsQFAKcMC4MEe/7/yuP9kBhfhu4hm/7KaGIj0k6NG9SmfP41vG3Zrkm1SRWSNuu/e/aao7dacorBO2u0EiaE6x12ujLc4K/PVqeL+fFsemsy7svMaJWUFIM3FSaHwOESCaBWCCiq1AtWXDTiiFS1TONIcT2HKAj3o0GLG41VDRcQOcGCtdgk52DWC7r180lc4Pl0QVx4gd6WCT+HaQMvW/rMvV1qCH3fTjJoJZ5UIggyI4IgoVpSWH1R2pWcPCfPJeJLXJvrm4iEiydOtD+eimF+5HD4kheX0rA65wh6RJWAyj1SxSz2W1qlMghMHDWRluntJCyhuxbhJUQk6uLtGl6EG/9mC7ysmM7DgVmeLW5rBOxijW1gxT4/OLkQI5yW/ObPgeqSOYxzqjBW4pJspA5LVt3PxUNI+Uz2D1Dz1r8/AZsLS/+dSkBLwEMdfCVknc3u7fMqU91qa2/4psvks3WTyec7tZBhX+efc8PvvTSw+vUC2bz05k2zneojGQqtjgapOpXFH7C442UOzsig8vzVuvWICkgAMIC5UhBAoCx6LLoXq2AO9IITTeQS8OHQgPTdvu9TSuN9JpJXzjmAxWZUWyeomrOsmF26aMN0IYo7XNkd+0j/ywvbfIXOHjbZKBEUpnQJIQsgUMCQOo2gNUva6kX4jXdyX9qbSmUPnWUUMFmtWOU/8ouymnsMxRHWQylQjjU4PaS4EFZWuenDmRNFvkx2U05uhSl+hCIngoU45VV3VKcnecajWAPomTiDKaVTeVJWHwS16yrjlt6EOf8jaZBcnhMnwKQpF6Jc0whYyp7PzqOTy1mIfJ60DMAGaBvWc0bmFrHf6R8y+GJGTXYwprNRzlptfQYLfBOierCgUijOYy3tEVKIqh7S2xrbTSrq/0pQ/SBzcmGbRUT1rKkPNroDpXZicoG01xAZAQ7hXE1qLs0Cr40IwceagKo1ShLC79OButaQgQm+5DjaNhGpUpCZ9iSLVeM2FwBTuQeEAv2GbBSqEt+cNM+x4ZLAtzRdEBrEYAIEYjcRU/XYlR6oMBkw8IhfQiAfhtVQApvE2nUkrrX+qG+jkGxUZqMWschJoQCpJkB+c3ymIn8LXmsOZ7RA/RmKctblKy1ZKs8hmCKbs1aO6gsZgS2R38s3086QF5m3NZbEkSNInPQ+Hzg+3B219WZWCPF4rJcIaSlPjBu8X6Q3hRB8x0swhhdeAUuhI5E3WmzkJgswT1jwF4rzVxsIn33RIIKffNmksyqRWdBdfzDOGT1Bf9Rn0JfkAK52V/pC3MO9PEApajj8TZdihx6CiDFYTmIKG64AG7k11kPjxlg+9ZghNsRaTqpVnbT1chLyoC2oREi+EnHkPgCnF2km0ayUFLwzpdWmpSlQdkj9TPKA8pIAHQCLZuGkE5dzCRIyuee97L/sDXORLLDs5VUbh5ZuAbdtxjo6YB9i73dps1tCohcGpb3N/o2lChSykdkIjUYjvG9OTk8f6PeAeeZl4RsBoOwLyHOz/E0A5RAStnLRutoJ1uwgiYXLr+E0HccEPK/CdjBLBFKtnFrhVBQxFIHMI0VgGb0ci4Z3ZZbMgg9AZQaF9dd6qiT1BRASK6uXNStArgxCupzRTBgjKtNNyxe1MAojJoOOa6Kkt6kTKaP2VfKjQzFXSlVy5E3XjHlt+ip6X4dQBZNhk4sS+XzgfAY6h3jmZ3nMIfSZ77GwTWveLWWz3fuSCs6xVGy6lrA75Hw83W35lLf4yOfNDUanh7xnPst5ddz7IZonglh3LlIy9zwee55J3vPavK7JvI+Du6/issBTOysy5+mULZZbAVsOD9ilPSn/QWZz/r8P7Ttkj9mdcGtYwrZodSLJQ+6QwW7EqQrd1qYCeIoNvJiJBj+HUloE21dP0OZOArKgmfeqoENgiIYReCWDTpT3sjOR42oe2bZzNvekQiDdTIY3kYWQzzZk2y20TNXjMTKEmU3WNYvOQe5npVEGnBXPzeRCNNRrmWtXTDiJ88ey+fTQkOtB3lcYBvue6kmMQ4aBJt+36ZyanpCTqW7MmpnJNc5EgRIBPME5l+LH0xqsAgYEiMWH66keclCIIam//SlPGhZigOzVcLRjPnRSL1G9ypYipsukjrlHnZRQYQ/1l+njnCxKkrKsdUYHsv5BhLzFBAtlZmmEeKFj0Mll2z0B+ekC3QSnu183K1BOP4rN5ytSUDSVUl3jTyPDYKaLA4SqRMwyq0H8nLLp+gGD4ox9qVaOSYG+zjm7njrpFQUJ+1SV0oMszjTQ8aQY/5N8fzYDLlAVQFoyilNy7kI2Wqb+lNg2s7D9sWSAdYnbu5Nl0Lo/9IDx8VOdA0hzsrzyuCbBM8yrFPJ548FJ5PEePHVGyIDEOssj1SnSiX7r2XDD/MqVq0+WU7QiW518PVzmZGrFAUh5cSzHbuepYnJUzfVe8vUXBJ0XGSUDJPQo2vZM+iz3MTpUq9oasCSV9WKB51W2UnR4SP+LPDnkaUDV1hS4xVK5iJaKlRJNiHSbJDYpy53lq/KmczRL4rQkS2MVqBGwD3NZZLSejKXO8HJsWS6lfDLy8oBVIgjXlM4zrUqIalKrbIJnWX7gxPZPoMZAU+56EbNGQMA5VPDU9ApfLcGKKov0G0MhorJE/bCv+DhndWCyI7k7jtgtazSSe8pCs9TCNmXeXxnj9WTbvB0ue9Nd0eJTUzdGVYzG7kHcuM5Xl/naqlhZE8u2preKWGqL+gYmvy7HDm4F8EzYDNtKWM5Exps5DwBXl7Mqq9kQ7mXC+3ugpiQPEueMNhYXt3YjM9kucrbbT1q1vUaJlpLcXUBRpSOyfb/Yss49aSU3Nhj43W0xAoqiwLaKx2l0uhuryEPut4BaROoDlOFSDDjXRmkjQrB8BEeRpRyMrBsDwoL8lZzd2K6QykvH+eSp0XwamLEbvLa1LkVft6S40qV1LFXOis34riXFSJmcOE6T7ZOXtrN2GrO2b9K1z4L5Fb4oE+VLSLHVl5YeJzWNaQKVjtwu8zyRiRpCAyQw+oFkpUUWDFbBlnWNHkqmL2VhxHShTTlPC922JexLPaXgzXpFJv5eCp14MTrbvUH+WI9gica0DOFbhQxEEMO4o21dAx87XIWKzBgCAbwYEcVYWqlY8z5XGhNt2uQVRdOkVn0qTGJPbuR/p8XLm2LTW/7KJ0A1gxMNAFRuno+Lh4l34i2hZ6DH/kAyplaVVm30WOpw60ZGug0V5yDJJfjtiFcQQosvxpncSRafyoaFXT5o1l01obLuYI3uMcZsQeGYfBIM4GhoUsbpJuoQs853zYBh6HTjaJ9TxoIB6aZQU7oCGxYrDRkpjM2O0UYx7CKjpM9JJTWgm6Q2wSgZLine truncated
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
|
||||
}
|
||||
|
||||
/* Font Awesome
|
||||
base64 encode done on opensans_semibold_latin_v13.woff2 */
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
font-style: normal;
|
||||
src: url('data:font/woff2;base64,d09GRgABAAAAAP+sAA4AAAABtiAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABRAAAABwAAAAcZ7MpnUdERUYAAAFgAAAAHwAAACACLQAET1MvMgAAAYAAAAA+AAAAYIsCekxjbWFwAAABwAAAAUcAAAKy1JOsXGdhc3AAAAMIAAAACAAAAAj//wADZ2x5ZgAAAxAAAOg2AAGNvE1SIIpoZWFkAADrSAAAADEAAAA2CGYR2mhoZWEAAOt8AAAAHwAAACQPAgnbaG10eAAA65wAAAJHAAAH/BwkFHpsb2NhAADt5AAAA/QAAAQCAX+d+m1heHAAAPHYAAAAHwAAACACVgIcbmFtZQAA8fgAAAF1AAADOEwidUBwb3N0AADzcAAADDIAABRicQ3ecXdlYmYAAP+kAAAABgAAAAazrlP8AAAAAQAAAADMPaLPAAAAAMtTIqAAAAAA0CJkLXjaY2BkYGDgA2IJBhBgYmBkYGT8DyRZwDwGAA9LATMAeNpjYGaTZpzAwMrAwtLDYszAwNAGoZmKGaLAfJygoLKomMGBQeErAxvDfyCfjYFRGUgxIilRYGAEALqzCE0AAHjazZHLSkJxEMbneKss/E93LbGj0LaiBxChvbho0yI7i9biE4hPID6BuCwIkWgRLcJVS3EZgRdo0U7ms7SL5r9jglDQJgj6hplh4GN+MENEThpnkAy7knFmT8bn7DLydrcoRm4y7SjSKZXogm7o1vSa2+ZROBIJRazNgfgkJFGJS1JSkpGcFKQk51KVhrRlCB9C2EIUcSSRQgY5FFDCNapooI1hx9clrW3SiHAyIdAXAglLWGKSEEvSkpW8FKUsFalJSwQEhokdxJCAhTSyyKOIMiqooQXp0Iig7/WxPtQHel/v6d3WbPOhedno1fv1q7sNDvI6B9jPq7zCy7zEi7zA8+xiJzvYYFJaDdW7Gqi+elOv6kU9q57qqif1qDoKSub0+Hp/K8NDE4zhsIvju2H8yv+gKY9/2r024w386HD9au8Hys+a/wAAAAAB//8AAnjavL0JfFTV2TB+zzl3mX3mzp0tk8lkJrMmgSTMGrIOYScB2QQExIiiCC6oIIgLo1AVxA0UqVYNWlH6tn3tYr9WxXe62a+L1LbUbn79YlvbvlVb37Y/WyFz+T/n3JnJJCSiff/vB5l7z74+55znec7zPJfD3BaOIzYRHpzEcdmgHCRyUB5GBTW3BQ9tEQKntojcKY7+Q1zVv2nUf+EZTnxKyHN14HFISA4mXA4xFGyIpjLJoIyi6VQPSgYTfiQ+1Vy8C+W80ah3JE+fKFe8qzkcdwt5dzwszAlBdJGLpqLwRzi8oznkrtXpalmdUAcHdTSDR3ZYcEMLTvXgZMItC2O9qUwWZZIJl8jN2nj56ss3zoLX1CtWFsd6o36SM9ni7ULg9FBiUbPT2bzoUnjFcM27xc7qAPKd+qQBcXw7h1kb8tAGiQtC121cgP4QdLUhhuARjmKbPRMO8C67E4bBxefVD9R71Q+QhK4j0kAqE1aPfemN+9TTx6+55jgSkB8Jx6+5Ga2MYEiAJC2xmk8NRNGKm0dTXHNcPX3fG19Sj0Xo7HBn8hIncJyX6+YWclxEFiVesuBmGAEUi0aiMdnhgrHOyF24hcAciE6H2+X285040UOymWwPysra5KRlOj0wUPlARP3748ncVW0ItV2VSz6u/j0SUMxCwawgQTTpTuXMysGvvyZ2NGRbHAg5WrINHeJrX89cmF/XdyrXt25dn1DoWxcgXNh/Yk9z27Rpbc17TvjDRc6sKHwc2/WyziAo5me3Hn5amOaN2O0R7zTh6cPNDwyeLtDcPC1Dm2Patzzn4zgehrSFT0MLE37s7iEwoXRMySMpe/F+Q2igq1Ud7rntmsXh8OJrbusZVt8qPpC349W68EWX3jvzjX82z8+Fw7n5zf984/+8VXxWK/tzMHfDXIMGowoUR+ctIsATADSrUDDNRpRMwq0IMCZe9aEVyOlQnGqv2gsT6sQr1Adr2tH7bypdypvo/XZyo8urPq6aJLOzzvTOO6Y6p2hBf0fra50R/Xz0ncZGdfp8PV0iuFK3nkKvHkWMMLUkIpTbMXkz+GtRQl19/Li6GiXmo53oRvQd1q7GyZuFHaixB92q3t6j/kxd853vEEO5mYkPaSVtI0A2jH09FwOoKkFIqkeg45+gK8svcDYxELVlAkL+wI0jh248IDkDmTkbuvV9yz5xxyeW9em7N8zJBJySWnhT/cabb6Ke3TvuvntHesO2Sy+aGW9ON8NffOZFl27bQP6gxb/JcUa6piRarxVqbuV6ufO4i7hruF3cfdwT3L9znJBORZtRg1iHHK5OBGB9Dj+SU1EG9aVlgMbHf8z056pv/GJC+aiX7WyTPHgu6i1y1EPgOcKNxghVOdV8dapzlQnL8AO2kERYSLlKFHpkImfRi1nBKn3yo+GnR52kOon6yDkKfOEUq1tgi5inAC9WzyfdrceMUA0aN2LniCfcQErlUgMDKcyeo26SnywGc3QbHUgh+sQ/qPKM/GCyGI4tVrb/nA2LHHJqrepGWqvkcX70P+wfXx/m2uNqId7eHkc5+hx143y1r5ifPO6jp6x2owBz0gf6ecVZHHWSCUPPmaCqMAChCefi//dZ+OijKkDMCAsjEHaamzyu2v0vjtWYoYCz60bOIt7Jf5FzgQ/ODElsaEUomupFcEro4VGPxDt9xSl3+Rb77lIP+XzUgaL4fuonf13Monx3oU3U7/Opv8APgBfKvfrMnwU7f4ALcVzYYUViQ0yPaNnRVFY/tnyXQ9Ijwc5KVn+p/lIrCUXBVaoNRUul/xJCPzTWVylFw2e0/SIEZ+MsbYabtQedlpA2N52wLcMj4apDcBChEubFTYZ58ZxiHlbMgLYMAwoy6hyDj/WnJ8PH8PBZOanz91VI2vOb+idB0qr7ZOXcXNtZUPvR2l8s0Fpx7uO1mrX3I7e0dO6LdLk1cmmKGWGRD0Br0il7NuNyu0TJAq1nGAAcfLEWBPij22Wne7a2Q1M8e+cJ9Xfq/1Z/d2LnkQPNV9QHrE3rNy/Zd/y14/uWbF7fZA3Ub2o6cKSYH9g4AH84/ymacucJ5PvUV1DfVQFLc9MVgQWv37gRkkOujTe+viBwRVOzJXCV+jJeUGQbNGYbNPwTKjji6L7ARSrgogFJRNb8tH0T+dG5/JzdUrDY2QPlP557sOywX6cyJ8rB869F5sbUja4boS8LoUHor6eYR6Ce0flgNMbV4E9FG0SHK0EhCNanBDPigBkJwRoVJfhPWw3LNSZRQIrGKOoI+D0EtSA6GLCAs+XQJKziDOD/rIewoN1ZQK2BMqBotQVJEOQHuDt08tChk/iQzfQ1xRGaZ9DX3u8yWfZNabWZpbpfW5zIN63xHoPVYrw1Jums8+y1lv9lttmML1hq4jMNeu8DLrN5bOJ79Vaz6bYwS+y1QmLsojUcQlf92uTCvkwkscrkNUTu1V/ptt6V8Mnmr9qcm/XG6zIGs8noXFOTmFaLnWaWtqVl+hKTyWAO32fYXJ3YsD2ps2iJ23zYyc6OEi6rwUgnN5O7XMNDqmdZOIdfAfrX4ad0aw9CQRjdoCgJDNIqCEuovKazjL6FMWRniN3C5hQeaBJ3fiRvsRKSI1ZLcRAV2iSD+k2DRK6xWwbX9Y0APjXIQCc9x7qInjCLrHNQ2mIngSowskziLvrJl0cGAOblCL9gmx5j/UMQPDKw7MZty8hXWe3PRFKpyDN2bf17YcAuEwinsPXPugYdL+FfaT1yZQHQQuxkiFFYo9Q1gFJpP3bKbthUAD9V82cA5wJcFffiXvR/e3RmYtYVB4oDJpNZ16PDBvzDwKrA39nS+JUB44AaoIgtRXTRMOIR+qUaxTMW6LGEZxT/Q4ewfoGhVodXer0/+Cbtm7rxK5QPoO2tdIoVaDmcWwC1znEIpFuSg9EYnDlaL4Ky8JIv3h4/xc5Uko8P+vagHQaT+h0TukQdBMSH4/f4BuOn8zRehLM77pul3lVnQtNNp+w8nO1oiDE+SGVtOmDvnjKK2Wr7TglsOFsLCliQzY8CGc6GYTeFrR12dgKbhLYjDGvgMHTglPrzUwcOnELxU+i6E+oT6jr1iRMn0MXoSXQxGVYrcENhoahCqgOlHPii6qQnTrB5TAC+tAi2RxmgnUNp0oIomSIRp6jROY4QUDcxCKbUjkREoHYaYGNAFHIb6ObCktGdI0THELn4lR7kML9gdiAPspv+brLj91uKObMdOSBYfQ/CHchuLuZavOiILuxAyyDECiFHIYkVkqBljrAOHfFiH4/YyaQWeJPNBvSmYkaUNWA+A8/5mR7eofgUs7ZvmsF5+p2eMh0hUiTQykW4bsBQSnth+a2MmXa3K9FLVx9ySRSPQdEsZT1pAOGUgwlB4yqhKHsdBXBgSBr60Z0dn+q4C70Wb1dflOvVnD1jV3P1styEgDRDlPjimo6mtFz0DwVG8b672uEPy411ak5RUKGuMYYKjG7KVcGKhwszHMBRaVcFVJxyEraLErD0IFuUr4IXftCgft3oMaoFq07nKrCFA38/qMDMgQNnQQ0eNJnUr+v1KGdTHAxuLOqQHSeqIO34WaAzQVu1PU7bDDW2BMUE0eRtXVfVQgPqhWajnPXHH9rUBx3qENvkBu0Wkwn16vVqwYY++JCmYgYTFAUws5UfbEExEiRweAXdwcgoNGQVbTd2Ky5yBnUhgk4Wu07CC3VdhHJ4MOo9BRtVzZ8NaS/JedOGP9fgHDEQ9J5qwyZceFL1M87kb3q6cbymoaGm+PPuqjGycrWUQ0LxcHbo0gozMDaTLHt+KFActso2WyAQrMeBD130+OkFdrWg1ykRnI8odkUtfP/DVj2qtClZ2Yti0V4UDTVYMOBsyQQ97xP0YJdEvoJkJhM8nP2A2nEUUptkuX7fg98tI1/bT86XbBbjXj3SLine truncated
|
||||
}
|
||||
|
||||
|
||||
/* Override table width restrictions */
|
||||
@media screen and (min-width: 767px) {
|
||||
|
||||
.wy-table-responsive table td {
|
||||
/* !important prevents the common CSS stylesheets from
|
||||
overriding this as on RTD they are loaded after this stylesheet */
|
||||
white-space: normal !important;
|
||||
}
|
||||
|
||||
.wy-table-responsive {
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
.wy-nav-content {
|
||||
max-width: 1024px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide the TI header on small screens */
|
||||
@media screen and (max-width: 768px) {
|
||||
#tiHeader {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Override colors */
|
||||
|
||||
.wy-nav-top {
|
||||
background-color: #CC0000; /* TI red */
|
||||
}
|
||||
|
||||
.wy-nav-side {
|
||||
background-color: #f9f9f9 !important; /* TI website Nav background*/
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.wy-side-nav-search {
|
||||
background-color: #555; /* TI dark gray */
|
||||
}
|
||||
|
||||
.wy-side-nav-search input[type=text] {
|
||||
border-color : rgba(255,255,255,0.8); /* Lighter gray outline */
|
||||
}
|
||||
|
||||
|
||||
/* Links in general. */
|
||||
a {
|
||||
color: #189; /* TI website inline link color */
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
a .rst-content code {
|
||||
color: #189;
|
||||
}
|
||||
|
||||
/* SIDEBAR
|
||||
=============================================================================*/
|
||||
|
||||
.wy-menu-vertical a {
|
||||
color: #555;
|
||||
background-color: #f9f9f9 !important; /* TI website Nav background*/
|
||||
border-top: none !important;
|
||||
border-right: none !important;
|
||||
border-bottom: solid 1px #c9c9c9 !important;
|
||||
}
|
||||
|
||||
.wy-menu-vertical li.on a, .wy-menu-vertical li.current > a {
|
||||
color: #555; /* TI website current nav link */
|
||||
}
|
||||
|
||||
.wy-nav-side li.current {
|
||||
background-color: #f9f9f9 !important; /* TI website Nav background*/
|
||||
}
|
||||
|
||||
.wy-side-nav-search>div.version {
|
||||
color: rgba(255,255,255,0.8);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* FONTS AND SIZES
|
||||
=============================================================================*/
|
||||
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-size: 16px;
|
||||
color: #555;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* HEADER AND FOOTER
|
||||
=============================================================================*/
|
||||
|
||||
#tiHeader {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
div.top {
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
#tiHeader ul {
|
||||
list-style-type: none;
|
||||
padding-left: 30px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#tiHeader .nav {
|
||||
background: #c00;
|
||||
height: 41.375px;
|
||||
}
|
||||
|
||||
#tiHeader #top_logo {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
#content {
|
||||
padding: 1em;
|
||||
max-width: 1200px;
|
||||
overflow: auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#tiFooter {
|
||||
clear: both;
|
||||
color: #b0b0b0;
|
||||
font-size: .9em;
|
||||
padding: 1em 2em;
|
||||
padding: 1em 2rem;
|
||||
border-top: 1px solid #e0e0e0;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#tiFooter p {
|
||||
max-width: 60em;
|
||||
}
|
||||
|
||||
#tiFooter a {
|
||||
color: #b0b0b0;
|
||||
}
|
||||
|
||||
#tiFooter a:hover {
|
||||
color: #c00;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,999 @@
|
||||
// Underscore.js 1.3.1
|
||||
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Underscore is freely distributable under the MIT license.
|
||||
// Portions of Underscore are inspired or borrowed from Prototype,
|
||||
// Oliver Steele's Functional, and John Resig's Micro-Templating.
|
||||
// For all details and documentation:
|
||||
// http://documentcloud.github.com/underscore
|
||||
|
||||
(function() {
|
||||
|
||||
// Baseline setup
|
||||
// --------------
|
||||
|
||||
// Establish the root object, `window` in the browser, or `global` on the server.
|
||||
var root = this;
|
||||
|
||||
// Save the previous value of the `_` variable.
|
||||
var previousUnderscore = root._;
|
||||
|
||||
// Establish the object that gets returned to break out of a loop iteration.
|
||||
var breaker = {};
|
||||
|
||||
// Save bytes in the minified (but not gzipped) version:
|
||||
var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
|
||||
|
||||
// Create quick reference variables for speed access to core prototypes.
|
||||
var slice = ArrayProto.slice,
|
||||
unshift = ArrayProto.unshift,
|
||||
toString = ObjProto.toString,
|
||||
hasOwnProperty = ObjProto.hasOwnProperty;
|
||||
|
||||
// All **ECMAScript 5** native function implementations that we hope to use
|
||||
// are declared here.
|
||||
var
|
||||
nativeForEach = ArrayProto.forEach,
|
||||
nativeMap = ArrayProto.map,
|
||||
nativeReduce = ArrayProto.reduce,
|
||||
nativeReduceRight = ArrayProto.reduceRight,
|
||||
nativeFilter = ArrayProto.filter,
|
||||
nativeEvery = ArrayProto.every,
|
||||
nativeSome = ArrayProto.some,
|
||||
nativeIndexOf = ArrayProto.indexOf,
|
||||
nativeLastIndexOf = ArrayProto.lastIndexOf,
|
||||
nativeIsArray = Array.isArray,
|
||||
nativeKeys = Object.keys,
|
||||
nativeBind = FuncProto.bind;
|
||||
|
||||
// Create a safe reference to the Underscore object for use below.
|
||||
var _ = function(obj) { return new wrapper(obj); };
|
||||
|
||||
// Export the Underscore object for **Node.js**, with
|
||||
// backwards-compatibility for the old `require()` API. If we're in
|
||||
// the browser, add `_` as a global object via a string identifier,
|
||||
// for Closure Compiler "advanced" mode.
|
||||
if (typeof exports !== 'undefined') {
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
exports = module.exports = _;
|
||||
}
|
||||
exports._ = _;
|
||||
} else {
|
||||
root['_'] = _;
|
||||
}
|
||||
|
||||
// Current version.
|
||||
_.VERSION = '1.3.1';
|
||||
|
||||
// Collection Functions
|
||||
// --------------------
|
||||
|
||||
// The cornerstone, an `each` implementation, aka `forEach`.
|
||||
// Handles objects with the built-in `forEach`, arrays, and raw objects.
|
||||
// Delegates to **ECMAScript 5**'s native `forEach` if available.
|
||||
var each = _.each = _.forEach = function(obj, iterator, context) {
|
||||
if (obj == null) return;
|
||||
if (nativeForEach && obj.forEach === nativeForEach) {
|
||||
obj.forEach(iterator, context);
|
||||
} else if (obj.length === +obj.length) {
|
||||
for (var i = 0, l = obj.length; i < l; i++) {
|
||||
if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;
|
||||
}
|
||||
} else {
|
||||
for (var key in obj) {
|
||||
if (_.has(obj, key)) {
|
||||
if (iterator.call(context, obj[key], key, obj) === breaker) return;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Return the results of applying the iterator to each element.
|
||||
// Delegates to **ECMAScript 5**'s native `map` if available.
|
||||
_.map = _.collect = function(obj, iterator, context) {
|
||||
var results = [];
|
||||
if (obj == null) return results;
|
||||
if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);
|
||||
each(obj, function(value, index, list) {
|
||||
results[results.length] = iterator.call(context, value, index, list);
|
||||
});
|
||||
if (obj.length === +obj.length) results.length = obj.length;
|
||||
return results;
|
||||
};
|
||||
|
||||
// **Reduce** builds up a single result from a list of values, aka `inject`,
|
||||
// or `foldl`. Delegates to **ECMAScript 5**'s native `reduce` if available.
|
||||
_.reduce = _.foldl = _.inject = function(obj, iterator, memo, context) {
|
||||
var initial = arguments.length > 2;
|
||||
if (obj == null) obj = [];
|
||||
if (nativeReduce && obj.reduce === nativeReduce) {
|
||||
if (context) iterator = _.bind(iterator, context);
|
||||
return initial ? obj.reduce(iterator, memo) : obj.reduce(iterator);
|
||||
}
|
||||
each(obj, function(value, index, list) {
|
||||
if (!initial) {
|
||||
memo = value;
|
||||
initial = true;
|
||||
} else {
|
||||
memo = iterator.call(context, memo, value, index, list);
|
||||
}
|
||||
});
|
||||
if (!initial) throw new TypeError('Reduce of empty array with no initial value');
|
||||
return memo;
|
||||
};
|
||||
|
||||
// The right-associative version of reduce, also known as `foldr`.
|
||||
// Delegates to **ECMAScript 5**'s native `reduceRight` if available.
|
||||
_.reduceRight = _.foldr = function(obj, iterator, memo, context) {
|
||||
var initial = arguments.length > 2;
|
||||
if (obj == null) obj = [];
|
||||
if (nativeReduceRight && obj.reduceRight === nativeReduceRight) {
|
||||
if (context) iterator = _.bind(iterator, context);
|
||||
return initial ? obj.reduceRight(iterator, memo) : obj.reduceRight(iterator);
|
||||
}
|
||||
var reversed = _.toArray(obj).reverse();
|
||||
if (context && !initial) iterator = _.bind(iterator, context);
|
||||
return initial ? _.reduce(reversed, iterator, memo, context) : _.reduce(reversed, iterator);
|
||||
};
|
||||
|
||||
// Return the first value which passes a truth test. Aliased as `detect`.
|
||||
_.find = _.detect = function(obj, iterator, context) {
|
||||
var result;
|
||||
any(obj, function(value, index, list) {
|
||||
if (iterator.call(context, value, index, list)) {
|
||||
result = value;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
// Return all the elements that pass a truth test.
|
||||
// Delegates to **ECMAScript 5**'s native `filter` if available.
|
||||
// Aliased as `select`.
|
||||
_.filter = _.select = function(obj, iterator, context) {
|
||||
var results = [];
|
||||
if (obj == null) return results;
|
||||
if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context);
|
||||
each(obj, function(value, index, list) {
|
||||
if (iterator.call(context, value, index, list)) results[results.length] = value;
|
||||
});
|
||||
return results;
|
||||
};
|
||||
|
||||
// Return all the elements for which a truth test fails.
|
||||
_.reject = function(obj, iterator, context) {
|
||||
var results = [];
|
||||
if (obj == null) return results;
|
||||
each(obj, function(value, index, list) {
|
||||
if (!iterator.call(context, value, index, list)) results[results.length] = value;
|
||||
});
|
||||
return results;
|
||||
};
|
||||
|
||||
// Determine whether all of the elements match a truth test.
|
||||
// Delegates to **ECMAScript 5**'s native `every` if available.
|
||||
// Aliased as `all`.
|
||||
_.every = _.all = function(obj, iterator, context) {
|
||||
var result = true;
|
||||
if (obj == null) return result;
|
||||
if (nativeEvery && obj.every === nativeEvery) return obj.every(iterator, context);
|
||||
each(obj, function(value, index, list) {
|
||||
if (!(result = result && iterator.call(context, value, index, list))) return breaker;
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
// Determine if at least one element in the object matches a truth test.
|
||||
// Delegates to **ECMAScript 5**'s native `some` if available.
|
||||
// Aliased as `any`.
|
||||
var any = _.some = _.any = function(obj, iterator, context) {
|
||||
iterator || (iterator = _.identity);
|
||||
var result = false;
|
||||
if (obj == null) return result;
|
||||
if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context);
|
||||
each(obj, function(value, index, list) {
|
||||
if (result || (result = iterator.call(context, value, index, list))) return breaker;
|
||||
});
|
||||
return !!result;
|
||||
};
|
||||
|
||||
// Determine if a given value is included in the array or object using `===`.
|
||||
// Aliased as `contains`.
|
||||
_.include = _.contains = function(obj, target) {
|
||||
var found = false;
|
||||
if (obj == null) return found;
|
||||
if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) != -1;
|
||||
found = any(obj, function(value) {
|
||||
return value === target;
|
||||
});
|
||||
return found;
|
||||
};
|
||||
|
||||
// Invoke a method (with arguments) on every item in a collection.
|
||||
_.invoke = function(obj, method) {
|
||||
var args = slice.call(arguments, 2);
|
||||
return _.map(obj, function(value) {
|
||||
return (_.isFunction(method) ? method || value : value[method]).apply(value, args);
|
||||
});
|
||||
};
|
||||
|
||||
// Convenience version of a common use case of `map`: fetching a property.
|
||||
_.pluck = function(obj, key) {
|
||||
return _.map(obj, function(value){ return value[key]; });
|
||||
};
|
||||
|
||||
// Return the maximum element or (element-based computation).
|
||||
_.max = function(obj, iterator, context) {
|
||||
if (!iterator && _.isArray(obj)) return Math.max.apply(Math, obj);
|
||||
if (!iterator && _.isEmpty(obj)) return -Infinity;
|
||||
var result = {computed : -Infinity};
|
||||
each(obj, function(value, index, list) {
|
||||
var computed = iterator ? iterator.call(context, value, index, list) : value;
|
||||
computed >= result.computed && (result = {value : value, computed : computed});
|
||||
});
|
||||
return result.value;
|
||||
};
|
||||
|
||||
// Return the minimum element (or element-based computation).
|
||||
_.min = function(obj, iterator, context) {
|
||||
if (!iterator && _.isArray(obj)) return Math.min.apply(Math, obj);
|
||||
if (!iterator && _.isEmpty(obj)) return Infinity;
|
||||
var result = {computed : Infinity};
|
||||
each(obj, function(value, index, list) {
|
||||
var computed = iterator ? iterator.call(context, value, index, list) : value;
|
||||
computed < result.computed && (result = {value : value, computed : computed});
|
||||
});
|
||||
return result.value;
|
||||
};
|
||||
|
||||
// Shuffle an array.
|
||||
_.shuffle = function(obj) {
|
||||
var shuffled = [], rand;
|
||||
each(obj, function(value, index, list) {
|
||||
if (index == 0) {
|
||||
shuffled[0] = value;
|
||||
} else {
|
||||
rand = Math.floor(Math.random() * (index + 1));
|
||||
shuffled[index] = shuffled[rand];
|
||||
shuffled[rand] = value;
|
||||
}
|
||||
});
|
||||
return shuffled;
|
||||
};
|
||||
|
||||
// Sort the object's values by a criterion produced by an iterator.
|
||||
_.sortBy = function(obj, iterator, context) {
|
||||
return _.pluck(_.map(obj, function(value, index, list) {
|
||||
return {
|
||||
value : value,
|
||||
criteria : iterator.call(context, value, index, list)
|
||||
};
|
||||
}).sort(function(left, right) {
|
||||
var a = left.criteria, b = right.criteria;
|
||||
return a < b ? -1 : a > b ? 1 : 0;
|
||||
}), 'value');
|
||||
};
|
||||
|
||||
// Groups the object's values by a criterion. Pass either a string attribute
|
||||
// to group by, or a function that returns the criterion.
|
||||
_.groupBy = function(obj, val) {
|
||||
var result = {};
|
||||
var iterator = _.isFunction(val) ? val : function(obj) { return obj[val]; };
|
||||
each(obj, function(value, index) {
|
||||
var key = iterator(value, index);
|
||||
(result[key] || (result[key] = [])).push(value);
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
// Use a comparator function to figure out at what index an object should
|
||||
// be inserted so as to maintain order. Uses binary search.
|
||||
_.sortedIndex = function(array, obj, iterator) {
|
||||
iterator || (iterator = _.identity);
|
||||
var low = 0, high = array.length;
|
||||
while (low < high) {
|
||||
var mid = (low + high) >> 1;
|
||||
iterator(array[mid]) < iterator(obj) ? low = mid + 1 : high = mid;
|
||||
}
|
||||
return low;
|
||||
};
|
||||
|
||||
// Safely convert anything iterable into a real, live array.
|
||||
_.toArray = function(iterable) {
|
||||
if (!iterable) return [];
|
||||
if (iterable.toArray) return iterable.toArray();
|
||||
if (_.isArray(iterable)) return slice.call(iterable);
|
||||
if (_.isArguments(iterable)) return slice.call(iterable);
|
||||
return _.values(iterable);
|
||||
};
|
||||
|
||||
// Return the number of elements in an object.
|
||||
_.size = function(obj) {
|
||||
return _.toArray(obj).length;
|
||||
};
|
||||
|
||||
// Array Functions
|
||||
// ---------------
|
||||
|
||||
// Get the first element of an array. Passing **n** will return the first N
|
||||
// values in the array. Aliased as `head`. The **guard** check allows it to work
|
||||
// with `_.map`.
|
||||
_.first = _.head = function(array, n, guard) {
|
||||
return (n != null) && !guard ? slice.call(array, 0, n) : array[0];
|
||||
};
|
||||
|
||||
// Returns everything but the last entry of the array. Especcialy useful on
|
||||
// the arguments object. Passing **n** will return all the values in
|
||||
// the array, excluding the last N. The **guard** check allows it to work with
|
||||
// `_.map`.
|
||||
_.initial = function(array, n, guard) {
|
||||
return slice.call(array, 0, array.length - ((n == null) || guard ? 1 : n));
|
||||
};
|
||||
|
||||
// Get the last element of an array. Passing **n** will return the last N
|
||||
// values in the array. The **guard** check allows it to work with `_.map`.
|
||||
_.last = function(array, n, guard) {
|
||||
if ((n != null) && !guard) {
|
||||
return slice.call(array, Math.max(array.length - n, 0));
|
||||
} else {
|
||||
return array[array.length - 1];
|
||||
}
|
||||
};
|
||||
|
||||
// Returns everything but the first entry of the array. Aliased as `tail`.
|
||||
// Especially useful on the arguments object. Passing an **index** will return
|
||||
// the rest of the values in the array from that index onward. The **guard**
|
||||
// check allows it to work with `_.map`.
|
||||
_.rest = _.tail = function(array, index, guard) {
|
||||
return slice.call(array, (index == null) || guard ? 1 : index);
|
||||
};
|
||||
|
||||
// Trim out all falsy values from an array.
|
||||
_.compact = function(array) {
|
||||
return _.filter(array, function(value){ return !!value; });
|
||||
};
|
||||
|
||||
// Return a completely flattened version of an array.
|
||||
_.flatten = function(array, shallow) {
|
||||
return _.reduce(array, function(memo, value) {
|
||||
if (_.isArray(value)) return memo.concat(shallow ? value : _.flatten(value));
|
||||
memo[memo.length] = value;
|
||||
return memo;
|
||||
}, []);
|
||||
};
|
||||
|
||||
// Return a version of the array that does not contain the specified value(s).
|
||||
_.without = function(array) {
|
||||
return _.difference(array, slice.call(arguments, 1));
|
||||
};
|
||||
|
||||
// Produce a duplicate-free version of the array. If the array has already
|
||||
// been sorted, you have the option of using a faster algorithm.
|
||||
// Aliased as `unique`.
|
||||
_.uniq = _.unique = function(array, isSorted, iterator) {
|
||||
var initial = iterator ? _.map(array, iterator) : array;
|
||||
var result = [];
|
||||
_.reduce(initial, function(memo, el, i) {
|
||||
if (0 == i || (isSorted === true ? _.last(memo) != el : !_.include(memo, el))) {
|
||||
memo[memo.length] = el;
|
||||
result[result.length] = array[i];
|
||||
}
|
||||
return memo;
|
||||
}, []);
|
||||
return result;
|
||||
};
|
||||
|
||||
// Produce an array that contains the union: each distinct element from all of
|
||||
// the passed-in arrays.
|
||||
_.union = function() {
|
||||
return _.uniq(_.flatten(arguments, true));
|
||||
};
|
||||
|
||||
// Produce an array that contains every item shared between all the
|
||||
// passed-in arrays. (Aliased as "intersect" for back-compat.)
|
||||
_.intersection = _.intersect = function(array) {
|
||||
var rest = slice.call(arguments, 1);
|
||||
return _.filter(_.uniq(array), function(item) {
|
||||
return _.every(rest, function(other) {
|
||||
return _.indexOf(other, item) >= 0;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// Take the difference between one array and a number of other arrays.
|
||||
// Only the elements present in just the first array will remain.
|
||||
_.difference = function(array) {
|
||||
var rest = _.flatten(slice.call(arguments, 1));
|
||||
return _.filter(array, function(value){ return !_.include(rest, value); });
|
||||
};
|
||||
|
||||
// Zip together multiple lists into a single array -- elements that share
|
||||
// an index go together.
|
||||
_.zip = function() {
|
||||
var args = slice.call(arguments);
|
||||
var length = _.max(_.pluck(args, 'length'));
|
||||
var results = new Array(length);
|
||||
for (var i = 0; i < length; i++) results[i] = _.pluck(args, "" + i);
|
||||
return results;
|
||||
};
|
||||
|
||||
// If the browser doesn't supply us with indexOf (I'm looking at you, **MSIE**),
|
||||
// we need this function. Return the position of the first occurrence of an
|
||||
// item in an array, or -1 if the item is not included in the array.
|
||||
// Delegates to **ECMAScript 5**'s native `indexOf` if available.
|
||||
// If the array is large and already in sort order, pass `true`
|
||||
// for **isSorted** to use binary search.
|
||||
_.indexOf = function(array, item, isSorted) {
|
||||
if (array == null) return -1;
|
||||
var i, l;
|
||||
if (isSorted) {
|
||||
i = _.sortedIndex(array, item);
|
||||
return array[i] === item ? i : -1;
|
||||
}
|
||||
if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item);
|
||||
for (i = 0, l = array.length; i < l; i++) if (i in array && array[i] === item) return i;
|
||||
return -1;
|
||||
};
|
||||
|
||||
// Delegates to **ECMAScript 5**'s native `lastIndexOf` if available.
|
||||
_.lastIndexOf = function(array, item) {
|
||||
if (array == null) return -1;
|
||||
if (nativeLastIndexOf && array.lastIndexOf === nativeLastIndexOf) return array.lastIndexOf(item);
|
||||
var i = array.length;
|
||||
while (i--) if (i in array && array[i] === item) return i;
|
||||
return -1;
|
||||
};
|
||||
|
||||
// Generate an integer Array containing an arithmetic progression. A port of
|
||||
// the native Python `range()` function. See
|
||||
// [the Python documentation](http://docs.python.org/library/functions.html#range).
|
||||
_.range = function(start, stop, step) {
|
||||
if (arguments.length <= 1) {
|
||||
stop = start || 0;
|
||||
start = 0;
|
||||
}
|
||||
step = arguments[2] || 1;
|
||||
|
||||
var len = Math.max(Math.ceil((stop - start) / step), 0);
|
||||
var idx = 0;
|
||||
var range = new Array(len);
|
||||
|
||||
while(idx < len) {
|
||||
range[idx++] = start;
|
||||
start += step;
|
||||
}
|
||||
|
||||
return range;
|
||||
};
|
||||
|
||||
// Function (ahem) Functions
|
||||
// ------------------
|
||||
|
||||
// Reusable constructor function for prototype setting.
|
||||
var ctor = function(){};
|
||||
|
||||
// Create a function bound to a given object (assigning `this`, and arguments,
|
||||
// optionally). Binding with arguments is also known as `curry`.
|
||||
// Delegates to **ECMAScript 5**'s native `Function.bind` if available.
|
||||
// We check for `func.bind` first, to fail fast when `func` is undefined.
|
||||
_.bind = function bind(func, context) {
|
||||
var bound, args;
|
||||
if (func.bind === nativeBind && nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
|
||||
if (!_.isFunction(func)) throw new TypeError;
|
||||
args = slice.call(arguments, 2);
|
||||
return bound = function() {
|
||||
if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
|
||||
ctor.prototype = func.prototype;
|
||||
var self = new ctor;
|
||||
var result = func.apply(self, args.concat(slice.call(arguments)));
|
||||
if (Object(result) === result) return result;
|
||||
return self;
|
||||
};
|
||||
};
|
||||
|
||||
// Bind all of an object's methods to that object. Useful for ensuring that
|
||||
// all callbacks defined on an object belong to it.
|
||||
_.bindAll = function(obj) {
|
||||
var funcs = slice.call(arguments, 1);
|
||||
if (funcs.length == 0) funcs = _.functions(obj);
|
||||
each(funcs, function(f) { obj[f] = _.bind(obj[f], obj); });
|
||||
return obj;
|
||||
};
|
||||
|
||||
// Memoize an expensive function by storing its results.
|
||||
_.memoize = function(func, hasher) {
|
||||
var memo = {};
|
||||
hasher || (hasher = _.identity);
|
||||
return function() {
|
||||
var key = hasher.apply(this, arguments);
|
||||
return _.has(memo, key) ? memo[key] : (memo[key] = func.apply(this, arguments));
|
||||
};
|
||||
};
|
||||
|
||||
// Delays a function for the given number of milliseconds, and then calls
|
||||
// it with the arguments supplied.
|
||||
_.delay = function(func, wait) {
|
||||
var args = slice.call(arguments, 2);
|
||||
return setTimeout(function(){ return func.apply(func, args); }, wait);
|
||||
};
|
||||
|
||||
// Defers a function, scheduling it to run after the current call stack has
|
||||
// cleared.
|
||||
_.defer = function(func) {
|
||||
return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
|
||||
};
|
||||
|
||||
// Returns a function, that, when invoked, will only be triggered at most once
|
||||
// during a given window of time.
|
||||
_.throttle = function(func, wait) {
|
||||
var context, args, timeout, throttling, more;
|
||||
var whenDone = _.debounce(function(){ more = throttling = false; }, wait);
|
||||
return function() {
|
||||
context = this; args = arguments;
|
||||
var later = function() {
|
||||
timeout = null;
|
||||
if (more) func.apply(context, args);
|
||||
whenDone();
|
||||
};
|
||||
if (!timeout) timeout = setTimeout(later, wait);
|
||||
if (throttling) {
|
||||
more = true;
|
||||
} else {
|
||||
func.apply(context, args);
|
||||
}
|
||||
whenDone();
|
||||
throttling = true;
|
||||
};
|
||||
};
|
||||
|
||||
// Returns a function, that, as long as it continues to be invoked, will not
|
||||
// be triggered. The function will be called after it stops being called for
|
||||
// N milliseconds.
|
||||
_.debounce = function(func, wait) {
|
||||
var timeout;
|
||||
return function() {
|
||||
var context = this, args = arguments;
|
||||
var later = function() {
|
||||
timeout = null;
|
||||
func.apply(context, args);
|
||||
};
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(later, wait);
|
||||
};
|
||||
};
|
||||
|
||||
// Returns a function that will be executed at most one time, no matter how
|
||||
// often you call it. Useful for lazy initialization.
|
||||
_.once = function(func) {
|
||||
var ran = false, memo;
|
||||
return function() {
|
||||
if (ran) return memo;
|
||||
ran = true;
|
||||
return memo = func.apply(this, arguments);
|
||||
};
|
||||
};
|
||||
|
||||
// Returns the first function passed as an argument to the second,
|
||||
// allowing you to adjust arguments, run code before and after, and
|
||||
// conditionally execute the original function.
|
||||
_.wrap = function(func, wrapper) {
|
||||
return function() {
|
||||
var args = [func].concat(slice.call(arguments, 0));
|
||||
return wrapper.apply(this, args);
|
||||
};
|
||||
};
|
||||
|
||||
// Returns a function that is the composition of a list of functions, each
|
||||
// consuming the return value of the function that follows.
|
||||
_.compose = function() {
|
||||
var funcs = arguments;
|
||||
return function() {
|
||||
var args = arguments;
|
||||
for (var i = funcs.length - 1; i >= 0; i--) {
|
||||
args = [funcs[i].apply(this, args)];
|
||||
}
|
||||
return args[0];
|
||||
};
|
||||
};
|
||||
|
||||
// Returns a function that will only be executed after being called N times.
|
||||
_.after = function(times, func) {
|
||||
if (times <= 0) return func();
|
||||
return function() {
|
||||
if (--times < 1) { return func.apply(this, arguments); }
|
||||
};
|
||||
};
|
||||
|
||||
// Object Functions
|
||||
// ----------------
|
||||
|
||||
// Retrieve the names of an object's properties.
|
||||
// Delegates to **ECMAScript 5**'s native `Object.keys`
|
||||
_.keys = nativeKeys || function(obj) {
|
||||
if (obj !== Object(obj)) throw new TypeError('Invalid object');
|
||||
var keys = [];
|
||||
for (var key in obj) if (_.has(obj, key)) keys[keys.length] = key;
|
||||
return keys;
|
||||
};
|
||||
|
||||
// Retrieve the values of an object's properties.
|
||||
_.values = function(obj) {
|
||||
return _.map(obj, _.identity);
|
||||
};
|
||||
|
||||
// Return a sorted list of the function names available on the object.
|
||||
// Aliased as `methods`
|
||||
_.functions = _.methods = function(obj) {
|
||||
var names = [];
|
||||
for (var key in obj) {
|
||||
if (_.isFunction(obj[key])) names.push(key);
|
||||
}
|
||||
return names.sort();
|
||||
};
|
||||
|
||||
// Extend a given object with all the properties in passed-in object(s).
|
||||
_.extend = function(obj) {
|
||||
each(slice.call(arguments, 1), function(source) {
|
||||
for (var prop in source) {
|
||||
obj[prop] = source[prop];
|
||||
}
|
||||
});
|
||||
return obj;
|
||||
};
|
||||
|
||||
// Fill in a given object with default properties.
|
||||
_.defaults = function(obj) {
|
||||
each(slice.call(arguments, 1), function(source) {
|
||||
for (var prop in source) {
|
||||
if (obj[prop] == null) obj[prop] = source[prop];
|
||||
}
|
||||
});
|
||||
return obj;
|
||||
};
|
||||
|
||||
// Create a (shallow-cloned) duplicate of an object.
|
||||
_.clone = function(obj) {
|
||||
if (!_.isObject(obj)) return obj;
|
||||
return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
|
||||
};
|
||||
|
||||
// Invokes interceptor with the obj, and then returns obj.
|
||||
// The primary purpose of this method is to "tap into" a method chain, in
|
||||
// order to perform operations on intermediate results within the chain.
|
||||
_.tap = function(obj, interceptor) {
|
||||
interceptor(obj);
|
||||
return obj;
|
||||
};
|
||||
|
||||
// Internal recursive comparison function.
|
||||
function eq(a, b, stack) {
|
||||
// Identical objects are equal. `0 === -0`, but they aren't identical.
|
||||
// See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.
|
||||
if (a === b) return a !== 0 || 1 / a == 1 / b;
|
||||
// A strict comparison is necessary because `null == undefined`.
|
||||
if (a == null || b == null) return a === b;
|
||||
// Unwrap any wrapped objects.
|
||||
if (a._chain) a = a._wrapped;
|
||||
if (b._chain) b = b._wrapped;
|
||||
// Invoke a custom `isEqual` method if one is provided.
|
||||
if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);
|
||||
if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);
|
||||
// Compare `[[Class]]` names.
|
||||
var className = toString.call(a);
|
||||
if (className != toString.call(b)) return false;
|
||||
switch (className) {
|
||||
// Strings, numbers, dates, and booleans are compared by value.
|
||||
case '[object String]':
|
||||
// Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
|
||||
// equivalent to `new String("5")`.
|
||||
return a == String(b);
|
||||
case '[object Number]':
|
||||
// `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for
|
||||
// other numeric values.
|
||||
return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);
|
||||
case '[object Date]':
|
||||
case '[object Boolean]':
|
||||
// Coerce dates and booleans to numeric primitive values. Dates are compared by their
|
||||
// millisecond representations. Note that invalid dates with millisecond representations
|
||||
// of `NaN` are not equivalent.
|
||||
return +a == +b;
|
||||
// RegExps are compared by their source patterns and flags.
|
||||
case '[object RegExp]':
|
||||
return a.source == b.source &&
|
||||
a.global == b.global &&
|
||||
a.multiline == b.multiline &&
|
||||
a.ignoreCase == b.ignoreCase;
|
||||
}
|
||||
if (typeof a != 'object' || typeof b != 'object') return false;
|
||||
// Assume equality for cyclic structures. The algorithm for detecting cyclic
|
||||
// structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
|
||||
var length = stack.length;
|
||||
while (length--) {
|
||||
// Linear search. Performance is inversely proportional to the number of
|
||||
// unique nested structures.
|
||||
if (stack[length] == a) return true;
|
||||
}
|
||||
// Add the first object to the stack of traversed objects.
|
||||
stack.push(a);
|
||||
var size = 0, result = true;
|
||||
// Recursively compare objects and arrays.
|
||||
if (className == '[object Array]') {
|
||||
// Compare array lengths to determine if a deep comparison is necessary.
|
||||
size = a.length;
|
||||
result = size == b.length;
|
||||
if (result) {
|
||||
// Deep compare the contents, ignoring non-numeric properties.
|
||||
while (size--) {
|
||||
// Ensure commutative equality for sparse arrays.
|
||||
if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Objects with different constructors are not equivalent.
|
||||
if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;
|
||||
// Deep compare objects.
|
||||
for (var key in a) {
|
||||
if (_.has(a, key)) {
|
||||
// Count the expected number of properties.
|
||||
size++;
|
||||
// Deep compare each member.
|
||||
if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;
|
||||
}
|
||||
}
|
||||
// Ensure that both objects contain the same number of properties.
|
||||
if (result) {
|
||||
for (key in b) {
|
||||
if (_.has(b, key) && !(size--)) break;
|
||||
}
|
||||
result = !size;
|
||||
}
|
||||
}
|
||||
// Remove the first object from the stack of traversed objects.
|
||||
stack.pop();
|
||||
return result;
|
||||
}
|
||||
|
||||
// Perform a deep comparison to check if two objects are equal.
|
||||
_.isEqual = function(a, b) {
|
||||
return eq(a, b, []);
|
||||
};
|
||||
|
||||
// Is a given array, string, or object empty?
|
||||
// An "empty" object has no enumerable own-properties.
|
||||
_.isEmpty = function(obj) {
|
||||
if (_.isArray(obj) || _.isString(obj)) return obj.length === 0;
|
||||
for (var key in obj) if (_.has(obj, key)) return false;
|
||||
return true;
|
||||
};
|
||||
|
||||
// Is a given value a DOM element?
|
||||
_.isElement = function(obj) {
|
||||
return !!(obj && obj.nodeType == 1);
|
||||
};
|
||||
|
||||
// Is a given value an array?
|
||||
// Delegates to ECMA5's native Array.isArray
|
||||
_.isArray = nativeIsArray || function(obj) {
|
||||
return toString.call(obj) == '[object Array]';
|
||||
};
|
||||
|
||||
// Is a given variable an object?
|
||||
_.isObject = function(obj) {
|
||||
return obj === Object(obj);
|
||||
};
|
||||
|
||||
// Is a given variable an arguments object?
|
||||
_.isArguments = function(obj) {
|
||||
return toString.call(obj) == '[object Arguments]';
|
||||
};
|
||||
if (!_.isArguments(arguments)) {
|
||||
_.isArguments = function(obj) {
|
||||
return !!(obj && _.has(obj, 'callee'));
|
||||
};
|
||||
}
|
||||
|
||||
// Is a given value a function?
|
||||
_.isFunction = function(obj) {
|
||||
return toString.call(obj) == '[object Function]';
|
||||
};
|
||||
|
||||
// Is a given value a string?
|
||||
_.isString = function(obj) {
|
||||
return toString.call(obj) == '[object String]';
|
||||
};
|
||||
|
||||
// Is a given value a number?
|
||||
_.isNumber = function(obj) {
|
||||
return toString.call(obj) == '[object Number]';
|
||||
};
|
||||
|
||||
// Is the given value `NaN`?
|
||||
_.isNaN = function(obj) {
|
||||
// `NaN` is the only value for which `===` is not reflexive.
|
||||
return obj !== obj;
|
||||
};
|
||||
|
||||
// Is a given value a boolean?
|
||||
_.isBoolean = function(obj) {
|
||||
return obj === true || obj === false || toString.call(obj) == '[object Boolean]';
|
||||
};
|
||||
|
||||
// Is a given value a date?
|
||||
_.isDate = function(obj) {
|
||||
return toString.call(obj) == '[object Date]';
|
||||
};
|
||||
|
||||
// Is the given value a regular expression?
|
||||
_.isRegExp = function(obj) {
|
||||
return toString.call(obj) == '[object RegExp]';
|
||||
};
|
||||
|
||||
// Is a given value equal to null?
|
||||
_.isNull = function(obj) {
|
||||
return obj === null;
|
||||
};
|
||||
|
||||
// Is a given variable undefined?
|
||||
_.isUndefined = function(obj) {
|
||||
return obj === void 0;
|
||||
};
|
||||
|
||||
// Has own property?
|
||||
_.has = function(obj, key) {
|
||||
return hasOwnProperty.call(obj, key);
|
||||
};
|
||||
|
||||
// Utility Functions
|
||||
// -----------------
|
||||
|
||||
// Run Underscore.js in *noConflict* mode, returning the `_` variable to its
|
||||
// previous owner. Returns a reference to the Underscore object.
|
||||
_.noConflict = function() {
|
||||
root._ = previousUnderscore;
|
||||
return this;
|
||||
};
|
||||
|
||||
// Keep the identity function around for default iterators.
|
||||
_.identity = function(value) {
|
||||
return value;
|
||||
};
|
||||
|
||||
// Run a function **n** times.
|
||||
_.times = function (n, iterator, context) {
|
||||
for (var i = 0; i < n; i++) iterator.call(context, i);
|
||||
};
|
||||
|
||||
// Escape a string for HTML interpolation.
|
||||
_.escape = function(string) {
|
||||
return (''+string).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''').replace(/\//g,'/');
|
||||
};
|
||||
|
||||
// Add your own custom functions to the Underscore object, ensuring that
|
||||
// they're correctly added to the OOP wrapper as well.
|
||||
_.mixin = function(obj) {
|
||||
each(_.functions(obj), function(name){
|
||||
addToWrapper(name, _[name] = obj[name]);
|
||||
});
|
||||
};
|
||||
|
||||
// Generate a unique integer id (unique within the entire client session).
|
||||
// Useful for temporary DOM ids.
|
||||
var idCounter = 0;
|
||||
_.uniqueId = function(prefix) {
|
||||
var id = idCounter++;
|
||||
return prefix ? prefix + id : id;
|
||||
};
|
||||
|
||||
// By default, Underscore uses ERB-style template delimiters, change the
|
||||
// following template settings to use alternative delimiters.
|
||||
_.templateSettings = {
|
||||
evaluate : /<%([\s\S]+?)%>/g,
|
||||
interpolate : /<%=([\s\S]+?)%>/g,
|
||||
escape : /<%-([\s\S]+?)%>/g
|
||||
};
|
||||
|
||||
// When customizing `templateSettings`, if you don't want to define an
|
||||
// interpolation, evaluation or escaping regex, we need one that is
|
||||
// guaranteed not to match.
|
||||
var noMatch = /.^/;
|
||||
|
||||
// Within an interpolation, evaluation, or escaping, remove HTML escaping
|
||||
// that had been previously added.
|
||||
var unescape = function(code) {
|
||||
return code.replace(/\\\\/g, '\\').replace(/\\'/g, "'");
|
||||
};
|
||||
|
||||
// JavaScript micro-templating, similar to John Resig's implementation.
|
||||
// Underscore templating handles arbitrary delimiters, preserves whitespace,
|
||||
// and correctly escapes quotes within interpolated code.
|
||||
_.template = function(str, data) {
|
||||
var c = _.templateSettings;
|
||||
var tmpl = 'var __p=[],print=function(){__p.push.apply(__p,arguments);};' +
|
||||
'with(obj||{}){__p.push(\'' +
|
||||
str.replace(/\\/g, '\\\\')
|
||||
.replace(/'/g, "\\'")
|
||||
.replace(c.escape || noMatch, function(match, code) {
|
||||
return "',_.escape(" + unescape(code) + "),'";
|
||||
})
|
||||
.replace(c.interpolate || noMatch, function(match, code) {
|
||||
return "'," + unescape(code) + ",'";
|
||||
})
|
||||
.replace(c.evaluate || noMatch, function(match, code) {
|
||||
return "');" + unescape(code).replace(/[\r\n\t]/g, ' ') + ";__p.push('";
|
||||
})
|
||||
.replace(/\r/g, '\\r')
|
||||
.replace(/\n/g, '\\n')
|
||||
.replace(/\t/g, '\\t')
|
||||
+ "');}return __p.join('');";
|
||||
var func = new Function('obj', '_', tmpl);
|
||||
if (data) return func(data, _);
|
||||
return function(data) {
|
||||
return func.call(this, data, _);
|
||||
};
|
||||
};
|
||||
|
||||
// Add a "chain" function, which will delegate to the wrapper.
|
||||
_.chain = function(obj) {
|
||||
return _(obj).chain();
|
||||
};
|
||||
|
||||
// The OOP Wrapper
|
||||
// ---------------
|
||||
|
||||
// If Underscore is called as a function, it returns a wrapped object that
|
||||
// can be used OO-style. This wrapper holds altered versions of all the
|
||||
// underscore functions. Wrapped objects may be chained.
|
||||
var wrapper = function(obj) { this._wrapped = obj; };
|
||||
|
||||
// Expose `wrapper.prototype` as `_.prototype`
|
||||
_.prototype = wrapper.prototype;
|
||||
|
||||
// Helper function to continue chaining intermediate results.
|
||||
var result = function(obj, chain) {
|
||||
return chain ? _(obj).chain() : obj;
|
||||
};
|
||||
|
||||
// A method to easily add functions to the OOP wrapper.
|
||||
var addToWrapper = function(name, func) {
|
||||
wrapper.prototype[name] = function() {
|
||||
var args = slice.call(arguments);
|
||||
unshift.call(args, this._wrapped);
|
||||
return result(func.apply(_, args), this._chain);
|
||||
};
|
||||
};
|
||||
|
||||
// Add all of the Underscore functions to the wrapper object.
|
||||
_.mixin(_);
|
||||
|
||||
// Add all mutator Array functions to the wrapper.
|
||||
each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
|
||||
var method = ArrayProto[name];
|
||||
wrapper.prototype[name] = function() {
|
||||
var wrapped = this._wrapped;
|
||||
method.apply(wrapped, arguments);
|
||||
var length = wrapped.length;
|
||||
if ((name == 'shift' || name == 'splice') && length === 0) delete wrapped[0];
|
||||
return result(wrapped, this._chain);
|
||||
};
|
||||
});
|
||||
|
||||
// Add all accessor Array functions to the wrapper.
|
||||
each(['concat', 'join', 'slice'], function(name) {
|
||||
var method = ArrayProto[name];
|
||||
wrapper.prototype[name] = function() {
|
||||
return result(method.apply(this._wrapped, arguments), this._chain);
|
||||
};
|
||||
});
|
||||
|
||||
// Start chaining a wrapped Underscore object.
|
||||
wrapper.prototype.chain = function() {
|
||||
this._chain = true;
|
||||
return this;
|
||||
};
|
||||
|
||||
// Extracts the result from a wrapped and chained object.
|
||||
wrapper.prototype.value = function() {
|
||||
return this._wrapped;
|
||||
};
|
||||
|
||||
}).call(this);
|
||||
@@ -0,0 +1,31 @@
|
||||
// Underscore.js 1.3.1
|
||||
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Underscore is freely distributable under the MIT license.
|
||||
// Portions of Underscore are inspired or borrowed from Prototype,
|
||||
// Oliver Steele's Functional, and John Resig's Micro-Templating.
|
||||
// For all details and documentation:
|
||||
// http://documentcloud.github.com/underscore
|
||||
(function(){function q(a,c,d){if(a===c)return a!==0||1/a==1/c;if(a==null||c==null)return a===c;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual&&b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&&b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return false;switch(e){case "[object String]":return a==String(c);case "[object Number]":return a!=+a?c!=+c:a==0?1/a==1/c:a==+c;case "[object Date]":case "[object Boolean]":return+a==+c;case "[object RegExp]":return a.source==
|
||||
c.source&&a.global==c.global&&a.multiline==c.multiline&&a.ignoreCase==c.ignoreCase}if(typeof a!="object"||typeof c!="object")return false;for(var f=d.length;f--;)if(d[f]==a)return true;d.push(a);var f=0,g=true;if(e=="[object Array]"){if(f=a.length,g=f==c.length)for(;f--;)if(!(g=f in a==f in c&&q(a[f],c[f],d)))break}else{if("constructor"in a!="constructor"in c||a.constructor!=c.constructor)return false;for(var h in a)if(b.has(a,h)&&(f++,!(g=b.has(c,h)&&q(a[h],c[h],d))))break;if(g){for(h in c)if(b.has(c,
|
||||
h)&&!f--)break;g=!f}}d.pop();return g}var r=this,G=r._,n={},k=Array.prototype,o=Object.prototype,i=k.slice,H=k.unshift,l=o.toString,I=o.hasOwnProperty,w=k.forEach,x=k.map,y=k.reduce,z=k.reduceRight,A=k.filter,B=k.every,C=k.some,p=k.indexOf,D=k.lastIndexOf,o=Array.isArray,J=Object.keys,s=Function.prototype.bind,b=function(a){return new m(a)};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports)exports=module.exports=b;exports._=b}else r._=b;b.VERSION="1.3.1";var j=b.each=
|
||||
b.forEach=function(a,c,d){if(a!=null)if(w&&a.forEach===w)a.forEach(c,d);else if(a.length===+a.length)for(var e=0,f=a.length;e<f;e++){if(e in a&&c.call(d,a[e],e,a)===n)break}else for(e in a)if(b.has(a,e)&&c.call(d,a[e],e,a)===n)break};b.map=b.collect=function(a,c,b){var e=[];if(a==null)return e;if(x&&a.map===x)return a.map(c,b);j(a,function(a,g,h){e[e.length]=c.call(b,a,g,h)});if(a.length===+a.length)e.length=a.length;return e};b.reduce=b.foldl=b.inject=function(a,c,d,e){var f=arguments.length>2;a==
|
||||
null&&(a=[]);if(y&&a.reduce===y)return e&&(c=b.bind(c,e)),f?a.reduce(c,d):a.reduce(c);j(a,function(a,b,i){f?d=c.call(e,d,a,b,i):(d=a,f=true)});if(!f)throw new TypeError("Reduce of empty array with no initial value");return d};b.reduceRight=b.foldr=function(a,c,d,e){var f=arguments.length>2;a==null&&(a=[]);if(z&&a.reduceRight===z)return e&&(c=b.bind(c,e)),f?a.reduceRight(c,d):a.reduceRight(c);var g=b.toArray(a).reverse();e&&!f&&(c=b.bind(c,e));return f?b.reduce(g,c,d,e):b.reduce(g,c)};b.find=b.detect=
|
||||
function(a,c,b){var e;E(a,function(a,g,h){if(c.call(b,a,g,h))return e=a,true});return e};b.filter=b.select=function(a,c,b){var e=[];if(a==null)return e;if(A&&a.filter===A)return a.filter(c,b);j(a,function(a,g,h){c.call(b,a,g,h)&&(e[e.length]=a)});return e};b.reject=function(a,c,b){var e=[];if(a==null)return e;j(a,function(a,g,h){c.call(b,a,g,h)||(e[e.length]=a)});return e};b.every=b.all=function(a,c,b){var e=true;if(a==null)return e;if(B&&a.every===B)return a.every(c,b);j(a,function(a,g,h){if(!(e=
|
||||
e&&c.call(b,a,g,h)))return n});return e};var E=b.some=b.any=function(a,c,d){c||(c=b.identity);var e=false;if(a==null)return e;if(C&&a.some===C)return a.some(c,d);j(a,function(a,b,h){if(e||(e=c.call(d,a,b,h)))return n});return!!e};b.include=b.contains=function(a,c){var b=false;if(a==null)return b;return p&&a.indexOf===p?a.indexOf(c)!=-1:b=E(a,function(a){return a===c})};b.invoke=function(a,c){var d=i.call(arguments,2);return b.map(a,function(a){return(b.isFunction(c)?c||a:a[c]).apply(a,d)})};b.pluck=
|
||||
function(a,c){return b.map(a,function(a){return a[c]})};b.max=function(a,c,d){if(!c&&b.isArray(a))return Math.max.apply(Math,a);if(!c&&b.isEmpty(a))return-Infinity;var e={computed:-Infinity};j(a,function(a,b,h){b=c?c.call(d,a,b,h):a;b>=e.computed&&(e={value:a,computed:b})});return e.value};b.min=function(a,c,d){if(!c&&b.isArray(a))return Math.min.apply(Math,a);if(!c&&b.isEmpty(a))return Infinity;var e={computed:Infinity};j(a,function(a,b,h){b=c?c.call(d,a,b,h):a;b<e.computed&&(e={value:a,computed:b})});
|
||||
return e.value};b.shuffle=function(a){var b=[],d;j(a,function(a,f){f==0?b[0]=a:(d=Math.floor(Math.random()*(f+1)),b[f]=b[d],b[d]=a)});return b};b.sortBy=function(a,c,d){return b.pluck(b.map(a,function(a,b,g){return{value:a,criteria:c.call(d,a,b,g)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")};b.groupBy=function(a,c){var d={},e=b.isFunction(c)?c:function(a){return a[c]};j(a,function(a,b){var c=e(a,b);(d[c]||(d[c]=[])).push(a)});return d};b.sortedIndex=function(a,
|
||||
c,d){d||(d=b.identity);for(var e=0,f=a.length;e<f;){var g=e+f>>1;d(a[g])<d(c)?e=g+1:f=g}return e};b.toArray=function(a){return!a?[]:a.toArray?a.toArray():b.isArray(a)?i.call(a):b.isArguments(a)?i.call(a):b.values(a)};b.size=function(a){return b.toArray(a).length};b.first=b.head=function(a,b,d){return b!=null&&!d?i.call(a,0,b):a[0]};b.initial=function(a,b,d){return i.call(a,0,a.length-(b==null||d?1:b))};b.last=function(a,b,d){return b!=null&&!d?i.call(a,Math.max(a.length-b,0)):a[a.length-1]};b.rest=
|
||||
b.tail=function(a,b,d){return i.call(a,b==null||d?1:b)};b.compact=function(a){return b.filter(a,function(a){return!!a})};b.flatten=function(a,c){return b.reduce(a,function(a,e){if(b.isArray(e))return a.concat(c?e:b.flatten(e));a[a.length]=e;return a},[])};b.without=function(a){return b.difference(a,i.call(arguments,1))};b.uniq=b.unique=function(a,c,d){var d=d?b.map(a,d):a,e=[];b.reduce(d,function(d,g,h){if(0==h||(c===true?b.last(d)!=g:!b.include(d,g)))d[d.length]=g,e[e.length]=a[h];return d},[]);
|
||||
return e};b.union=function(){return b.uniq(b.flatten(arguments,true))};b.intersection=b.intersect=function(a){var c=i.call(arguments,1);return b.filter(b.uniq(a),function(a){return b.every(c,function(c){return b.indexOf(c,a)>=0})})};b.difference=function(a){var c=b.flatten(i.call(arguments,1));return b.filter(a,function(a){return!b.include(c,a)})};b.zip=function(){for(var a=i.call(arguments),c=b.max(b.pluck(a,"length")),d=Array(c),e=0;e<c;e++)d[e]=b.pluck(a,""+e);return d};b.indexOf=function(a,c,
|
||||
d){if(a==null)return-1;var e;if(d)return d=b.sortedIndex(a,c),a[d]===c?d:-1;if(p&&a.indexOf===p)return a.indexOf(c);for(d=0,e=a.length;d<e;d++)if(d in a&&a[d]===c)return d;return-1};b.lastIndexOf=function(a,b){if(a==null)return-1;if(D&&a.lastIndexOf===D)return a.lastIndexOf(b);for(var d=a.length;d--;)if(d in a&&a[d]===b)return d;return-1};b.range=function(a,b,d){arguments.length<=1&&(b=a||0,a=0);for(var d=arguments[2]||1,e=Math.max(Math.ceil((b-a)/d),0),f=0,g=Array(e);f<e;)g[f++]=a,a+=d;return g};
|
||||
var F=function(){};b.bind=function(a,c){var d,e;if(a.bind===s&&s)return s.apply(a,i.call(arguments,1));if(!b.isFunction(a))throw new TypeError;e=i.call(arguments,2);return d=function(){if(!(this instanceof d))return a.apply(c,e.concat(i.call(arguments)));F.prototype=a.prototype;var b=new F,g=a.apply(b,e.concat(i.call(arguments)));return Object(g)===g?g:b}};b.bindAll=function(a){var c=i.call(arguments,1);c.length==0&&(c=b.functions(a));j(c,function(c){a[c]=b.bind(a[c],a)});return a};b.memoize=function(a,
|
||||
c){var d={};c||(c=b.identity);return function(){var e=c.apply(this,arguments);return b.has(d,e)?d[e]:d[e]=a.apply(this,arguments)}};b.delay=function(a,b){var d=i.call(arguments,2);return setTimeout(function(){return a.apply(a,d)},b)};b.defer=function(a){return b.delay.apply(b,[a,1].concat(i.call(arguments,1)))};b.throttle=function(a,c){var d,e,f,g,h,i=b.debounce(function(){h=g=false},c);return function(){d=this;e=arguments;var b;f||(f=setTimeout(function(){f=null;h&&a.apply(d,e);i()},c));g?h=true:
|
||||
a.apply(d,e);i();g=true}};b.debounce=function(a,b){var d;return function(){var e=this,f=arguments;clearTimeout(d);d=setTimeout(function(){d=null;a.apply(e,f)},b)}};b.once=function(a){var b=false,d;return function(){if(b)return d;b=true;return d=a.apply(this,arguments)}};b.wrap=function(a,b){return function(){var d=[a].concat(i.call(arguments,0));return b.apply(this,d)}};b.compose=function(){var a=arguments;return function(){for(var b=arguments,d=a.length-1;d>=0;d--)b=[a[d].apply(this,b)];return b[0]}};
|
||||
b.after=function(a,b){return a<=0?b():function(){if(--a<1)return b.apply(this,arguments)}};b.keys=J||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var c=[],d;for(d in a)b.has(a,d)&&(c[c.length]=d);return c};b.values=function(a){return b.map(a,b.identity)};b.functions=b.methods=function(a){var c=[],d;for(d in a)b.isFunction(a[d])&&c.push(d);return c.sort()};b.extend=function(a){j(i.call(arguments,1),function(b){for(var d in b)a[d]=b[d]});return a};b.defaults=function(a){j(i.call(arguments,
|
||||
1),function(b){for(var d in b)a[d]==null&&(a[d]=b[d])});return a};b.clone=function(a){return!b.isObject(a)?a:b.isArray(a)?a.slice():b.extend({},a)};b.tap=function(a,b){b(a);return a};b.isEqual=function(a,b){return q(a,b,[])};b.isEmpty=function(a){if(b.isArray(a)||b.isString(a))return a.length===0;for(var c in a)if(b.has(a,c))return false;return true};b.isElement=function(a){return!!(a&&a.nodeType==1)};b.isArray=o||function(a){return l.call(a)=="[object Array]"};b.isObject=function(a){return a===Object(a)};
|
||||
b.isArguments=function(a){return l.call(a)=="[object Arguments]"};if(!b.isArguments(arguments))b.isArguments=function(a){return!(!a||!b.has(a,"callee"))};b.isFunction=function(a){return l.call(a)=="[object Function]"};b.isString=function(a){return l.call(a)=="[object String]"};b.isNumber=function(a){return l.call(a)=="[object Number]"};b.isNaN=function(a){return a!==a};b.isBoolean=function(a){return a===true||a===false||l.call(a)=="[object Boolean]"};b.isDate=function(a){return l.call(a)=="[object Date]"};
|
||||
b.isRegExp=function(a){return l.call(a)=="[object RegExp]"};b.isNull=function(a){return a===null};b.isUndefined=function(a){return a===void 0};b.has=function(a,b){return I.call(a,b)};b.noConflict=function(){r._=G;return this};b.identity=function(a){return a};b.times=function(a,b,d){for(var e=0;e<a;e++)b.call(d,e)};b.escape=function(a){return(""+a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")};b.mixin=function(a){j(b.functions(a),
|
||||
function(c){K(c,b[c]=a[c])})};var L=0;b.uniqueId=function(a){var b=L++;return a?a+b:b};b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var t=/.^/,u=function(a){return a.replace(/\\\\/g,"\\").replace(/\\'/g,"'")};b.template=function(a,c){var d=b.templateSettings,d="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.escape||t,function(a,b){return"',_.escape("+
|
||||
u(b)+"),'"}).replace(d.interpolate||t,function(a,b){return"',"+u(b)+",'"}).replace(d.evaluate||t,function(a,b){return"');"+u(b).replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",e=new Function("obj","_",d);return c?e(c,b):function(a){return e.call(this,a,b)}};b.chain=function(a){return b(a).chain()};var m=function(a){this._wrapped=a};b.prototype=m.prototype;var v=function(a,c){return c?b(a).chain():a},K=function(a,c){m.prototype[a]=
|
||||
function(){var a=i.call(arguments);H.call(a,this._wrapped);return v(c.apply(b,a),this._chain)}};b.mixin(b);j("pop,push,reverse,shift,sort,splice,unshift".split(","),function(a){var b=k[a];m.prototype[a]=function(){var d=this._wrapped;b.apply(d,arguments);var e=d.length;(a=="shift"||a=="splice")&&e===0&&delete d[0];return v(d,this._chain)}});j(["concat","join","slice"],function(a){var b=k[a];m.prototype[a]=function(){return v(b.apply(this._wrapped,arguments),this._chain)}});m.prototype.chain=function(){this._chain=
|
||||
true;return this};m.prototype.value=function(){return this._wrapped}}).call(this);
|
||||
@@ -0,0 +1,298 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Texas Instruments F2837xS Peripheral Driver Library — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="#"/>
|
||||
<link rel="next" title="Introduction" href="intro.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="#" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="modules/index.html">Modules</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="#">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="#" class="icon icon-home"></a> »</li>
|
||||
<li>Texas Instruments F2837xS Peripheral Driver Library</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="texas-instruments-f2837xs-peripheral-driver-library">
|
||||
<span id="f2837xs-api-guide"></span><h1>Texas Instruments F2837xS Peripheral Driver Library<a class="headerlink" href="#texas-instruments-f2837xs-peripheral-driver-library" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="intro.html#source-code-overview">Source Code Overview</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="model.html">Programming Models</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="model.html#direct-register-access-model">Direct Register Access Model</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="model.html#software-driver-model">Software Driver Model</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="model.html#combining-the-models">Combining The Models</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="usage.html">Driver Library Usage</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usage.html#code-composer-studio-tips">Code Composer Studio Tips</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usage.html#ccs-outline-view">CCS Outline View</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usage.html#assert-macro">ASSERT Macro</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usage.html#driver-library-optimization">Driver Library Optimization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="modules/index.html">Modules</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/asysctl.html">ASysCtl Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/can.html">CAN Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/cputimer.html">CPU Timer Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/dac.html">DAC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/dcsm.html">DCSM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/interrupt.html">Interrupt Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/usb.html">USB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/version.html">Version</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="modules/xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="intro.html" class="btn btn-neutral float-right" title="Introduction" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,292 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Introduction — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="index.html"/>
|
||||
<link rel="next" title="Programming Models" href="model.html"/>
|
||||
<link rel="prev" title="Texas Instruments F2837xS Peripheral Driver Library" href="index.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Introduction</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#source-code-overview">Source Code Overview</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="modules/index.html">Modules</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Introduction</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="introduction">
|
||||
<span id="intro"></span><h1>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The F2837xS Peripheral Driver Library is a set of drivers for accessing the
|
||||
peripherals found on the F2837xS real time control MCU. While they are not
|
||||
drivers in the pure operating system sense (that is, they do not have a common
|
||||
interface and do not connect into a global device driver infrastructure), they
|
||||
do provide a software layer to facilitate a slightly higher level of
|
||||
programming than direct register accesses.</p>
|
||||
<p>The capabilities and organization of the drivers are governed by the following
|
||||
design goals:</p>
|
||||
<ul class="simple">
|
||||
<li><p>They are written entirely in C except where absolutely not possible.</p></li>
|
||||
<li><p>Where possible, computations that can be performed at compile time are done
|
||||
there instead of at run time.</p></li>
|
||||
<li><p>They are intended to make code more portable across other C2000 devices.</p></li>
|
||||
<li><p>Code written with these APIs will be more readable than code written using
|
||||
many direct register accesses.</p></li>
|
||||
</ul>
|
||||
<p>Some consequences of this are that the drivers are not necessarily as efficient
|
||||
as they could be (from a code size and/or execution speed point of view). While
|
||||
the most efficient piece of code for operating a peripheral would be written
|
||||
in assembly and custom tailored to the specific requirements of the
|
||||
application, further size optimizations of the drivers would make them more
|
||||
difficult to understand.</p>
|
||||
<p>For many applications, the drivers can be used as is. But in some cases, the
|
||||
drivers will have to be enhanced or rewritten in order to meet the
|
||||
functionality, memory, or processing requirements of the application. If so,
|
||||
the existing driver can be used as a reference on how to operate the
|
||||
peripheral.</p>
|
||||
<p>Minimum Requirements: CCSv12.1.0 and C2000 Compiler v22.6.0.LTS</p>
|
||||
<div class="section" id="source-code-overview">
|
||||
<h2>Source Code Overview<a class="headerlink" href="#source-code-overview" title="Permalink to this headline">¶</a></h2>
|
||||
<blockquote>
|
||||
<div><p>The following is an overview of the organization of the peripheral driver
|
||||
library source code.</p>
|
||||
<blockquote>
|
||||
<div><ul class="simple">
|
||||
<li><p>{driverlib} - This directory contains the source code for the drivers.</p></li>
|
||||
<li><p>{driverlib/inc/} - This directory holds the peripheral, interrupt, and register access header files used for the direct register access programming model.</p></li>
|
||||
<li><p>{hw_*.h} -Header files, one per peripheral, that describe all the registers and the bit fields within those registers for each peripheral. These header files are used by the drivers to directly access a peripheral, and can be used by application code to bypass the peripheral driver library API.</p></li>
|
||||
</ul>
|
||||
</div></blockquote>
|
||||
</div></blockquote>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="index.html" class="btn btn-neutral float-left" title="Texas Instruments F2837xS Peripheral Driver Library" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="model.html" class="btn btn-neutral float-right" title="Programming Models" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,369 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Programming Models — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="index.html"/>
|
||||
<link rel="next" title="Driver Library Usage" href="usage.html"/>
|
||||
<link rel="prev" title="Introduction" href="intro.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Programming Models</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#direct-register-access-model">Direct Register Access Model</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#software-driver-model">Software Driver Model</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#combining-the-models">Combining The Models</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="modules/index.html">Modules</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Programming Models</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="programming-models">
|
||||
<span id="model"></span><h1>Programming Models<a class="headerlink" href="#programming-models" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The peripheral driver library provides support for two programming models: the
|
||||
direct register access model and the software driver model. Each model can be
|
||||
used independently or combined, based on the needs of the application or the
|
||||
programming environment desired by the developer.</p>
|
||||
<p>Each programming model has advantages and disadvantages. Use of the direct
|
||||
register access model generally results in smaller and more efficient code than
|
||||
using the software driver model. However, the direct register access model
|
||||
requires detailed knowledge of the operation of each register and bit field,
|
||||
as well as their interactions and any sequencing required for proper operation
|
||||
of the peripheral; the developer is somewhat more insulated from these details
|
||||
by the software driver model, generally requiring less time to develop
|
||||
applications. The software driver model also results in more readable code.</p>
|
||||
<div class="section" id="direct-register-access-model">
|
||||
<h2>Direct Register Access Model<a class="headerlink" href="#direct-register-access-model" title="Permalink to this headline">¶</a></h2>
|
||||
<p>In the direct register access model, the peripherals are programmed by the
|
||||
application by writing values directly into the peripheral’s registers. A set
|
||||
of macros is provided that simplifies this process. These macros are stored in
|
||||
several header files contained in the inc directory. By
|
||||
including the header files inc/hw_types.h and inc/hw_memmap.h,
|
||||
macros are available for accessing all registers. Individual bitfield accesses
|
||||
can easily be added by simply including the inc/hw_peripheral.h header
|
||||
file for the desired peripheral.</p>
|
||||
<p>The defines used by the direct register access model follow a naming convention
|
||||
that makes it easier to know how to use a particular macro. The rules are as
|
||||
follows:</p>
|
||||
<ul class="simple">
|
||||
<li><p>Values that end in _BASE and are found in inc/hw_memmap.h
|
||||
are module instance base addresses. For example, SPIA_BASE and
|
||||
SPIB_BASE are the base addresses of instances A and B of the SPI
|
||||
module respectively.</p></li>
|
||||
<li><p>Values that contain an _O_ are register address offsets used to
|
||||
access the value of a register. For example, SPI_O_CCR is used to
|
||||
access the CCR register in a SPI module. These can be added to the
|
||||
base address values to get the register address.</p></li>
|
||||
<li><p>Values that end in _M represent the mask for a multi-bit field in
|
||||
a register. For example, SPI_CCR_SPICHAR_M is a mask for the
|
||||
SPICHAR field in the CCR register. Note that fields that
|
||||
are the whole width of the register are not given masks.</p></li>
|
||||
<li><p>Values that end in _S represent the number of bits to shift a value
|
||||
in order to align it with a multi-bit field. These values match the macro
|
||||
with the same base name but ending with _M.</p></li>
|
||||
<li><p>All others are single-bit field masks. For example, SPI_CCR_SPILBK
|
||||
corresponds to the SPILBK bit in the CCR register.</p></li>
|
||||
</ul>
|
||||
<p>The inchw_types.h file contains macros to access a register. They are
|
||||
as follows where x is the address to be accessed:</p>
|
||||
<ul class="simple">
|
||||
<li><p>HWREG(x) is used for 32-bit accesses, such as reading a value from a
|
||||
32-bit counter register.</p></li>
|
||||
<li><p>HWREGH(x) is used for 16-bit accesses. This can be used to access
|
||||
a 16-bit register or the upper or lower words of a 32-bit register. This is
|
||||
usually the most efficient.</p></li>
|
||||
<li><p>HWREGB(x) is used for 8-bit accesses using the __byte() intrinsic
|
||||
(see the TMS320C28x Optimizing C/C++ Compiler User’s Guide). It typically
|
||||
should only be used when an 8-bit access is required by the hardware.
|
||||
Otherwise, use HWREGH() and mask and shift out the unwanted bits.</p></li>
|
||||
<li><p>HWREG_BP(x) is another macro used for 32-bit accesses, but it uses
|
||||
the __byte_peripheral_32() compiler intrinsic. This is intended for use with
|
||||
peripherals that use a special addressing scheme to support byte accesses
|
||||
such as CAN or USB.</p></li>
|
||||
</ul>
|
||||
<p>Given these definitions, the CCR register can be programmed as
|
||||
follows:</p>
|
||||
<dl class="simple">
|
||||
<dt>// Enable loopback mode on SPI A</dt><dd><p>HWREGH(SPIA_BASE + SPI_O_CCR) <a href="#id1"><span class="problematic" id="id2">|</span></a>= SPI_CCR_SPILBK;</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>// Change the number of bits that make up a character to 8
|
||||
// * First clear the field
|
||||
// * Then shift the new value into place and write it into the register</p>
|
||||
<blockquote>
|
||||
<div><p>HWREGH(SPIA_BASE + SPI_O_CCR) &= ~SPI_CCR_SPICHAR_M;
|
||||
HWREGH(SPIA_BASE + SPI_O_CCR) <a href="#id3"><span class="problematic" id="id4">|</span></a>= 8 << SPI_CCR_SPICHAR_S;</p>
|
||||
</div></blockquote>
|
||||
<p>Extracting the value of the SPICHAR field in the CCR register
|
||||
is as follows:</p>
|
||||
<blockquote>
|
||||
<div><p>x = (HWREGH(SPIA_BASE + SPI_O_CCR) & SPI_CCR_SPICHAR_M) >> SPI_CCR_SPICHAR_S;</p>
|
||||
</div></blockquote>
|
||||
</div>
|
||||
<div class="section" id="software-driver-model">
|
||||
<h2>Software Driver Model<a class="headerlink" href="#software-driver-model" title="Permalink to this headline">¶</a></h2>
|
||||
<p>In the software driver model, the API provided by the peripheral driver library
|
||||
is used by applications to control the peripherals. Because these drivers
|
||||
provide complete control of the peripherals in their normal mode of operation,
|
||||
it is possible to write an entire application without direct access to the
|
||||
hardware. This method provides for rapid development of the application
|
||||
without requiring detailed knowledge of the registers.</p>
|
||||
<p>The following function call programs the SPICHAR field of CCR
|
||||
register mentioned in the direct register access model as well as a few other
|
||||
fields and registers.</p>
|
||||
<blockquote>
|
||||
<div><p>SPI_setConfig(SPIA_BASE, 100000000, SPI_PROT_POL0PHA0,SPI_MODE_MASTER, 500000, 16);</p>
|
||||
</div></blockquote>
|
||||
<p>The drivers in the peripheral driver library are described in the remaining
|
||||
chapters in this document. They combine to form the software driver model.</p>
|
||||
</div>
|
||||
<div class="section" id="combining-the-models">
|
||||
<h2>Combining The Models<a class="headerlink" href="#combining-the-models" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The direct register access model and software driver model can be used together
|
||||
in a single application, allowing the most appropriate model to be applied as
|
||||
needed to any particular situation within the application. For example, the
|
||||
software driver model can be used to configure the peripherals (because this is
|
||||
not performance critical) and the direct register access model can be used for
|
||||
operation of the peripheral (which may be more performance critical). Or, the
|
||||
software driver model can be used for peripherals that are not performance
|
||||
critical (such as SCI used for data logging) and the direct register access
|
||||
model for performance critical peripherals.</p>
|
||||
<p>Additionally, the direct register access model can be used when there is no
|
||||
suitable driver library API for the desired task. Although an API may be available
|
||||
that performs a specific function on an individual bit or register, it could be
|
||||
more beneficial to use the direct register access programming model when
|
||||
performing tasks on entire registers or multiple bits at a given time.
|
||||
However, if there is an API available for the intended task it should be used
|
||||
as it will provide for more rapid development of the application without going
|
||||
into depth on programming the peripherals.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="intro.html" class="btn btn-neutral float-left" title="Introduction" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="usage.html" class="btn btn-neutral float-right" title="Driver Library Usage" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,327 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>ASysCtl Module — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="../index.html"/>
|
||||
<link rel="up" title="Modules" href="index.html"/>
|
||||
<link rel="next" title="CAN Module" href="can.html"/>
|
||||
<link rel="prev" title="ADC Module" href="adc.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Modules</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">ASysCtl Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="can.html">CAN Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cputimer.html">CPU Timer Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dac.html">DAC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dcsm.html">DCSM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="interrupt.html">Interrupt Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usb.html">USB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="version.html">Version</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Modules</a> »</li>
|
||||
<li>ASysCtl Module</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="asysctl-module">
|
||||
<span id="asysctl"></span><h1>ASysCtl Module<a class="headerlink" href="#asysctl-module" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The ASysCtl or Analog System Control driver provides functions to enable,
|
||||
disable and lock the temperature sensor on the device. It will also provide
|
||||
additional functionality if available for that device.</p>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__asysctl__api"></span><em>group</em> <code class="sig-name descname">asysctl_api</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv431ASysCtl_enableTemperatureSensorv">
|
||||
<span id="_CPPv331ASysCtl_enableTemperatureSensorv"></span><span id="_CPPv231ASysCtl_enableTemperatureSensorv"></span><span id="ASysCtl_enableTemperatureSensor__void"></span><span class="target" id="group__asysctl__api_1ga92f70bd2b29e31f324d24e2b53a22924"></span>void <code class="sig-name descname">ASysCtl_enableTemperatureSensor</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv431ASysCtl_enableTemperatureSensorv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Enable temperature sensor.</p>
|
||||
<p>This function enables the temperature sensor output to the ADC.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv432ASysCtl_disableTemperatureSensorv">
|
||||
<span id="_CPPv332ASysCtl_disableTemperatureSensorv"></span><span id="_CPPv232ASysCtl_disableTemperatureSensorv"></span><span id="ASysCtl_disableTemperatureSensor__void"></span><span class="target" id="group__asysctl__api_1gaf050ff326dc1c7de57ec07b6262fa9c0"></span>void <code class="sig-name descname">ASysCtl_disableTemperatureSensor</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv432ASysCtl_disableTemperatureSensorv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Disable temperature sensor.</p>
|
||||
<p>This function disables the temperature sensor output to the ADC.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv429ASysCtl_lockTemperatureSensorv">
|
||||
<span id="_CPPv329ASysCtl_lockTemperatureSensorv"></span><span id="_CPPv229ASysCtl_lockTemperatureSensorv"></span><span id="ASysCtl_lockTemperatureSensor__void"></span><span class="target" id="group__asysctl__api_1ga8dbb23abf5123ba2a0e9bfea18c4d20c"></span>void <code class="sig-name descname">ASysCtl_lockTemperatureSensor</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv429ASysCtl_lockTemperatureSensorv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Locks the temperature sensor control register.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<p>The code for this module is contained in driverlib/asysctl.c, with driverlib/asysctl.h containing the API declarations for use by applications.</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="adc.html" class="btn btn-neutral float-left" title="ADC Module" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="can.html" class="btn btn-neutral float-right" title="CAN Module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,666 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>CPU Timer Module — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="../index.html"/>
|
||||
<link rel="up" title="Modules" href="index.html"/>
|
||||
<link rel="next" title="DAC Module" href="dac.html"/>
|
||||
<link rel="prev" title="CMPSS Module" href="cmpss.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Modules</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="asysctl.html">ASysCtl Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="can.html">CAN Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">CPU Timer Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dac.html">DAC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dcsm.html">DCSM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="interrupt.html">Interrupt Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usb.html">USB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="version.html">Version</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Modules</a> »</li>
|
||||
<li>CPU Timer Module</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="cpu-timer-module">
|
||||
<span id="cputimer"></span><h1>CPU Timer Module<a class="headerlink" href="#cpu-timer-module" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The CPU timer API provides a set of functions for configuring and using the CPU
|
||||
Timer module.
|
||||
Functions are provided to setup and configure the timer module operating
|
||||
conditions along with functions to get the status of the module and to clear
|
||||
overflow flag.</p>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__cputimer__api"></span><em>group</em> <code class="sig-name descname">cputimer_api</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Enums</p>
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv422CPUTimer_EmulationMode">
|
||||
<span id="_CPPv322CPUTimer_EmulationMode"></span><span id="_CPPv222CPUTimer_EmulationMode"></span><span class="target" id="group__cputimer__api_1ga108fe1191ffed926840ac00928024644"></span><em class="property">enum </em><code class="sig-name descname">CPUTimer_EmulationMode</code><a class="headerlink" href="#_CPPv422CPUTimer_EmulationMode" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values that can be passed to <a class="reference internal" href="#group__cputimer__api_1ga8e9243f5ea3917004c5b3205a2a72894"><span class="std std-ref">CPUTimer_setEmulationMode()</span></a> as the <em>mode</em> parameter. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N22CPUTimer_EmulationMode45CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENTE">
|
||||
<span id="_CPPv3N22CPUTimer_EmulationMode45CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENTE"></span><span id="_CPPv2N22CPUTimer_EmulationMode45CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENTE"></span><span class="target" id="group__cputimer__api_1gga108fe1191ffed926840ac00928024644a9e8b546a384b59d2095cd666961dedac"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENT</code> = 0x0000<a class="headerlink" href="#_CPPv4N22CPUTimer_EmulationMode45CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENTE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Denotes that the timer will stop after the next decrement. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N22CPUTimer_EmulationMode33CPUTIMER_EMULATIONMODE_STOPATZEROE">
|
||||
<span id="_CPPv3N22CPUTimer_EmulationMode33CPUTIMER_EMULATIONMODE_STOPATZEROE"></span><span id="_CPPv2N22CPUTimer_EmulationMode33CPUTIMER_EMULATIONMODE_STOPATZEROE"></span><span class="target" id="group__cputimer__api_1gga108fe1191ffed926840ac00928024644a240bcacad635eddb1aaa852c5f7e8397"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_EMULATIONMODE_STOPATZERO</code> = 0x0400<a class="headerlink" href="#_CPPv4N22CPUTimer_EmulationMode33CPUTIMER_EMULATIONMODE_STOPATZEROE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Denotes that the timer will stop when it reaches zero. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N22CPUTimer_EmulationMode30CPUTIMER_EMULATIONMODE_RUNFREEE">
|
||||
<span id="_CPPv3N22CPUTimer_EmulationMode30CPUTIMER_EMULATIONMODE_RUNFREEE"></span><span id="_CPPv2N22CPUTimer_EmulationMode30CPUTIMER_EMULATIONMODE_RUNFREEE"></span><span class="target" id="group__cputimer__api_1gga108fe1191ffed926840ac00928024644a7bdf30431f93bfaa5d277aab530c587c"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_EMULATIONMODE_RUNFREE</code> = 0x0800<a class="headerlink" href="#_CPPv4N22CPUTimer_EmulationMode30CPUTIMER_EMULATIONMODE_RUNFREEE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Denotes that the timer will run free. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv420CPUTimer_ClockSource">
|
||||
<span id="_CPPv320CPUTimer_ClockSource"></span><span id="_CPPv220CPUTimer_ClockSource"></span><span class="target" id="group__cputimer__api_1ga214aff735b0acf172ffe29ebe591fe61"></span><em class="property">enum </em><code class="sig-name descname">CPUTimer_ClockSource</code><a class="headerlink" href="#_CPPv420CPUTimer_ClockSource" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The following are values that can be passed to <a class="reference internal" href="#group__cputimer__api_1ga956f3be8d7c0e2883cc9912fed947fee"><span class="std std-ref">CPUTimer_selectClockSource()</span></a> as the <em>source</em> parameter. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N20CPUTimer_ClockSource25CPUTIMER_CLOCK_SOURCE_SYSE">
|
||||
<span id="_CPPv3N20CPUTimer_ClockSource25CPUTIMER_CLOCK_SOURCE_SYSE"></span><span id="_CPPv2N20CPUTimer_ClockSource25CPUTIMER_CLOCK_SOURCE_SYSE"></span><span class="target" id="group__cputimer__api_1gga214aff735b0acf172ffe29ebe591fe61a560d4a2c75937be8db9a1d70b97982d9"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_SOURCE_SYS</code> = 0x0<a class="headerlink" href="#_CPPv4N20CPUTimer_ClockSource25CPUTIMER_CLOCK_SOURCE_SYSE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>System Clock Source. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N20CPUTimer_ClockSource29CPUTIMER_CLOCK_SOURCE_INTOSC1E">
|
||||
<span id="_CPPv3N20CPUTimer_ClockSource29CPUTIMER_CLOCK_SOURCE_INTOSC1E"></span><span id="_CPPv2N20CPUTimer_ClockSource29CPUTIMER_CLOCK_SOURCE_INTOSC1E"></span><span class="target" id="group__cputimer__api_1gga214aff735b0acf172ffe29ebe591fe61a1db3cd183910648e548ef8ca595d57b4"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_SOURCE_INTOSC1</code> = 0x1<a class="headerlink" href="#_CPPv4N20CPUTimer_ClockSource29CPUTIMER_CLOCK_SOURCE_INTOSC1E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Internal Oscillator 1 Clock Source. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N20CPUTimer_ClockSource29CPUTIMER_CLOCK_SOURCE_INTOSC2E">
|
||||
<span id="_CPPv3N20CPUTimer_ClockSource29CPUTIMER_CLOCK_SOURCE_INTOSC2E"></span><span id="_CPPv2N20CPUTimer_ClockSource29CPUTIMER_CLOCK_SOURCE_INTOSC2E"></span><span class="target" id="group__cputimer__api_1gga214aff735b0acf172ffe29ebe591fe61a42b1e8ae6ad98462ca9f8a7e3c99696e"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_SOURCE_INTOSC2</code> = 0x2<a class="headerlink" href="#_CPPv4N20CPUTimer_ClockSource29CPUTIMER_CLOCK_SOURCE_INTOSC2E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Internal Oscillator 2 Clock Source. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N20CPUTimer_ClockSource26CPUTIMER_CLOCK_SOURCE_XTALE">
|
||||
<span id="_CPPv3N20CPUTimer_ClockSource26CPUTIMER_CLOCK_SOURCE_XTALE"></span><span id="_CPPv2N20CPUTimer_ClockSource26CPUTIMER_CLOCK_SOURCE_XTALE"></span><span class="target" id="group__cputimer__api_1gga214aff735b0acf172ffe29ebe591fe61a92cf2e75fbd905b71f4df1f809eca0fa"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_SOURCE_XTAL</code> = 0x3<a class="headerlink" href="#_CPPv4N20CPUTimer_ClockSource26CPUTIMER_CLOCK_SOURCE_XTALE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>External Clock Source. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N20CPUTimer_ClockSource25CPUTIMER_CLOCK_SOURCE_AUXE">
|
||||
<span id="_CPPv3N20CPUTimer_ClockSource25CPUTIMER_CLOCK_SOURCE_AUXE"></span><span id="_CPPv2N20CPUTimer_ClockSource25CPUTIMER_CLOCK_SOURCE_AUXE"></span><span class="target" id="group__cputimer__api_1gga214aff735b0acf172ffe29ebe591fe61a2153da39f85e4cc3038f0e576edbf28e"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_SOURCE_AUX</code> = 0x6<a class="headerlink" href="#_CPPv4N20CPUTimer_ClockSource25CPUTIMER_CLOCK_SOURCE_AUXE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Auxiliary PLL Clock Source. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv418CPUTimer_Prescaler">
|
||||
<span id="_CPPv318CPUTimer_Prescaler"></span><span id="_CPPv218CPUTimer_Prescaler"></span><span class="target" id="group__cputimer__api_1gafa70b7d5a2a5b33b6bd56e84ff1cec4d"></span><em class="property">enum </em><code class="sig-name descname">CPUTimer_Prescaler</code><a class="headerlink" href="#_CPPv418CPUTimer_Prescaler" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The following are values that can be passed to <a class="reference internal" href="#group__cputimer__api_1ga956f3be8d7c0e2883cc9912fed947fee"><span class="std std-ref">CPUTimer_selectClockSource()</span></a> as the <em>prescaler</em> parameter. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_1E">
|
||||
<span id="_CPPv3N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_1E"></span><span id="_CPPv2N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_1E"></span><span class="target" id="group__cputimer__api_1ggafa70b7d5a2a5b33b6bd56e84ff1cec4da33340a58dd0e4e4cbde4fba33e0de7b6"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_PRESCALER_1</code> = 0<a class="headerlink" href="#_CPPv4N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_1E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Prescaler value of / 1. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_2E">
|
||||
<span id="_CPPv3N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_2E"></span><span id="_CPPv2N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_2E"></span><span class="target" id="group__cputimer__api_1ggafa70b7d5a2a5b33b6bd56e84ff1cec4dad5a1ddb1f79aa8d56cec23324333dd49"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_PRESCALER_2</code> = 1<a class="headerlink" href="#_CPPv4N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_2E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Prescaler value of / 2. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_4E">
|
||||
<span id="_CPPv3N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_4E"></span><span id="_CPPv2N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_4E"></span><span class="target" id="group__cputimer__api_1ggafa70b7d5a2a5b33b6bd56e84ff1cec4da585b094e951b2761735f0e6f20f12de7"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_PRESCALER_4</code> = 2<a class="headerlink" href="#_CPPv4N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_4E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Prescaler value of / 4. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_8E">
|
||||
<span id="_CPPv3N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_8E"></span><span id="_CPPv2N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_8E"></span><span class="target" id="group__cputimer__api_1ggafa70b7d5a2a5b33b6bd56e84ff1cec4dae82ed2a72019c42716c153e592368021"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_PRESCALER_8</code> = 3<a class="headerlink" href="#_CPPv4N18CPUTimer_Prescaler26CPUTIMER_CLOCK_PRESCALER_8E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Prescaler value of / 8. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18CPUTimer_Prescaler27CPUTIMER_CLOCK_PRESCALER_16E">
|
||||
<span id="_CPPv3N18CPUTimer_Prescaler27CPUTIMER_CLOCK_PRESCALER_16E"></span><span id="_CPPv2N18CPUTimer_Prescaler27CPUTIMER_CLOCK_PRESCALER_16E"></span><span class="target" id="group__cputimer__api_1ggafa70b7d5a2a5b33b6bd56e84ff1cec4da9cf1593619914c85d583a6e58ec58614"></span><em class="property">enumerator </em><code class="sig-name descname">CPUTIMER_CLOCK_PRESCALER_16</code> = 4<a class="headerlink" href="#_CPPv4N18CPUTimer_Prescaler27CPUTIMER_CLOCK_PRESCALER_16E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Prescaler value of / 16. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv426CPUTimer_clearOverflowFlag8uint32_t">
|
||||
<span id="_CPPv326CPUTimer_clearOverflowFlag8uint32_t"></span><span id="_CPPv226CPUTimer_clearOverflowFlag8uint32_t"></span><span id="CPUTimer_clearOverflowFlag__uint32_t"></span><span class="target" id="group__cputimer__api_1gae3b2e219398e21ab7dd29787f035ff59"></span>void <code class="sig-name descname">CPUTimer_clearOverflowFlag</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv426CPUTimer_clearOverflowFlag8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Clears CPU timer overflow flag.</p>
|
||||
<p><p>This function clears the CPU timer overflow flag.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425CPUTimer_disableInterrupt8uint32_t">
|
||||
<span id="_CPPv325CPUTimer_disableInterrupt8uint32_t"></span><span id="_CPPv225CPUTimer_disableInterrupt8uint32_t"></span><span id="CPUTimer_disableInterrupt__uint32_t"></span><span class="target" id="group__cputimer__api_1ga58192d248e0d0de4054dd5bde76954b8"></span>void <code class="sig-name descname">CPUTimer_disableInterrupt</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425CPUTimer_disableInterrupt8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Disables CPU timer interrupt.</p>
|
||||
<p><p>This function disables the CPU timer interrupt.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv424CPUTimer_enableInterrupt8uint32_t">
|
||||
<span id="_CPPv324CPUTimer_enableInterrupt8uint32_t"></span><span id="_CPPv224CPUTimer_enableInterrupt8uint32_t"></span><span id="CPUTimer_enableInterrupt__uint32_t"></span><span class="target" id="group__cputimer__api_1ga0a7c39ff546820eb43035b572ecc5a7c"></span>void <code class="sig-name descname">CPUTimer_enableInterrupt</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv424CPUTimer_enableInterrupt8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Enables CPU timer interrupt.</p>
|
||||
<p><p>This function enables the CPU timer interrupt.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv427CPUTimer_reloadTimerCounter8uint32_t">
|
||||
<span id="_CPPv327CPUTimer_reloadTimerCounter8uint32_t"></span><span id="_CPPv227CPUTimer_reloadTimerCounter8uint32_t"></span><span id="CPUTimer_reloadTimerCounter__uint32_t"></span><span class="target" id="group__cputimer__api_1ga06a8d5536106ea72ce195c8fc72c93a4"></span>void <code class="sig-name descname">CPUTimer_reloadTimerCounter</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv427CPUTimer_reloadTimerCounter8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Reloads CPU timer counter.</p>
|
||||
<p><p>This function reloads the CPU timer counter with the values contained in the CPU timer period register.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418CPUTimer_stopTimer8uint32_t">
|
||||
<span id="_CPPv318CPUTimer_stopTimer8uint32_t"></span><span id="_CPPv218CPUTimer_stopTimer8uint32_t"></span><span id="CPUTimer_stopTimer__uint32_t"></span><span class="target" id="group__cputimer__api_1gab7d3df1344d594548b0dda9455ba9dae"></span>void <code class="sig-name descname">CPUTimer_stopTimer</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418CPUTimer_stopTimer8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Stops CPU timer.</p>
|
||||
<p><p>This function stops the CPU timer.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420CPUTimer_resumeTimer8uint32_t">
|
||||
<span id="_CPPv320CPUTimer_resumeTimer8uint32_t"></span><span id="_CPPv220CPUTimer_resumeTimer8uint32_t"></span><span id="CPUTimer_resumeTimer__uint32_t"></span><span class="target" id="group__cputimer__api_1ga62a7963fafabc7fbb0452253617c4016"></span>void <code class="sig-name descname">CPUTimer_resumeTimer</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420CPUTimer_resumeTimer8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Starts(restarts) CPU timer.</p>
|
||||
<p><p>This function starts (restarts) the CPU timer.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><strong>Note:</strong> This function doesn’t reset the timer counter.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419CPUTimer_startTimer8uint32_t">
|
||||
<span id="_CPPv319CPUTimer_startTimer8uint32_t"></span><span id="_CPPv219CPUTimer_startTimer8uint32_t"></span><span id="CPUTimer_startTimer__uint32_t"></span><span class="target" id="group__cputimer__api_1ga7b48c39c1c03126fc5800d11f5c994bd"></span>void <code class="sig-name descname">CPUTimer_startTimer</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419CPUTimer_startTimer8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Starts(restarts) CPU timer.</p>
|
||||
<p><p>This function starts (restarts) the CPU timer.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><strong>Note:</strong> This function reloads the timer counter.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418CPUTimer_setPeriod8uint32_t8uint32_t">
|
||||
<span id="_CPPv318CPUTimer_setPeriod8uint32_t8uint32_t"></span><span id="_CPPv218CPUTimer_setPeriod8uint32_t8uint32_t"></span><span id="CPUTimer_setPeriod__uint32_t.uint32_t"></span><span class="target" id="group__cputimer__api_1ga246fa1d4f1f3f4de27bf856d0dc95227"></span>void <code class="sig-name descname">CPUTimer_setPeriod</code><span class="sig-paren">(</span>uint32_t <em>base</em>, uint32_t <em>periodCount</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418CPUTimer_setPeriod8uint32_t8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sets CPU timer period.</p>
|
||||
<p><p>This function sets the CPU timer period count.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">periodCount</span></code>: is the CPU timer period count.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv422CPUTimer_getTimerCount8uint32_t">
|
||||
<span id="_CPPv322CPUTimer_getTimerCount8uint32_t"></span><span id="_CPPv222CPUTimer_getTimerCount8uint32_t"></span><span id="CPUTimer_getTimerCount__uint32_t"></span><span class="target" id="group__cputimer__api_1ga5ec7266a6de00db24c8d1d1a18be3dd1"></span>uint32_t <code class="sig-name descname">CPUTimer_getTimerCount</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422CPUTimer_getTimerCount8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the current CPU timer counter value.</p>
|
||||
<p><p>This function returns the current CPU timer counter value.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the current CPU timer count value. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421CPUTimer_setPreScaler8uint32_t8uint16_t">
|
||||
<span id="_CPPv321CPUTimer_setPreScaler8uint32_t8uint16_t"></span><span id="_CPPv221CPUTimer_setPreScaler8uint32_t8uint16_t"></span><span id="CPUTimer_setPreScaler__uint32_t.uint16_t"></span><span class="target" id="group__cputimer__api_1gae2b419bee3c160e639cf41697e88362e"></span>void <code class="sig-name descname">CPUTimer_setPreScaler</code><span class="sig-paren">(</span>uint32_t <em>base</em>, uint16_t <em>prescaler</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421CPUTimer_setPreScaler8uint32_t8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Set CPU timer pre-scaler value.</p>
|
||||
<p><p>This function sets the pre-scaler value for the CPU timer. For every value of (prescaler + 1), the CPU timer counter decrements by 1.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">prescaler</span></code>: is the CPU timer pre-scaler value.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv431CPUTimer_getTimerOverflowStatus8uint32_t">
|
||||
<span id="_CPPv331CPUTimer_getTimerOverflowStatus8uint32_t"></span><span id="_CPPv231CPUTimer_getTimerOverflowStatus8uint32_t"></span><span id="CPUTimer_getTimerOverflowStatus__uint32_t"></span><span class="target" id="group__cputimer__api_1gab3614f19c2b8f346b3b75979b3c4433d"></span>bool <code class="sig-name descname">CPUTimer_getTimerOverflowStatus</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv431CPUTimer_getTimerOverflowStatus8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return the CPU timer overflow status.</p>
|
||||
<p><p>This function returns the CPU timer overflow status.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns true if the CPU timer has overflowed, false if not. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv426CPUTimer_selectClockSource8uint32_t20CPUTimer_ClockSource18CPUTimer_Prescaler">
|
||||
<span id="_CPPv326CPUTimer_selectClockSource8uint32_t20CPUTimer_ClockSource18CPUTimer_Prescaler"></span><span id="_CPPv226CPUTimer_selectClockSource8uint32_t20CPUTimer_ClockSource18CPUTimer_Prescaler"></span><span id="CPUTimer_selectClockSource__uint32_t.CPUTimer_ClockSource.CPUTimer_Prescaler"></span><span class="target" id="group__cputimer__api_1ga956f3be8d7c0e2883cc9912fed947fee"></span>void <code class="sig-name descname">CPUTimer_selectClockSource</code><span class="sig-paren">(</span>uint32_t <em>base</em>, <a class="reference internal" href="#_CPPv420CPUTimer_ClockSource" title="CPUTimer_ClockSource">CPUTimer_ClockSource</a> <em>source</em>, <a class="reference internal" href="#_CPPv418CPUTimer_Prescaler" title="CPUTimer_Prescaler">CPUTimer_Prescaler</a> <em>prescaler</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv426CPUTimer_selectClockSource8uint32_t20CPUTimer_ClockSource18CPUTimer_Prescaler" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Select CPU Timer 2 Clock Source and Prescaler</p>
|
||||
<p><p>This function selects the specified clock source and prescaler value for the CPU timer (CPU timer 2 only).</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">source</span></code>: is the clock source to use for CPU Timer 2 </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">prescaler</span></code>: is the value that configures the selected clock source relative to the system clock</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The <em>source</em> parameter can be any one of the following:<ul class="simple">
|
||||
<li><p><strong>CPUTIMER_CLOCK_SOURCE_SYS</strong> - System Clock</p></li>
|
||||
<li><p><strong>CPUTIMER_CLOCK_SOURCE_INTOSC1</strong> - Internal Oscillator 1 Clock</p></li>
|
||||
<li><p><strong>CPUTIMER_CLOCK_SOURCE_INTOSC2</strong> - Internal Oscillator 2 Clock</p></li>
|
||||
<li><p><strong>CPUTIMER_CLOCK_SOURCE_XTAL</strong> - External Clock</p></li>
|
||||
<li><p><strong>CPUTIMER_CLOCK_SOURCE_AUX</strong> - Auxiliary PLL Clock</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>The <em>prescaler</em> parameter can be any one of the following:<ul class="simple">
|
||||
<li><p><strong>CPUTIMER_CLOCK_PRESCALER_1</strong> - Prescaler value of / 1</p></li>
|
||||
<li><p><strong>CPUTIMER_CLOCK_PRESCALER_2</strong> - Prescaler value of / 2</p></li>
|
||||
<li><p><strong>CPUTIMER_CLOCK_PRESCALER_4</strong> - Prescaler value of / 4</p></li>
|
||||
<li><p><strong>CPUTIMER_CLOCK_PRESCALER_8</strong> - Prescaler value of / 8</p></li>
|
||||
<li><p><strong>CPUTIMER_CLOCK_PRESCALER_16</strong> - Prescaler value of / 16</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425CPUTimer_setEmulationMode8uint32_t22CPUTimer_EmulationMode">
|
||||
<span id="_CPPv325CPUTimer_setEmulationMode8uint32_t22CPUTimer_EmulationMode"></span><span id="_CPPv225CPUTimer_setEmulationMode8uint32_t22CPUTimer_EmulationMode"></span><span id="CPUTimer_setEmulationMode__uint32_t.CPUTimer_EmulationMode"></span><span class="target" id="group__cputimer__api_1ga8e9243f5ea3917004c5b3205a2a72894"></span>void <code class="sig-name descname">CPUTimer_setEmulationMode</code><span class="sig-paren">(</span>uint32_t <em>base</em>, <a class="reference internal" href="#_CPPv422CPUTimer_EmulationMode" title="CPUTimer_EmulationMode">CPUTimer_EmulationMode</a> <em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425CPUTimer_setEmulationMode8uint32_t22CPUTimer_EmulationMode" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sets Emulation mode for CPU timer.</p>
|
||||
<p><p>This function sets the behaviour of CPU timer during emulation. Valid values mode are: CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENT, CPUTIMER_EMULATIONMODE_STOPATZERO and CPUTIMER_EMULATIONMODE_RUNFREE.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of the timer module. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">mode</span></code>: is the emulation mode of the timer.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<p>The code for this module is contained in driverlib/cputimer.c, with driverlib/cputimer.h containing the API declarations for use by applications.</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="cmpss.html" class="btn btn-neutral float-left" title="CMPSS Module" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="dac.html" class="btn btn-neutral float-right" title="DAC Module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,670 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>DAC Module — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="../index.html"/>
|
||||
<link rel="up" title="Modules" href="index.html"/>
|
||||
<link rel="next" title="DCSM Module" href="dcsm.html"/>
|
||||
<link rel="prev" title="CPU Timer Module" href="cputimer.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Modules</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="asysctl.html">ASysCtl Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="can.html">CAN Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cputimer.html">CPU Timer Module</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">DAC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dcsm.html">DCSM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="interrupt.html">Interrupt Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usb.html">USB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="version.html">Version</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Modules</a> »</li>
|
||||
<li>DAC Module</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="dac-module">
|
||||
<span id="dac"></span><h1>DAC Module<a class="headerlink" href="#dac-module" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The buffered digital to analog converter (DAC) API provides a set of functions
|
||||
for programming the digital circuits of the DAC. Functions are provided to set
|
||||
the reference voltage, the synchronization mode, the internal 12-bit DAC value,
|
||||
and set the state of the DAC output.</p>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__dac__api"></span><em>group</em> <code class="sig-name descname">dac_api</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DAC_REG_BYTE_MASK">
|
||||
<span class="target" id="group__dac__api_1ga55e5e07886e03226b921bbbfb7beafab"></span><code class="sig-name descname">DAC_REG_BYTE_MASK</code> (0xFFU)<a class="headerlink" href="#c.DAC_REG_BYTE_MASK" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Register Byte Mask. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DAC_LOCK_KEY">
|
||||
<span class="target" id="group__dac__api_1ga54a9da9d4ad33f97bdc55659fd3cc44a"></span><code class="sig-name descname">DAC_LOCK_KEY</code> (0xA000U)<a class="headerlink" href="#c.DAC_LOCK_KEY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>DAC Lock Key. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DAC_LOCK_CONTROL">
|
||||
<span class="target" id="group__dac__api_1gae96bc0110e0d07f9a0a89e2fdc20ee7e"></span><code class="sig-name descname">DAC_LOCK_CONTROL</code> (0x1U)<a class="headerlink" href="#c.DAC_LOCK_CONTROL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Lock the control register. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DAC_LOCK_SHADOW">
|
||||
<span class="target" id="group__dac__api_1gab1d0208b2b8886ce1ccb641c950f8739"></span><code class="sig-name descname">DAC_LOCK_SHADOW</code> (0x2U)<a class="headerlink" href="#c.DAC_LOCK_SHADOW" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Lock the shadow value register. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DAC_LOCK_OUTPUT">
|
||||
<span class="target" id="group__dac__api_1ga4a656d3e836c49285cae5be09fd51d44"></span><code class="sig-name descname">DAC_LOCK_OUTPUT</code> (0x4U)<a class="headerlink" href="#c.DAC_LOCK_OUTPUT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Lock the output enable register. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Enums</p>
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv420DAC_ReferenceVoltage">
|
||||
<span id="_CPPv320DAC_ReferenceVoltage"></span><span id="_CPPv220DAC_ReferenceVoltage"></span><span class="target" id="group__dac__api_1ga050286066cbfe396b9f3bf046247347f"></span><em class="property">enum </em><code class="sig-name descname">DAC_ReferenceVoltage</code><a class="headerlink" href="#_CPPv420DAC_ReferenceVoltage" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values that can be passed to <a class="reference internal" href="#group__dac__api_1ga77cfbc074fcc649200bd43cc6d941b75"><span class="std std-ref">DAC_setReferenceVoltage()</span></a> as the <em>source</em> parameter. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N20DAC_ReferenceVoltage12DAC_REF_VDACE">
|
||||
<span id="_CPPv3N20DAC_ReferenceVoltage12DAC_REF_VDACE"></span><span id="_CPPv2N20DAC_ReferenceVoltage12DAC_REF_VDACE"></span><span class="target" id="group__dac__api_1gga050286066cbfe396b9f3bf046247347fa3ca1e6520daf0ca2d479db2e373935d8"></span><em class="property">enumerator </em><code class="sig-name descname">DAC_REF_VDAC</code> = 0<a class="headerlink" href="#_CPPv4N20DAC_ReferenceVoltage12DAC_REF_VDACE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>VDAC reference voltage. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N20DAC_ReferenceVoltage18DAC_REF_ADC_VREFHIE">
|
||||
<span id="_CPPv3N20DAC_ReferenceVoltage18DAC_REF_ADC_VREFHIE"></span><span id="_CPPv2N20DAC_ReferenceVoltage18DAC_REF_ADC_VREFHIE"></span><span class="target" id="group__dac__api_1gga050286066cbfe396b9f3bf046247347facd970a5ddda12f7950c4745bb4e61a8b"></span><em class="property">enumerator </em><code class="sig-name descname">DAC_REF_ADC_VREFHI</code> = 1<a class="headerlink" href="#_CPPv4N20DAC_ReferenceVoltage18DAC_REF_ADC_VREFHIE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>ADC VREFHI reference voltage. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv412DAC_LoadMode">
|
||||
<span id="_CPPv312DAC_LoadMode"></span><span id="_CPPv212DAC_LoadMode"></span><span class="target" id="group__dac__api_1ga015ca6d4a2b55bd66d1a4effb180313e"></span><em class="property">enum </em><code class="sig-name descname">DAC_LoadMode</code><a class="headerlink" href="#_CPPv412DAC_LoadMode" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values that can be passed to <a class="reference internal" href="#group__dac__api_1gaaaac0e28836841d9f77e086bb8508be4"><span class="std std-ref">DAC_setLoadMode()</span></a> as the <em>mode</em> parameter. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N12DAC_LoadMode15DAC_LOAD_SYSCLKE">
|
||||
<span id="_CPPv3N12DAC_LoadMode15DAC_LOAD_SYSCLKE"></span><span id="_CPPv2N12DAC_LoadMode15DAC_LOAD_SYSCLKE"></span><span class="target" id="group__dac__api_1gga015ca6d4a2b55bd66d1a4effb180313ea0a0ced6aebc4887d4c6ae5b76d2de5f3"></span><em class="property">enumerator </em><code class="sig-name descname">DAC_LOAD_SYSCLK</code> = 0<a class="headerlink" href="#_CPPv4N12DAC_LoadMode15DAC_LOAD_SYSCLKE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Load on next SYSCLK. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N12DAC_LoadMode16DAC_LOAD_PWMSYNCE">
|
||||
<span id="_CPPv3N12DAC_LoadMode16DAC_LOAD_PWMSYNCE"></span><span id="_CPPv2N12DAC_LoadMode16DAC_LOAD_PWMSYNCE"></span><span class="target" id="group__dac__api_1gga015ca6d4a2b55bd66d1a4effb180313ea2bf545e512d58c2ddcc697e17ccb35a3"></span><em class="property">enumerator </em><code class="sig-name descname">DAC_LOAD_PWMSYNC</code> = 4<a class="headerlink" href="#_CPPv4N12DAC_LoadMode16DAC_LOAD_PWMSYNCE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Load on next PWMSYNC specified by SYNCSEL. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv415DAC_getRevision8uint32_t">
|
||||
<span id="_CPPv315DAC_getRevision8uint32_t"></span><span id="_CPPv215DAC_getRevision8uint32_t"></span><span id="DAC_getRevision__uint32_t"></span><span class="target" id="group__dac__api_1gabcf208b6278f0a6c9e24a821281e3e5a"></span>uint16_t <code class="sig-name descname">DAC_getRevision</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv415DAC_getRevision8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Get the DAC Revision value</p>
|
||||
<p><p>This function gets the DAC revision value.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the DAC revision value. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423DAC_setReferenceVoltage8uint32_t20DAC_ReferenceVoltage">
|
||||
<span id="_CPPv323DAC_setReferenceVoltage8uint32_t20DAC_ReferenceVoltage"></span><span id="_CPPv223DAC_setReferenceVoltage8uint32_t20DAC_ReferenceVoltage"></span><span id="DAC_setReferenceVoltage__uint32_t.DAC_ReferenceVoltage"></span><span class="target" id="group__dac__api_1ga77cfbc074fcc649200bd43cc6d941b75"></span>void <code class="sig-name descname">DAC_setReferenceVoltage</code><span class="sig-paren">(</span>uint32_t <em>base</em>, <a class="reference internal" href="#_CPPv420DAC_ReferenceVoltage" title="DAC_ReferenceVoltage">DAC_ReferenceVoltage</a> <em>source</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423DAC_setReferenceVoltage8uint32_t20DAC_ReferenceVoltage" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sets the DAC Reference Voltage</p>
|
||||
<p><p>This function sets the DAC reference voltage.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">source</span></code>: is the selected reference voltage</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The <em>source</em> parameter can have the following value:<ul class="simple">
|
||||
<li><p><strong>DAC_REF_VDAC</strong> - The VDAC reference voltage</p></li>
|
||||
<li><p><strong>DAC_REF_ADC_VREFHI</strong> - The ADC VREFHI reference voltage</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv415DAC_setLoadMode8uint32_t12DAC_LoadMode">
|
||||
<span id="_CPPv315DAC_setLoadMode8uint32_t12DAC_LoadMode"></span><span id="_CPPv215DAC_setLoadMode8uint32_t12DAC_LoadMode"></span><span id="DAC_setLoadMode__uint32_t.DAC_LoadMode"></span><span class="target" id="group__dac__api_1gaaaac0e28836841d9f77e086bb8508be4"></span>void <code class="sig-name descname">DAC_setLoadMode</code><span class="sig-paren">(</span>uint32_t <em>base</em>, <a class="reference internal" href="#_CPPv412DAC_LoadMode" title="DAC_LoadMode">DAC_LoadMode</a> <em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv415DAC_setLoadMode8uint32_t12DAC_LoadMode" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sets the DAC Load Mode</p>
|
||||
<p><p>This function sets the DAC load mode.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">mode</span></code>: is the selected load mode</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The <em>mode</em> parameter can have one of two values:<ul class="simple">
|
||||
<li><p><strong>DAC_LOAD_SYSCLK</strong> - Load on next SYSCLK</p></li>
|
||||
<li><p><strong>DAC_LOAD_PWMSYNC</strong> - Load on next PWMSYNC specified by SYNCSEL</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420DAC_setPWMSyncSignal8uint32_t8uint16_t">
|
||||
<span id="_CPPv320DAC_setPWMSyncSignal8uint32_t8uint16_t"></span><span id="_CPPv220DAC_setPWMSyncSignal8uint32_t8uint16_t"></span><span id="DAC_setPWMSyncSignal__uint32_t.uint16_t"></span><span class="target" id="group__dac__api_1gaebf57ad53a7191840664b10c22cc21af"></span>void <code class="sig-name descname">DAC_setPWMSyncSignal</code><span class="sig-paren">(</span>uint32_t <em>base</em>, uint16_t <em>pwmSignal</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420DAC_setPWMSyncSignal8uint32_t8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sets the DAC PWMSYNC Signal</p>
|
||||
<p><p>This function sets the DAC PWMSYNC signal.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">signal</span></code>: is the selected PWM signal</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The <em>signal</em> parameter must be set to a number that represents the PWM signal that will be set. For instance, passing 2 into <em>signal</em> will select PWM sync signal 2.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418DAC_getActiveValue8uint32_t">
|
||||
<span id="_CPPv318DAC_getActiveValue8uint32_t"></span><span id="_CPPv218DAC_getActiveValue8uint32_t"></span><span id="DAC_getActiveValue__uint32_t"></span><span class="target" id="group__dac__api_1ga4bbe4c35a3578bb9a4ad0413764aa90a"></span>uint16_t <code class="sig-name descname">DAC_getActiveValue</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418DAC_getActiveValue8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Get the DAC Active Output Value</p>
|
||||
<p><p>This function gets the DAC active output value.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the DAC active output value. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418DAC_setShadowValue8uint32_t8uint16_t">
|
||||
<span id="_CPPv318DAC_setShadowValue8uint32_t8uint16_t"></span><span id="_CPPv218DAC_setShadowValue8uint32_t8uint16_t"></span><span id="DAC_setShadowValue__uint32_t.uint16_t"></span><span class="target" id="group__dac__api_1ga12d9dffb62b325ddc1b320435aefcb8b"></span>void <code class="sig-name descname">DAC_setShadowValue</code><span class="sig-paren">(</span>uint32_t <em>base</em>, uint16_t <em>value</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418DAC_setShadowValue8uint32_t8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Set the DAC Shadow Output Value</p>
|
||||
<p><p>This function sets the DAC shadow output value.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">value</span></code>: is the 12-bit code to be loaded into the active value register</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418DAC_getShadowValue8uint32_t">
|
||||
<span id="_CPPv318DAC_getShadowValue8uint32_t"></span><span id="_CPPv218DAC_getShadowValue8uint32_t"></span><span id="DAC_getShadowValue__uint32_t"></span><span class="target" id="group__dac__api_1gaa8f9b6b182680770cee2850ff4311106"></span>uint16_t <code class="sig-name descname">DAC_getShadowValue</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418DAC_getShadowValue8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Get the DAC Shadow Output Value</p>
|
||||
<p><p>This function gets the DAC shadow output value.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the DAC shadow output value. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv416DAC_enableOutput8uint32_t">
|
||||
<span id="_CPPv316DAC_enableOutput8uint32_t"></span><span id="_CPPv216DAC_enableOutput8uint32_t"></span><span id="DAC_enableOutput__uint32_t"></span><span class="target" id="group__dac__api_1ga12f9f3a884fa5bdebf6d94df8c2223d9"></span>void <code class="sig-name descname">DAC_enableOutput</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416DAC_enableOutput8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Enable the DAC Output</p>
|
||||
<p><p>This function enables the DAC output.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>A delay is required after enabling the DAC. Further details regarding the exact delay time length can be found in the device datasheet.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv417DAC_disableOutput8uint32_t">
|
||||
<span id="_CPPv317DAC_disableOutput8uint32_t"></span><span id="_CPPv217DAC_disableOutput8uint32_t"></span><span id="DAC_disableOutput__uint32_t"></span><span class="target" id="group__dac__api_1gac9b8d692a84f19a3d56017d22ca43c03"></span>void <code class="sig-name descname">DAC_disableOutput</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417DAC_disableOutput8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Disable the DAC Output</p>
|
||||
<p><p>This function disables the DAC output.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv417DAC_setOffsetTrim8uint32_t7int16_t">
|
||||
<span id="_CPPv317DAC_setOffsetTrim8uint32_t7int16_t"></span><span id="_CPPv217DAC_setOffsetTrim8uint32_t7int16_t"></span><span id="DAC_setOffsetTrim__uint32_t.int16_t"></span><span class="target" id="group__dac__api_1ga9c3a8bc1177626cfe433e859c1f51239"></span>void <code class="sig-name descname">DAC_setOffsetTrim</code><span class="sig-paren">(</span>uint32_t <em>base</em>, int16_t <em>offset</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417DAC_setOffsetTrim8uint32_t7int16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Set DAC Offset Trim</p>
|
||||
<p><p>This function sets the DAC offset trim. The </p>
|
||||
<em>offset</em> value should be a signed number in the range of -128 to 127.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">offset</span></code>: is the specified value for the offset trim</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>The offset should not be modified unless specifically indicated by TI Errata or other documentation. Modifying the offset value could cause this module to operate outside of the datasheet specifications.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv417DAC_getOffsetTrim8uint32_t">
|
||||
<span id="_CPPv317DAC_getOffsetTrim8uint32_t"></span><span id="_CPPv217DAC_getOffsetTrim8uint32_t"></span><span id="DAC_getOffsetTrim__uint32_t"></span><span class="target" id="group__dac__api_1ga0950f801ddb49b8f54d3ba2806a47311"></span>int16_t <code class="sig-name descname">DAC_getOffsetTrim</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417DAC_getOffsetTrim8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Get DAC Offset Trim</p>
|
||||
<p><p>This function gets the DAC offset trim value.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv416DAC_lockRegister8uint32_t8uint16_t">
|
||||
<span id="_CPPv316DAC_lockRegister8uint32_t8uint16_t"></span><span id="_CPPv216DAC_lockRegister8uint32_t8uint16_t"></span><span id="DAC_lockRegister__uint32_t.uint16_t"></span><span class="target" id="group__dac__api_1ga621868901853b971d84e3f1ac6980688"></span>void <code class="sig-name descname">DAC_lockRegister</code><span class="sig-paren">(</span>uint32_t <em>base</em>, uint16_t <em>reg</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416DAC_lockRegister8uint32_t8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Lock write-access to DAC Register</p>
|
||||
<p><p>This function locks the write-access to the specified DAC register. Only a system reset can unlock the register once locked.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">reg</span></code>: is the selected DAC registers</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The <em>reg</em> parameter can be an ORed combination of any of the following values:<ul class="simple">
|
||||
<li><p><strong>DAC_LOCK_CONTROL</strong> - Lock the DAC control register</p></li>
|
||||
<li><p><strong>DAC_LOCK_SHADOW</strong> - Lock the DAC shadow value register</p></li>
|
||||
<li><p><strong>DAC_LOCK_OUTPUT</strong> - Lock the DAC output enable/disable register</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420DAC_isRegisterLocked8uint32_t8uint16_t">
|
||||
<span id="_CPPv320DAC_isRegisterLocked8uint32_t8uint16_t"></span><span id="_CPPv220DAC_isRegisterLocked8uint32_t8uint16_t"></span><span id="DAC_isRegisterLocked__uint32_t.uint16_t"></span><span class="target" id="group__dac__api_1ga23b784679131976f9f91e5654dd423e8"></span>bool <code class="sig-name descname">DAC_isRegisterLocked</code><span class="sig-paren">(</span>uint32_t <em>base</em>, uint16_t <em>reg</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420DAC_isRegisterLocked8uint32_t8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Check if DAC Register is locked</p>
|
||||
<p><p>This function checks if write-access has been locked on the specified DAC register.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">reg</span></code>: is the selected DAC register locks to check</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The <em>reg</em> parameter can be an ORed combination of any of the following values:<ul class="simple">
|
||||
<li><p><strong>DAC_LOCK_CONTROL</strong> - Lock the DAC control register</p></li>
|
||||
<li><p><strong>DAC_LOCK_SHADOW</strong> - Lock the DAC shadow value register</p></li>
|
||||
<li><p><strong>DAC_LOCK_OUTPUT</strong> - Lock the DAC output enable/disable register</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns <strong>true</strong> if any of the registers specified are locked, and <strong>false</strong> if all specified registers aren’t locked. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418DAC_tuneOffsetTrim8uint32_t9float32_t">
|
||||
<span id="_CPPv318DAC_tuneOffsetTrim8uint32_t9float32_t"></span><span id="_CPPv218DAC_tuneOffsetTrim8uint32_t9float32_t"></span><span id="DAC_tuneOffsetTrim__uint32_t.float32_t"></span><span class="target" id="group__dac__api_1gafeb01961a37d91db7adf3f0815574035"></span>void <code class="sig-name descname">DAC_tuneOffsetTrim</code><span class="sig-paren">(</span>uint32_t <em>base</em>, float32_t <em>referenceVoltage</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418DAC_tuneOffsetTrim8uint32_t9float32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Tune DAC Offset Trim</p>
|
||||
<p><p>This function adjusts/tunes the DAC offset trim. The </p>
|
||||
<em>referenceVoltage</em> value should be a floating point number in the range specified in the device data manual.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the DAC module base address </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">referenceVoltage</span></code>: is the reference voltage the DAC module is operating at.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>Use this function to adjust the DAC offset trim if operating at a reference voltage other than 2.5v. Since this function modifies the DAC offset trim register, it should only be called once after Device_cal. If it is called multiple times after Device_cal, the offset value scaled would be the wrong value.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<p>The code for this module is contained in driverlib/dac.c, with driverlib/dac.h containing the API declarations for use by applications.</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="cputimer.html" class="btn btn-neutral float-left" title="CPU Timer Module" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="dcsm.html" class="btn btn-neutral float-right" title="DCSM Module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,954 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>DCSM Module — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="../index.html"/>
|
||||
<link rel="up" title="Modules" href="index.html"/>
|
||||
<link rel="next" title="DMA Module" href="dma.html"/>
|
||||
<link rel="prev" title="DAC Module" href="dac.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Modules</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="asysctl.html">ASysCtl Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="can.html">CAN Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cputimer.html">CPU Timer Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dac.html">DAC Module</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">DCSM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="interrupt.html">Interrupt Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usb.html">USB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="version.html">Version</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Modules</a> »</li>
|
||||
<li>DCSM Module</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="dcsm-module">
|
||||
<span id="dcsm"></span><h1>DCSM Module<a class="headerlink" href="#dcsm-module" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The DCSM driver accesses the DCSM COMMON registers. In order to configure the
|
||||
Dual Code Security Module, the user must program the Linkpointer in DCSM OTP as
|
||||
well as the security configuration registers of the Zone Select Blocks in DCSM
|
||||
OTP. The DCSM driver provides functions which secure and unsecure each zone
|
||||
and return the ownership, security status, EXEONLY status of specific RAM
|
||||
modules or Flash sectors. Included are two functions which can claim and
|
||||
release the Flash pump to operate on a specific zone.</p>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__dcsm__api"></span><em>group</em> <code class="sig-name descname">dcsm_api</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_O_Z1_CSMPSWD0">
|
||||
<span class="target" id="group__dcsm__api_1ga191314fc9806cb851e111a27c87ee1c8"></span><code class="sig-name descname">DCSM_O_Z1_CSMPSWD0</code> 0x08U<a class="headerlink" href="#c.DCSM_O_Z1_CSMPSWD0" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Z1 CSMPSWD0 offset. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_O_Z1_CSMPSWD1">
|
||||
<span class="target" id="group__dcsm__api_1ga56b03c7d09910a1b481df9032ae544d6"></span><code class="sig-name descname">DCSM_O_Z1_CSMPSWD1</code> 0x0AU<a class="headerlink" href="#c.DCSM_O_Z1_CSMPSWD1" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Z1 CSMPSWD1 offset. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_O_Z1_CSMPSWD2">
|
||||
<span class="target" id="group__dcsm__api_1gaa5434f85632d25fb7544f23678104f6f"></span><code class="sig-name descname">DCSM_O_Z1_CSMPSWD2</code> 0x0CU<a class="headerlink" href="#c.DCSM_O_Z1_CSMPSWD2" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Z1 CSMPSWD2 offset. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_O_Z1_CSMPSWD3">
|
||||
<span class="target" id="group__dcsm__api_1gac3043e49478b8079311c35941c86bf7c"></span><code class="sig-name descname">DCSM_O_Z1_CSMPSWD3</code> 0x0EU<a class="headerlink" href="#c.DCSM_O_Z1_CSMPSWD3" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Z1 CSMPSWD3 offset. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_O_Z2_CSMPSWD0">
|
||||
<span class="target" id="group__dcsm__api_1gaafa41b3cb96c4f0575d374f4cf5ff616"></span><code class="sig-name descname">DCSM_O_Z2_CSMPSWD0</code> 0x08U<a class="headerlink" href="#c.DCSM_O_Z2_CSMPSWD0" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Z2 CSMPSWD0 offset. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_O_Z2_CSMPSWD1">
|
||||
<span class="target" id="group__dcsm__api_1gabe199d1d034d727ac6e74ff0606586f6"></span><code class="sig-name descname">DCSM_O_Z2_CSMPSWD1</code> 0x0AU<a class="headerlink" href="#c.DCSM_O_Z2_CSMPSWD1" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Z2 CSMPSWD1 offset. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_O_Z2_CSMPSWD2">
|
||||
<span class="target" id="group__dcsm__api_1ga89e46144a96ce8bf3e9322de0e6c43e8"></span><code class="sig-name descname">DCSM_O_Z2_CSMPSWD2</code> 0x0CU<a class="headerlink" href="#c.DCSM_O_Z2_CSMPSWD2" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Z2 CSMPSWD2 offset. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_O_Z2_CSMPSWD3">
|
||||
<span class="target" id="group__dcsm__api_1ga0feb9e3fb99a37778b04ff970a28169a"></span><code class="sig-name descname">DCSM_O_Z2_CSMPSWD3</code> 0x0EU<a class="headerlink" href="#c.DCSM_O_Z2_CSMPSWD3" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Z2 CSMPSWD3 offset. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.FLSEM_KEY">
|
||||
<span class="target" id="group__dcsm__api_1ga6294245c881569b5ce1355cb4d193bcc"></span><code class="sig-name descname">FLSEM_KEY</code> 0xA5U<a class="headerlink" href="#c.FLSEM_KEY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Zone semaphore key. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_ALLZERO">
|
||||
<span class="target" id="group__dcsm__api_1ga92fdf56ee57660e54b3fa06d72f1f09e"></span><code class="sig-name descname">DCSM_ALLZERO</code> 0x08U<a class="headerlink" href="#c.DCSM_ALLZERO" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CSM Passwords all zeros. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_ALLONE">
|
||||
<span class="target" id="group__dcsm__api_1gad926e6718a322661690023090ba277e1"></span><code class="sig-name descname">DCSM_ALLONE</code> 0x10U<a class="headerlink" href="#c.DCSM_ALLONE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CSM Passwords all ones. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_UNSECURE">
|
||||
<span class="target" id="group__dcsm__api_1gadfc7c7abf773970d3a7a908b6d489535"></span><code class="sig-name descname">DCSM_UNSECURE</code> 0x20U<a class="headerlink" href="#c.DCSM_UNSECURE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Zone is secure/unsecure. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.DCSM_ARMED">
|
||||
<span class="target" id="group__dcsm__api_1ga2fe98384a3374e50de809feeb95fb1fe"></span><code class="sig-name descname">DCSM_ARMED</code> 0x40U<a class="headerlink" href="#c.DCSM_ARMED" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CSM is armed. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Enums</p>
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv417DCSM_MemoryStatus">
|
||||
<span id="_CPPv317DCSM_MemoryStatus"></span><span id="_CPPv217DCSM_MemoryStatus"></span><span class="target" id="group__dcsm__api_1ga69a15eff42fedeb917311db83ff7ea9f"></span><em class="property">enum </em><code class="sig-name descname">DCSM_MemoryStatus</code><a class="headerlink" href="#_CPPv417DCSM_MemoryStatus" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values to distinguish the status of RAM or FLASH sectors. These values describe which zone the memory location belongs too. These values can be returned from <a class="reference internal" href="#group__dcsm__api_1gae302e1e8d8ada68ca9b9dd50e43e4f6f"><span class="std std-ref">DCSM_getRAMZone()</span></a>, <a class="reference internal" href="#group__dcsm__api_1gaf357acb23d8b96308120088b860702d0"><span class="std std-ref">DCSM_getFlashSectorZone()</span></a>. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N17DCSM_MemoryStatus24DCSM_MEMORY_INACCESSIBLEE">
|
||||
<span id="_CPPv3N17DCSM_MemoryStatus24DCSM_MEMORY_INACCESSIBLEE"></span><span id="_CPPv2N17DCSM_MemoryStatus24DCSM_MEMORY_INACCESSIBLEE"></span><span class="target" id="group__dcsm__api_1gga69a15eff42fedeb917311db83ff7ea9fadbc0ace9a8305f6d6ec92a7f3c9db7f4"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_MEMORY_INACCESSIBLE</code><a class="headerlink" href="#_CPPv4N17DCSM_MemoryStatus24DCSM_MEMORY_INACCESSIBLEE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Inaccessible. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N17DCSM_MemoryStatus17DCSM_MEMORY_ZONE1E">
|
||||
<span id="_CPPv3N17DCSM_MemoryStatus17DCSM_MEMORY_ZONE1E"></span><span id="_CPPv2N17DCSM_MemoryStatus17DCSM_MEMORY_ZONE1E"></span><span class="target" id="group__dcsm__api_1gga69a15eff42fedeb917311db83ff7ea9fa6cfca1b8b399755198c81672f8278b10"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_MEMORY_ZONE1</code><a class="headerlink" href="#_CPPv4N17DCSM_MemoryStatus17DCSM_MEMORY_ZONE1E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Zone 1. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N17DCSM_MemoryStatus17DCSM_MEMORY_ZONE2E">
|
||||
<span id="_CPPv3N17DCSM_MemoryStatus17DCSM_MEMORY_ZONE2E"></span><span id="_CPPv2N17DCSM_MemoryStatus17DCSM_MEMORY_ZONE2E"></span><span class="target" id="group__dcsm__api_1gga69a15eff42fedeb917311db83ff7ea9fa589701f5880ee42a51dc48e8ef5e9f4c"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_MEMORY_ZONE2</code><a class="headerlink" href="#_CPPv4N17DCSM_MemoryStatus17DCSM_MEMORY_ZONE2E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Zone 2. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N17DCSM_MemoryStatus23DCSM_MEMORY_FULL_ACCESSE">
|
||||
<span id="_CPPv3N17DCSM_MemoryStatus23DCSM_MEMORY_FULL_ACCESSE"></span><span id="_CPPv2N17DCSM_MemoryStatus23DCSM_MEMORY_FULL_ACCESSE"></span><span class="target" id="group__dcsm__api_1gga69a15eff42fedeb917311db83ff7ea9fa2e5c50b3d8fd42f91969b9d9034fe522"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_MEMORY_FULL_ACCESS</code><a class="headerlink" href="#_CPPv4N17DCSM_MemoryStatus23DCSM_MEMORY_FULL_ACCESSE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Full access. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv418DCSM_SemaphoreZone">
|
||||
<span id="_CPPv318DCSM_SemaphoreZone"></span><span id="_CPPv218DCSM_SemaphoreZone"></span><span class="target" id="group__dcsm__api_1gae9689cbafcb2d7c66d866b9658abc54f"></span><em class="property">enum </em><code class="sig-name descname">DCSM_SemaphoreZone</code><a class="headerlink" href="#_CPPv418DCSM_SemaphoreZone" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values to pass to <a class="reference internal" href="#group__dcsm__api_1gaaa9949a3c204f3a1036f2fe6725b4ffe"><span class="std std-ref">DCSM_claimZoneSemaphore()</span></a>. These values are used to describe the zone that can write to Flash Wrapper registers. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18DCSM_SemaphoreZone16DCSM_FLSEM_ZONE1E">
|
||||
<span id="_CPPv3N18DCSM_SemaphoreZone16DCSM_FLSEM_ZONE1E"></span><span id="_CPPv2N18DCSM_SemaphoreZone16DCSM_FLSEM_ZONE1E"></span><span class="target" id="group__dcsm__api_1ggae9689cbafcb2d7c66d866b9658abc54fa2ee70f90513222423fe24dca9ffa6abe"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_FLSEM_ZONE1</code> = 0x01U<a class="headerlink" href="#_CPPv4N18DCSM_SemaphoreZone16DCSM_FLSEM_ZONE1E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Flash semaphore Zone 1. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18DCSM_SemaphoreZone16DCSM_FLSEM_ZONE2E">
|
||||
<span id="_CPPv3N18DCSM_SemaphoreZone16DCSM_FLSEM_ZONE2E"></span><span id="_CPPv2N18DCSM_SemaphoreZone16DCSM_FLSEM_ZONE2E"></span><span class="target" id="group__dcsm__api_1ggae9689cbafcb2d7c66d866b9658abc54fa65ecee832ca184038b046ffb5b87aa30"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_FLSEM_ZONE2</code> = 0x02U<a class="headerlink" href="#_CPPv4N18DCSM_SemaphoreZone16DCSM_FLSEM_ZONE2E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Flash semaphore Zone 2. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv419DCSM_SecurityStatus">
|
||||
<span id="_CPPv319DCSM_SecurityStatus"></span><span id="_CPPv219DCSM_SecurityStatus"></span><span class="target" id="group__dcsm__api_1ga083d5a130186c33e20216df1e9d05151"></span><em class="property">enum </em><code class="sig-name descname">DCSM_SecurityStatus</code><a class="headerlink" href="#_CPPv419DCSM_SecurityStatus" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values to distinguish the security status of the zones. These values can be returned from <a class="reference internal" href="#group__dcsm__api_1ga9549036f1839776c81cd78ba1a25a75e"><span class="std std-ref">DCSM_getZone1CSMSecurityStatus()</span></a>, <a class="reference internal" href="#group__dcsm__api_1gaa71aba583947d603f650e7b0995ff347"><span class="std std-ref">DCSM_getZone2CSMSecurityStatus()</span></a>. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N19DCSM_SecurityStatus18DCSM_STATUS_SECUREE">
|
||||
<span id="_CPPv3N19DCSM_SecurityStatus18DCSM_STATUS_SECUREE"></span><span id="_CPPv2N19DCSM_SecurityStatus18DCSM_STATUS_SECUREE"></span><span class="target" id="group__dcsm__api_1gga083d5a130186c33e20216df1e9d05151a9163577eb7d10b9fe5e8ada3bf0f4748"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_STATUS_SECURE</code><a class="headerlink" href="#_CPPv4N19DCSM_SecurityStatus18DCSM_STATUS_SECUREE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Secure. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N19DCSM_SecurityStatus20DCSM_STATUS_UNSECUREE">
|
||||
<span id="_CPPv3N19DCSM_SecurityStatus20DCSM_STATUS_UNSECUREE"></span><span id="_CPPv2N19DCSM_SecurityStatus20DCSM_STATUS_UNSECUREE"></span><span class="target" id="group__dcsm__api_1gga083d5a130186c33e20216df1e9d05151a6ffa6884c2380eea40a756e0def8c568"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_STATUS_UNSECURE</code><a class="headerlink" href="#_CPPv4N19DCSM_SecurityStatus20DCSM_STATUS_UNSECUREE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Unsecure. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N19DCSM_SecurityStatus18DCSM_STATUS_LOCKEDE">
|
||||
<span id="_CPPv3N19DCSM_SecurityStatus18DCSM_STATUS_LOCKEDE"></span><span id="_CPPv2N19DCSM_SecurityStatus18DCSM_STATUS_LOCKEDE"></span><span class="target" id="group__dcsm__api_1gga083d5a130186c33e20216df1e9d05151a41ce754d0bbf18d0ae71bf940859a82d"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_STATUS_LOCKED</code><a class="headerlink" href="#_CPPv4N19DCSM_SecurityStatus18DCSM_STATUS_LOCKEDE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Locked. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv418DCSM_EXEOnlyStatus">
|
||||
<span id="_CPPv318DCSM_EXEOnlyStatus"></span><span id="_CPPv218DCSM_EXEOnlyStatus"></span><span class="target" id="group__dcsm__api_1ga9783b5852cc118416fb51a736be8bfe4"></span><em class="property">enum </em><code class="sig-name descname">DCSM_EXEOnlyStatus</code><a class="headerlink" href="#_CPPv418DCSM_EXEOnlyStatus" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values to decribe the EXEONLY Status. These values are returned from to <a class="reference internal" href="#group__dcsm__api_1ga10443dbe06ed50800f11a2116d3b9db7"><span class="std std-ref">DCSM_getZone1RAMEXEStatus()</span></a>, <a class="reference internal" href="#group__dcsm__api_1gafa55eb1347da69c4e87e6d9a48b176d7"><span class="std std-ref">DCSM_getZone2RAMEXEStatus()</span></a>, <a class="reference internal" href="#group__dcsm__api_1ga0d62b5d37df7c88e687a1222c85e1705"><span class="std std-ref">DCSM_getZone1FlashEXEStatus()</span></a>, <a class="reference internal" href="#group__dcsm__api_1ga60bfa11ac91a3dd2646f785dac734376"><span class="std std-ref">DCSM_getZone2FlashEXEStatus()</span></a>. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18DCSM_EXEOnlyStatus14DCSM_PROTECTEDE">
|
||||
<span id="_CPPv3N18DCSM_EXEOnlyStatus14DCSM_PROTECTEDE"></span><span id="_CPPv2N18DCSM_EXEOnlyStatus14DCSM_PROTECTEDE"></span><span class="target" id="group__dcsm__api_1gga9783b5852cc118416fb51a736be8bfe4a6acb2468e18b3e33eda25c3c705dfcad"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_PROTECTED</code><a class="headerlink" href="#_CPPv4N18DCSM_EXEOnlyStatus14DCSM_PROTECTEDE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Protected. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18DCSM_EXEOnlyStatus16DCSM_UNPROTECTEDE">
|
||||
<span id="_CPPv3N18DCSM_EXEOnlyStatus16DCSM_UNPROTECTEDE"></span><span id="_CPPv2N18DCSM_EXEOnlyStatus16DCSM_UNPROTECTEDE"></span><span class="target" id="group__dcsm__api_1gga9783b5852cc118416fb51a736be8bfe4a0512e8a7a093f60d810653001e90cca7"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_UNPROTECTED</code><a class="headerlink" href="#_CPPv4N18DCSM_EXEOnlyStatus16DCSM_UNPROTECTEDE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Unprotected. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N18DCSM_EXEOnlyStatus19DCSM_INCORRECT_ZONEE">
|
||||
<span id="_CPPv3N18DCSM_EXEOnlyStatus19DCSM_INCORRECT_ZONEE"></span><span id="_CPPv2N18DCSM_EXEOnlyStatus19DCSM_INCORRECT_ZONEE"></span><span class="target" id="group__dcsm__api_1gga9783b5852cc118416fb51a736be8bfe4a27f0da0fde4f70beb21667d157dfada2"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_INCORRECT_ZONE</code><a class="headerlink" href="#_CPPv4N18DCSM_EXEOnlyStatus19DCSM_INCORRECT_ZONEE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Incorrect Zone. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv414DCSM_RAMModule">
|
||||
<span id="_CPPv314DCSM_RAMModule"></span><span id="_CPPv214DCSM_RAMModule"></span><span class="target" id="group__dcsm__api_1gaa68df673b0b49616675461de591cc00b"></span><em class="property">enum </em><code class="sig-name descname">DCSM_RAMModule</code><a class="headerlink" href="#_CPPv414DCSM_RAMModule" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values to distinguish RAM Module. These values can be passed to <a class="reference internal" href="#group__dcsm__api_1ga10443dbe06ed50800f11a2116d3b9db7"><span class="std std-ref">DCSM_getZone1RAMEXEStatus()</span></a> <a class="reference internal" href="#group__dcsm__api_1gafa55eb1347da69c4e87e6d9a48b176d7"><span class="std std-ref">DCSM_getZone2RAMEXEStatus()</span></a>, <a class="reference internal" href="#group__dcsm__api_1gae302e1e8d8ada68ca9b9dd50e43e4f6f"><span class="std std-ref">DCSM_getRAMZone()</span></a>. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule11DCSM_RAMLS0E">
|
||||
<span id="_CPPv3N14DCSM_RAMModule11DCSM_RAMLS0E"></span><span id="_CPPv2N14DCSM_RAMModule11DCSM_RAMLS0E"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00ba98699d7af9c3c7961fcc3fcd0fbe3b9c"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_RAMLS0</code><a class="headerlink" href="#_CPPv4N14DCSM_RAMModule11DCSM_RAMLS0E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>RAMLS0. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule11DCSM_RAMLS1E">
|
||||
<span id="_CPPv3N14DCSM_RAMModule11DCSM_RAMLS1E"></span><span id="_CPPv2N14DCSM_RAMModule11DCSM_RAMLS1E"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00ba515fb4a26c4f7bd63cb3563252e439b5"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_RAMLS1</code><a class="headerlink" href="#_CPPv4N14DCSM_RAMModule11DCSM_RAMLS1E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>RAMLS1. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule11DCSM_RAMLS2E">
|
||||
<span id="_CPPv3N14DCSM_RAMModule11DCSM_RAMLS2E"></span><span id="_CPPv2N14DCSM_RAMModule11DCSM_RAMLS2E"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00ba43a0dcd9154fdcfcb0d0e582369d6ab6"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_RAMLS2</code><a class="headerlink" href="#_CPPv4N14DCSM_RAMModule11DCSM_RAMLS2E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>RAMLS2. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule11DCSM_RAMLS3E">
|
||||
<span id="_CPPv3N14DCSM_RAMModule11DCSM_RAMLS3E"></span><span id="_CPPv2N14DCSM_RAMModule11DCSM_RAMLS3E"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00ba854196a1708a5bb998681f7ee95a1faa"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_RAMLS3</code><a class="headerlink" href="#_CPPv4N14DCSM_RAMModule11DCSM_RAMLS3E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>RAMLS3. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule11DCSM_RAMLS4E">
|
||||
<span id="_CPPv3N14DCSM_RAMModule11DCSM_RAMLS4E"></span><span id="_CPPv2N14DCSM_RAMModule11DCSM_RAMLS4E"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00baeeec38fddb04f1a9531bda54c525909c"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_RAMLS4</code><a class="headerlink" href="#_CPPv4N14DCSM_RAMModule11DCSM_RAMLS4E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>RAMLS4. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule11DCSM_RAMLS5E">
|
||||
<span id="_CPPv3N14DCSM_RAMModule11DCSM_RAMLS5E"></span><span id="_CPPv2N14DCSM_RAMModule11DCSM_RAMLS5E"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00baec791067446d2d65810898bc9154e6a2"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_RAMLS5</code><a class="headerlink" href="#_CPPv4N14DCSM_RAMModule11DCSM_RAMLS5E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>RAMLS5. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule10DCSM_RAMD0E">
|
||||
<span id="_CPPv3N14DCSM_RAMModule10DCSM_RAMD0E"></span><span id="_CPPv2N14DCSM_RAMModule10DCSM_RAMD0E"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00ba0ee66488c3511cdcd1c0897c2975b253"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_RAMD0</code><a class="headerlink" href="#_CPPv4N14DCSM_RAMModule10DCSM_RAMD0E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>RAMD0. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule10DCSM_RAMD1E">
|
||||
<span id="_CPPv3N14DCSM_RAMModule10DCSM_RAMD1E"></span><span id="_CPPv2N14DCSM_RAMModule10DCSM_RAMD1E"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00ba44fad9daa156558a0761b677328817a6"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_RAMD1</code><a class="headerlink" href="#_CPPv4N14DCSM_RAMModule10DCSM_RAMD1E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>RAMD1. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N14DCSM_RAMModule8DCSM_CLAE">
|
||||
<span id="_CPPv3N14DCSM_RAMModule8DCSM_CLAE"></span><span id="_CPPv2N14DCSM_RAMModule8DCSM_CLAE"></span><span class="target" id="group__dcsm__api_1ggaa68df673b0b49616675461de591cc00ba920347fb2d0c1260ac9dee03cc51d57d"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_CLA</code> = 14U<a class="headerlink" href="#_CPPv4N14DCSM_RAMModule8DCSM_CLAE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Offset of CLA field in in RAMSTAT divided by two. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv411DCSM_Sector">
|
||||
<span id="_CPPv311DCSM_Sector"></span><span id="_CPPv211DCSM_Sector"></span><span class="target" id="group__dcsm__api_1gacbb37e96f23403edc203ceb97460c05f"></span><em class="property">enum </em><code class="sig-name descname">DCSM_Sector</code><a class="headerlink" href="#_CPPv411DCSM_Sector" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values to distinguish Flash Sector. These values can be passed to <a class="reference internal" href="#group__dcsm__api_1ga0d62b5d37df7c88e687a1222c85e1705"><span class="std std-ref">DCSM_getZone1FlashEXEStatus()</span></a> <a class="reference internal" href="#group__dcsm__api_1ga60bfa11ac91a3dd2646f785dac734376"><span class="std std-ref">DCSM_getZone2FlashEXEStatus()</span></a>, <a class="reference internal" href="#group__dcsm__api_1gaf357acb23d8b96308120088b860702d0"><span class="std std-ref">DCSM_getFlashSectorZone()</span></a>. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_AE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_AE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_AE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa257d3e4ca94e3f36f63c25e6e6295677"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_A</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_AE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector A. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_BE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_BE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_BE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa1023b32c306258d5e9f7f109c5cfa254"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_B</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_BE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector B. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_CE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_CE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_CE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa5b158bdf5ba1f15321ddb2d4cb2d5aab"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_C</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_CE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector C. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_DE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_DE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_DE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa3121711c27d64b8a03cae22be308b2ee"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_D</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_DE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector D. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_EE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_EE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_EE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa1df8b8db7dd105c8bc20d4ab019f8239"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_E</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_EE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector E. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_FE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_FE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_FE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fafba1b3bb869e94fe01973c60979d2f26"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_F</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_FE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector F. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_GE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_GE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_GE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa53cd80e514de3842f09d7568f09f102f"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_G</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_GE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector G. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_HE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_HE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_HE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fabd0d2d1fcab8bf1919c96d0b522ca38a"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_H</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_HE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector H. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_IE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_IE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_IE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa9b320c4b02dd6d83631f1d71ed896bbc"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_I</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_IE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector I. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_JE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_JE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_JE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05faa3d1fac4b2c77714b28d82e3bb9a3983"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_J</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_JE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector J. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_KE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_KE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_KE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa449fed8b71a0325eb3b50e223930b647"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_K</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_KE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector K. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_LE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_LE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_LE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fabb883b23f01978c0e20c52f11ec0960a"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_L</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_LE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector L. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_ME">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_ME"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_ME"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa259ac4c358e5d96245e161d39ce86a75"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_M</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_ME" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector M. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector13DCSM_SECTOR_NE">
|
||||
<span id="_CPPv3N11DCSM_Sector13DCSM_SECTOR_NE"></span><span id="_CPPv2N11DCSM_Sector13DCSM_SECTOR_NE"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fab0687ea043832b27ff32021155a2196a"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_SECTOR_N</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector13DCSM_SECTOR_NE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sector N. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv4N11DCSM_Sector10DCSM_BANK1E">
|
||||
<span id="_CPPv3N11DCSM_Sector10DCSM_BANK1E"></span><span id="_CPPv2N11DCSM_Sector10DCSM_BANK1E"></span><span class="target" id="group__dcsm__api_1ggacbb37e96f23403edc203ceb97460c05fa570a923e9aec3792b09ac47b17ff857f"></span><em class="property">enumerator </em><code class="sig-name descname">DCSM_BANK1</code><a class="headerlink" href="#_CPPv4N11DCSM_Sector10DCSM_BANK1E" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Bank 1. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv416DCSM_secureZone1v">
|
||||
<span id="_CPPv316DCSM_secureZone1v"></span><span id="_CPPv216DCSM_secureZone1v"></span><span id="DCSM_secureZone1__void"></span><span class="target" id="group__dcsm__api_1ga8565db102b03817def7bce7cfdda2c73"></span>void <code class="sig-name descname">DCSM_secureZone1</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416DCSM_secureZone1v" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Secures zone 1 by setting the FORCESEC bit of Z1_CR register</p>
|
||||
<p>This function resets the state of the zone. If the zone is unlocked, it will lock(secure) the zone and also reset all the bits in the Control Register.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv416DCSM_secureZone2v">
|
||||
<span id="_CPPv316DCSM_secureZone2v"></span><span id="_CPPv216DCSM_secureZone2v"></span><span id="DCSM_secureZone2__void"></span><span class="target" id="group__dcsm__api_1ga08ca5a9a812a391d26fd64095fe4a60d"></span>void <code class="sig-name descname">DCSM_secureZone2</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416DCSM_secureZone2v" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Secures zone 2 by setting the FORCESEC bit of Z2_CR register</p>
|
||||
<p>This function resets the state of the zone. If the zone is unlocked, it will lock(secure) the zone and also reset all the bits in the Control Register.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv430DCSM_getZone1CSMSecurityStatusv">
|
||||
<span id="_CPPv330DCSM_getZone1CSMSecurityStatusv"></span><span id="_CPPv230DCSM_getZone1CSMSecurityStatusv"></span><span id="DCSM_getZone1CSMSecurityStatus__void"></span><span class="target" id="group__dcsm__api_1ga9549036f1839776c81cd78ba1a25a75e"></span><a class="reference internal" href="#_CPPv419DCSM_SecurityStatus" title="DCSM_SecurityStatus">DCSM_SecurityStatus</a> <code class="sig-name descname">DCSM_getZone1CSMSecurityStatus</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv430DCSM_getZone1CSMSecurityStatusv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the CSM security status of zone 1</p>
|
||||
<p>This function returns the security status of zone 1 CSM</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns security status as an enumerated type DCSM_SecurityStatus. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv430DCSM_getZone2CSMSecurityStatusv">
|
||||
<span id="_CPPv330DCSM_getZone2CSMSecurityStatusv"></span><span id="_CPPv230DCSM_getZone2CSMSecurityStatusv"></span><span id="DCSM_getZone2CSMSecurityStatus__void"></span><span class="target" id="group__dcsm__api_1gaa71aba583947d603f650e7b0995ff347"></span><a class="reference internal" href="#_CPPv419DCSM_SecurityStatus" title="DCSM_SecurityStatus">DCSM_SecurityStatus</a> <code class="sig-name descname">DCSM_getZone2CSMSecurityStatus</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv430DCSM_getZone2CSMSecurityStatusv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the CSM security status of zone 2</p>
|
||||
<p>This function returns the security status of zone 2 CSM</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns security status as an enumerated type DCSM_SecurityStatus. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv426DCSM_getZone1ControlStatusv">
|
||||
<span id="_CPPv326DCSM_getZone1ControlStatusv"></span><span id="_CPPv226DCSM_getZone1ControlStatusv"></span><span id="DCSM_getZone1ControlStatus__void"></span><span class="target" id="group__dcsm__api_1gaa5aa91b72a84d167949f6c1dd7cb8ff7"></span>uint16_t <code class="sig-name descname">DCSM_getZone1ControlStatus</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv426DCSM_getZone1ControlStatusv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the Control Status of zone 1</p>
|
||||
<p>This function returns the Control Status of zone 1 CSM</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the contents of the Control Register which can be used with provided defines. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv426DCSM_getZone2ControlStatusv">
|
||||
<span id="_CPPv326DCSM_getZone2ControlStatusv"></span><span id="_CPPv226DCSM_getZone2ControlStatusv"></span><span id="DCSM_getZone2ControlStatus__void"></span><span class="target" id="group__dcsm__api_1gae6d165737bff19f0828d39c9932e0907"></span>uint16_t <code class="sig-name descname">DCSM_getZone2ControlStatus</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv426DCSM_getZone2ControlStatusv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the Control Status of zone 2</p>
|
||||
<p>This function returns the Control Status of zone 2 CSM</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the contents of the Control Register which can be used with the provided defines. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv415DCSM_getRAMZone14DCSM_RAMModule">
|
||||
<span id="_CPPv315DCSM_getRAMZone14DCSM_RAMModule"></span><span id="_CPPv215DCSM_getRAMZone14DCSM_RAMModule"></span><span id="DCSM_getRAMZone__DCSM_RAMModule"></span><span class="target" id="group__dcsm__api_1gae302e1e8d8ada68ca9b9dd50e43e4f6f"></span><a class="reference internal" href="#_CPPv417DCSM_MemoryStatus" title="DCSM_MemoryStatus">DCSM_MemoryStatus</a> <code class="sig-name descname">DCSM_getRAMZone</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv414DCSM_RAMModule" title="DCSM_RAMModule">DCSM_RAMModule</a> <em>module</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv415DCSM_getRAMZone14DCSM_RAMModule" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the security zone a RAM section belongs to</p>
|
||||
<p><p>This function returns the security zone a RAM section belongs to.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">module</span></code>: is the RAM module value. Valid values are type DCSM_RAMModule C28x RAMs :<ul>
|
||||
<li><p><strong>DCSM_RAMLS0</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS1</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS2</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS3</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS4</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS5</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMD0</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMD1</strong> </p></li>
|
||||
</ul>
|
||||
</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns DCSM_MEMORY_INACCESSIBLE if the section is inaccessible, DCSM_MEMORY_ZONE1 if the section belongs to zone 1, DCSM_MEMORY_ZONE2 if the section belongs to zone 2 and DCSM_MEMORY_FULL_ACCESS if the section doesn’t belong to any zone (or if the section is unsecure). </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423DCSM_getFlashSectorZone11DCSM_Sector">
|
||||
<span id="_CPPv323DCSM_getFlashSectorZone11DCSM_Sector"></span><span id="_CPPv223DCSM_getFlashSectorZone11DCSM_Sector"></span><span id="DCSM_getFlashSectorZone__DCSM_Sector"></span><span class="target" id="group__dcsm__api_1gaf357acb23d8b96308120088b860702d0"></span><a class="reference internal" href="#_CPPv417DCSM_MemoryStatus" title="DCSM_MemoryStatus">DCSM_MemoryStatus</a> <code class="sig-name descname">DCSM_getFlashSectorZone</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv411DCSM_Sector" title="DCSM_Sector">DCSM_Sector</a> <em>sector</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423DCSM_getFlashSectorZone11DCSM_Sector" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the security zone a flash sector belongs to</p>
|
||||
<p><p>This function returns the security zone a flash sector belongs to.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">sector</span></code>: is the flash sector value. Use DCSM_Sector type.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns DCSM_MEMORY_INACCESSIBLE if the section is inaccessible , DCSM_MEMORY_ZONE1 if the section belongs to zone 1, DCSM_MEMORY_ZONE2 if the section belongs to zone 2 and DCSM_MEMORY_FULL_ACCESS if the section doesn’t belong to any zone (or if the section is unsecure).. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv429DCSM_getZone1LinkPointerErrorv">
|
||||
<span id="_CPPv329DCSM_getZone1LinkPointerErrorv"></span><span id="_CPPv229DCSM_getZone1LinkPointerErrorv"></span><span id="DCSM_getZone1LinkPointerError__void"></span><span class="target" id="group__dcsm__api_1ga988abf59f71ff7b22c367fc1ac80078c"></span>uint32_t <code class="sig-name descname">DCSM_getZone1LinkPointerError</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv429DCSM_getZone1LinkPointerErrorv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Read Zone 1 Link Pointer Error</p>
|
||||
<p>A non-zero value indicates an error on the bit position that is set to 1.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the value of the Zone 1 Link Pointer error. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv429DCSM_getZone2LinkPointerErrorv">
|
||||
<span id="_CPPv329DCSM_getZone2LinkPointerErrorv"></span><span id="_CPPv229DCSM_getZone2LinkPointerErrorv"></span><span id="DCSM_getZone2LinkPointerError__void"></span><span class="target" id="group__dcsm__api_1ga0b21540ec17ed55021f69232082249f2"></span>uint32_t <code class="sig-name descname">DCSM_getZone2LinkPointerError</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv429DCSM_getZone2LinkPointerErrorv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Read Zone 2 Link Pointer Error</p>
|
||||
<p>A non-zero value indicates an error on the bit position that is set to 1.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the value of the Zone 2 Link Pointer error. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419DCSM_unlockZone1CSMPCK19DCSM_CSMPasswordKey">
|
||||
<span id="_CPPv319DCSM_unlockZone1CSMPCK19DCSM_CSMPasswordKey"></span><span id="_CPPv219DCSM_unlockZone1CSMPCK19DCSM_CSMPasswordKey"></span><span id="DCSM_unlockZone1CSM__DCSM_CSMPasswordKeyCPC"></span><span class="target" id="group__dcsm__api_1gaf005f731a5d5761badfcaedde46b2d15"></span>void <code class="sig-name descname">DCSM_unlockZone1CSM</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv419DCSM_CSMPasswordKey" title="DCSM_CSMPasswordKey">DCSM_CSMPasswordKey</a> *<em class="property">const</em> <em>psCMDKey</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419DCSM_unlockZone1CSMPCK19DCSM_CSMPasswordKey" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Unlocks Zone 1 CSM.</p>
|
||||
<p><p>This function unlocks the CSM password. It first reads the four password locations in the User OTP. If any of the password values is different from 0xFFFFFFFF, it unlocks the device by writing the provided passwords into CSM Key registers</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">psCMDKey</span></code>: is a pointer to the <a class="reference internal" href="#struct_d_c_s_m___c_s_m_password_key"><span class="std std-ref">DCSM_CSMPasswordKey</span></a> struct that has the CSM password for zone 1.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None.</p>
|
||||
</dd>
|
||||
<dt><strong>Note</strong></dt><dd><p>This function should not be called in an actual application, should only be used for once to program the OTP memory. Ensure flash data cache is disabled before calling this function(Flash_disableCache). </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419DCSM_unlockZone2CSMPCK19DCSM_CSMPasswordKey">
|
||||
<span id="_CPPv319DCSM_unlockZone2CSMPCK19DCSM_CSMPasswordKey"></span><span id="_CPPv219DCSM_unlockZone2CSMPCK19DCSM_CSMPasswordKey"></span><span id="DCSM_unlockZone2CSM__DCSM_CSMPasswordKeyCPC"></span><span class="target" id="group__dcsm__api_1gae4ac162d28ac2f33b70f1a1deb4c550e"></span>void <code class="sig-name descname">DCSM_unlockZone2CSM</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv419DCSM_CSMPasswordKey" title="DCSM_CSMPasswordKey">DCSM_CSMPasswordKey</a> *<em class="property">const</em> <em>psCMDKey</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419DCSM_unlockZone2CSMPCK19DCSM_CSMPasswordKey" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Unlocks Zone 2 CSM.</p>
|
||||
<p><p>This function unlocks the CSM password. It first reads the four password locations in the User OTP. If any of the password values is different from 0xFFFFFFFF, it unlocks the device by writing the provided passwords into CSM Key registers</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">psCMDKey</span></code>: is a pointer to the CSMPSWDKEY that has the CSM password for zone 2.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None.</p>
|
||||
</dd>
|
||||
<dt><strong>Note</strong></dt><dd><p>This function should not be called in an actual application, should only be used for once to program the OTP memory. Ensure flash data cache is disabled before calling this function(Flash_disableCache). </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv427DCSM_getZone1FlashEXEStatus11DCSM_Sector">
|
||||
<span id="_CPPv327DCSM_getZone1FlashEXEStatus11DCSM_Sector"></span><span id="_CPPv227DCSM_getZone1FlashEXEStatus11DCSM_Sector"></span><span id="DCSM_getZone1FlashEXEStatus__DCSM_Sector"></span><span class="target" id="group__dcsm__api_1ga0d62b5d37df7c88e687a1222c85e1705"></span><a class="reference internal" href="#_CPPv418DCSM_EXEOnlyStatus" title="DCSM_EXEOnlyStatus">DCSM_EXEOnlyStatus</a> <code class="sig-name descname">DCSM_getZone1FlashEXEStatus</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv411DCSM_Sector" title="DCSM_Sector">DCSM_Sector</a> <em>sector</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv427DCSM_getZone1FlashEXEStatus11DCSM_Sector" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the EXE-ONLY status of zone 1 for a flash sector</p>
|
||||
<p><p>This function takes in a valid sector value and returns the status of EXE ONLY security protection for the sector.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">sector</span></code>: is the flash sector value. Use DCSM_Sector type.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns DCSM_PROTECTED if the sector is EXE-ONLY protected, DCSM_UNPROTECTED if the sector is not EXE-ONLY protected, DCSM_INCORRECT_ZONE if sector does not belong to this zone. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425DCSM_getZone1RAMEXEStatus14DCSM_RAMModule">
|
||||
<span id="_CPPv325DCSM_getZone1RAMEXEStatus14DCSM_RAMModule"></span><span id="_CPPv225DCSM_getZone1RAMEXEStatus14DCSM_RAMModule"></span><span id="DCSM_getZone1RAMEXEStatus__DCSM_RAMModule"></span><span class="target" id="group__dcsm__api_1ga10443dbe06ed50800f11a2116d3b9db7"></span><a class="reference internal" href="#_CPPv418DCSM_EXEOnlyStatus" title="DCSM_EXEOnlyStatus">DCSM_EXEOnlyStatus</a> <code class="sig-name descname">DCSM_getZone1RAMEXEStatus</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv414DCSM_RAMModule" title="DCSM_RAMModule">DCSM_RAMModule</a> <em>module</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425DCSM_getZone1RAMEXEStatus14DCSM_RAMModule" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the EXE-ONLY status of zone 1 for a RAM module</p>
|
||||
<p><p>This function takes in a valid module value and returns the status of EXE ONLY security protection for that module. DCSM_CLA is an invalid module value. There is no EXE-ONLY available for DCSM_CLA.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">module</span></code>: is the RAM module value. Valid values are type DCSM_RAMModule C28x RAMs :<ul>
|
||||
<li><p><strong>DCSM_RAMLS0</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS1</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS2</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS3</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS4</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS5</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMD0</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMD1</strong> </p></li>
|
||||
</ul>
|
||||
</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns DCSM_PROTECTED if the module is EXE-ONLY protected, DCSM_UNPROTECTED if the module is not EXE-ONLY protected, DCSM_INCORRECT_ZONE if module does not belong to this zone. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv427DCSM_getZone2FlashEXEStatus11DCSM_Sector">
|
||||
<span id="_CPPv327DCSM_getZone2FlashEXEStatus11DCSM_Sector"></span><span id="_CPPv227DCSM_getZone2FlashEXEStatus11DCSM_Sector"></span><span id="DCSM_getZone2FlashEXEStatus__DCSM_Sector"></span><span class="target" id="group__dcsm__api_1ga60bfa11ac91a3dd2646f785dac734376"></span><a class="reference internal" href="#_CPPv418DCSM_EXEOnlyStatus" title="DCSM_EXEOnlyStatus">DCSM_EXEOnlyStatus</a> <code class="sig-name descname">DCSM_getZone2FlashEXEStatus</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv411DCSM_Sector" title="DCSM_Sector">DCSM_Sector</a> <em>sector</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv427DCSM_getZone2FlashEXEStatus11DCSM_Sector" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the EXE-ONLY status of zone 2 for a flash sector</p>
|
||||
<p><p>This function takes in a valid sector value and returns the status of EXE ONLY security protection for the sector.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">sector</span></code>: is the flash sector value. Use DCSM_Sector type.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns DCSM_PROTECTED if the sector is EXE-ONLY protected, DCSM_UNPROTECTED if the sector is not EXE-ONLY protected, DCSM_INCORRECT_ZONE if sector does not belong to this zone. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425DCSM_getZone2RAMEXEStatus14DCSM_RAMModule">
|
||||
<span id="_CPPv325DCSM_getZone2RAMEXEStatus14DCSM_RAMModule"></span><span id="_CPPv225DCSM_getZone2RAMEXEStatus14DCSM_RAMModule"></span><span id="DCSM_getZone2RAMEXEStatus__DCSM_RAMModule"></span><span class="target" id="group__dcsm__api_1gafa55eb1347da69c4e87e6d9a48b176d7"></span><a class="reference internal" href="#_CPPv418DCSM_EXEOnlyStatus" title="DCSM_EXEOnlyStatus">DCSM_EXEOnlyStatus</a> <code class="sig-name descname">DCSM_getZone2RAMEXEStatus</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv414DCSM_RAMModule" title="DCSM_RAMModule">DCSM_RAMModule</a> <em>module</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425DCSM_getZone2RAMEXEStatus14DCSM_RAMModule" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the EXE-ONLY status of zone 2 for a RAM module</p>
|
||||
<p><p>This function takes in a valid module value and returns the status of EXE ONLY security protection for that module. DCSM_CLA is an invalid module value. There is no EXE-ONLY available for DCSM_CLA.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">module</span></code>: is the RAM module value. Valid values are type DCSM_RAMModule C28x RAMs :<ul>
|
||||
<li><p><strong>DCSM_RAMLS0</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS1</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS2</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS3</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS4</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMLS5</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMD0</strong> </p></li>
|
||||
<li><p><strong>DCSM_RAMD1</strong> </p></li>
|
||||
</ul>
|
||||
</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns DCSM_PROTECTED if the module is EXE-ONLY protected, DCSM_UNPROTECTED if the module is not EXE-ONLY protected, DCSM_INCORRECT_ZONE if module does not belong to this zone. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423DCSM_claimZoneSemaphore18DCSM_SemaphoreZone">
|
||||
<span id="_CPPv323DCSM_claimZoneSemaphore18DCSM_SemaphoreZone"></span><span id="_CPPv223DCSM_claimZoneSemaphore18DCSM_SemaphoreZone"></span><span id="DCSM_claimZoneSemaphore__DCSM_SemaphoreZone"></span><span class="target" id="group__dcsm__api_1gaaa9949a3c204f3a1036f2fe6725b4ffe"></span>bool <code class="sig-name descname">DCSM_claimZoneSemaphore</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv418DCSM_SemaphoreZone" title="DCSM_SemaphoreZone">DCSM_SemaphoreZone</a> <em>zone</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423DCSM_claimZoneSemaphore18DCSM_SemaphoreZone" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Claims the zone semaphore which allows access to the Flash Wrapper register for that zone.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns true for a successful semaphore capture, false if it was unable to capture the semaphore. </p>
|
||||
</dd>
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">zone</span></code>: is the zone which is trying to claim the semaphore which allows access to the Flash Wrapper registers.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425DCSM_releaseZoneSemaphorev">
|
||||
<span id="_CPPv325DCSM_releaseZoneSemaphorev"></span><span id="_CPPv225DCSM_releaseZoneSemaphorev"></span><span id="DCSM_releaseZoneSemaphore__void"></span><span class="target" id="group__dcsm__api_1gadc6ab62a2b0dac4fc184ebd60bbd4d35"></span>bool <code class="sig-name descname">DCSM_releaseZoneSemaphore</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425DCSM_releaseZoneSemaphorev" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Releases the zone semaphore.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns true if it was successful in releasing the zone semaphore and false if it was unsuccessful in releasing the zone semaphore.</p>
|
||||
</dd>
|
||||
<dt><strong>Note</strong></dt><dd><p>If the calling function is not in the right zone to be able to access this register, it will return a false. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<dl class="cpp struct">
|
||||
<dt id="_CPPv419DCSM_CSMPasswordKey">
|
||||
<span id="_CPPv319DCSM_CSMPasswordKey"></span><span id="_CPPv219DCSM_CSMPasswordKey"></span><span id="DCSM_CSMPasswordKey"></span><span class="target" id="struct_d_c_s_m___c_s_m_password_key"></span><em class="property">struct </em><code class="sig-name descname">DCSM_CSMPasswordKey</code><a class="headerlink" href="#_CPPv419DCSM_CSMPasswordKey" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><em>#include <dcsm.h></em><p>Data structures to hold password keys. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<p>The code for this module is contained in driverlib/dcsm.c, with driverlib/dcsm.h containing the API declarations for use by applications.</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="dac.html" class="btn btn-neutral float-left" title="DAC Module" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="dma.html" class="btn btn-neutral float-right" title="DMA Module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,312 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Modules — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="../index.html"/>
|
||||
<link rel="next" title="ADC Module" href="adc.html"/>
|
||||
<link rel="prev" title="Driver Library Usage" href="../usage.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Modules</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="asysctl.html">ASysCtl Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="can.html">CAN Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cputimer.html">CPU Timer Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dac.html">DAC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dcsm.html">DCSM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="interrupt.html">Interrupt Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usb.html">USB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="version.html">Version</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Modules</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="modules">
|
||||
<span id="id1"></span><h1>Modules<a class="headerlink" href="#modules" title="Permalink to this headline">¶</a></h1>
|
||||
<p>Here is a list of all modules:</p>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="asysctl.html">ASysCtl Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="can.html">CAN Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="cputimer.html">CPU Timer Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="dac.html">DAC Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="dcsm.html">DCSM Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="interrupt.html">Interrupt Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="usb.html">USB Module</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="version.html">Version</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="../usage.html" class="btn btn-neutral float-left" title="Driver Library Usage" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="adc.html" class="btn btn-neutral float-right" title="ADC Module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,752 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Interrupt Module — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="../index.html"/>
|
||||
<link rel="up" title="Modules" href="index.html"/>
|
||||
<link rel="next" title="MCBSP Module" href="mcbsp.html"/>
|
||||
<link rel="prev" title="I2C Module" href="i2c.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Modules</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="asysctl.html">ASysCtl Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="can.html">CAN Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cputimer.html">CPU Timer Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dac.html">DAC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dcsm.html">DCSM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Interrupt Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usb.html">USB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="version.html">Version</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Modules</a> »</li>
|
||||
<li>Interrupt Module</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="interrupt-module">
|
||||
<span id="interrupt"></span><h1>Interrupt Module<a class="headerlink" href="#interrupt-module" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The Interrupt API provides a set of functions for dealing with the Peripheral
|
||||
Interrupt Expansion (PIE) Controller as well as CPU-level interrupt
|
||||
configuration. Functions are provided to initialize interrupt-related
|
||||
registers, enable and disable interrupts, and register interrupt handlers.</p>
|
||||
<p>Interrupt API functions rely on an interrupt number defined to specify which
|
||||
interrupt is being configured. These interrupt numbers are found in
|
||||
inc/hw_ints.h and are in the format INT_X. For example,
|
||||
INT_EPWM2_TZ would be used to specify the trip zone interrupt for EPWM2
|
||||
wherever a function has an e interruptNumber parameter.</p>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__interrupt__api"></span><em>group</em> <code class="sig-name descname">interrupt_api</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT1">
|
||||
<span class="target" id="group__interrupt__api_1ga2f5d7e0f3bbae25c205dddb635b7229f"></span><code class="sig-name descname">INTERRUPT_CPU_INT1</code> 0x1U<a class="headerlink" href="#c.INTERRUPT_CPU_INT1" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 1. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT2">
|
||||
<span class="target" id="group__interrupt__api_1ga7c11517c14c60d08b5491df973b192a2"></span><code class="sig-name descname">INTERRUPT_CPU_INT2</code> 0x2U<a class="headerlink" href="#c.INTERRUPT_CPU_INT2" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 2. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT3">
|
||||
<span class="target" id="group__interrupt__api_1ga1f9dbd6822b5d5858f78e4b17a25be13"></span><code class="sig-name descname">INTERRUPT_CPU_INT3</code> 0x4U<a class="headerlink" href="#c.INTERRUPT_CPU_INT3" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 3. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT4">
|
||||
<span class="target" id="group__interrupt__api_1ga596dcdbb3f5fd4c23a2d71808ff890df"></span><code class="sig-name descname">INTERRUPT_CPU_INT4</code> 0x8U<a class="headerlink" href="#c.INTERRUPT_CPU_INT4" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 4. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT5">
|
||||
<span class="target" id="group__interrupt__api_1gab681b3536b981a71e44b327a82936e67"></span><code class="sig-name descname">INTERRUPT_CPU_INT5</code> 0x10U<a class="headerlink" href="#c.INTERRUPT_CPU_INT5" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 5. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT6">
|
||||
<span class="target" id="group__interrupt__api_1ga431eac16737c6690150572ece3140f2a"></span><code class="sig-name descname">INTERRUPT_CPU_INT6</code> 0x20U<a class="headerlink" href="#c.INTERRUPT_CPU_INT6" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 6. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT7">
|
||||
<span class="target" id="group__interrupt__api_1ga95e2d15b35f128f68c3aa5cafdaba79a"></span><code class="sig-name descname">INTERRUPT_CPU_INT7</code> 0x40U<a class="headerlink" href="#c.INTERRUPT_CPU_INT7" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 7. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT8">
|
||||
<span class="target" id="group__interrupt__api_1ga9eba8b624382b0fc68c851ecec63a9e7"></span><code class="sig-name descname">INTERRUPT_CPU_INT8</code> 0x80U<a class="headerlink" href="#c.INTERRUPT_CPU_INT8" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 8. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT9">
|
||||
<span class="target" id="group__interrupt__api_1ga2736f869049254b837d191297c5657cd"></span><code class="sig-name descname">INTERRUPT_CPU_INT9</code> 0x100U<a class="headerlink" href="#c.INTERRUPT_CPU_INT9" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 9. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT10">
|
||||
<span class="target" id="group__interrupt__api_1gae8dd4258645a3bac777d22ab995bbb37"></span><code class="sig-name descname">INTERRUPT_CPU_INT10</code> 0x200U<a class="headerlink" href="#c.INTERRUPT_CPU_INT10" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 10. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT11">
|
||||
<span class="target" id="group__interrupt__api_1ga9e8ace05d287c51b915e79a5f81ecf02"></span><code class="sig-name descname">INTERRUPT_CPU_INT11</code> 0x400U<a class="headerlink" href="#c.INTERRUPT_CPU_INT11" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 11. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT12">
|
||||
<span class="target" id="group__interrupt__api_1ga143945e992aee6fc6cc0ef9b22dc2e97"></span><code class="sig-name descname">INTERRUPT_CPU_INT12</code> 0x800U<a class="headerlink" href="#c.INTERRUPT_CPU_INT12" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 12. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT13">
|
||||
<span class="target" id="group__interrupt__api_1gad4a268d4b3b7cd4a90aa508b9be04fe1"></span><code class="sig-name descname">INTERRUPT_CPU_INT13</code> 0x1000U<a class="headerlink" href="#c.INTERRUPT_CPU_INT13" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 13. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_INT14">
|
||||
<span class="target" id="group__interrupt__api_1ga1aa0d093b717bcd83f9f0724dbcdaefa"></span><code class="sig-name descname">INTERRUPT_CPU_INT14</code> 0x2000U<a class="headerlink" href="#c.INTERRUPT_CPU_INT14" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Interrupt Number 14. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_DLOGINT">
|
||||
<span class="target" id="group__interrupt__api_1ga1e1af7febdf51017adaa9ccb8c485614"></span><code class="sig-name descname">INTERRUPT_CPU_DLOGINT</code> 0x4000U<a class="headerlink" href="#c.INTERRUPT_CPU_DLOGINT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU Data Log Interrupt. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_CPU_RTOSINT">
|
||||
<span class="target" id="group__interrupt__api_1ga7eafd53ada889004fd20bd1094a11327"></span><code class="sig-name descname">INTERRUPT_CPU_RTOSINT</code> 0x8000U<a class="headerlink" href="#c.INTERRUPT_CPU_RTOSINT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU RTOS Interrupt. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP1">
|
||||
<span class="target" id="group__interrupt__api_1gac5ad1b400787746162446b606d2f1408"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP1</code> 0x1U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP1" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 1. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP2">
|
||||
<span class="target" id="group__interrupt__api_1gaa0f3f1548cab907a6e07bfd3044b72e8"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP2</code> 0x2U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP2" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 2. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP3">
|
||||
<span class="target" id="group__interrupt__api_1ga25d8adda011ed4249eea06c370337632"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP3</code> 0x4U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP3" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 3. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP4">
|
||||
<span class="target" id="group__interrupt__api_1gaa79b675e01b90f52d872695fdd35226d"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP4</code> 0x8U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP4" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 4. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP5">
|
||||
<span class="target" id="group__interrupt__api_1ga398e78625fb3444a26c4de63d23190dc"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP5</code> 0x10U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP5" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 5. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP6">
|
||||
<span class="target" id="group__interrupt__api_1ga39126afd4d5187c6de1158491d68e2a6"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP6</code> 0x20U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP6" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 6. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP7">
|
||||
<span class="target" id="group__interrupt__api_1ga549723acabddaf74ddae6c6526adf0b9"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP7</code> 0x40U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP7" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 7. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP8">
|
||||
<span class="target" id="group__interrupt__api_1ga6f8c5feba0fffbbd4087cc46b4b17601"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP8</code> 0x80U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP8" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 8. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP9">
|
||||
<span class="target" id="group__interrupt__api_1ga1b4f2ff7331374ca8bf1f6e4c0d32a13"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP9</code> 0x100U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP9" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 9. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP10">
|
||||
<span class="target" id="group__interrupt__api_1gae86790a7a7c921643a62dee4da30589e"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP10</code> 0x200U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP10" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 10. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP11">
|
||||
<span class="target" id="group__interrupt__api_1ga9fd2f7406cc9768f6d1a3242d156e747"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP11</code> 0x400U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP11" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 11. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.INTERRUPT_ACK_GROUP12">
|
||||
<span class="target" id="group__interrupt__api_1gaed3265ef2901198d25f0f356688a92ba"></span><code class="sig-name descname">INTERRUPT_ACK_GROUP12</code> 0x800U<a class="headerlink" href="#c.INTERRUPT_ACK_GROUP12" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledge PIE Interrupt Group 12. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv424Interrupt_defaultHandlerv">
|
||||
<span id="_CPPv324Interrupt_defaultHandlerv"></span><span id="_CPPv224Interrupt_defaultHandlerv"></span><span id="Interrupt_defaultHandler__void"></span><span class="target" id="group__interrupt__api_1gadf3aff8684ae85c08be45499c9414dc5"></span>void <code class="sig-name descname">Interrupt_defaultHandler</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv424Interrupt_defaultHandlerv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The default interrupt handler.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv433Interrupt_illegalOperationHandlerv">
|
||||
<span id="_CPPv333Interrupt_illegalOperationHandlerv"></span><span id="_CPPv233Interrupt_illegalOperationHandlerv"></span><span id="Interrupt_illegalOperationHandler__void"></span><span class="target" id="group__interrupt__api_1ga48c5ed9e350b06e16c3186df4b0de83d"></span>void <code class="sig-name descname">Interrupt_illegalOperationHandler</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv433Interrupt_illegalOperationHandlerv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The default illegal instruction trap interrupt handler.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420Interrupt_nmiHandlerv">
|
||||
<span id="_CPPv320Interrupt_nmiHandlerv"></span><span id="_CPPv220Interrupt_nmiHandlerv"></span><span id="Interrupt_nmiHandler__void"></span><span class="target" id="group__interrupt__api_1gaadc214138b9d50e3883b8683fc3e0a11"></span>void <code class="sig-name descname">Interrupt_nmiHandler</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420Interrupt_nmiHandlerv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The default non-maskable interrupt handler.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv422Interrupt_enableGlobalv">
|
||||
<span id="_CPPv322Interrupt_enableGlobalv"></span><span id="_CPPv222Interrupt_enableGlobalv"></span><span id="Interrupt_enableGlobal__void"></span><span class="target" id="group__interrupt__api_1ga4f67f455d71a7e2adfdbc2efe1dc044e"></span>bool <code class="sig-name descname">Interrupt_enableGlobal</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422Interrupt_enableGlobalv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Allows the CPU to process interrupts.</p>
|
||||
<p>This function clears the global interrupt mask bit (INTM) in the CPU, allowing the processor to respond to interrupts.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns <strong>true</strong> if interrupts were disabled when the function was called or <strong>false</strong> if they were initially enabled. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423Interrupt_disableGlobalv">
|
||||
<span id="_CPPv323Interrupt_disableGlobalv"></span><span id="_CPPv223Interrupt_disableGlobalv"></span><span id="Interrupt_disableGlobal__void"></span><span class="target" id="group__interrupt__api_1ga92072c2302cf6440e6e24b2188ddaf4c"></span>bool <code class="sig-name descname">Interrupt_disableGlobal</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423Interrupt_disableGlobalv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Stops the CPU from processing interrupts.</p>
|
||||
<p>This function sets the global interrupt mask bit (INTM) in the CPU, preventing the processor from receiving maskable interrupts.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns <strong>true</strong> if interrupts were already disabled when the function was called or <strong>false</strong> if they were initially enabled. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418Interrupt_register8uint32_tPFvvE">
|
||||
<span id="_CPPv318Interrupt_register8uint32_tPFvvE"></span><span id="_CPPv218Interrupt_register8uint32_tPFvvE"></span><span class="target" id="group__interrupt__api_1ga041a6f6f75c6679e0656245cab334eef"></span>void <code class="sig-name descname">Interrupt_register</code><span class="sig-paren">(</span>uint32_t <em>interruptNumber</em>, void (*<em>handler</em>)<span class="sig-paren">(</span>void<span class="sig-paren">)</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418Interrupt_register8uint32_tPFvvE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Registers a function to be called when an interrupt occurs.</p>
|
||||
<p><p>This function is used to specify the handler function to be called when the given interrupt is asserted to the processor. When the interrupt occurs, if it is enabled (via </p>
|
||||
<a class="reference internal" href="#group__interrupt__api_1ga9d2e78b67270f64253ed520cc74a9064"><span class="std std-ref">Interrupt_enable()</span></a>), the handler function will be called in interrupt context. Since the handler function can preempt other code, care must be taken to protect memory or peripherals that are accessed by the handler and other non-handler code.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">interruptNumber</span></code>: specifies the interrupt in question. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">handler</span></code>: is a pointer to the function to be called.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The available <em>interruptNumber</em> values are supplied in <code class="docutils literal notranslate"><span class="pre">inc/hw_ints.h</span></code>.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>This function assumes that the PIE has been enabled. See <a class="reference internal" href="#group__interrupt__api_1ga5ed592e5db2f93ce1e3f049b92740d82"><span class="std std-ref">Interrupt_initModule()</span></a>.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420Interrupt_unregister8uint32_t">
|
||||
<span id="_CPPv320Interrupt_unregister8uint32_t"></span><span id="_CPPv220Interrupt_unregister8uint32_t"></span><span id="Interrupt_unregister__uint32_t"></span><span class="target" id="group__interrupt__api_1gac5472e8d75b447a2ceda1c560bd3cbc0"></span>void <code class="sig-name descname">Interrupt_unregister</code><span class="sig-paren">(</span>uint32_t <em>interruptNumber</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420Interrupt_unregister8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Unregisters the function to be called when an interrupt occurs.</p>
|
||||
<p><p>This function is used to indicate that a default handler </p>
|
||||
<a class="reference internal" href="#group__interrupt__api_1gadf3aff8684ae85c08be45499c9414dc5"><span class="std std-ref">Interrupt_defaultHandler()</span></a> should be called when the given interrupt is asserted to the processor. Call <a class="reference internal" href="#group__interrupt__api_1ga9a3a8f11adc85d5e3669f9332c7fd3f9"><span class="std std-ref">Interrupt_disable()</span></a> to disable the interrupt before calling this function.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">interruptNumber</span></code>: specifies the interrupt in question.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The available <em>interruptNumber</em> values are supplied in <code class="docutils literal notranslate"><span class="pre">inc/hw_ints.h</span></code>.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>See</strong></dt><dd><p><a class="reference internal" href="#group__interrupt__api_1ga041a6f6f75c6679e0656245cab334eef"><span class="std std-ref">Interrupt_register()</span></a> for important information about registering interrupt handlers.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421Interrupt_enableInCPU8uint16_t">
|
||||
<span id="_CPPv321Interrupt_enableInCPU8uint16_t"></span><span id="_CPPv221Interrupt_enableInCPU8uint16_t"></span><span id="Interrupt_enableInCPU__uint16_t"></span><span class="target" id="group__interrupt__api_1ga4a84b5e72c8f0a7be405592931ebf9f1"></span>void <code class="sig-name descname">Interrupt_enableInCPU</code><span class="sig-paren">(</span>uint16_t <em>cpuInterrupt</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421Interrupt_enableInCPU8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Enables CPU interrupt channels</p>
|
||||
<p><p>This function enables the specified interrupts in the CPU. The </p>
|
||||
<em>cpuInterrupt</em> parameter is a logical OR of the values <strong>INTERRUPT_CPU_INTx</strong> where x is the interrupt number between 1 and 14, <strong>INTERRUPT_CPU_DLOGINT</strong>, and <strong>INTERRUPT_CPU_RTOSINT</strong>.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">cpuInterrupt</span></code>: specifies the CPU interrupts to be enabled.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>Note that interrupts 1-12 correspond to the PIE groups with those same numbers.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv422Interrupt_disableInCPU8uint16_t">
|
||||
<span id="_CPPv322Interrupt_disableInCPU8uint16_t"></span><span id="_CPPv222Interrupt_disableInCPU8uint16_t"></span><span id="Interrupt_disableInCPU__uint16_t"></span><span class="target" id="group__interrupt__api_1ga4729a241eacf0af098294ee31ba50389"></span>void <code class="sig-name descname">Interrupt_disableInCPU</code><span class="sig-paren">(</span>uint16_t <em>cpuInterrupt</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422Interrupt_disableInCPU8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Disables CPU interrupt channels</p>
|
||||
<p><p>This function disables the specified interrupts in the CPU. The </p>
|
||||
<em>cpuInterrupt</em> parameter is a logical OR of the values <strong>INTERRUPT_CPU_INTx</strong> where x is the interrupt number between 1 and 14, <strong>INTERRUPT_CPU_DLOGINT</strong>, and <strong>INTERRUPT_CPU_RTOSINT</strong>.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">cpuInterrupt</span></code>: specifies the CPU interrupts to be disabled.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>Note that interrupts 1-12 correspond to the PIE groups with those same numbers.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423Interrupt_clearACKGroup8uint16_t">
|
||||
<span id="_CPPv323Interrupt_clearACKGroup8uint16_t"></span><span id="_CPPv223Interrupt_clearACKGroup8uint16_t"></span><span id="Interrupt_clearACKGroup__uint16_t"></span><span class="target" id="group__interrupt__api_1ga3820c5be880c89f133d7be99b14a4856"></span>void <code class="sig-name descname">Interrupt_clearACKGroup</code><span class="sig-paren">(</span>uint16_t <em>group</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423Interrupt_clearACKGroup8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Acknowledges PIE Interrupt Group</p>
|
||||
<p><p>The specified interrupt group is acknowledged and clears any interrupt flag within that respective group.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">group</span></code>: specifies the interrupt group to be acknowledged.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The <em>group</em> parameter must be a logical OR of the following: <strong>INTERRUPT_ACK_GROUP1</strong>, <strong>INTERRUPT_ACK_GROUP2</strong>, <strong>INTERRUPT_ACK_GROUP3</strong> <strong>INTERRUPT_ACK_GROUP4</strong>, <strong>INTERRUPT_ACK_GROUP5</strong>, <strong>INTERRUPT_ACK_GROUP6</strong> <strong>INTERRUPT_ACK_GROUP7</strong>, <strong>INTERRUPT_ACK_GROUP8</strong>, <strong>INTERRUPT_ACK_GROUP9</strong> <strong>INTERRUPT_ACK_GROUP10</strong>, <strong>INTERRUPT_ACK_GROUP11</strong>, <strong>INTERRUPT_ACK_GROUP12</strong>.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419Interrupt_enablePIEv">
|
||||
<span id="_CPPv319Interrupt_enablePIEv"></span><span id="_CPPv219Interrupt_enablePIEv"></span><span id="Interrupt_enablePIE__void"></span><span class="target" id="group__interrupt__api_1gaefe2e9af5e200370e827e6c5b2d2e163"></span>void <code class="sig-name descname">Interrupt_enablePIE</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419Interrupt_enablePIEv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Enables the PIE block.</p>
|
||||
<p>This function enables the vector fetching for the peripheral interrupts by enabling the PIE block.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420Interrupt_disablePIEv">
|
||||
<span id="_CPPv320Interrupt_disablePIEv"></span><span id="_CPPv220Interrupt_disablePIEv"></span><span id="Interrupt_disablePIE__void"></span><span class="target" id="group__interrupt__api_1ga598eb67dc3e7a4e8690631d1e4d6c05f"></span>void <code class="sig-name descname">Interrupt_disablePIE</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420Interrupt_disablePIEv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Disables the PIE block.</p>
|
||||
<p>This function disables the vector fetching for the peripheral interrupts by disabling the PIE block. PIEACK, PIEIFR, and PIEIER registers can be accessed even when the PIE block is disabled.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420Interrupt_initModulev">
|
||||
<span id="_CPPv320Interrupt_initModulev"></span><span id="_CPPv220Interrupt_initModulev"></span><span id="Interrupt_initModule__void"></span><span class="target" id="group__interrupt__api_1ga5ed592e5db2f93ce1e3f049b92740d82"></span>void <code class="sig-name descname">Interrupt_initModule</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420Interrupt_initModulev" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Initializes the PIE control registers by setting them to a known state.</p>
|
||||
<p>This function initializes the PIE control registers. After globally disabling interrupts and enabling the PIE, it clears all of the PIE interrupt enable bits and interrupt flags.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425Interrupt_initVectorTablev">
|
||||
<span id="_CPPv325Interrupt_initVectorTablev"></span><span id="_CPPv225Interrupt_initVectorTablev"></span><span id="Interrupt_initVectorTable__void"></span><span class="target" id="group__interrupt__api_1gab36687326952b2131939a7ccae276cda"></span>void <code class="sig-name descname">Interrupt_initVectorTable</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425Interrupt_initVectorTablev" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Initializes the PIE vector table by setting all vectors to a default handler function.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv416Interrupt_enable8uint32_t">
|
||||
<span id="_CPPv316Interrupt_enable8uint32_t"></span><span id="_CPPv216Interrupt_enable8uint32_t"></span><span id="Interrupt_enable__uint32_t"></span><span class="target" id="group__interrupt__api_1ga9d2e78b67270f64253ed520cc74a9064"></span>void <code class="sig-name descname">Interrupt_enable</code><span class="sig-paren">(</span>uint32_t <em>interruptNumber</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416Interrupt_enable8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Enables an interrupt.</p>
|
||||
<p><p>The specified interrupt is enabled in the interrupt controller. Other enables for the interrupt (such as at the peripheral level) are unaffected by this function.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">interruptNumber</span></code>: specifies the interrupt to be enabled.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The available <em>interruptNumber</em> values are supplied in <code class="docutils literal notranslate"><span class="pre">inc/hw_ints.h</span></code>.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv417Interrupt_disable8uint32_t">
|
||||
<span id="_CPPv317Interrupt_disable8uint32_t"></span><span id="_CPPv217Interrupt_disable8uint32_t"></span><span id="Interrupt_disable__uint32_t"></span><span class="target" id="group__interrupt__api_1ga9a3a8f11adc85d5e3669f9332c7fd3f9"></span>void <code class="sig-name descname">Interrupt_disable</code><span class="sig-paren">(</span>uint32_t <em>interruptNumber</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417Interrupt_disable8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Disables an interrupt.</p>
|
||||
<p><p>The specified interrupt is disabled in the interrupt controller. Other enables for the interrupt (such as at the peripheral level) are unaffected by this function.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">interruptNumber</span></code>: specifies the interrupt to be disabled.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The available <em>interruptNumber</em> values are supplied in <code class="docutils literal notranslate"><span class="pre">inc/hw_ints.h</span></code>.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420__disable_interruptsv">
|
||||
<span id="_CPPv320__disable_interruptsv"></span><span id="_CPPv220__disable_interruptsv"></span><span id="__disable_interrupts__void"></span><span class="target" id="group__interrupt__api_1gaf3a05ab9f4821ba02bb7c942869cedfc"></span>uint16_t <code class="sig-name descname">__disable_interrupts</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420__disable_interruptsv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419__enable_interruptsv">
|
||||
<span id="_CPPv319__enable_interruptsv"></span><span id="_CPPv219__enable_interruptsv"></span><span id="__enable_interrupts__void"></span><span class="target" id="group__interrupt__api_1gaae1cc466889260d958fa2d68d4541ce1"></span>uint16_t <code class="sig-name descname">__enable_interrupts</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419__enable_interruptsv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<p>The <a class="reference internal" href="#interrupt">Interrupt</a> API provides two functions to initialize the module,
|
||||
Interrupt_initModule() and Interrupt_initVectorTable(). The former puts the
|
||||
PIE registers and the interrupt-related registers in the CPU into a known
|
||||
state. It clears all flags, disables interrupts at all levels, and enables
|
||||
vector fetching from the PIE. The latter initializes the PIE Vector Table to a
|
||||
set of default handlers–Interrupt_nmiHandler() for non-maskable interrupts,
|
||||
Interrupt_illegalOperationHandler() for an ITRAP interrupt, and
|
||||
Interrupt_defaultHandler() for all others. These defaults are intended to
|
||||
help with debugging. They should be modified or replaced more appropriate ISRs
|
||||
by the user.</p>
|
||||
<p>Each interrupt source can be individually enabled and disabled via
|
||||
Interrupt_enable() and Interrupt_disable(). These affect the interrupt both
|
||||
on the PIE and on the CPU’s IER register. The processor interrupt can be
|
||||
enabled and disabled via Interrupt_enableMaster() and
|
||||
Interrupt_disableMaster(); this does not affect the individual interrupt
|
||||
enable states. Masking of the processor interrupt can be utilized as a simple
|
||||
critical section (only NMI will interrupt the processor while the processor
|
||||
interrupt is disabled), though this will have adverse effects on the interrupt
|
||||
response time.</p>
|
||||
<p>When an interrupt occurs, in order for further interrupts on its PIE group to
|
||||
be received, Interrupt_clearACKGroup() must be called. This is typically done
|
||||
at the end of the ISR.</p>
|
||||
<p>The code for this module is contained in driverlib/interrupt.c, with driverlib/interrupt.h containing the API declarations for use by applications.</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="i2c.html" class="btn btn-neutral float-left" title="I2C Module" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="mcbsp.html" class="btn btn-neutral float-right" title="MCBSP Module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,312 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Version — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="../index.html"/>
|
||||
<link rel="up" title="Modules" href="index.html"/>
|
||||
<link rel="next" title="XBAR Module" href="xbar.html"/>
|
||||
<link rel="prev" title="USB Module" href="usb.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Modules</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="adc.html">ADC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="asysctl.html">ASysCtl Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="can.html">CAN Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cla.html">CLA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="clb.html">CLB Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cmpss.html">CMPSS Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="cputimer.html">CPU Timer Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dac.html">DAC Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dcsm.html">DCSM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dma.html">DMA Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="ecap.html">ECAP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="emif.html">EMIF Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="epwm.html">EPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="hrpwm.html">HRPWM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="eqep.html">EQEP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="flash.html">FLASH Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="gpio.html">GPIO Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="i2c.html">I2C Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="interrupt.html">Interrupt Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="mcbsp.html">MCBSP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="memcfg.html">MEMCFG Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sci.html">SCI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdfm.html">SDFM Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="spi.html">SPI Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sysctl.html">SYSCTL Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="upp.html">UPP Module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="usb.html">USB Module</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Version</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="xbar.html">XBAR Module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Modules</a> »</li>
|
||||
<li>Version</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="version">
|
||||
<span id="id1"></span><h1>Version<a class="headerlink" href="#version" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The version driver provides a function which can be used to check the version
|
||||
number of the driverlib.lib that is in use.</p>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__version__api"></span><em>group</em> <code class="sig-name descname">version_api</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.VERSION_NUMBER">
|
||||
<span class="target" id="group__version__api_1gaffb1ffbd24de6be88bd8ac877aae1688"></span><code class="sig-name descname">VERSION_NUMBER</code> 5040000U<a class="headerlink" href="#c.VERSION_NUMBER" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Version number to be returned by <a class="reference internal" href="#group__version__api_1ga2cb8491755bc8131175570364076743f"><span class="std std-ref">Version_getLibVersion()</span></a> </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421Version_getLibVersionv">
|
||||
<span id="_CPPv321Version_getLibVersionv"></span><span id="_CPPv221Version_getLibVersionv"></span><span id="Version_getLibVersion__void"></span><span class="target" id="group__version__api_1ga2cb8491755bc8131175570364076743f"></span>uint32_t <code class="sig-name descname">Version_getLibVersion</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421Version_getLibVersionv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the driverlib version number</p>
|
||||
<p>This function can be used to check the version number of the driverlib.lib that is in use. The version number will take the format x.xx.xx.xx, so for example, if the function returns 2100200, the driverlib version being used is 2.10.02.00.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns an integer value indicating the driverlib version. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<p>The code for this module is contained in driverlib/version.c, with driverlib/version.h containing the API declarations for use by applications.</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="usb.html" class="btn btn-neutral float-left" title="USB Module" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="xbar.html" class="btn btn-neutral float-right" title="XBAR Module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,258 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Search — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="#"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="index.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="#" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="usage.html">Driver Library Usage</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="modules/index.html">Modules</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Search</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<noscript>
|
||||
<div id="fallback" class="admonition warning">
|
||||
<p class="last">
|
||||
Please activate JavaScript to enable the search functionality.
|
||||
</p>
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
|
||||
<div id="search-results">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
LINK_SUFFIX: '.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
jQuery(function() { Search.loadIndex("searchindex.js"); });
|
||||
</script>
|
||||
|
||||
<script id="searchindexloader"></script>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
Search.setIndex({docnames:["index","intro","model","modules/adc","modules/asysctl","modules/can","modules/cla","modules/clb","modules/cmpss","modules/cputimer","modules/dac","modules/dcsm","modules/dma","modules/ecap","modules/emif","modules/epwm","modules/eqep","modules/flash","modules/gpio","modules/hrpwm","modules/i2c","modules/index","modules/interrupt","modules/mcbsp","modules/memcfg","modules/sci","modules/sdfm","modules/spi","modules/sysctl","modules/upp","modules/usb","modules/version","modules/xbar","usage"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":2,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.intersphinx":1,"sphinx.ext.todo":2,sphinx:56},filenames:["index.rst","intro.rst","model.rst","modules/adc.rst","modules/asysctl.rst","modules/can.rst","modules/cla.rst","modules/clb.rst","modules/cmpss.rst","modules/cputimer.rst","modules/dac.rst","modules/dcsm.rst","modules/dma.rst","modules/ecap.rst","modules/emif.rst","modules/epwm.rst","modules/eqep.rst","modules/flash.rst","modules/gpio.rst","modules/hrpwm.rst","modules/i2c.rst","modules/index.rst","modules/interrupt.rst","modules/mcbsp.rst","modules/memcfg.rst","modules/sci.rst","modules/sdfm.rst","modules/spi.rst","modules/sysctl.rst","modules/upp.rst","modules/usb.rst","modules/version.rst","modules/xbar.rst","usage.rst"],objects:{"":{"ADC_Channel::ADC_CH_ADCIN0":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN0E"],"ADC_Channel::ADC_CH_ADCIN0_ADCIN1":[3,1,1,"_CPPv4N11ADC_Channel20ADC_CH_ADCIN0_ADCIN1E"],"ADC_Channel::ADC_CH_ADCIN1":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN1E"],"ADC_Channel::ADC_CH_ADCIN10":[3,1,1,"_CPPv4N11ADC_Channel14ADC_CH_ADCIN10E"],"ADC_Channel::ADC_CH_ADCIN10_ADCIN11":[3,1,1,"_CPPv4N11ADC_Channel22ADC_CH_ADCIN10_ADCIN11E"],"ADC_Channel::ADC_CH_ADCIN11":[3,1,1,"_CPPv4N11ADC_Channel14ADC_CH_ADCIN11E"],"ADC_Channel::ADC_CH_ADCIN12":[3,1,1,"_CPPv4N11ADC_Channel14ADC_CH_ADCIN12E"],"ADC_Channel::ADC_CH_ADCIN12_ADCIN13":[3,1,1,"_CPPv4N11ADC_Channel22ADC_CH_ADCIN12_ADCIN13E"],"ADC_Channel::ADC_CH_ADCIN13":[3,1,1,"_CPPv4N11ADC_Channel14ADC_CH_ADCIN13E"],"ADC_Channel::ADC_CH_ADCIN14":[3,1,1,"_CPPv4N11ADC_Channel14ADC_CH_ADCIN14E"],"ADC_Channel::ADC_CH_ADCIN14_ADCIN15":[3,1,1,"_CPPv4N11ADC_Channel22ADC_CH_ADCIN14_ADCIN15E"],"ADC_Channel::ADC_CH_ADCIN15":[3,1,1,"_CPPv4N11ADC_Channel14ADC_CH_ADCIN15E"],"ADC_Channel::ADC_CH_ADCIN2":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN2E"],"ADC_Channel::ADC_CH_ADCIN2_ADCIN3":[3,1,1,"_CPPv4N11ADC_Channel20ADC_CH_ADCIN2_ADCIN3E"],"ADC_Channel::ADC_CH_ADCIN3":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN3E"],"ADC_Channel::ADC_CH_ADCIN4":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN4E"],"ADC_Channel::ADC_CH_ADCIN4_ADCIN5":[3,1,1,"_CPPv4N11ADC_Channel20ADC_CH_ADCIN4_ADCIN5E"],"ADC_Channel::ADC_CH_ADCIN5":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN5E"],"ADC_Channel::ADC_CH_ADCIN6":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN6E"],"ADC_Channel::ADC_CH_ADCIN6_ADCIN7":[3,1,1,"_CPPv4N11ADC_Channel20ADC_CH_ADCIN6_ADCIN7E"],"ADC_Channel::ADC_CH_ADCIN7":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN7E"],"ADC_Channel::ADC_CH_ADCIN8":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN8E"],"ADC_Channel::ADC_CH_ADCIN8_ADCIN9":[3,1,1,"_CPPv4N11ADC_Channel20ADC_CH_ADCIN8_ADCIN9E"],"ADC_Channel::ADC_CH_ADCIN9":[3,1,1,"_CPPv4N11ADC_Channel13ADC_CH_ADCIN9E"],"ADC_ClkPrescale::ADC_CLK_DIV_1_0":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_1_0E"],"ADC_ClkPrescale::ADC_CLK_DIV_2_0":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_2_0E"],"ADC_ClkPrescale::ADC_CLK_DIV_2_5":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_2_5E"],"ADC_ClkPrescale::ADC_CLK_DIV_3_0":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_3_0E"],"ADC_ClkPrescale::ADC_CLK_DIV_3_5":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_3_5E"],"ADC_ClkPrescale::ADC_CLK_DIV_4_0":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_4_0E"],"ADC_ClkPrescale::ADC_CLK_DIV_4_5":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_4_5E"],"ADC_ClkPrescale::ADC_CLK_DIV_5_0":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_5_0E"],"ADC_ClkPrescale::ADC_CLK_DIV_5_5":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_5_5E"],"ADC_ClkPrescale::ADC_CLK_DIV_6_0":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_6_0E"],"ADC_ClkPrescale::ADC_CLK_DIV_6_5":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_6_5E"],"ADC_ClkPrescale::ADC_CLK_DIV_7_0":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_7_0E"],"ADC_ClkPrescale::ADC_CLK_DIV_7_5":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_7_5E"],"ADC_ClkPrescale::ADC_CLK_DIV_8_0":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_8_0E"],"ADC_ClkPrescale::ADC_CLK_DIV_8_5":[3,1,1,"_CPPv4N15ADC_ClkPrescale15ADC_CLK_DIV_8_5E"],"ADC_IntNumber::ADC_INT_NUMBER1":[3,1,1,"_CPPv4N13ADC_IntNumber15ADC_INT_NUMBER1E"],"ADC_IntNumber::ADC_INT_NUMBER2":[3,1,1,"_CPPv4N13ADC_IntNumber15ADC_INT_NUMBER2E"],"ADC_IntNumber::ADC_INT_NUMBER3":[3,1,1,"_CPPv4N13Line truncated
|
||||
@@ -0,0 +1,360 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Driver Library Usage — F2837xS API Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2837xS API Guide" href="index.html"/>
|
||||
<link rel="next" title="Modules" href="modules/index.html"/>
|
||||
<link rel="prev" title="Programming Models" href="model.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2837xS API Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.04.00.00
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="model.html">Programming Models</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Driver Library Usage</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#code-composer-studio-tips">Code Composer Studio Tips</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#ccs-outline-view">CCS Outline View</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#assert-macro">ASSERT Macro</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#driver-library-optimization">Driver Library Optimization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="modules/index.html">Modules</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2837xS API Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Driver Library Usage</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="driver-library-usage">
|
||||
<span id="usage"></span><h1>Driver Library Usage<a class="headerlink" href="#driver-library-usage" title="Permalink to this headline">¶</a></h1>
|
||||
<p>To develop with the peripheral driver library more efficiently, Code Composer
|
||||
Studio (CCS) offers several project and workspace features that can help maximize
|
||||
development time and device application execution. As previously discussed in the
|
||||
programming model chapter, there are advantages and disadvantages to each programming
|
||||
model. This chapter will explain optimization tips that should be used in conjuction
|
||||
with the APIs provided by the peripheral driver library to overcome and minimize
|
||||
those disadvantages.</p>
|
||||
<div class="section" id="code-composer-studio-tips">
|
||||
<h2>Code Composer Studio Tips<a class="headerlink" href="#code-composer-studio-tips" title="Permalink to this headline">¶</a></h2>
|
||||
<p>This section will detail some Code Composer Studio (CCS) tips that can be used
|
||||
to help effectively use the driver library during development.</p>
|
||||
<p>In CCS, the Content Assist feature can be used to offer suggestions for completing
|
||||
function and parameter names. This feature may be auto-activated while typing or
|
||||
it can be activated by hitting Ctrl+Space. To get the desired preferences, adjust
|
||||
the settings under C/C++ -> Editor -> Content Assist. The figure below shows
|
||||
the Content Assist in use.</p>
|
||||
<div class="figure align-center" id="content-assist">
|
||||
<a class="reference internal image-reference" href="_images/content_assist.jpg"><img alt="_images/content_assist.jpg" src="_images/content_assist.jpg" style="width: 410.5px; height: 261.5px;" /></a>
|
||||
</div>
|
||||
<p>If you can’t tell what an appropriate parameter is just from looking at the function
|
||||
prototype and the Content Assist list, hover over the function to view its description.</p>
|
||||
</div>
|
||||
<div class="section" id="ccs-outline-view">
|
||||
<h2>CCS Outline View<a class="headerlink" href="#ccs-outline-view" title="Permalink to this headline">¶</a></h2>
|
||||
<p>With a driver header file open, it is useful to take advantage of the CCS Outline
|
||||
view to get a complete list of functions, enumerations, and macros. The Outline
|
||||
view can be opened by selecting Window -> Show view -> Outline. The figure
|
||||
below shows the outline view in use.</p>
|
||||
<div class="figure align-center" id="id1">
|
||||
<a class="reference internal image-reference" href="_images/outline_view.jpg"><img alt="_images/outline_view.jpg" src="_images/outline_view.jpg" style="width: 410.5px; height: 261.5px;" /></a>
|
||||
</div>
|
||||
<p>Similarly, you can split screen between application code and the API Reference Guide
|
||||
in the Resource Explorer.</p>
|
||||
<p>Additionally, the function prototype in a driver header file can be viewed by
|
||||
holding Ctrl and clicking on the function name in the application code.</p>
|
||||
<p>For more information on any of the tips provided, refer to the CCS Online Help
|
||||
section for details (CCS menu Help -> Help Contents and search for Content Assist).</p>
|
||||
</div>
|
||||
<div class="section" id="assert-macro">
|
||||
<h2>ASSERT Macro<a class="headerlink" href="#assert-macro" title="Permalink to this headline">¶</a></h2>
|
||||
<p>An ASSERT macro is defined in the <tt>driverlib/debug.h</tt> file as a method of
|
||||
checking the validity of function arguments and other error conditions. When
|
||||
the symbol DEBUG is defined, ASSERT(<i>expr</i>) will call a user-defined error
|
||||
function __error__() when Boolean expression <i>expr</i> is evaluated to false.
|
||||
To use the macro, an application must provide an __error__() function with the
|
||||
following prototype:</p>
|
||||
<p>void __error__(char <a href="#id2"><span class="problematic" id="id3">*</span></a>filename, uint32_t line);</p>
|
||||
<p>The <i>filename</i> and <i>line</i> parameters indicate which ASSERT resulted in
|
||||
the error condition. It is up to the application to decide what action the
|
||||
__error__() function should take to report the error.</p>
|
||||
<p>The default Debug build configuration for the driverlib.lib project and the
|
||||
Driverlib example projects have turned on ASSERT by putting DEBUG in the projects’
|
||||
predefined symbols. Removing the DEBUG symbol from the projects will cause the
|
||||
ASSERT macro to compile to nothing, meaning it will add no code size or cycles
|
||||
to the application when it is turned off.</p>
|
||||
</div>
|
||||
<div class="section" id="driver-library-optimization">
|
||||
<h2>Driver Library Optimization<a class="headerlink" href="#driver-library-optimization" title="Permalink to this headline">¶</a></h2>
|
||||
<p>When using the software driver programming model it is important to note that there
|
||||
is a price to abstraction and making functions generic. Some of the drawbacks
|
||||
include the overhead time of the function call and the calculation time required
|
||||
to access a specific register offset or bit field within the register.</p>
|
||||
<p>To help overcome these shortcomings, it is important to consider the use of
|
||||
inline functions. Using inline functions eliminates the need for function calls
|
||||
since the function is essentially treated like a macro. If constants are being
|
||||
passed into the function’s parameters, much of its code may be evaluated at compile
|
||||
time. In order to utilize inline functions you must turn on optimization for it
|
||||
to take effect. If optimization is desired without the use of inline functions,
|
||||
use the –no_inling (-pi) option. This option can be set in the CCS project properties
|
||||
under Build -> C2000 Compiler -> Advanced Options -> Language Options.</p>
|
||||
<p>There are two types of APIs available in a typical peripheral driver file namely static
|
||||
inline APIs (defined in <a href="#id4"><span class="problematic" id="id5">*</span></a>.h files) and non-static non-inline APIs (defined in <a href="#id6"><span class="problematic" id="id7">*</span></a>.c files).
|
||||
For best performance, static inline APIs available in driverlib are expected to be inlined
|
||||
in the application.</p>
|
||||
<p>Static inline APIs defined in the driverlib are compiled with the application code and
|
||||
would be part of application binary while non-static non-inline APIs would be part of
|
||||
driverlib.lib provided under C2000Ware. C2000Ware provides debug and release libraries
|
||||
for device specific peripheral drivers.</p>
|
||||
<p>The debug library is to be used while debugging the application code as it is compiled with
|
||||
DEBUG symbol to verify input parameters through ASSERT macro. The debug library is built
|
||||
with option opt = Ooff to enable efficient debugging while keeping the code size small. The
|
||||
release library is compiled with option opt = O2 and hence expand calls to APIs declared
|
||||
inline along with other optimizations resulting in improved code performance. The DEBUG
|
||||
symbol is not used while compiling the release library thereby removing ASSERT macro
|
||||
resulting in smaller code size.</p>
|
||||
<p>Most of the APIs are declared as static inline in the driverlib and therefore are compiled
|
||||
with application code in case the API is being used by the application. Hence the performance
|
||||
of static inline APIs would depend on the application project optimization level. With
|
||||
optimization level Ooff, the static inline driverlib APIs would be part of application
|
||||
code memory section and a function call would be made for each call. This option should only
|
||||
be used while debugging the project. Use optimization level equal to or above O0 in application
|
||||
project to expand the static inline driverlib APIs. Refer to respective compiler guide for more
|
||||
details on different optimization levels available to achieve required performance.</p>
|
||||
<p>In addition to inline functions, using the “generating function subsection” compiler
|
||||
option(–gen_func_subsections=on, -mo) is important. By default, the library project
|
||||
provided with the peripheral driver library project has this option turned on.
|
||||
When this option is selected, the compiler places each driver library function
|
||||
into its own subsection. This allows only the functions that are referenced in
|
||||
the application to be linked into the final executable. This can result in an
|
||||
overall code size reduction. This compiler option can be set by accessing the CCS
|
||||
project properties under Build -> C2000 Compiler -> Advanced Options ->
|
||||
Runtime Model Options.</p>
|
||||
<p>The optimization options can be found in the CCS project properties which is
|
||||
accessed by right-clicking on the project in the project explorer and selecting
|
||||
properties. In the resulting window, the optimization settings are
|
||||
found in Build -> C2000 Compiler -> Optimization.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="model.html" class="btn btn-neutral float-left" title="Programming Models" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="modules/index.html" class="btn btn-neutral float-right" title="Modules" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2023, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 22, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.04.00.00',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||