#[doc = "Register `SPI_MEM_XTS_DESTROY` writer"]
pub type W = crate::W<SPI_MEM_XTS_DESTROY_SPEC>;
#[doc = "Field `SPI_XTS_DESTROY` writer - Set this bit to destroy encrypted result. This action should be asserted only when manual encryption status is 3. After this action, manual encryption status will become 0."]
pub type SPI_XTS_DESTROY_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<SPI_MEM_XTS_DESTROY_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[doc = "Bit 0 - Set this bit to destroy encrypted result. This action should be asserted only when manual encryption status is 3. After this action, manual encryption status will become 0."]
#[inline(always)]
#[must_use]
pub fn spi_xts_destroy(&mut self) -> SPI_XTS_DESTROY_W<SPI_MEM_XTS_DESTROY_SPEC, 0> {
SPI_XTS_DESTROY_W::new(self)
}
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
}
#[doc = "Manual Encryption physical address register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`spi_mem_xts_destroy::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SPI_MEM_XTS_DESTROY_SPEC;
impl crate::RegisterSpec for SPI_MEM_XTS_DESTROY_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`spi_mem_xts_destroy::W`](W) writer structure"]
impl crate::Writable for SPI_MEM_XTS_DESTROY_SPEC {
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets SPI_MEM_XTS_DESTROY to value 0"]
impl crate::Resettable for SPI_MEM_XTS_DESTROY_SPEC {
const RESET_VALUE: Self::Ux = 0;
}