#[repr(C)]
#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
#[doc = "Cluster CH%s, containing CH?_CONF0, CH?_HPOINT, CH?_DUTY, CH?_CONF1, CH?_DUTY_R"]
pub struct CH {
conf0: CONF0,
hpoint: HPOINT,
duty: DUTY,
conf1: CONF1,
duty_r: DUTY_R,
}
impl CH {
#[doc = "0x00 - Configuration register 0 for channel 0"]
#[inline(always)]
pub const fn conf0(&self) -> &CONF0 {
&self.conf0
}
#[doc = "0x04 - High point register for channel 0"]
#[inline(always)]
pub const fn hpoint(&self) -> &HPOINT {
&self.hpoint
}
#[doc = "0x08 - Initial duty cycle for channel 0"]
#[inline(always)]
pub const fn duty(&self) -> &DUTY {
&self.duty
}
#[doc = "0x0c - Configuration register 1 for channel 0"]
#[inline(always)]
pub const fn conf1(&self) -> &CONF1 {
&self.conf1
}
#[doc = "0x10 - Current duty cycle for channel 0"]
#[inline(always)]
pub const fn duty_r(&self) -> &DUTY_R {
&self.duty_r
}
}
#[doc = "CONF0 (rw) register accessor: Configuration register 0 for channel 0\n\nYou can [`read`](crate::Reg::read) this register and get [`conf0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`conf0::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@conf0`] module"]
pub type CONF0 = crate::Reg<conf0::CONF0_SPEC>;
#[doc = "Configuration register 0 for channel 0"]
pub mod conf0;
#[doc = "HPOINT (rw) register accessor: High point register for channel 0\n\nYou can [`read`](crate::Reg::read) this register and get [`hpoint::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hpoint::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@hpoint`] module"]
pub type HPOINT = crate::Reg<hpoint::HPOINT_SPEC>;
#[doc = "High point register for channel 0"]
pub mod hpoint;
#[doc = "DUTY (rw) register accessor: Initial duty cycle for channel 0\n\nYou can [`read`](crate::Reg::read) this register and get [`duty::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`duty::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@duty`] module"]
pub type DUTY = crate::Reg<duty::DUTY_SPEC>;
#[doc = "Initial duty cycle for channel 0"]
pub mod duty;
#[doc = "CONF1 (rw) register accessor: Configuration register 1 for channel 0\n\nYou can [`read`](crate::Reg::read) this register and get [`conf1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`conf1::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@conf1`] module"]
pub type CONF1 = crate::Reg<conf1::CONF1_SPEC>;
#[doc = "Configuration register 1 for channel 0"]
pub mod conf1;
#[doc = "DUTY_R (r) register accessor: Current duty cycle for channel 0\n\nYou can [`read`](crate::Reg::read) this register and get [`duty_r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@duty_r`] module"]
pub type DUTY_R = crate::Reg<duty_r::DUTY_R_SPEC>;
#[doc = "Current duty cycle for channel 0"]
pub mod duty_r;