#[repr(C)]
#[doc = "Register block"]
pub struct RegisterBlock {
p5in: P5in,
_reserved1: [u8; 0x01],
p5out: P5out,
_reserved2: [u8; 0x01],
p5dir: P5dir,
_reserved3: [u8; 0x01],
p5ren: P5ren,
_reserved4: [u8; 0x01],
p5ds: P5ds,
_reserved5: [u8; 0x01],
p5sel: P5sel,
}
impl RegisterBlock {
#[doc = "0x00 - Port 5 Input"]
#[inline(always)]
pub const fn p5in(&self) -> &P5in {
&self.p5in
}
#[doc = "0x02 - Port 5 Output"]
#[inline(always)]
pub const fn p5out(&self) -> &P5out {
&self.p5out
}
#[doc = "0x04 - Port 5 Direction"]
#[inline(always)]
pub const fn p5dir(&self) -> &P5dir {
&self.p5dir
}
#[doc = "0x06 - Port 5 Resistor Enable"]
#[inline(always)]
pub const fn p5ren(&self) -> &P5ren {
&self.p5ren
}
#[doc = "0x08 - Port 5 Drive Strenght"]
#[inline(always)]
pub const fn p5ds(&self) -> &P5ds {
&self.p5ds
}
#[doc = "0x0a - Port 5 Selection"]
#[inline(always)]
pub const fn p5sel(&self) -> &P5sel {
&self.p5sel
}
}
#[doc = "P5IN (rw) register accessor: Port 5 Input\n\nYou can [`read`](crate::Reg::read) this register and get [`p5in::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p5in::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@p5in`] module"]
#[doc(alias = "P5IN")]
pub type P5in = crate::Reg<p5in::P5inSpec>;
#[doc = "Port 5 Input"]
pub mod p5in;
#[doc = "P5OUT (rw) register accessor: Port 5 Output\n\nYou can [`read`](crate::Reg::read) this register and get [`p5out::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p5out::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@p5out`] module"]
#[doc(alias = "P5OUT")]
pub type P5out = crate::Reg<p5out::P5outSpec>;
#[doc = "Port 5 Output"]
pub mod p5out;
#[doc = "P5DIR (rw) register accessor: Port 5 Direction\n\nYou can [`read`](crate::Reg::read) this register and get [`p5dir::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p5dir::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@p5dir`] module"]
#[doc(alias = "P5DIR")]
pub type P5dir = crate::Reg<p5dir::P5dirSpec>;
#[doc = "Port 5 Direction"]
pub mod p5dir;
#[doc = "P5REN (rw) register accessor: Port 5 Resistor Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`p5ren::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p5ren::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@p5ren`] module"]
#[doc(alias = "P5REN")]
pub type P5ren = crate::Reg<p5ren::P5renSpec>;
#[doc = "Port 5 Resistor Enable"]
pub mod p5ren;
#[doc = "P5DS (rw) register accessor: Port 5 Drive Strenght\n\nYou can [`read`](crate::Reg::read) this register and get [`p5ds::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p5ds::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@p5ds`] module"]
#[doc(alias = "P5DS")]
pub type P5ds = crate::Reg<p5ds::P5dsSpec>;
#[doc = "Port 5 Drive Strenght"]
pub mod p5ds;
#[doc = "P5SEL (rw) register accessor: Port 5 Selection\n\nYou can [`read`](crate::Reg::read) this register and get [`p5sel::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`p5sel::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@p5sel`] module"]
#[doc(alias = "P5SEL")]
pub type P5sel = crate::Reg<p5sel::P5selSpec>;
#[doc = "Port 5 Selection"]
pub mod p5sel;