#[doc = r"Value read from the register"]
pub struct R {
bits: u32,
}
#[doc = r"Value to write to the register"]
pub struct W {
bits: u32,
}
impl super::PIO_ODSR {
#[doc = r"Modifies the contents of the register"]
#[inline(always)]
pub fn modify<F>(&self, f: F)
where
for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
{
let bits = self.register.get();
self.register.set(f(&R { bits }, &mut W { bits }).bits);
}
#[doc = r"Reads the contents of the register"]
#[inline(always)]
pub fn read(&self) -> R {
R {
bits: self.register.get(),
}
}
#[doc = r"Writes to the register"]
#[inline(always)]
pub fn write<F>(&self, f: F)
where
F: FnOnce(&mut W) -> &mut W,
{
self.register.set(
f(&mut W {
bits: Self::reset_value(),
})
.bits,
);
}
#[doc = r"Reset value of the register"]
#[inline(always)]
pub const fn reset_value() -> u32 {
0
}
#[doc = r"Writes the reset value to the register"]
#[inline(always)]
pub fn reset(&self) {
self.register.set(Self::reset_value())
}
}
#[doc = r"Reader of the field"]
pub type P0_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P0W<'a> {
w: &'a mut W,
}
impl<'a> _P0W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P1_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P1W<'a> {
w: &'a mut W,
}
impl<'a> _P1W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P2_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P2W<'a> {
w: &'a mut W,
}
impl<'a> _P2W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P3_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P3W<'a> {
w: &'a mut W,
}
impl<'a> _P3W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P4_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P4W<'a> {
w: &'a mut W,
}
impl<'a> _P4W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P5_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P5W<'a> {
w: &'a mut W,
}
impl<'a> _P5W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P6_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P6W<'a> {
w: &'a mut W,
}
impl<'a> _P6W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P7_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P7W<'a> {
w: &'a mut W,
}
impl<'a> _P7W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P8_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P8W<'a> {
w: &'a mut W,
}
impl<'a> _P8W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P9_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P9W<'a> {
w: &'a mut W,
}
impl<'a> _P9W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P10_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P10W<'a> {
w: &'a mut W,
}
impl<'a> _P10W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P11_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P11W<'a> {
w: &'a mut W,
}
impl<'a> _P11W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 11)) | (((value as u32) & 0x01) << 11);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P12_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P12W<'a> {
w: &'a mut W,
}
impl<'a> _P12W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 12)) | (((value as u32) & 0x01) << 12);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P13_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P13W<'a> {
w: &'a mut W,
}
impl<'a> _P13W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 13)) | (((value as u32) & 0x01) << 13);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P14_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P14W<'a> {
w: &'a mut W,
}
impl<'a> _P14W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 14)) | (((value as u32) & 0x01) << 14);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P15_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P15W<'a> {
w: &'a mut W,
}
impl<'a> _P15W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P16_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P16W<'a> {
w: &'a mut W,
}
impl<'a> _P16W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 16)) | (((value as u32) & 0x01) << 16);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P17_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P17W<'a> {
w: &'a mut W,
}
impl<'a> _P17W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 17)) | (((value as u32) & 0x01) << 17);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P18_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P18W<'a> {
w: &'a mut W,
}
impl<'a> _P18W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 18)) | (((value as u32) & 0x01) << 18);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P19_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P19W<'a> {
w: &'a mut W,
}
impl<'a> _P19W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 19)) | (((value as u32) & 0x01) << 19);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P20_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P20W<'a> {
w: &'a mut W,
}
impl<'a> _P20W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 20)) | (((value as u32) & 0x01) << 20);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P21_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P21W<'a> {
w: &'a mut W,
}
impl<'a> _P21W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 21)) | (((value as u32) & 0x01) << 21);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P22_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P22W<'a> {
w: &'a mut W,
}
impl<'a> _P22W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 22)) | (((value as u32) & 0x01) << 22);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P23_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P23W<'a> {
w: &'a mut W,
}
impl<'a> _P23W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 23)) | (((value as u32) & 0x01) << 23);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P24_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P24W<'a> {
w: &'a mut W,
}
impl<'a> _P24W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 24)) | (((value as u32) & 0x01) << 24);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P25_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P25W<'a> {
w: &'a mut W,
}
impl<'a> _P25W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 25)) | (((value as u32) & 0x01) << 25);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P26_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P26W<'a> {
w: &'a mut W,
}
impl<'a> _P26W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 26)) | (((value as u32) & 0x01) << 26);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P27_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P27W<'a> {
w: &'a mut W,
}
impl<'a> _P27W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 27)) | (((value as u32) & 0x01) << 27);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P28_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P28W<'a> {
w: &'a mut W,
}
impl<'a> _P28W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 28)) | (((value as u32) & 0x01) << 28);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P29_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P29W<'a> {
w: &'a mut W,
}
impl<'a> _P29W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 29)) | (((value as u32) & 0x01) << 29);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P30_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P30W<'a> {
w: &'a mut W,
}
impl<'a> _P30W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 30)) | (((value as u32) & 0x01) << 30);
self.w
}
}
#[doc = r"Reader of the field"]
pub type P31_R = crate::FR<bool, bool>;
#[doc = r"Proxy"]
pub struct _P31W<'a> {
w: &'a mut W,
}
impl<'a> _P31W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 31)) | (((value as u32) & 0x01) << 31);
self.w
}
}
impl R {
#[doc = r"Value of the register as raw bits"]
#[inline(always)]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bit 0 - Output Data Status"]
#[inline(always)]
pub fn p0(&self) -> P0_R {
P0_R::new((self.bits() & 0x01) != 0)
}
#[doc = "Bit 1 - Output Data Status"]
#[inline(always)]
pub fn p1(&self) -> P1_R {
P1_R::new(((self.bits() >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Output Data Status"]
#[inline(always)]
pub fn p2(&self) -> P2_R {
P2_R::new(((self.bits() >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Output Data Status"]
#[inline(always)]
pub fn p3(&self) -> P3_R {
P3_R::new(((self.bits() >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Output Data Status"]
#[inline(always)]
pub fn p4(&self) -> P4_R {
P4_R::new(((self.bits() >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Output Data Status"]
#[inline(always)]
pub fn p5(&self) -> P5_R {
P5_R::new(((self.bits() >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Output Data Status"]
#[inline(always)]
pub fn p6(&self) -> P6_R {
P6_R::new(((self.bits() >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Output Data Status"]
#[inline(always)]
pub fn p7(&self) -> P7_R {
P7_R::new(((self.bits() >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Output Data Status"]
#[inline(always)]
pub fn p8(&self) -> P8_R {
P8_R::new(((self.bits() >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Output Data Status"]
#[inline(always)]
pub fn p9(&self) -> P9_R {
P9_R::new(((self.bits() >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Output Data Status"]
#[inline(always)]
pub fn p10(&self) -> P10_R {
P10_R::new(((self.bits() >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - Output Data Status"]
#[inline(always)]
pub fn p11(&self) -> P11_R {
P11_R::new(((self.bits() >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - Output Data Status"]
#[inline(always)]
pub fn p12(&self) -> P12_R {
P12_R::new(((self.bits() >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - Output Data Status"]
#[inline(always)]
pub fn p13(&self) -> P13_R {
P13_R::new(((self.bits() >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - Output Data Status"]
#[inline(always)]
pub fn p14(&self) -> P14_R {
P14_R::new(((self.bits() >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - Output Data Status"]
#[inline(always)]
pub fn p15(&self) -> P15_R {
P15_R::new(((self.bits() >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - Output Data Status"]
#[inline(always)]
pub fn p16(&self) -> P16_R {
P16_R::new(((self.bits() >> 16) & 0x01) != 0)
}
#[doc = "Bit 17 - Output Data Status"]
#[inline(always)]
pub fn p17(&self) -> P17_R {
P17_R::new(((self.bits() >> 17) & 0x01) != 0)
}
#[doc = "Bit 18 - Output Data Status"]
#[inline(always)]
pub fn p18(&self) -> P18_R {
P18_R::new(((self.bits() >> 18) & 0x01) != 0)
}
#[doc = "Bit 19 - Output Data Status"]
#[inline(always)]
pub fn p19(&self) -> P19_R {
P19_R::new(((self.bits() >> 19) & 0x01) != 0)
}
#[doc = "Bit 20 - Output Data Status"]
#[inline(always)]
pub fn p20(&self) -> P20_R {
P20_R::new(((self.bits() >> 20) & 0x01) != 0)
}
#[doc = "Bit 21 - Output Data Status"]
#[inline(always)]
pub fn p21(&self) -> P21_R {
P21_R::new(((self.bits() >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - Output Data Status"]
#[inline(always)]
pub fn p22(&self) -> P22_R {
P22_R::new(((self.bits() >> 22) & 0x01) != 0)
}
#[doc = "Bit 23 - Output Data Status"]
#[inline(always)]
pub fn p23(&self) -> P23_R {
P23_R::new(((self.bits() >> 23) & 0x01) != 0)
}
#[doc = "Bit 24 - Output Data Status"]
#[inline(always)]
pub fn p24(&self) -> P24_R {
P24_R::new(((self.bits() >> 24) & 0x01) != 0)
}
#[doc = "Bit 25 - Output Data Status"]
#[inline(always)]
pub fn p25(&self) -> P25_R {
P25_R::new(((self.bits() >> 25) & 0x01) != 0)
}
#[doc = "Bit 26 - Output Data Status"]
#[inline(always)]
pub fn p26(&self) -> P26_R {
P26_R::new(((self.bits() >> 26) & 0x01) != 0)
}
#[doc = "Bit 27 - Output Data Status"]
#[inline(always)]
pub fn p27(&self) -> P27_R {
P27_R::new(((self.bits() >> 27) & 0x01) != 0)
}
#[doc = "Bit 28 - Output Data Status"]
#[inline(always)]
pub fn p28(&self) -> P28_R {
P28_R::new(((self.bits() >> 28) & 0x01) != 0)
}
#[doc = "Bit 29 - Output Data Status"]
#[inline(always)]
pub fn p29(&self) -> P29_R {
P29_R::new(((self.bits() >> 29) & 0x01) != 0)
}
#[doc = "Bit 30 - Output Data Status"]
#[inline(always)]
pub fn p30(&self) -> P30_R {
P30_R::new(((self.bits() >> 30) & 0x01) != 0)
}
#[doc = "Bit 31 - Output Data Status"]
#[inline(always)]
pub fn p31(&self) -> P31_R {
P31_R::new(((self.bits() >> 31) & 0x01) != 0)
}
}
impl W {
#[doc = r"Writes raw bits to the register"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
#[doc = "Bit 0 - Output Data Status"]
#[inline(always)]
pub fn p0(&mut self) -> _P0W {
_P0W { w: self }
}
#[doc = "Bit 1 - Output Data Status"]
#[inline(always)]
pub fn p1(&mut self) -> _P1W {
_P1W { w: self }
}
#[doc = "Bit 2 - Output Data Status"]
#[inline(always)]
pub fn p2(&mut self) -> _P2W {
_P2W { w: self }
}
#[doc = "Bit 3 - Output Data Status"]
#[inline(always)]
pub fn p3(&mut self) -> _P3W {
_P3W { w: self }
}
#[doc = "Bit 4 - Output Data Status"]
#[inline(always)]
pub fn p4(&mut self) -> _P4W {
_P4W { w: self }
}
#[doc = "Bit 5 - Output Data Status"]
#[inline(always)]
pub fn p5(&mut self) -> _P5W {
_P5W { w: self }
}
#[doc = "Bit 6 - Output Data Status"]
#[inline(always)]
pub fn p6(&mut self) -> _P6W {
_P6W { w: self }
}
#[doc = "Bit 7 - Output Data Status"]
#[inline(always)]
pub fn p7(&mut self) -> _P7W {
_P7W { w: self }
}
#[doc = "Bit 8 - Output Data Status"]
#[inline(always)]
pub fn p8(&mut self) -> _P8W {
_P8W { w: self }
}
#[doc = "Bit 9 - Output Data Status"]
#[inline(always)]
pub fn p9(&mut self) -> _P9W {
_P9W { w: self }
}
#[doc = "Bit 10 - Output Data Status"]
#[inline(always)]
pub fn p10(&mut self) -> _P10W {
_P10W { w: self }
}
#[doc = "Bit 11 - Output Data Status"]
#[inline(always)]
pub fn p11(&mut self) -> _P11W {
_P11W { w: self }
}
#[doc = "Bit 12 - Output Data Status"]
#[inline(always)]
pub fn p12(&mut self) -> _P12W {
_P12W { w: self }
}
#[doc = "Bit 13 - Output Data Status"]
#[inline(always)]
pub fn p13(&mut self) -> _P13W {
_P13W { w: self }
}
#[doc = "Bit 14 - Output Data Status"]
#[inline(always)]
pub fn p14(&mut self) -> _P14W {
_P14W { w: self }
}
#[doc = "Bit 15 - Output Data Status"]
#[inline(always)]
pub fn p15(&mut self) -> _P15W {
_P15W { w: self }
}
#[doc = "Bit 16 - Output Data Status"]
#[inline(always)]
pub fn p16(&mut self) -> _P16W {
_P16W { w: self }
}
#[doc = "Bit 17 - Output Data Status"]
#[inline(always)]
pub fn p17(&mut self) -> _P17W {
_P17W { w: self }
}
#[doc = "Bit 18 - Output Data Status"]
#[inline(always)]
pub fn p18(&mut self) -> _P18W {
_P18W { w: self }
}
#[doc = "Bit 19 - Output Data Status"]
#[inline(always)]
pub fn p19(&mut self) -> _P19W {
_P19W { w: self }
}
#[doc = "Bit 20 - Output Data Status"]
#[inline(always)]
pub fn p20(&mut self) -> _P20W {
_P20W { w: self }
}
#[doc = "Bit 21 - Output Data Status"]
#[inline(always)]
pub fn p21(&mut self) -> _P21W {
_P21W { w: self }
}
#[doc = "Bit 22 - Output Data Status"]
#[inline(always)]
pub fn p22(&mut self) -> _P22W {
_P22W { w: self }
}
#[doc = "Bit 23 - Output Data Status"]
#[inline(always)]
pub fn p23(&mut self) -> _P23W {
_P23W { w: self }
}
#[doc = "Bit 24 - Output Data Status"]
#[inline(always)]
pub fn p24(&mut self) -> _P24W {
_P24W { w: self }
}
#[doc = "Bit 25 - Output Data Status"]
#[inline(always)]
pub fn p25(&mut self) -> _P25W {
_P25W { w: self }
}
#[doc = "Bit 26 - Output Data Status"]
#[inline(always)]
pub fn p26(&mut self) -> _P26W {
_P26W { w: self }
}
#[doc = "Bit 27 - Output Data Status"]
#[inline(always)]
pub fn p27(&mut self) -> _P27W {
_P27W { w: self }
}
#[doc = "Bit 28 - Output Data Status"]
#[inline(always)]
pub fn p28(&mut self) -> _P28W {
_P28W { w: self }
}
#[doc = "Bit 29 - Output Data Status"]
#[inline(always)]
pub fn p29(&mut self) -> _P29W {
_P29W { w: self }
}
#[doc = "Bit 30 - Output Data Status"]
#[inline(always)]
pub fn p30(&mut self) -> _P30W {
_P30W { w: self }
}
#[doc = "Bit 31 - Output Data Status"]
#[inline(always)]
pub fn p31(&mut self) -> _P31W {
_P31W { w: self }
}
}