diff options
| author | Arne Dußin | 2021-11-06 11:50:33 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-11-06 11:50:33 +0100 |
| commit | 0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 (patch) | |
| tree | a184284dbd2316f4624f092e4e7521ea8c90855b /src/pm.rs | |
| download | samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.tar.gz samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.zip | |
Initial commit
Diffstat (limited to 'src/pm.rs')
| -rw-r--r-- | src/pm.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pm.rs b/src/pm.rs new file mode 100644 index 0000000..9da2b0e --- /dev/null +++ b/src/pm.rs @@ -0,0 +1,18 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + _reserved0: [u8; 0x01], + #[doc = "0x01 - Sleep Configuration"] + pub sleepcfg: crate::Reg<sleepcfg::SLEEPCFG_SPEC>, + _reserved1: [u8; 0x06], + #[doc = "0x08 - Standby Configuration"] + pub stdbycfg: crate::Reg<stdbycfg::STDBYCFG_SPEC>, +} +#[doc = "SLEEPCFG register accessor: an alias for `Reg<SLEEPCFG_SPEC>`"] +pub type SLEEPCFG = crate::Reg<sleepcfg::SLEEPCFG_SPEC>; +#[doc = "Sleep Configuration"] +pub mod sleepcfg; +#[doc = "STDBYCFG register accessor: an alias for `Reg<STDBYCFG_SPEC>`"] +pub type STDBYCFG = crate::Reg<stdbycfg::STDBYCFG_SPEC>; +#[doc = "Standby Configuration"] +pub mod stdbycfg; |
