1#[doc = "Register `EXT2` reader"]
2pub type R = crate::R<EXT2_SPEC>;
3#[doc = "Field `ST` reader - The status of spi state machine ."]
4pub type ST_R = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:2 - The status of spi state machine ."]
7 #[inline(always)]
8 pub fn st(&self) -> ST_R {
9 ST_R::new((self.bits & 7) as u8)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("EXT2").field("st", &self.st()).finish()
16 }
17}
18#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`ext2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct EXT2_SPEC;
20impl crate::RegisterSpec for EXT2_SPEC {
21 type Ux = u32;
22}
23#[doc = "`read()` method returns [`ext2::R`](R) reader structure"]
24impl crate::Readable for EXT2_SPEC {}
25#[doc = "`reset()` method sets EXT2 to value 0"]
26impl crate::Resettable for EXT2_SPEC {}