pub type R = crate::R<PIO4rs>;
pub type W = crate::W<PIO4rs>;
pub type IOSETX_R = crate::FieldReader;
pub type IOSETX_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type IOWAITX_R = crate::FieldReader;
pub type IOWAITX_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type IOHOLDX_R = crate::FieldReader;
pub type IOHOLDX_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type IOHIZX_R = crate::FieldReader;
pub type IOHIZX_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
        #[inline(always)]
    pub fn iosetx(&self) -> IOSETX_R {
        IOSETX_R::new((self.bits & 0xff) as u8)
    }
        #[inline(always)]
    pub fn iowaitx(&self) -> IOWAITX_R {
        IOWAITX_R::new(((self.bits >> 8) & 0xff) as u8)
    }
        #[inline(always)]
    pub fn ioholdx(&self) -> IOHOLDX_R {
        IOHOLDX_R::new(((self.bits >> 16) & 0xff) as u8)
    }
        #[inline(always)]
    pub fn iohizx(&self) -> IOHIZX_R {
        IOHIZX_R::new(((self.bits >> 24) & 0xff) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("PIO4")
            .field("iohizx", &self.iohizx())
            .field("ioholdx", &self.ioholdx())
            .field("iowaitx", &self.iowaitx())
            .field("iosetx", &self.iosetx())
            .finish()
    }
}
impl W {
        #[inline(always)]
    pub fn iosetx(&mut self) -> IOSETX_W<PIO4rs> {
        IOSETX_W::new(self, 0)
    }
        #[inline(always)]
    pub fn iowaitx(&mut self) -> IOWAITX_W<PIO4rs> {
        IOWAITX_W::new(self, 8)
    }
        #[inline(always)]
    pub fn ioholdx(&mut self) -> IOHOLDX_W<PIO4rs> {
        IOHOLDX_W::new(self, 16)
    }
        #[inline(always)]
    pub fn iohizx(&mut self) -> IOHIZX_W<PIO4rs> {
        IOHIZX_W::new(self, 24)
    }
}
pub struct PIO4rs;
impl crate::RegisterSpec for PIO4rs {
    type Ux = u32;
}
impl crate::Readable for PIO4rs {}
impl crate::Writable for PIO4rs {
    type Safety = crate::Unsafe;
}
impl crate::Resettable for PIO4rs {
    const RESET_VALUE: u32 = 0xfcfc_fcfc;
}