rk3399_pac/
timer.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    n_load_count0: NLoadCount0,
5    n_load_count1: NLoadCount1,
6    n_current_value0: NCurrentValue0,
7    n_current_value1: NCurrentValue1,
8    n_load_count2: NLoadCount2,
9    n_load_count3: NLoadCount3,
10    n_intstatus: NIntstatus,
11    n_controlreg: NControlreg,
12}
13impl RegisterBlock {
14    #[doc = "0x00 - Timer n higher Load Count Register"]
15    #[inline(always)]
16    pub const fn n_load_count0(&self) -> &NLoadCount0 {
17        &self.n_load_count0
18    }
19    #[doc = "0x04 - Timer n higher Load Count Register"]
20    #[inline(always)]
21    pub const fn n_load_count1(&self) -> &NLoadCount1 {
22        &self.n_load_count1
23    }
24    #[doc = "0x08 - Timer n Current Value Register"]
25    #[inline(always)]
26    pub const fn n_current_value0(&self) -> &NCurrentValue0 {
27        &self.n_current_value0
28    }
29    #[doc = "0x0c - Timer n Current Value Register"]
30    #[inline(always)]
31    pub const fn n_current_value1(&self) -> &NCurrentValue1 {
32        &self.n_current_value1
33    }
34    #[doc = "0x10 - Timer n lower Load Count Register"]
35    #[inline(always)]
36    pub const fn n_load_count2(&self) -> &NLoadCount2 {
37        &self.n_load_count2
38    }
39    #[doc = "0x14 - Timer n lower Load Count Register"]
40    #[inline(always)]
41    pub const fn n_load_count3(&self) -> &NLoadCount3 {
42        &self.n_load_count3
43    }
44    #[doc = "0x18 - Timer Interrupt Stauts Register"]
45    #[inline(always)]
46    pub const fn n_intstatus(&self) -> &NIntstatus {
47        &self.n_intstatus
48    }
49    #[doc = "0x1c - Timer n Control Register"]
50    #[inline(always)]
51    pub const fn n_controlreg(&self) -> &NControlreg {
52        &self.n_controlreg
53    }
54}
55#[doc = "n_LOAD_COUNT0 (rw) register accessor: Timer n higher Load Count Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`n_load_count0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`n_load_count0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@n_load_count0`]
56module"]
57#[doc(alias = "n_LOAD_COUNT0")]
58pub type NLoadCount0 = crate::Reg<n_load_count0::NLoadCount0Spec>;
59#[doc = "Timer n higher Load Count Register"]
60pub mod n_load_count0;
61#[doc = "n_LOAD_COUNT1 (rw) register accessor: Timer n higher Load Count Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`n_load_count1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`n_load_count1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@n_load_count1`]
62module"]
63#[doc(alias = "n_LOAD_COUNT1")]
64pub type NLoadCount1 = crate::Reg<n_load_count1::NLoadCount1Spec>;
65#[doc = "Timer n higher Load Count Register"]
66pub mod n_load_count1;
67#[doc = "n_CURRENT_VALUE0 (r) register accessor: Timer n Current Value Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`n_current_value0::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@n_current_value0`]
68module"]
69#[doc(alias = "n_CURRENT_VALUE0")]
70pub type NCurrentValue0 = crate::Reg<n_current_value0::NCurrentValue0Spec>;
71#[doc = "Timer n Current Value Register"]
72pub mod n_current_value0;
73#[doc = "n_CURRENT_VALUE1 (r) register accessor: Timer n Current Value Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`n_current_value1::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@n_current_value1`]
74module"]
75#[doc(alias = "n_CURRENT_VALUE1")]
76pub type NCurrentValue1 = crate::Reg<n_current_value1::NCurrentValue1Spec>;
77#[doc = "Timer n Current Value Register"]
78pub mod n_current_value1;
79#[doc = "n_LOAD_COUNT2 (rw) register accessor: Timer n lower Load Count Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`n_load_count2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`n_load_count2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@n_load_count2`]
80module"]
81#[doc(alias = "n_LOAD_COUNT2")]
82pub type NLoadCount2 = crate::Reg<n_load_count2::NLoadCount2Spec>;
83#[doc = "Timer n lower Load Count Register"]
84pub mod n_load_count2;
85#[doc = "n_LOAD_COUNT3 (rw) register accessor: Timer n lower Load Count Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`n_load_count3::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`n_load_count3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@n_load_count3`]
86module"]
87#[doc(alias = "n_LOAD_COUNT3")]
88pub type NLoadCount3 = crate::Reg<n_load_count3::NLoadCount3Spec>;
89#[doc = "Timer n lower Load Count Register"]
90pub mod n_load_count3;
91#[doc = "n_INTSTATUS (rw) register accessor: Timer Interrupt Stauts Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`n_intstatus::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`n_intstatus::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@n_intstatus`]
92module"]
93#[doc(alias = "n_INTSTATUS")]
94pub type NIntstatus = crate::Reg<n_intstatus::NIntstatusSpec>;
95#[doc = "Timer Interrupt Stauts Register"]
96pub mod n_intstatus;
97#[doc = "n_CONTROLREG (rw) register accessor: Timer n Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`n_controlreg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`n_controlreg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@n_controlreg`]
98module"]
99#[doc(alias = "n_CONTROLREG")]
100pub type NControlreg = crate::Reg<n_controlreg::NControlregSpec>;
101#[doc = "Timer n Control Register"]
102pub mod n_controlreg;