#[doc = "Register `FSM_ERR_ADDR` reader"]
pub type R = crate::R<FsmErrAddrSpec>;
#[doc = "Register `FSM_ERR_ADDR` writer"]
pub type W = crate::W<FsmErrAddrSpec>;
#[doc = "Field `FSM_ERR_BANK` reader - 3:0\\]
Internal. Only to be used through TI provided API."]
pub type FsmErrBankR = crate::FieldReader;
#[doc = "Field `FSM_ERR_BANK` writer - 3:0\\]
Internal. Only to be used through TI provided API."]
pub type FsmErrBankW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
#[doc = "Field `RESERVED4` reader - 7:4\\]
Internal. Only to be used through TI provided API."]
pub type Reserved4R = crate::FieldReader;
#[doc = "Field `RESERVED4` writer - 7:4\\]
Internal. Only to be used through TI provided API."]
pub type Reserved4W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
#[doc = "Field `FSM_ERR_ADDR` reader - 31:8\\]
Internal. Only to be used through TI provided API."]
pub type FsmErrAddrR = crate::FieldReader<u32>;
#[doc = "Field `FSM_ERR_ADDR` writer - 31:8\\]
Internal. Only to be used through TI provided API."]
pub type FsmErrAddrW<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
impl R {
#[doc = "Bits 0:3 - 3:0\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn fsm_err_bank(&self) -> FsmErrBankR {
FsmErrBankR::new((self.bits & 0x0f) as u8)
}
#[doc = "Bits 4:7 - 7:4\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn reserved4(&self) -> Reserved4R {
Reserved4R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[doc = "Bits 8:31 - 31:8\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn fsm_err_addr(&self) -> FsmErrAddrR {
FsmErrAddrR::new((self.bits >> 8) & 0x00ff_ffff)
}
}
impl W {
#[doc = "Bits 0:3 - 3:0\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
#[must_use]
pub fn fsm_err_bank(&mut self) -> FsmErrBankW<FsmErrAddrSpec> {
FsmErrBankW::new(self, 0)
}
#[doc = "Bits 4:7 - 7:4\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
#[must_use]
pub fn reserved4(&mut self) -> Reserved4W<FsmErrAddrSpec> {
Reserved4W::new(self, 4)
}
#[doc = "Bits 8:31 - 31:8\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
#[must_use]
pub fn fsm_err_addr(&mut self) -> FsmErrAddrW<FsmErrAddrSpec> {
FsmErrAddrW::new(self, 8)
}
}
#[doc = "Internal. Only to be used through TI provided API.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsm_err_addr::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsm_err_addr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FsmErrAddrSpec;
impl crate::RegisterSpec for FsmErrAddrSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`fsm_err_addr::R`](R) reader structure"]
impl crate::Readable for FsmErrAddrSpec {}
#[doc = "`write(|w| ..)` method takes [`fsm_err_addr::W`](W) writer structure"]
impl crate::Writable for FsmErrAddrSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets FSM_ERR_ADDR to value 0"]
impl crate::Resettable for FsmErrAddrSpec {
const RESET_VALUE: u32 = 0;
}