mimxrt685s_pac/ocotp/
otp_write_data.rs1#[doc = "Register `OTP_WRITE_DATA` reader"]
2pub type R = crate::R<OtpWriteDataSpec>;
3#[doc = "Field `WRITE_DATA` reader - Fuse word programming data. After the write operation is unlocked in OTP_CTRL register, writing data to this register automatically start the programming procedure."]
4pub type WriteDataR = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - Fuse word programming data. After the write operation is unlocked in OTP_CTRL register, writing data to this register automatically start the programming procedure."]
7 #[inline(always)]
8 pub fn write_data(&self) -> WriteDataR {
9 WriteDataR::new(self.bits)
10 }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("OTP_WRITE_DATA")
16 .field("write_data", &self.write_data())
17 .finish()
18 }
19}
20#[doc = "OTP programming data register\n\nYou can [`read`](crate::Reg::read) this register and get [`otp_write_data::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct OtpWriteDataSpec;
22impl crate::RegisterSpec for OtpWriteDataSpec {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`otp_write_data::R`](R) reader structure"]
26impl crate::Readable for OtpWriteDataSpec {}
27#[doc = "`reset()` method sets OTP_WRITE_DATA to value 0"]
28impl crate::Resettable for OtpWriteDataSpec {
29 const RESET_VALUE: u32 = 0;
30}