#[doc = "Register `INTVEC_TOHOST` writer"]
pub type W = crate::W<INTVEC_TOHOST_SPEC>;
#[doc = "Field `SLC0_TOHOST_INTVEC` writer - "]
pub type SLC0_TOHOST_INTVEC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
#[doc = "Field `SLC1_TOHOST_INTVEC` writer - "]
pub type SLC1_TOHOST_INTVEC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<INTVEC_TOHOST_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[doc = "Bits 0:7"]
#[inline(always)]
pub fn slc0_tohost_intvec(&mut self) -> SLC0_TOHOST_INTVEC_W<'_, INTVEC_TOHOST_SPEC> {
SLC0_TOHOST_INTVEC_W::new(self, 0)
}
#[doc = "Bits 16:23"]
#[inline(always)]
pub fn slc1_tohost_intvec(&mut self) -> SLC1_TOHOST_INTVEC_W<'_, INTVEC_TOHOST_SPEC> {
SLC1_TOHOST_INTVEC_W::new(self, 16)
}
}
#[doc = "\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intvec_tohost::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INTVEC_TOHOST_SPEC;
impl crate::RegisterSpec for INTVEC_TOHOST_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`intvec_tohost::W`](W) writer structure"]
impl crate::Writable for INTVEC_TOHOST_SPEC {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets INTVEC_TOHOST to value 0"]
impl crate::Resettable for INTVEC_TOHOST_SPEC {}