#[doc = "Register `SLV_WR_STATUS` reader"]
pub type R = crate::R<SLV_WR_STATUS_SPEC>;
#[doc = "Register `SLV_WR_STATUS` writer"]
pub type W = crate::W<SLV_WR_STATUS_SPEC>;
#[doc = "Field `SLV_WR_ST` reader - In the slave mode this register are the status register for the master to write into. In the master mode this register are the higher 32bits in the 64 bits address condition."]
pub type SLV_WR_ST_R = crate::FieldReader<u32>;
#[doc = "Field `SLV_WR_ST` writer - In the slave mode this register are the status register for the master to write into. In the master mode this register are the higher 32bits in the 64 bits address condition."]
pub type SLV_WR_ST_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[doc = "Bits 0:31 - In the slave mode this register are the status register for the master to write into. In the master mode this register are the higher 32bits in the 64 bits address condition."]
#[inline(always)]
pub fn slv_wr_st(&self) -> SLV_WR_ST_R {
SLV_WR_ST_R::new(self.bits)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SLV_WR_STATUS")
.field("slv_wr_st", &self.slv_wr_st())
.finish()
}
}
impl W {
#[doc = "Bits 0:31 - In the slave mode this register are the status register for the master to write into. In the master mode this register are the higher 32bits in the 64 bits address condition."]
#[inline(always)]
pub fn slv_wr_st(&mut self) -> SLV_WR_ST_W<'_, SLV_WR_STATUS_SPEC> {
SLV_WR_ST_W::new(self, 0)
}
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`slv_wr_status::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`slv_wr_status::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SLV_WR_STATUS_SPEC;
impl crate::RegisterSpec for SLV_WR_STATUS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`slv_wr_status::R`](R) reader structure"]
impl crate::Readable for SLV_WR_STATUS_SPEC {}
#[doc = "`write(|w| ..)` method takes [`slv_wr_status::W`](W) writer structure"]
impl crate::Writable for SLV_WR_STATUS_SPEC {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets SLV_WR_STATUS to value 0"]
impl crate::Resettable for SLV_WR_STATUS_SPEC {}