///Register `WRP1R_PRG` reader
pub type R = crate::R<WRP1R_PRGrs>;
///Register `WRP1R_PRG` writer
pub type W = crate::W<WRP1R_PRGrs>;
///Field `WRPSG1` reader - Bank1 sector group protection option status byte
pub type WRPSG1_R = crate::FieldReader<u32>;
///Field `WRPSG1` writer - Bank1 sector group protection option status byte
pub type WRPSG1_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
    ///Bits 0:31 - Bank1 sector group protection option status byte
    #[inline(always)]
    pub fn wrpsg1(&self) -> WRPSG1_R {
        WRPSG1_R::new(self.bits)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("WRP1R_PRG").field("wrpsg1", &self.wrpsg1()).finish()
    }
}
impl W {
    ///Bits 0:31 - Bank1 sector group protection option status byte
    #[inline(always)]
    pub fn wrpsg1(&mut self) -> WRPSG1_W<WRP1R_PRGrs> {
        WRPSG1_W::new(self, 0)
    }
}
/**FLASH write sector group protection for Bank1

You can [`read`](crate::Reg::read) this register and get [`wrp1r_prg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wrp1r_prg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct WRP1R_PRGrs;
impl crate::RegisterSpec for WRP1R_PRGrs {
    type Ux = u32;
}
///`read()` method returns [`wrp1r_prg::R`](R) reader structure
impl crate::Readable for WRP1R_PRGrs {}
///`write(|w| ..)` method takes [`wrp1r_prg::W`](W) writer structure
impl crate::Writable for WRP1R_PRGrs {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets WRP1R_PRG to value 0
impl crate::Resettable for WRP1R_PRGrs {
    const RESET_VALUE: u32 = 0;
}
