bl808-pac 0.0.0

Embedded Rust's Peripheral Access Crate for BL808 RISC-V microcontroller
Documentation
#[doc = "Register `destination_end` reader"]
pub struct R(crate::R<DESTINATION_END_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<DESTINATION_END_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<DESTINATION_END_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<DESTINATION_END_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `end` reader - End of address"]
pub type END_R = crate::FieldReader<u32, u32>;
impl R {
    #[doc = "Bits 0:25 - End of address"]
    #[inline(always)]
    pub fn end(&self) -> END_R {
        END_R::new((self.bits & 0x03ff_ffff) as u32)
    }
}
#[doc = "Reads the end address of destination after decompression\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [destination_end](index.html) module"]
pub struct DESTINATION_END_SPEC;
impl crate::RegisterSpec for DESTINATION_END_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [destination_end::R](R) reader structure"]
impl crate::Readable for DESTINATION_END_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets destination_end to value 0"]
impl crate::Resettable for DESTINATION_END_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}