#[doc = r"Register block"]
#[repr(C)]
pub struct CH {
csr: CSR,
div: DIV,
ctr: CTR,
cc: CC,
top: TOP,
}
impl CH {
#[doc = "0x00 - Control and status register"]
#[inline(always)]
pub const fn csr(&self) -> &CSR {
&self.csr
}
#[doc = "0x04 - INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta."]
#[inline(always)]
pub const fn div(&self) -> &DIV {
&self.div
}
#[doc = "0x08 - Direct access to the PWM counter"]
#[inline(always)]
pub const fn ctr(&self) -> &CTR {
&self.ctr
}
#[doc = "0x0c - Counter compare values"]
#[inline(always)]
pub const fn cc(&self) -> &CC {
&self.cc
}
#[doc = "0x10 - Counter wrap value"]
#[inline(always)]
pub const fn top(&self) -> &TOP {
&self.top
}
}
#[doc = "CC (rw) register accessor: Counter compare values
You can [`read`](crate::generic::Reg::read) this register and get [`cc::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 [`cc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@cc`]
module"]
pub type CC = crate::Reg<cc::CC_SPEC>;
#[doc = "Counter compare values"]
pub mod cc;
#[doc = "CSR (rw) register accessor: Control and status register
You can [`read`](crate::generic::Reg::read) this register and get [`csr::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 [`csr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@csr`]
module"]
pub type CSR = crate::Reg<csr::CSR_SPEC>;
#[doc = "Control and status register"]
pub mod csr;
#[doc = "CTR (rw) register accessor: Direct access to the PWM counter
You can [`read`](crate::generic::Reg::read) this register and get [`ctr::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 [`ctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@ctr`]
module"]
pub type CTR = crate::Reg<ctr::CTR_SPEC>;
#[doc = "Direct access to the PWM counter"]
pub mod ctr;
#[doc = "DIV (rw) register accessor: INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
You can [`read`](crate::generic::Reg::read) this register and get [`div::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 [`div::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@div`]
module"]
pub type DIV = crate::Reg<div::DIV_SPEC>;
#[doc = "INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta."]
pub mod div;
#[doc = "TOP (rw) register accessor: Counter wrap value
You can [`read`](crate::generic::Reg::read) this register and get [`top::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 [`top::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@top`]
module"]
pub type TOP = crate::Reg<top::TOP_SPEC>;
#[doc = "Counter wrap value"]
pub mod top;