#[doc = "Register `ISDATA` writer"]
pub type W = crate::W<IsdataSpec>;
#[doc = "Field `SDATA` writer - Segments Data"]
pub type SdataW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
#[doc = "Field `SDMASK` writer - Segments Data Mask"]
pub type SdmaskW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
#[doc = "Field `OFF` writer - Byte Offset"]
pub type OffW<'a, REG> = crate::FieldWriter<'a, REG, 6>;
impl W {
    #[doc = "Bits 0:7 - Segments Data"]
    #[inline(always)]
    pub fn sdata(&mut self) -> SdataW<IsdataSpec> {
        SdataW::new(self, 0)
    }
    #[doc = "Bits 8:15 - Segments Data Mask"]
    #[inline(always)]
    pub fn sdmask(&mut self) -> SdmaskW<IsdataSpec> {
        SdmaskW::new(self, 8)
    }
    #[doc = "Bits 16:21 - Byte Offset"]
    #[inline(always)]
    pub fn off(&mut self) -> OffW<IsdataSpec> {
        OffW::new(self, 16)
    }
}
#[doc = "Indirect Segments Data Access\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`isdata::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IsdataSpec;
impl crate::RegisterSpec for IsdataSpec {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`isdata::W`](W) writer structure"]
impl crate::Writable for IsdataSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets ISDATA to value 0"]
impl crate::Resettable for IsdataSpec {
    const RESET_VALUE: u32 = 0;
}
