Compare commits
12 Commits
a545b4028e
...
v0.1.1
Author | SHA1 | Date | |
---|---|---|---|
2cdc2a8128 | |||
45b1680254 | |||
43c2ad8184 | |||
820293e3b3 | |||
24e1de7e02 | |||
dd51336e4b | |||
f67be65941 | |||
f40ed7ceee | |||
d402872b9e | |||
b9acaff6c2 | |||
cfde64ef8d | |||
3e0073e448 |
2
.github/bors.toml
vendored
Normal file
2
.github/bors.toml
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
status = ["ci"]
|
||||
delete_merged_branches = true
|
20
.github/workflows/changelog.yml
vendored
Normal file
20
.github/workflows/changelog.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
on:
|
||||
pull_request_target:
|
||||
|
||||
name: Changelog check
|
||||
|
||||
jobs:
|
||||
changelog:
|
||||
name: Changelog check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Changelog updated
|
||||
uses: Zomzog/changelog-checker@v1.2.0
|
||||
with:
|
||||
fileName: CHANGELOG.md
|
||||
noChangelogLabel: no changelog
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
64
.github/workflows/ci.yml
vendored
Normal file
64
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
on: [push]
|
||||
|
||||
name: build
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
target: thumbv7em-none-eabihf
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: check
|
||||
args: --target thumbv7em-none-eabihf
|
||||
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- run: rustup component add rustfmt
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
target: thumbv7em-none-eabihf
|
||||
override: true
|
||||
- run: rustup component add clippy
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: clippy
|
||||
args: --target thumbv7em-none-eabihf -- -D warnings
|
||||
|
||||
ci:
|
||||
if: ${{ success() }}
|
||||
# all new jobs must be added to this list
|
||||
needs: [check, fmt, clippy]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: CI succeeded
|
||||
run: exit 0
|
21
CHANGELOG.md
Normal file
21
CHANGELOG.md
Normal file
@ -0,0 +1,21 @@
|
||||
Change Log
|
||||
=======
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [unreleased]
|
||||
|
||||
## [v0.1.1]
|
||||
|
||||
- Clippy issue fixed by regenerating PAC with patched `svd2rust`:
|
||||
https://github.com/rust-embedded/svd2rust/pull/558
|
||||
|
||||
## [v0.1.0]
|
||||
|
||||
- Clippy currently complains about unsound code which should still work.
|
||||
Related issue: https://github.com/rust-embedded/svd2rust/issues/557
|
||||
Clippy is disabled in CI/CD for now.
|
||||
- Initial release
|
@ -1,19 +1,19 @@
|
||||
[package]
|
||||
name = "va416xx"
|
||||
version = "0.1.0"
|
||||
authors = ["Robin Mueller <robin.mueller.m@gmail.com>"]
|
||||
version = "0.1.1"
|
||||
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
||||
edition = "2021"
|
||||
description = "PAC for the Vorago VA416xx family of MCUs"
|
||||
homepage = "https://egit.irs.uni-stuttgart.de/rust/va416xx"
|
||||
repository = "https://egit.irs.uni-stuttgart.de/rust/va416xx"
|
||||
license = "MIT OR Apache-2.0"
|
||||
license = "Apache-2.0"
|
||||
keywords = ["no-std", "arm", "cortex-m", "vorago", "va416xx"]
|
||||
categories = ["embedded", "no-std", "hardware-support"]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
cortex-m = "0.7.3"
|
||||
cortex-m = "0.7"
|
||||
vcell = "0.1.3"
|
||||
|
||||
[dependencies.cortex-m-rt]
|
||||
|
201
LICENSE-APACHE
Normal file
201
LICENSE-APACHE
Normal file
@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
3
NOTICE
Normal file
3
NOTICE
Normal file
@ -0,0 +1,3 @@
|
||||
Rust Peripheral Access Crate (PAC) crate for the Vorago VA416xx family of MCUs
|
||||
|
||||
This software contains code developed at the University of Stuttgart.
|
@ -1,3 +1,7 @@
|
||||
[](https://crates.io/crates/va416xx)
|
||||
[](https://github.com/us-irs/va416xx-rs/actions/workflows/ci.yml)
|
||||
[](https://docs.rs/va416xx)
|
||||
|
||||
# PAC for the Vorago VA416xx microcontroller family
|
||||
|
||||
This repository contains the Peripheral Access Crate (PAC) for
|
||||
@ -10,8 +14,8 @@ The crate was generated using [`svd2rust`](https://github.com/rust-embedded/svd2
|
||||
To use this crate, add this to your `Cargo.toml`
|
||||
|
||||
```toml
|
||||
[dependencies.va108xx]
|
||||
version = "0.1"
|
||||
[dependencies.va416xx]
|
||||
version = "<MostRecentVersion>"
|
||||
features = ["rt"]
|
||||
```
|
||||
|
||||
|
11
automation/Dockerfile
Normal file
11
automation/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
# Run the following commands from root directory to build and run locally
|
||||
# docker build -f automation/Dockerfile -t <NAME> .
|
||||
# docker run -it <NAME>
|
||||
FROM rust:latest
|
||||
RUN apt-get update
|
||||
RUN apt-get --yes upgrade
|
||||
# tzdata is a dependency, won't install otherwise
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN rustup target add thumbv7em-none-eabihf && \
|
||||
rustup component add rustfmt clippy
|
39
automation/Jenkinsfile
vendored
Normal file
39
automation/Jenkinsfile
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Clippy') {
|
||||
agent {
|
||||
dockerfile {
|
||||
dir 'automation'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'cargo clippy'
|
||||
}
|
||||
}
|
||||
stage('Rustfmt') {
|
||||
agent {
|
||||
dockerfile {
|
||||
dir 'automation'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'cargo fmt'
|
||||
}
|
||||
}
|
||||
stage('Check') {
|
||||
agent {
|
||||
dockerfile {
|
||||
dir 'automation'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'cargo check --target thumbv7em-none-eabihf'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,3 +1,18 @@
|
||||
#[doc = "Register `FIFO_CLR` reader"]
|
||||
pub struct R(crate::R<FIFO_CLR_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<FIFO_CLR_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<FIFO_CLR_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<FIFO_CLR_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `FIFO_CLR` writer"]
|
||||
pub struct W(crate::W<FIFO_CLR_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
@ -54,11 +69,15 @@ impl W {
|
||||
self
|
||||
}
|
||||
}
|
||||
#[doc = "FIFO Clear\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fifo_clr](index.html) module"]
|
||||
#[doc = "FIFO Clear\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fifo_clr](index.html) module"]
|
||||
pub struct FIFO_CLR_SPEC;
|
||||
impl crate::RegisterSpec for FIFO_CLR_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [fifo_clr::R](R) reader structure"]
|
||||
impl crate::Readable for FIFO_CLR_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [fifo_clr::W](W) writer structure"]
|
||||
impl crate::Writable for FIFO_CLR_SPEC {
|
||||
type Writer = W;
|
||||
|
@ -13,6 +13,27 @@ impl From<crate::R<CTMR_SPEC>> for R {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `CTMR` writer"]
|
||||
pub struct W(crate::W<CTMR_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<CTMR_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl core::ops::DerefMut for W {
|
||||
#[inline(always)]
|
||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::W<CTMR_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<CTMR_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `CTMR` reader - Time Stamp Counter"]
|
||||
pub struct CTMR_R(crate::FieldReader<u16, u16>);
|
||||
impl CTMR_R {
|
||||
@ -35,7 +56,15 @@ impl R {
|
||||
CTMR_R::new((self.bits & 0xffff) as u16)
|
||||
}
|
||||
}
|
||||
#[doc = "CAN Timer Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctmr](index.html) module"]
|
||||
impl W {
|
||||
#[doc = "Writes raw bits to the register."]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
|
||||
self.0.bits(bits);
|
||||
self
|
||||
}
|
||||
}
|
||||
#[doc = "CAN Timer Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctmr](index.html) module"]
|
||||
pub struct CTMR_SPEC;
|
||||
impl crate::RegisterSpec for CTMR_SPEC {
|
||||
type Ux = u32;
|
||||
@ -44,6 +73,10 @@ impl crate::RegisterSpec for CTMR_SPEC {
|
||||
impl crate::Readable for CTMR_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [ctmr::W](W) writer structure"]
|
||||
impl crate::Writable for CTMR_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets CTMR to value 0"]
|
||||
impl crate::Resettable for CTMR_SPEC {
|
||||
#[inline(always)]
|
||||
|
@ -1,3 +1,18 @@
|
||||
#[doc = "Register `FIFO_CLR` reader"]
|
||||
pub struct R(crate::R<FIFO_CLR_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<FIFO_CLR_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<FIFO_CLR_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<FIFO_CLR_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `FIFO_CLR` writer"]
|
||||
pub struct W(crate::W<FIFO_CLR_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
@ -54,11 +69,15 @@ impl W {
|
||||
self
|
||||
}
|
||||
}
|
||||
#[doc = "FIFO Clear\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fifo_clr](index.html) module"]
|
||||
#[doc = "FIFO Clear\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fifo_clr](index.html) module"]
|
||||
pub struct FIFO_CLR_SPEC;
|
||||
impl crate::RegisterSpec for FIFO_CLR_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [fifo_clr::R](R) reader structure"]
|
||||
impl crate::Readable for FIFO_CLR_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [fifo_clr::W](W) writer structure"]
|
||||
impl crate::Writable for FIFO_CLR_SPEC {
|
||||
type Writer = W;
|
||||
|
@ -57,7 +57,7 @@ impl<'a> ALT_CTRL_BASE_PTR_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Base Pointer for Alternate DMA Control Register"]
|
||||
#[inline(always)]
|
||||
pub fn alt_ctrl_base_ptr(&self) -> ALT_CTRL_BASE_PTR_R {
|
||||
ALT_CTRL_BASE_PTR_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
ALT_CTRL_BASE_PTR_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -13,6 +13,27 @@ impl From<crate::R<ERR_SET_SPEC>> for R {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `ERR_SET` writer"]
|
||||
pub struct W(crate::W<ERR_SET_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<ERR_SET_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl core::ops::DerefMut for W {
|
||||
#[inline(always)]
|
||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::W<ERR_SET_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<ERR_SET_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `ERR_SET` reader - Set Error"]
|
||||
pub struct ERR_SET_R(crate::FieldReader<bool, bool>);
|
||||
impl ERR_SET_R {
|
||||
@ -35,7 +56,15 @@ impl R {
|
||||
ERR_SET_R::new((self.bits & 0x01) != 0)
|
||||
}
|
||||
}
|
||||
#[doc = "DMA bus error set\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [err_set](index.html) module"]
|
||||
impl W {
|
||||
#[doc = "Writes raw bits to the register."]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
|
||||
self.0.bits(bits);
|
||||
self
|
||||
}
|
||||
}
|
||||
#[doc = "DMA bus error set\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [err_set](index.html) module"]
|
||||
pub struct ERR_SET_SPEC;
|
||||
impl crate::RegisterSpec for ERR_SET_SPEC {
|
||||
type Ux = u32;
|
||||
@ -44,6 +73,10 @@ impl crate::RegisterSpec for ERR_SET_SPEC {
|
||||
impl crate::Readable for ERR_SET_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [err_set::W](W) writer structure"]
|
||||
impl crate::Writable for ERR_SET_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets ERR_SET to value 0"]
|
||||
impl crate::Resettable for ERR_SET_SPEC {
|
||||
#[inline(always)]
|
||||
|
@ -13,6 +13,27 @@ impl From<crate::R<STALL_STATUS_SPEC>> for R {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `STALL_STATUS` writer"]
|
||||
pub struct W(crate::W<STALL_STATUS_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<STALL_STATUS_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl core::ops::DerefMut for W {
|
||||
#[inline(always)]
|
||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::W<STALL_STATUS_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<STALL_STATUS_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `STALL_STATUS` reader - DMA is stalled"]
|
||||
pub struct STALL_STATUS_R(crate::FieldReader<bool, bool>);
|
||||
impl STALL_STATUS_R {
|
||||
@ -35,7 +56,15 @@ impl R {
|
||||
STALL_STATUS_R::new((self.bits & 0x01) != 0)
|
||||
}
|
||||
}
|
||||
#[doc = "DMA stall status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [stall_status](index.html) module"]
|
||||
impl W {
|
||||
#[doc = "Writes raw bits to the register."]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
|
||||
self.0.bits(bits);
|
||||
self
|
||||
}
|
||||
}
|
||||
#[doc = "DMA stall status\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [stall_status](index.html) module"]
|
||||
pub struct STALL_STATUS_SPEC;
|
||||
impl crate::RegisterSpec for STALL_STATUS_SPEC {
|
||||
type Ux = u32;
|
||||
@ -44,6 +73,10 @@ impl crate::RegisterSpec for STALL_STATUS_SPEC {
|
||||
impl crate::Readable for STALL_STATUS_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [stall_status::W](W) writer structure"]
|
||||
impl crate::Writable for STALL_STATUS_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets STALL_STATUS to value 0"]
|
||||
impl crate::Resettable for STALL_STATUS_SPEC {
|
||||
#[inline(always)]
|
||||
|
@ -57,7 +57,7 @@ impl<'a> CURTBUFAPTR_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."]
|
||||
#[inline(always)]
|
||||
pub fn curtbufaptr(&self) -> CURTBUFAPTR_R {
|
||||
CURTBUFAPTR_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
CURTBUFAPTR_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> CURRDESAPTR_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."]
|
||||
#[inline(always)]
|
||||
pub fn currdesaptr(&self) -> CURRDESAPTR_R {
|
||||
CURRDESAPTR_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
CURRDESAPTR_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> CURTBUFAPTR_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."]
|
||||
#[inline(always)]
|
||||
pub fn curtbufaptr(&self) -> CURTBUFAPTR_R {
|
||||
CURTBUFAPTR_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
CURTBUFAPTR_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> CURTDESAPTR_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."]
|
||||
#[inline(always)]
|
||||
pub fn curtdesaptr(&self) -> CURTDESAPTR_R {
|
||||
CURTDESAPTR_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
CURTDESAPTR_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> RDESLA_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Start of Receive List"]
|
||||
#[inline(always)]
|
||||
pub fn rdesla(&self) -> RDESLA_R {
|
||||
RDESLA_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
RDESLA_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> RPD_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Receive Poll Demand (Read Only and Write Trigger)"]
|
||||
#[inline(always)]
|
||||
pub fn rpd(&self) -> RPD_R {
|
||||
RPD_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
RPD_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> TDESLA_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Start of Transmit List"]
|
||||
#[inline(always)]
|
||||
pub fn tdesla(&self) -> TDESLA_R {
|
||||
TDESLA_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
TDESLA_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> TPD_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Transmit Poll Demand (Read Only and Write Trigger)"]
|
||||
#[inline(always)]
|
||||
pub fn tpd(&self) -> TPD_R {
|
||||
TPD_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
TPD_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -53,7 +53,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - MAC Address0\\[31:0\\]"]
|
||||
#[inline(always)]
|
||||
pub fn addrlo(&self) -> ADDRLO_R {
|
||||
ADDRLO_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
ADDRLO_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and bad frames received with length between 1024 and max size bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx1024maxoct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and bad frames received with length between 128 and 255 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx128to255oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and bad frames received with length between 256 and 511 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx256to511oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and bad frames received with length between 512 and 1023 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx512to1023oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and bad frames received with length 64 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx64octets_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and bad frames received with length between 65 and 127 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx65to127oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received with alignment error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxalignerror](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good broadcast frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxbcastframes_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received with CRC error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxcrcerror](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of received good control frames\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxctrlframes_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of missed received frames because of FIFO overflow\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxfifooverflow](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and bad frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxframecount_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of giant frames received with length greater than 1518 bytes and with CRC error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxjabbererror](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received with length error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxlengtherror](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good multicast frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxmcastframes_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of bytes"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of bytes received in good frames only\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxoctetcount_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of bytes"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of bytes received in good and bad frames\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxoctetcount_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received with length field not equal to the valid frame size\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxoutrangetype](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received without errors with length greater than the max size\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxoversize_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and valid Pause frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxpauseframes](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received with Receive error or Frame Extension error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxrcverror](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received with runt error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxrunterror](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of received good unicast frames\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxucastframes_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received with length less than 64 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxundersize_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good and bad VLAN frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxvlanframes_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames received with error because of watchdog timeout error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxwdogerror](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Timestamp Second"]
|
||||
#[inline(always)]
|
||||
pub fn tss(&self) -> TSS_R {
|
||||
TSS_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
TSS_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "Holds the lower 32 bits of the second field of the system time\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [systime_seconds](index.html) module"]
|
||||
|
@ -57,7 +57,7 @@ impl<'a> TSS_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Timestamp Second"]
|
||||
#[inline(always)]
|
||||
pub fn tss(&self) -> TSS_R {
|
||||
TSS_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
TSS_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> TSTR_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Target Time Seconds Registe"]
|
||||
#[inline(always)]
|
||||
pub fn tstr(&self) -> TSTR_R {
|
||||
TSTR_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
TSTR_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> TSAR_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Timestamp Addend Register"]
|
||||
#[inline(always)]
|
||||
pub fn tsar(&self) -> TSAR_R {
|
||||
TSAR_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
TSAR_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Good and bad Frames transmitted with length 1024 to max bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx1024maxoct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Good and bad Frames transmitted with length 128 to 255\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx128to255oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Good and bad Frames transmitted with length 256 to 511\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx256to511oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Good and bad Frames transmitted with length 512 to 1023\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx512to1023oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Good and bad Frames transmitted with length 64\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx64oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Good and bad Frames transmitted with length 65 to 127\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx65to127oct_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC number of good and bad broadcast frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txbcastframe_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Good Broadcast Frames Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txbcastframes_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of aborted frames because of carrier sense error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txcarriererror](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of successfully transmitted frames after a deferral\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txdeferred](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames aborted because of excessive deferral error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txexcessdef](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of aborted frames because of excessive collision errors\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txexesscol](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txframecount_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Frame Count Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txframecount_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good VLAN frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txlanframes_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of aborted frames because of late collision error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txlatecol](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC number of good and bad MULTIcast frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txmcastframe_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Good Multicast Frames Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txmcastframes_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of successfully transmitted frames after multiple collisions\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txmulticol_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of bytes"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of bytes transmitted frames only in good frames\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txoctetcount_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of bytes"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Transmit Count\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txoctetcount_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of frames transmitted without errors\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txoversize_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of good pause frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txpauseframes](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC Number of successfully transmitted frames after a single collision\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txsinglecol_g](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC number of good and bad unicast frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txucastframe_gb](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Number of frames"]
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> COUNT_R {
|
||||
COUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
COUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "MMC number of frames aborted because of frame underflow error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txundererr](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - IRQ_OUT\\[31:0\\]"]
|
||||
#[inline(always)]
|
||||
pub fn irq_out0(&self) -> IRQ_OUT0_R {
|
||||
IRQ_OUT0_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
IRQ_OUT0_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "DEBUG IRQ_OUT\\[31:0\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out0](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - IRQ_OUT\\[63:32\\]"]
|
||||
#[inline(always)]
|
||||
pub fn irq_out1(&self) -> IRQ_OUT1_R {
|
||||
IRQ_OUT1_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
IRQ_OUT1_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "DEBUG IRQ_OUT\\[63:32\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out1](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - IRQ_OUT\\[95:64\\]"]
|
||||
#[inline(always)]
|
||||
pub fn irq_out2(&self) -> IRQ_OUT2_R {
|
||||
IRQ_OUT2_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
IRQ_OUT2_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "DEBUG IRQ_OUT\\[95:64\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out2](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - IRQ_OUT\\[127:96\\]"]
|
||||
#[inline(always)]
|
||||
pub fn irq_out3(&self) -> IRQ_OUT3_R {
|
||||
IRQ_OUT3_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
IRQ_OUT3_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "DEBUG IRQ_OUT\\[127:96\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out3](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - IRQ_OUT\\[159:128\\]"]
|
||||
#[inline(always)]
|
||||
pub fn irq_out4(&self) -> IRQ_OUT4_R {
|
||||
IRQ_OUT4_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
IRQ_OUT4_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "DEBUG IRQ_OUT\\[159:128\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out4](index.html) module"]
|
||||
|
@ -1,5 +1,5 @@
|
||||
#![doc = "Peripheral access API for VA416XX microcontrollers (generated using svd2rust v0.19.0 (877196f 2021-11-14))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next]
|
||||
svd2rust release can be generated by cloning the svd2rust [repository], checking out the above commit, and running `cargo doc --open`.\n\n[here]: https://docs.rs/svd2rust/0.19.0/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"]
|
||||
#![doc = "Peripheral access API for VA416XX microcontrollers (generated using svd2rust v0.20.0 (b9857c5 2021-12-10))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next]
|
||||
svd2rust release can be generated by cloning the svd2rust [repository], checking out the above commit, and running `cargo doc --open`.\n\n[here]: https://docs.rs/svd2rust/0.20.0/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"]
|
||||
#![deny(const_err)]
|
||||
#![deny(dead_code)]
|
||||
#![deny(improper_ctypes)]
|
||||
|
@ -57,7 +57,7 @@ impl<'a> DIVCOUNT_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Lower 32-bits of the Refresh Rate Counter. Registers are refreshed every DIVCOUNT+1 cycles"]
|
||||
#[inline(always)]
|
||||
pub fn divcount(&self) -> DIVCOUNT_R {
|
||||
DIVCOUNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
DIVCOUNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"]
|
||||
#[inline(always)]
|
||||
pub fn ehr_data(&self) -> EHR_DATA_R {
|
||||
EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
EHR_DATA_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data0](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"]
|
||||
#[inline(always)]
|
||||
pub fn ehr_data(&self) -> EHR_DATA_R {
|
||||
EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
EHR_DATA_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data1](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"]
|
||||
#[inline(always)]
|
||||
pub fn ehr_data(&self) -> EHR_DATA_R {
|
||||
EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
EHR_DATA_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data2](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"]
|
||||
#[inline(always)]
|
||||
pub fn ehr_data(&self) -> EHR_DATA_R {
|
||||
EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
EHR_DATA_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data3](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"]
|
||||
#[inline(always)]
|
||||
pub fn ehr_data(&self) -> EHR_DATA_R {
|
||||
EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
EHR_DATA_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data4](index.html) module"]
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"]
|
||||
#[inline(always)]
|
||||
pub fn ehr_data(&self) -> EHR_DATA_R {
|
||||
EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
EHR_DATA_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data5](index.html) module"]
|
||||
|
@ -57,7 +57,7 @@ impl<'a> SAMPLE_CNTR1_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Sets the number of clk cycles between two consecutive ring oscillator samples"]
|
||||
#[inline(always)]
|
||||
pub fn sample_cntr1(&self) -> SAMPLE_CNTR1_R {
|
||||
SAMPLE_CNTR1_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
SAMPLE_CNTR1_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> CLEAR_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Write any value to clear interrupt"]
|
||||
#[inline(always)]
|
||||
pub fn clear(&self) -> CLEAR_R {
|
||||
CLEAR_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
CLEAR_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> CNT_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Count to load"]
|
||||
#[inline(always)]
|
||||
pub fn cnt(&self) -> CNT_R {
|
||||
CNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
CNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> REG_WR_EN_W<'a> {
|
||||
#[doc = r"Writes raw bits to the field"]
|
||||
#[inline(always)]
|
||||
pub unsafe fn bits(self, value: u32) -> &'a mut W {
|
||||
self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff);
|
||||
self.w.bits = value as u32;
|
||||
self.w
|
||||
}
|
||||
}
|
||||
@ -65,7 +65,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Register write enable status"]
|
||||
#[inline(always)]
|
||||
pub fn reg_wr_en(&self) -> REG_WR_EN_R {
|
||||
REG_WR_EN_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
REG_WR_EN_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
|
@ -32,7 +32,7 @@ impl R {
|
||||
#[doc = "Bits 0:31 - Actual Count"]
|
||||
#[inline(always)]
|
||||
pub fn cnt(&self) -> CNT_R {
|
||||
CNT_R::new((self.bits & 0xffff_ffff) as u32)
|
||||
CNT_R::new(self.bits as u32)
|
||||
}
|
||||
}
|
||||
#[doc = "Down Counter Value\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [wdogvalue](index.html) module"]
|
||||
|
Reference in New Issue
Block a user