atsamd51n/
sys_tick.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    csr: Csr,
5    rvr: Rvr,
6    cvr: Cvr,
7    calib: Calib,
8}
9impl RegisterBlock {
10    #[doc = "0x00 - SysTick Control and Status Register"]
11    #[inline(always)]
12    pub const fn csr(&self) -> &Csr {
13        &self.csr
14    }
15    #[doc = "0x04 - SysTick Reload Value Register"]
16    #[inline(always)]
17    pub const fn rvr(&self) -> &Rvr {
18        &self.rvr
19    }
20    #[doc = "0x08 - SysTick Current Value Register"]
21    #[inline(always)]
22    pub const fn cvr(&self) -> &Cvr {
23        &self.cvr
24    }
25    #[doc = "0x0c - SysTick Calibration Value Register"]
26    #[inline(always)]
27    pub const fn calib(&self) -> &Calib {
28        &self.calib
29    }
30}
31#[doc = "CSR (rw) register accessor: SysTick Control and Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@csr`]
32module"]
33#[doc(alias = "CSR")]
34pub type Csr = crate::Reg<csr::CsrSpec>;
35#[doc = "SysTick Control and Status Register"]
36pub mod csr;
37#[doc = "RVR (rw) register accessor: SysTick Reload Value Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rvr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rvr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rvr`]
38module"]
39#[doc(alias = "RVR")]
40pub type Rvr = crate::Reg<rvr::RvrSpec>;
41#[doc = "SysTick Reload Value Register"]
42pub mod rvr;
43#[doc = "CVR (rw) register accessor: SysTick Current Value Register\n\nYou can [`read`](crate::Reg::read) this register and get [`cvr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cvr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cvr`]
44module"]
45#[doc(alias = "CVR")]
46pub type Cvr = crate::Reg<cvr::CvrSpec>;
47#[doc = "SysTick Current Value Register"]
48pub mod cvr;
49#[doc = "CALIB (r) register accessor: SysTick Calibration Value Register\n\nYou can [`read`](crate::Reg::read) this register and get [`calib::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@calib`]
50module"]
51#[doc(alias = "CALIB")]
52pub type Calib = crate::Reg<calib::CalibSpec>;
53#[doc = "SysTick Calibration Value Register"]
54pub mod calib;