#[doc = "Reader of register FCFG1_REVISION"]
pub type R = crate::R<u32, super::FCFG1_REVISION>;
#[doc = "Writer for register FCFG1_REVISION"]
pub type W = crate::W<u32, super::FCFG1_REVISION>;
#[doc = "Register FCFG1_REVISION `reset()`'s with value 0x28"]
impl crate::ResetValue for super::FCFG1_REVISION {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0x28
}
}
#[doc = "Reader of field `REV`"]
pub type REV_R = crate::R<u32, u32>;
#[doc = "Write proxy for field `REV`"]
pub struct REV_W<'a> {
w: &'a mut W,
}
impl<'a> REV_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u32) -> &'a mut W {
self.w.bits = (self.w.bits & !0xffff_ffff) | ((value as u32) & 0xffff_ffff);
self.w
}
}
impl R {
#[doc = "Bits 0:31 - 31:0\\]
The revision number of the FCFG1 layout. This value will be read by application SW in order to determine which FCFG1 parameters that have valid values. This revision number must be incremented by 1 before any devices are to be produced if the FCFG1 layout has changed since the previous production of devices. Value migth change without warning."]
#[inline(always)]
pub fn rev(&self) -> REV_R {
REV_R::new((self.bits & 0xffff_ffff) as u32)
}
}
impl W {
#[doc = "Bits 0:31 - 31:0\\]
The revision number of the FCFG1 layout. This value will be read by application SW in order to determine which FCFG1 parameters that have valid values. This revision number must be incremented by 1 before any devices are to be produced if the FCFG1 layout has changed since the previous production of devices. Value migth change without warning."]
#[inline(always)]
pub fn rev(&mut self) -> REV_W {
REV_W { w: self }
}
}