stm32f1_staging/stm32f102/
stk.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    ctrl: CTRL,
6    load_: LOAD_,
7    val: VAL,
8    calib: CALIB,
9}
10impl RegisterBlock {
11    ///0x00 - SysTick control and status register
12    #[inline(always)]
13    pub const fn ctrl(&self) -> &CTRL {
14        &self.ctrl
15    }
16    ///0x04 - SysTick reload value register
17    #[inline(always)]
18    pub const fn load_(&self) -> &LOAD_ {
19        &self.load_
20    }
21    ///0x08 - SysTick current value register
22    #[inline(always)]
23    pub const fn val(&self) -> &VAL {
24        &self.val
25    }
26    ///0x0c - SysTick calibration value register
27    #[inline(always)]
28    pub const fn calib(&self) -> &CALIB {
29        &self.calib
30    }
31}
32/**CTRL (rw) register accessor: SysTick control and status register
33
34You can [`read`](crate::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
35
36See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F102.html#STK:CTRL)
37
38For information about available fields see [`mod@ctrl`] module*/
39pub type CTRL = crate::Reg<ctrl::CTRLrs>;
40///SysTick control and status register
41pub mod ctrl;
42/**LOAD_ (rw) register accessor: SysTick reload value register
43
44You can [`read`](crate::Reg::read) this register and get [`load_::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`load_::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
45
46See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F102.html#STK:LOAD_)
47
48For information about available fields see [`mod@load_`] module*/
49pub type LOAD_ = crate::Reg<load_::LOAD_rs>;
50///SysTick reload value register
51pub mod load_;
52/**VAL (rw) register accessor: SysTick current value register
53
54You can [`read`](crate::Reg::read) this register and get [`val::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`val::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
55
56See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F102.html#STK:VAL)
57
58For information about available fields see [`mod@val`] module*/
59pub type VAL = crate::Reg<val::VALrs>;
60///SysTick current value register
61pub mod val;
62/**CALIB (rw) register accessor: SysTick calibration value register
63
64You can [`read`](crate::Reg::read) this register and get [`calib::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`calib::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
65
66See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F102.html#STK:CALIB)
67
68For information about available fields see [`mod@calib`] module*/
69pub type CALIB = crate::Reg<calib::CALIBrs>;
70///SysTick calibration value register
71pub mod calib;