pub type R = crate::R<CRCSADDRrs>;
pub type W = crate::W<CRCSADDRrs>;
pub type CRC_START_ADDR_R = crate::FieldReader<u32>;
pub type CRC_START_ADDR_W<'a, REG> = crate::FieldWriter<'a, REG, 18, u32>;
impl R {
#[inline(always)]
pub fn crc_start_addr(&self) -> CRC_START_ADDR_R {
CRC_START_ADDR_R::new((self.bits >> 2) & 0x0003_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CRCSADDR")
.field("crc_start_addr", &self.crc_start_addr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn crc_start_addr(&mut self) -> CRC_START_ADDR_W<CRCSADDRrs> {
CRC_START_ADDR_W::new(self, 2)
}
}
pub struct CRCSADDRrs;
impl crate::RegisterSpec for CRCSADDRrs {
type Ux = u32;
}
impl crate::Readable for CRCSADDRrs {}
impl crate::Writable for CRCSADDRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRCSADDRrs {}