#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
cr1: CR1,
_reserved1: [u8; 0x02],
cr2: CR2,
_reserved2: [u8; 0x06],
dier: DIER,
_reserved3: [u8; 0x02],
sr: SR,
_reserved4: [u8; 0x02],
egr: EGR,
_reserved5: [u8; 0x0e],
cnt: CNT,
psc: PSC,
_reserved7: [u8; 0x02],
arr: ARR,
}
impl RegisterBlock {
#[doc = "0x00 - TIM7 control register 1"]
#[inline(always)]
pub const fn cr1(&self) -> &CR1 {
&self.cr1
}
#[doc = "0x04 - TIM7 control register 2"]
#[inline(always)]
pub const fn cr2(&self) -> &CR2 {
&self.cr2
}
#[doc = "0x0c - TIM7 DMA/Interrupt enable register"]
#[inline(always)]
pub const fn dier(&self) -> &DIER {
&self.dier
}
#[doc = "0x10 - TIM7 status register"]
#[inline(always)]
pub const fn sr(&self) -> &SR {
&self.sr
}
#[doc = "0x14 - TIM7 event generation register"]
#[inline(always)]
pub const fn egr(&self) -> &EGR {
&self.egr
}
#[doc = "0x24 - TIM7 counter"]
#[inline(always)]
pub const fn cnt(&self) -> &CNT {
&self.cnt
}
#[doc = "0x28 - TIM7 prescaler"]
#[inline(always)]
pub const fn psc(&self) -> &PSC {
&self.psc
}
#[doc = "0x2c - TIM7 auto-reload register"]
#[inline(always)]
pub const fn arr(&self) -> &ARR {
&self.arr
}
}
#[doc = "CR1 (rw) register accessor: TIM7 control register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cr1::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 [`cr1::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@cr1`]
module"]
pub type CR1 = crate::Reg<cr1::CR1rs>;
#[doc = "TIM7 control register 1"]
pub mod cr1;
#[doc = "CR2 (rw) register accessor: TIM7 control register 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cr2::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 [`cr2::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@cr2`]
module"]
pub type CR2 = crate::Reg<cr2::CR2rs>;
#[doc = "TIM7 control register 2"]
pub mod cr2;
#[doc = "DIER (rw) register accessor: TIM7 DMA/Interrupt enable register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dier::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 [`dier::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@dier`]
module"]
pub type DIER = crate::Reg<dier::DIERrs>;
#[doc = "TIM7 DMA/Interrupt enable register"]
pub mod dier;
#[doc = "SR (rw) register accessor: TIM7 status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sr::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 [`sr::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@sr`]
module"]
pub type SR = crate::Reg<sr::SRrs>;
#[doc = "TIM7 status register"]
pub mod sr;
#[doc = "EGR (w) register accessor: TIM7 event generation register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`egr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@egr`]
module"]
pub type EGR = crate::Reg<egr::EGRrs>;
#[doc = "TIM7 event generation register"]
pub mod egr;
#[doc = "CNT (rw) register accessor: TIM7 counter\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cnt::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 [`cnt::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@cnt`]
module"]
pub type CNT = crate::Reg<cnt::CNTrs>;
#[doc = "TIM7 counter"]
pub mod cnt;
#[doc = "PSC (rw) register accessor: TIM7 prescaler\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`psc::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 [`psc::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@psc`]
module"]
pub type PSC = crate::Reg<psc::PSCrs>;
#[doc = "TIM7 prescaler"]
pub mod psc;
#[doc = "ARR (rw) register accessor: TIM7 auto-reload register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`arr::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 [`arr::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@arr`]
module"]
pub type ARR = crate::Reg<arr::ARRrs>;
#[doc = "TIM7 auto-reload register"]
pub mod arr;